No network connectivity inside VMs after host reboot

Bug #1532890 reported by Roman Podoliaka
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Confirmed
Low
Unassigned

Bug Description

When a host is rebooted and resume_guests_state_on_host_boot is set to True, it may happen (although, it's an edge case) that nova-compute starts before OVS finishes initialization of all created bridges, and thus we'll see the following error when creating an ovs vif port:

2016-01-05 02:57:57.970 11932 ERROR nova.network.linux_net [req-e5b5ba37-fff7-4b41-9dda-00c2c54a8e22 - - - - -] Unable to execute ['ovs-vsctl', '--timeout=120', '--', '--if-exists', 'del-port', u'qvob2efeceb-e4', '--', 'add-port', u'br-int', u'qvob2efeceb-e4', '--', 'set', 'Interface', u'qvob2efeceb-e4', u'external-ids:iface-id=b2efeceb-e46f-41f5-a1b2-add7f5dd7a80', 'external-ids:iface-status=active', u'external-ids:attached-mac=fa:16:3e:34:91:87', 'external-ids:vm-uuid=50118e0e-e104-4cc0-b154-b0dcdaef0494']. Exception: Unexpected error while running command.
Command: sudo nova-rootwrap /etc/nova/rootwrap.conf ovs-vsctl --timeout=120 -- --if-exists del-port qvob2efeceb-e4 -- add-port br-int qvob2efeceb-e4 -- set Interface qvob2efeceb-e4 external-ids:iface-id=b2efeceb-e46f-41f5-a1b2-add7f5dd7a80 external-ids:iface-status=active external-ids:attached-mac=fa:16:3e:34:91:87 external-ids:vm-uuid=50118e0e-e104-4cc0-b154-b0dcdaef0494
Exit code: 1
Stdout: u''
Stderr: u'ovs-vsctl: no bridge named br-int\n'

An instance will be booted successfully, but there will be no network connectivity inside the VM.

Changed in nova:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (master)

Fix proposed to branch: master
Review: https://review.openstack.org/265973

description: updated
Changed in nova:
importance: Undecided → Low
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on nova (master)

Change abandoned by Michael Still (<email address hidden>) on branch: master
Review: https://review.openstack.org/265973
Reason: This code hasn't been updated in a long time, and is in merge conflict. I am going to abandon this review, but feel free to restore it if you're still working on this.

Changed in nova:
assignee: Roman Podoliaka (rpodolyaka) → nobody
status: In Progress → Confirmed
Changed in nova:
assignee: nobody → Kedarisetty Snigdha (snigdha17)
Changed in nova:
assignee: Kedarisetty Snigdha (snigdha17) → nobody
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.