reboot ovs service lose dhcp port in dhcp namespace
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
Invalid
|
Undecided
|
Unassigned |
Bug Description
a. i install ocata on two host, all agent work well, as below:
[root@controller openstack]# openstack network agent list
+------
| ID | Agent Type | Host | Availability Zone | Alive | State | Binary |
+------
| 1296f653-
| 47bd5b59-
| 9d8f5a9d-
| c420da8e-
| f79bf249-
+------
[root@controller openstack]# openstack compute service list
+----+-
| ID | Binary | Host | Zone | Status | State | Updated At |
+----+-
| 1 | nova-consoleauth | controller | internal | enabled | up | 2017-08-
| 3 | nova-conductor | controller | internal | enabled | up | 2017-08-
| 7 | nova-scheduler | controller | internal | enabled | up | 2017-08-
| 10 | nova-compute | controller | nova | enabled | up | 2017-08-
| 11 | nova-compute | compute | nova | enabled | up | 2017-08-
+----+-
b. create a tenant with vlan mode,
[root@controller openstack]# ip netns
qdhcp-006b70a9-
[root@controller openstack]# ip netns exec qdhcp-006b70a9-
lo: flags=73<
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1 (Local Loopback)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
tapbfe934a3-9d: flags=323<
inet 1.2.3.4 netmask 255.255.255.0 broadcast 1.2.3.255
inet6 fe80::f816:
ether fa:16:3e:ed:ea:19 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 5 bytes 438 (438.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
3. when reboot ovs sevice, port tapbfe934a3-9d in dhcp namespace will be lose
[root@controller openstack]# systemctl restart openvswitch
[root@controller openstack]# ip netns exec qdhcp-006b70a9-
lo: flags=73<
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1 (Local Loopback)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
4. when reboot dhcp agent, that port appear again
[root@controller openstack]# systemctl restart neutron-
[root@controller openstack]# ip netns exec qdhcp-006b70a9-
lo: flags=73<
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1 (Local Loopback)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
tapbfe934a3-9d: flags=323<
inet 1.2.3.4 netmask 255.255.255.0 broadcast 1.2.3.255
inet6 fe80::f816:
ether fa:16:3e:ed:ea:19 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 5 bytes 438 (438.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
as describe above, i want to know weather this is normal
I've tried reproducing this with a 2 node devstack installation on Ubuntu 16.04.1; based on the info given it's the best I could do to duplicate the failing environment. However I haven't been able to reproduce this issue, neither with a single node (all in one) or 2 node setup.
Below is the output from a 2 node env where I'm trying to reproduce: ~/devstack$ openstack network agent list ------- ------- --+---- ------- ------- --+---- ------- ---+--- ------- ------- --+---- ---+--- ----+-- ------- ------- ------- --+ ------- ------- --+---- ------- ------- --+---- ------- ---+--- ------- ------- --+---- ---+--- ----+-- ------- ------- ------- --+ 4405-48f2- 8 | Open vSwitch agent | ocata | None | True | UP | neutron- openvswitch- | metadata- agent | openvswitch- | ------- ------- --+---- ------- ------- --+---- ------- ---+--- ------- ------- --+---- ---+--- ----+-- ------- ------- ------- --+ ~/devstack$ ip netns list ce5e-4c34- b804-ef76532278 f6 41227234- 0ee7-420b- 98e4-1981526009 04 ~/devstack$ sudo ip netns exec qdhcp-5d63c728- ce5e-4c34- b804-ef76532278 f6 ifconfig
collisions: 0 txqueuelen:1
-->
stack@ocata:
+------
| ID | Agent Type | Host | Availability Zone | Alive | State | Binary |
+------
| 0048116c-
| 288-a886b7770114 | | | | | | agent |
| 1fc1db67-57fc-41fb- | DHCP agent | ocata | nova | True | UP | neutron-dhcp-agent |
| 84e7-4ed100593d0b | | | | | | |
| 7c65e0bd-cf09-4ab4 | Metadata agent | ocata | None | True | UP | neutron-
| -9e3f-3eb34b1d4244 | | | | | | |
| 8908f435-a2c8-4866 | Open vSwitch agent | ocatastackn1 | None | True | UP | neutron-
| -b2ca-d695428cf59a | | | | | | agent |
| 9fe9a8a9-3caa-4a8e- | L3 agent | ocata | nova | True | UP | neutron-l3-agent |
| 8ccb-c325726117d1 | | | | | | |
+------
stack@ocata:
qdhcp-5d63c728-
qrouter-
stack@ocata:
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
tap69d583e5-1d Link encap:Ethernet HWaddr fa:16:3e:2d:b7:02 255.255. 192 3eff:fe2d: b702/64 Scope:Link b5e0:0: f816:3eff: fe2d:b702/ 64 Scope:Global
inet addr:10.0.0.2 Bcast:10.0.0.63 Mask:255.
inet6 addr: fe80::f816:
inet6 addr: fd95:54d:
UP BROADCAST RUNNING MULTICAST MTU:1450 Metric:1
RX packets:81 errors:0 dropped:0 overruns:0 frame:0
TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
...