stable/ocata nova on 16.04 (xenial)/lxd 2.0.11 can't pass gate
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Global Requirements |
Fix Released
|
Undecided
|
Matthew Thode | ||
OpenStack-Ansible |
Fix Released
|
Medium
|
Jesse Pretorius | ||
nova-lxd |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
So the "legacy-
On Xenial 16.04 lxd is now 2.0.11. lxd 2.0.11 grew an extra attribute on the Container called "description".
For stable/ocata, pylxd is has an upper constraint of 2.2.2.
pylxd 2.2.2 can't handle the additional attribute; the ability to ignore extra (unknown) attributes was only added in pylxd 2.2.4 due to https:/
Therefore, the gate is broken. nova-lxd can't be patched around this as as the bug occurs between pylxd and lxd. The only real solution is to up the constraint for pylxd to 2.2.4.
I've tested this in devstack and it passes; I'm trying to reproduce the legacy-
Changed in openstack-ansible: | |
assignee: | nobody → Jesse Pretorius (jesse-pretorius) |
importance: | Undecided → Medium |
status: | New → In Progress |
Changed in openstack-ansible: | |
status: | In Progress → Fix Released |
2018-01-26 11:10:15.341 1262 ERROR nova.compute. manager [req-30924d9c- 7425-4f99- 94dc-e94e8d47d7 59 tempest- AggregatesAdmin TestJSON- 176150702 tempest- AggregatesAdmin TestJSON- 176150702] [instance: c9bccfb3- 7fe8-4146- 8aec-973789e979 d7] Instance failed to spawn manager [instance: c9bccfb3- 7fe8-4146- 8aec-973789e979 d7] Traceback (most recent call last): manager [instance: c9bccfb3- 7fe8-4146- 8aec-973789e979 d7] File "/opt/stack/ new/nova/ nova/compute/ manager. py", line 2132, in _build_resources manager [instance: c9bccfb3- 7fe8-4146- 8aec-973789e979 d7] yield resources manager [instance: c9bccfb3- 7fe8-4146- 8aec-973789e979 d7] File "/opt/stack/ new/nova/ nova/compute/ manager. py", line 1938, in _build_ and_run_ instance manager [instance: c9bccfb3- 7fe8-4146- 8aec-973789e979 d7] block_device_ info=block_ device_ info) manager [instance: c9bccfb3- 7fe8-4146- 8aec-973789e979 d7] File "/opt/stack/ new/nova- lxd/nova/ virt/lxd/ driver. py", line 444, in spawn manager [instance: c9bccfb3- 7fe8-4146- 8aec-973789e979 d7] container. start(wait= True) manager [instance: c9bccfb3- 7fe8-4146- 8aec-973789e979 d7] File "/usr/local/ lib/python2. 7/dist- packages/ pylxd/models/ container. py", line 173, in start manager [instance: c9bccfb3- 7fe8-4146- 8aec-973789e979 d7] wait=wait) manager [instance: c9bccfb3- 7fe8-4146- 8aec-973789e979 d7] File "/usr/local/ lib/python2. 7/dist- packages/ pylxd/models/ container. py", line 161, in _set_state manager [instance: c9bccfb3- 7fe8-4146- 8aec-973789e979 d7] self.sync() manager [instance: c9bccfb3- 7fe8-4146- 8aec-973789e979 d7] File "/usr/local/ lib/python2. 7/dist- packages/ pylxd/models/ _model. py", line 154, in sync manager [instance: c9bccfb3- 7fe8-4146- 8aec-973789e979 d7] setattr(self, key, val) manager [instance: c9bccfb3- 7fe8-4146- 8aec-973789e979 d7] File "/usr/local/ lib/python2. 7/dist- packages/ pylxd/models/ _model. py", line 135, in __setattr__ manager [instance: c9bccfb3- 7fe8-4146- 8aec-973789e979 d7] return super(Model, self)._ _setattr_ _(name, value) manager [instance: c9bccfb3- 7fe8-4146- 8aec-973789e979 d7] AttributeError: 'Container' object has no attribute 'description' manager [instance: c9bccfb3- 7fe8-4146- 8aec-973789e979 d7] manager [req-30924d9c- 7425-4f99- 94dc-e94e8d47d7 59 tempest- AggregatesAdmin TestJSON- 176150702 tempest- AggregatesAdmin TestJSON- 176150702] [instance: c9bccfb3- 7fe8-4146- 8aec...
2018-01-26 11:10:15.341 1262 ERROR nova.compute.
2018-01-26 11:10:15.341 1262 ERROR nova.compute.
2018-01-26 11:10:15.341 1262 ERROR nova.compute.
2018-01-26 11:10:15.341 1262 ERROR nova.compute.
2018-01-26 11:10:15.341 1262 ERROR nova.compute.
2018-01-26 11:10:15.341 1262 ERROR nova.compute.
2018-01-26 11:10:15.341 1262 ERROR nova.compute.
2018-01-26 11:10:15.341 1262 ERROR nova.compute.
2018-01-26 11:10:15.341 1262 ERROR nova.compute.
2018-01-26 11:10:15.341 1262 ERROR nova.compute.
2018-01-26 11:10:15.341 1262 ERROR nova.compute.
2018-01-26 11:10:15.341 1262 ERROR nova.compute.
2018-01-26 11:10:15.341 1262 ERROR nova.compute.
2018-01-26 11:10:15.341 1262 ERROR nova.compute.
2018-01-26 11:10:15.341 1262 ERROR nova.compute.
2018-01-26 11:10:15.341 1262 ERROR nova.compute.
2018-01-26 11:10:15.341 1262 ERROR nova.compute.
2018-01-26 11:10:15.343 1262 INFO nova.compute.