Nova compute backtraces with nova KeyError: 1 when using VMwareVCDriver
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Nova 2013.1 from Ubuntu packages.
compute_
Configured to use Quantum.
network_
We can reproduce the backtrace 100% of the time.
Boot a nova instance that gets scheduled to a VMware VirtualCenter. The instance boots just fine and everything works.
If, at any point, you restart nova-compute for VCDriver you get:
2013-05-09 10:27:02.029 12071 TRACE nova File "/usr/bin/
2013-05-09 10:27:02.029 12071 TRACE nova service.wait()
2013-05-09 10:27:02.029 12071 TRACE nova File "/usr/lib/
2013-05-09 10:27:02.029 12071 TRACE nova _launcher.wait()
2013-05-09 10:27:02.029 12071 TRACE nova File "/usr/lib/
2013-05-09 10:27:02.029 12071 TRACE nova super(ServiceLa
2013-05-09 10:27:02.029 12071 TRACE nova File "/usr/lib/
2013-05-09 10:27:02.029 12071 TRACE nova service.wait()
2013-05-09 10:27:02.029 12071 TRACE nova File "/usr/lib/
2013-05-09 10:27:02.029 12071 TRACE nova return self._exit_
2013-05-09 10:27:02.029 12071 TRACE nova File "/usr/lib/
2013-05-09 10:27:02.029 12071 TRACE nova return hubs.get_
2013-05-09 10:27:02.029 12071 TRACE nova File "/usr/lib/
2013-05-09 10:27:02.029 12071 TRACE nova return self.greenlet.
2013-05-09 10:27:02.029 12071 TRACE nova File "/usr/lib/
2013-05-09 10:27:02.029 12071 TRACE nova result = function(*args, **kwargs)
2013-05-09 10:27:02.029 12071 TRACE nova File "/usr/lib/
2013-05-09 10:27:02.029 12071 TRACE nova server.start()
2013-05-09 10:27:02.029 12071 TRACE nova File "/usr/lib/
2013-05-09 10:27:02.029 12071 TRACE nova self.manager.
2013-05-09 10:27:02.029 12071 TRACE nova File "/usr/lib/
2013-05-09 10:27:02.029 12071 TRACE nova self._init_
2013-05-09 10:27:02.029 12071 TRACE nova File "/usr/lib/
2013-05-09 10:27:02.029 12071 TRACE nova if legacy_net_info and legacy_
2013-05-09 10:27:02.029 12071 TRACE nova KeyError: 1
2013-05-09 10:27:02.029 12071 TRACE nova
nova-compute can no longer start. Only way to start nova-compute after is to delete the instance via nova delete.
This then soft deletes the instance from the DB but leave the running instances on the HV and there is no record of the instance from nova going forward.
Change-Id I1b839bf791b402
Hopefully Yaguang Tang can take a look and provide feedback.
tags: | added: vmware |
Changed in nova: | |
assignee: | nobody → Shawn Hartsock (hartsock) |
Changed in nova: | |
assignee: | Shawn Hartsock (hartsock) → nobody |
tags: | added: vmware-co-preferred |
tags: | removed: vmware-co-preferred |
Additional info.
Logging whats in legacy_net_info:
013-05-10 12:15:14.142 ERROR nova.compute. manager [req-d80bc6bc- 5851-4e6b- a070-cada772cc3 1f None None] ('######', [VIF({' ovs_interfaceid ': None, 'network': Network({'bridge': None, 'subnets': [Subnet({'ips': [FixedIP({'meta': {}, 'version': 4, 'type': u'fixed', 'floating_ips': [], 'address': u'192.168.0.22'})], 'version': 4, 'meta': {u'dhcp_server': u'192.168.0.23'}, 'dns': [], 'routes': [], 'cidr': u'192.168.0.0/24', 'gateway': IP({'meta': {}, 'version': 4, 'type': u'gateway', 'address': u'192.168. 0.1'})} )], 'meta': {u'injected': False, u'tenant_id': u'26af345b8c5b4 cf881a68eb3151f ebd9'}, 'id': u'32fd60c1- 02bb-4147- a005-c8a907f866 9a', 'label': u'workLan'}), 'devname': u'tapb933bd2d-29', 'qbh_params': None, 'meta': {}, 'address': u'fa:16: 3e:0a:2a: 71', 'type': None, 'id': u'b933bd2d- 29c2-4a8e- 9c06-7bdc7c249b 7c', 'qbg_params': None})])