Thanks Om Prakash for sharing the logs. @Vishal,
Could you please point out what is wrong with allocating IPv4 address(20.0.0.3) to booted VM instance as per the Om Prakash shared logs. Also please suggest what are the logs needs to be collected to debug dhcp issue further. Thanks & Regards, Karthikeyan. On Thu, Jul 5, 2018 at 11:36 PM, PRAKASH, OM <[email protected]> wrote: > Below is total log from neutron-dhcp > > > > stack@controller00:~/devstack$ sudo journalctl -u devstack@neutron-dhcp > > -- Logs begin at Thu 2018-07-05 12:24:08 EDT, end at Thu 2018-07-05 > 14:04:36 EDT. -- > > Jul 05 13:31:35 controller00 systemd[1]: Started Devstack > [email protected]. > > Jul 05 13:40:48 controller00 sudo[21883]: stack : TTY=unknown ; PWD=/ ; > USER=root ; COMMAND=/usr/local/bin/neutron-rootwrap > /etc/neutron/rootwrap.conf privsep-helper --config-file /etc/n > > Jul 05 13:40:48 controller00 sudo[21883]: pam_unix(sudo:session): session > opened for user root by (uid=0) > > Jul 05 13:40:52 controller00 sudo[21883]: pam_unix(sudo:session): session > closed for user root > > Jul 05 13:40:52 controller00 sudo[21907]: stack : TTY=unknown ; PWD=/ ; > USER=root ; COMMAND=/usr/local/bin/neutron-rootwrap-daemon > /etc/neutron/rootwrap.conf > > Jul 05 13:40:52 controller00 sudo[21907]: pam_unix(sudo:session): session > opened for user root by (uid=0) > > Jul 05 13:40:54 controller00 ovs-vsctl[21926]: ovs|00001|vsctl|INFO|Called > as /usr/bin/ovs-vsctl --timeout=5 --id=@manager -- create Manager > "target=\"ptcp:6641:127.0.0.1\"" -- add Open_vSw > > Jul 05 13:40:57 controller00 dnsmasq[22031]: started, version 2.78 > cachesize 150 > > Jul 05 13:40:57 controller00 dnsmasq[22031]: compile time options: IPv6 > GNU-getopt DBus i18n IDN DHCP DHCPv6 no-Lua TFTP conntrack ipset auth > DNSSEC loop-detect inotify > > Jul 05 13:40:57 controller00 dnsmasq[22031]: LOUD WARNING: listening on > 20.0.0.2 may accept requests via interfaces other than tap930ada5a-dd > > Jul 05 13:40:57 controller00 dnsmasq[22031]: LOUD WARNING: use > --bind-dynamic rather than --bind-interfaces to avoid DNS amplification > attacks via these interface(s) > > Jul 05 13:40:57 controller00 dnsmasq-dhcp[22031]: DHCP, static leases only > on 20.0.0.0, lease time 1d > > Jul 05 13:40:57 controller00 dnsmasq-dhcp[22031]: DHCP, sockets bound > exclusively to interface tap930ada5a-dd > > Jul 05 13:40:57 controller00 dnsmasq[22031]: reading /etc/resolv.conf > > Jul 05 13:40:57 controller00 dnsmasq[22031]: using nameserver > 135.53.34.124#53 > > Jul 05 13:40:57 controller00 dnsmasq[22031]: using nameserver > 135.37.9.16#53 > > Jul 05 13:40:57 controller00 dnsmasq[22031]: using nameserver > 75.75.75.75#53 > > Jul 05 13:40:57 controller00 dnsmasq[22031]: read > /opt/stack/data/neutron/dhcp/589eb514-832e-4c3e-8ccd-b932c1036fce/addn_hosts > - 1 addresses > > Jul 05 13:40:57 controller00 dnsmasq-dhcp[22031]: read > /opt/stack/data/neutron/dhcp/589eb514-832e-4c3e-8ccd-b932c1036fce/host > > Jul 05 13:40:57 controller00 dnsmasq-dhcp[22031]: read > /opt/stack/data/neutron/dhcp/589eb514-832e-4c3e-8ccd-b932c1036fce/opts > > Jul 05 13:40:57 controller00 haproxy-metadata-proxy- > 589eb514-832e-4c3e-8ccd-b932c1036fce[22032]: Proxy listener started. > > Jul 05 13:40:59 controller00 dnsmasq[22031]: read > /opt/stack/data/neutron/dhcp/589eb514-832e-4c3e-8ccd-b932c1036fce/addn_hosts > - 1 addresses > > Jul 05 13:40:59 controller00 dnsmasq-dhcp[22031]: read > /opt/stack/data/neutron/dhcp/589eb514-832e-4c3e-8ccd-b932c1036fce/host > > Jul 05 13:40:59 controller00 dnsmasq-dhcp[22031]: read > /opt/stack/data/neutron/dhcp/589eb514-832e-4c3e-8ccd-b932c1036fce/opts > > Jul 05 13:40:59 controller00 dnsmasq[22031]: read > /opt/stack/data/neutron/dhcp/589eb514-832e-4c3e-8ccd-b932c1036fce/addn_hosts > - 1 addresses > > Jul 05 13:40:59 controller00 dnsmasq-dhcp[22031]: read > /opt/stack/data/neutron/dhcp/589eb514-832e-4c3e-8ccd-b932c1036fce/host > > Jul 05 13:40:59 controller00 dnsmasq-dhcp[22031]: read > /opt/stack/data/neutron/dhcp/589eb514-832e-4c3e-8ccd-b932c1036fce/opts > > Jul 05 13:41:08 controller00 dnsmasq[22031]: read > /opt/stack/data/neutron/dhcp/589eb514-832e-4c3e-8ccd-b932c1036fce/addn_hosts > - 2 addresses > > Jul 05 13:41:08 controller00 dnsmasq-dhcp[22031]: read > /opt/stack/data/neutron/dhcp/589eb514-832e-4c3e-8ccd-b932c1036fce/host > > Jul 05 13:41:08 controller00 dnsmasq-dhcp[22031]: read > /opt/stack/data/neutron/dhcp/589eb514-832e-4c3e-8ccd-b932c1036fce/opts > > Jul 05 13:42:46 controller00 dnsmasq[22031]: read > /opt/stack/data/neutron/dhcp/589eb514-832e-4c3e-8ccd-b932c1036fce/addn_hosts > - 2 addresses > > Jul 05 13:42:46 controller00 dnsmasq-dhcp[22031]: read > /opt/stack/data/neutron/dhcp/589eb514-832e-4c3e-8ccd-b932c1036fce/host > > Jul 05 13:42:46 controller00 dnsmasq-dhcp[22031]: read > /opt/stack/data/neutron/dhcp/589eb514-832e-4c3e-8ccd-b932c1036fce/opts > > Jul 05 13:42:47 controller00 dnsmasq[22031]: read > /opt/stack/data/neutron/dhcp/589eb514-832e-4c3e-8ccd-b932c1036fce/addn_hosts > - 2 addresses > > Jul 05 13:42:47 controller00 dnsmasq-dhcp[22031]: read > /opt/stack/data/neutron/dhcp/589eb514-832e-4c3e-8ccd-b932c1036fce/host > > Jul 05 13:42:47 controller00 dnsmasq-dhcp[22031]: read > /opt/stack/data/neutron/dhcp/589eb514-832e-4c3e-8ccd-b932c1036fce/opts > > lines 1-37/37 (END) > > > > *Thanks* > > *Om Prakash* > > > > *From:* PRAKASH, OM > *Sent:* Thursday, July 05, 2018 1:51 PM > *To:* 'Karthikeyan' <[email protected]> > *Cc:* [email protected]; om prakash <[email protected]>; > [email protected]; [email protected]; > Vishal Thapar <[email protected]> > *Subject:* RE: [netvirt-dev] [sfc-dev] Opendaylight support for > networking-sfc > > > > Hi Karthikeyan, > > > > Please find below detail :- > > > > stack@controller00:~/devstack$ source openrc admin admin > > WARNING: setting legacy OS_TENANT_NAME to support cli tools. > > stack@controller00:~/devstack$ openstack network agent list > > +--------------------------------------+----------------+--- > -----------+-------------------+-------+-------+------------ > ------------------+ > > | ID | Agent Type | Host | > Availability Zone | Alive | State | Binary | > > +--------------------------------------+----------------+--- > -----------+-------------------+-------+-------+------------ > ------------------+ > > | 28490104-f374-49d1-ac9a-7c904ca5b6fe | ODL L2 | controller00 | > None | :-) | UP | neutron-odlagent-portbinding | > > | 2954e32b-0686-4d07-ad1b-21721c41e3c0 | ODL L2 | compute00 | > None | :-) | UP | neutron-odlagent-portbinding | > > | abbf0cb7-639d-47b2-9733-a28344f7d51a | DHCP agent | controller00 | > nova | :-) | UP | neutron-dhcp-agent | > > | d8292ee2-2b44-4d2c-8aa5-d79d9f04d17b | Metadata agent | controller00 | > None | :-) | UP | neutron-metadata-agent | > > +--------------------------------------+----------------+--- > -----------+-------------------+-------+-------+------------ > ------------------+ > > stack@controller00:~/devstack$ > > > > stack@compute00:~/devstack$ sudo tcpdump -i tapc039efb6-ae > > tcpdump: verbose output suppressed, use -v or -vv for full protocol decode > > listening on tapc039efb6-ae, link-type EN10MB (Ethernet), capture size > 262144 bytes > > 13:44:27.670569 LLDP, length 99: openflow:102109643224304 > > 13:44:32.670604 LLDP, length 99: openflow:102109643224304 > > 13:44:37.669494 LLDP, length 99: openflow:102109643224304 > > 13:44:39.293614 IP 0.0.0.0.bootpc > 255.255.255.255.bootps: BOOTP/DHCP, > Request from fa:16:3e:81:82:ac (oui Unknown), length 290 > > 13:44:42.668765 LLDP, length 99: openflow:102109643224304 > > 13:44:47.668458 LLDP, length 99: openflow:102109643224304 > > 13:44:52.668388 LLDP, length 99: openflow:102109643224304 > > 13:44:57.670209 LLDP, length 99: openflow:102109643224304 > > 13:45:02.670353 LLDP, length 99: openflow:102109643224304 > > 13:45:07.670915 LLDP, length 99: openflow:102109643224304 > > 13:45:12.673164 LLDP, length 99: openflow:102109643224304 > > 13:45:17.669174 LLDP, length 99: openflow:102109643224304 > > 13:45:22.670522 LLDP, length 99: openflow:102109643224304 > > 13:45:27.669780 LLDP, length 99: openflow:102109643224304 > > 13:45:32.668944 LLDP, length 99: openflow:102109643224304 > > 13:45:37.669707 LLDP, length 99: openflow:102109643224304 > > 13:45:39.501777 IP 0.0.0.0.bootpc > 255.255.255.255.bootps: BOOTP/DHCP, > Request from fa:16:3e:81:82:ac (oui Unknown), length 290 > > 13:45:42.670678 LLDP, length 99: openflow:102109643224304 > > 13:45:47.671772 LLDP, length 99: openflow:102109643224304 > > 13:45:52.669565 LLDP, length 99: openflow:102109643224304 > > 13:45:57.673669 LLDP, length 99: openflow:102109643224304 > > 13:46:02.667437 LLDP, length 99: openflow:102109643224304 > > 13:46:07.670229 LLDP, length 99: openflow:102109643224304 > > 13:46:12.669025 LLDP, length 99: openflow:102109643224304 > > 13:46:17.669407 LLDP, length 99: openflow:102109643224304 > > 13:46:22.672173 LLDP, length 99: openflow:102109643224304 > > 13:46:27.672123 LLDP, length 99: openflow:102109643224304 > > 13:46:32.672276 LLDP, length 99: openflow:102109643224304 > > 13:46:37.671094 LLDP, length 99: openflow:102109643224304 > > > > > > From controlle node :- > > > > stack@controller00:~/devstack$ neutron port-list > > neutron CLI is deprecated and will be removed in the future. Use openstack > CLI instead. > > +--------------------------------------+------+------------- > ---------------------+-------------------+------------------ > ---------------------------------------------------------------+ > > | id | name | > tenant_id | mac_address | > fixed_ips > | > > +--------------------------------------+------+------------- > ---------------------+-------------------+------------------ > ---------------------------------------------------------------+ > > | 930ada5a-dd2e-4c2b-b701-c4e683e5dd1d | | > 9208514df478421c833c61e275238ac5 | fa:16:3e:f9:a6:c4 | {"subnet_id": > "93e2aa28-a9e0-42b2-a12b-9c0214fcb6dd", "ip_address": "20.0.0.2"} | > > | c039efb6-ae7b-4517-bef1-93ccf132ebd9 | P1 | > 9208514df478421c833c61e275238ac5 | fa:16:3e:81:82:ac | {"subnet_id": > "93e2aa28-a9e0-42b2-a12b-9c0214fcb6dd", "ip_address": "20.0.0.3"} | > > +--------------------------------------+------+------------- > ---------------------+-------------------+------------------ > ---------------------------------------------------------------+ > > stack@controller00:~/devstack$ nova list > > +--------------------------------------+--------+--------+-- > ----------+-------------+--------------------+ > > | ID | Name | Status | Task State | > Power State | Networks | > > +--------------------------------------+--------+--------+-- > ----------+-------------+--------------------+ > > | 155ab3bd-f925-4669-9a11-237479378249 | Source | ACTIVE | - | > Running | test-net0=20.0.0.3 | > > +--------------------------------------+--------+--------+-- > ----------+-------------+--------------------+ > > stack@controller00:~/devstack$ sudo ovs-vsctl show > > b411f572-df52-48b5-85c3-88540bc750bc > > Manager "tcp:172.29.240.10:6640" > > is_connected: true > > Manager "ptcp:6641:127.0.0.1" > > is_connected: true > > Bridge br-int > > Controller "tcp:172.29.240.10:6653" > > is_connected: true > > fail_mode: secure > > Port "br-physnet1-pa" > > Interface "br-physnet1-pa" > > type: patch > > options: {peer="br-physnet1-int-patch"} > > Port "tun412189f5a2a" > > Interface "tun412189f5a2a" > > type: vxlan > > options: {local_ip="172.29.240.11", > remote_ip="172.29.240.10", tos=inherit} > > Port br-int > > Interface br-int > > type: internal > > Port "tap930ada5a-dd" > > tag: 4095 > > Interface "tap930ada5a-dd" > > type: internal > > Port "tun9ef7890dfa7" > > Interface "tun9ef7890dfa7" > > type: vxlan > > options: {local_ip="172.29.240.11", > remote_ip="172.29.240.12", tos=inherit} > > Bridge "br-physnet1" > > Port "br-physnet1" > > Interface "br-physnet1" > > type: internal > > Port "enp0s10" > > Interface "enp0s10" > > Port "br-physnet1-int-patch" > > Interface "br-physnet1-int-patch" > > type: patch > > options: {peer="br-physnet1-pa"} > > ovs_version: "2.6.1" > > stack@controller00:~/devstack$ sudo ovs-vsctl list Interface | grep -E > '^name|^ofport |^mac_in_use|^external_id' > > external_ids : {} > > mac_in_use : "08:00:27:55:c1:54" > > name : "enp0s10" > > ofport : 1 > > external_ids : {} > > mac_in_use : "08:00:27:55:c1:54" > > name : "br-physnet1" > > ofport : 65534 > > external_ids : {} > > mac_in_use : "26:db:66:96:05:c9" > > name : "br-physnet1-pa" > > ofport : 1 > > external_ids : {attached-mac="fa:16:3e:f9:a6:c4", > iface-id="930ada5a-dd2e-4c2b-b701-c4e683e5dd1d", iface-status=active} > > mac_in_use : [] > > name : "tap930ada5a-dd" > > ofport : 4 > > external_ids : {} > > mac_in_use : "f2:9b:76:5d:36:02" > > name : "br-physnet1-int-patch" > > ofport : 2 > > external_ids : {} > > mac_in_use : "fe:f0:bd:59:cf:26" > > name : "tun9ef7890dfa7" > > ofport : 2 > > external_ids : {} > > mac_in_use : "98:e8:d6:af:09:6e" > > name : br-int > > ofport : 65534 > > external_ids : {} > > mac_in_use : "ee:48:02:5d:83:9e" > > name : "tun412189f5a2a" > > ofport : 3 > > > > > > from compute node :- > > > > stack@compute00:~/devstack$ neutron port-list > > neutron CLI is deprecated and will be removed in the future. Use openstack > CLI instead. > > +--------------------------------------+------+------------- > ---------------------+-------------------+------------------ > ---------------------------------------------------------------+ > > | id | name | > tenant_id | mac_address | > fixed_ips > | > > +--------------------------------------+------+------------- > ---------------------+-------------------+------------------ > ---------------------------------------------------------------+ > > | 930ada5a-dd2e-4c2b-b701-c4e683e5dd1d | | > 9208514df478421c833c61e275238ac5 | fa:16:3e:f9:a6:c4 | {"subnet_id": > "93e2aa28-a9e0-42b2-a12b-9c0214fcb6dd", "ip_address": "20.0.0.2"} | > > | c039efb6-ae7b-4517-bef1-93ccf132ebd9 | P1 | > 9208514df478421c833c61e275238ac5 | fa:16:3e:81:82:ac | {"subnet_id": > "93e2aa28-a9e0-42b2-a12b-9c0214fcb6dd", "ip_address": "20.0.0.3"} | > > +--------------------------------------+------+------------- > ---------------------+-------------------+------------------ > ---------------------------------------------------------------+ > > stack@compute00:~/devstack$ nova list > > +--------------------------------------+--------+--------+-- > ----------+-------------+--------------------+ > > | ID | Name | Status | Task State | > Power State | Networks | > > +--------------------------------------+--------+--------+-- > ----------+-------------+--------------------+ > > | 155ab3bd-f925-4669-9a11-237479378249 | Source | ACTIVE | - | > Running | test-net0=20.0.0.3 | > > +--------------------------------------+--------+--------+-- > ----------+-------------+--------------------+ > > stack@compute00:~/devstack$ sudo ovs-vsctl show > > 69c12f83-8c2f-4243-9094-0ad5c5716215 > > Manager "tcp:172.29.240.10:6640" > > is_connected: true > > Bridge "br-physnet1" > > Port "br-physnet1" > > Interface "br-physnet1" > > type: internal > > Port "enp0s10" > > Interface "enp0s10" > > Port "br-physnet1-int-patch" > > Interface "br-physnet1-int-patch" > > type: patch > > options: {peer="br-physnet1-pa"} > > Bridge br-int > > Controller "tcp:172.29.240.10:6653" > > is_connected: true > > fail_mode: secure > > Port "br-physnet1-pa" > > Interface "br-physnet1-pa" > > type: patch > > options: {peer="br-physnet1-int-patch"} > > Port br-int > > Interface br-int > > type: internal > > Port "tapc039efb6-ae" > > Interface "tapc039efb6-ae" > > Port "tun9129d7e32dd" > > Interface "tun9129d7e32dd" > > type: vxlan > > options: {local_ip="172.29.240.12", > remote_ip="172.29.240.11", tos=inherit} > > Port "tun70011b7e8ac" > > Interface "tun70011b7e8ac" > > type: vxlan > > options: {local_ip="172.29.240.12", > remote_ip="172.29.240.10", tos=inherit} > > ovs_version: "2.6.1" > > stack@compute00:~/devstack$ sudo ovs-vsctl list Interface | grep -E > '^name|^ofport |^mac_in_use|^external_id' > > external_ids : {} > > mac_in_use : "26:12:46:cd:47:61" > > name : "br-physnet1-pa" > > ofport : 1 > > external_ids : {} > > mac_in_use : "de:d5:2a:36:35:31" > > name : "tun70011b7e8ac" > > ofport : 2 > > external_ids : {} > > mac_in_use : "08:00:27:55:c1:54" > > name : "enp0s10" > > ofport : 1 > > external_ids : {} > > mac_in_use : "72:00:9a:5b:fa:ba" > > name : "br-physnet1-int-patch" > > ofport : 2 > > external_ids : {} > > mac_in_use : "08:00:27:55:c1:54" > > name : "br-physnet1" > > ofport : 65534 > > external_ids : {} > > mac_in_use : "5c:de:41:03:34:f0" > > name : br-int > > ofport : 65534 > > external_ids : {} > > mac_in_use : "e6:9a:96:c0:00:53" > > name : "tun9129d7e32dd" > > ofport : 3 > > external_ids : {attached-mac="fa:16:3e:81:82:ac", > iface-id="c039efb6-ae7b-4517-bef1-93ccf132ebd9", iface-status=active, > vm-id="155ab3bd-f925-4669-9a11-237479378249"} > > mac_in_use : "fe:16:3e:81:82:ac" > > name : "tapc039efb6-ae" > > ofport : 4 > > stack@compute00:~/devstack$ > > stack@compute00:~/devstack$ > > > > > > *Thanks* > > *Om Prakash* > > >
_______________________________________________ sfc-dev mailing list [email protected] https://lists.opendaylight.org/mailman/listinfo/sfc-dev
