[Bug 1830770] Re: UCA python-nova requires UCA python-oslo.middleware but doesn't specify in dependency
Chris MacNaughton
1830770 at bugs.launchpad.net
Tue Jun 9 14:31:21 UTC 2020
Using the Ocata staging PPA, the python-oslo.middleware package is
properly updated:
root at test:~# apt-cache policy python-nova
python-nova:
Installed: 2:13.1.4-0ubuntu4.5
Candidate: 2:15.1.5-0ubuntu1~cloud6
Version table:
2:15.1.5-0ubuntu1~cloud6 500
500 http://ppa.launchpad.net/ubuntu-cloud-archive/ocata-staging/ubuntu xenial/main amd64 Packages
2:15.1.5-0ubuntu1~cloud5 500
500 http://ubuntu-cloud.archive.canonical.com/ubuntu xenial-updates/ocata/main amd64 Packages
*** 2:13.1.4-0ubuntu4.5 500
500 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages
500 http://security.ubuntu.com/ubuntu xenial-security/main amd64 Packages
100 /var/lib/dpkg/status
2:13.0.0-0ubuntu2 500
500 http://archive.ubuntu.com/ubuntu xenial/main amd64 Packages
root at test:~# apt-cache policy python-oslo.middleware
python-oslo.middleware:
Installed: 3.8.0-2ubuntu1
Candidate: 3.23.1-0ubuntu1.1~cloud0
Version table:
3.23.1-0ubuntu1.1~cloud0 500
500 http://ubuntu-cloud.archive.canonical.com/ubuntu xenial-updates/ocata/main amd64 Packages
3.23.1-0ubuntu1.1~cloud0 500
500 http://ppa.launchpad.net/ubuntu-cloud-archive/ocata-staging/ubuntu xenial/main amd64 Packages
*** 3.8.0-2ubuntu1 500
500 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages
500 http://security.ubuntu.com/ubuntu xenial-security/main amd64 Packages
100 /var/lib/dpkg/status
3.8.0-2 500
500 http://archive.ubuntu.com/ubuntu xenial/main amd64 Packages
root at test:~# apt install python-nova -y
<--snip-->
root at test:~# apt-cache policy python-nova
python-nova:
Installed: 2:15.1.5-0ubuntu1~cloud6
Candidate: 2:15.1.5-0ubuntu1~cloud6
Version table:
*** 2:15.1.5-0ubuntu1~cloud6 500
500 http://ppa.launchpad.net/ubuntu-cloud-archive/ocata-staging/ubuntu xenial/main amd64 Packages
100 /var/lib/dpkg/status
2:15.1.5-0ubuntu1~cloud5 500
500 http://ubuntu-cloud.archive.canonical.com/ubuntu xenial-updates/ocata/main amd64 Packages
2:13.1.4-0ubuntu4.5 500
500 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages
500 http://security.ubuntu.com/ubuntu xenial-security/main amd64 Packages
2:13.0.0-0ubuntu2 500
500 http://archive.ubuntu.com/ubuntu xenial/main amd64 Packages
root at test:~# apt-cache policy python-oslo.middleware
python-oslo.middleware:
Installed: 3.23.1-0ubuntu1.1~cloud0
Candidate: 3.23.1-0ubuntu1.1~cloud0
Version table:
*** 3.23.1-0ubuntu1.1~cloud0 500
500 http://ubuntu-cloud.archive.canonical.com/ubuntu xenial-updates/ocata/main amd64 Packages
100 /var/lib/dpkg/status
3.23.1-0ubuntu1.1~cloud0 500
500 http://ppa.launchpad.net/ubuntu-cloud-archive/ocata-staging/ubuntu xenial/main amd64 Packages
3.8.0-2ubuntu1 500
500 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages
500 http://security.ubuntu.com/ubuntu xenial-security/main amd64 Packages
3.8.0-2 500
500 http://archive.ubuntu.com/ubuntu xenial/main amd64 Packages
--
You received this bug notification because you are a member of Ubuntu
OpenStack, which is subscribed to Ubuntu Cloud Archive.
https://bugs.launchpad.net/bugs/1830770
Title:
UCA python-nova requires UCA python-oslo.middleware but doesn't
specify in dependency
Status in Ubuntu Cloud Archive:
In Progress
Status in Ubuntu Cloud Archive ocata series:
Fix Committed
Bug description:
This occurred specifically on python-nova 2:15.1.5-0ubuntu1~cloud3,
pulled from http://ubuntu-cloud.archive.canonical.com/ubuntu xenial-
updates/ocata/main amd64 Packages.
Upon attempting to deploy some nova compute nodes, we ended up with
several nodes which would not start up properly. /var/log/syslog had
a traceback which seems to point at python-nova:
May 27 16:49:50 <HOSTNAME> systemd[1]: Starting OpenStack Compute...
May 27 16:49:50 <HOSTNAME> systemd[1]: Started OpenStack Compute.
May 27 16:49:51 <HOSTNAME> nova-compute[20093]: Traceback (most recent call last):
May 27 16:49:51 <HOSTNAME> nova-compute[20093]: File "/usr/bin/nova-compute", line 10, in <module>
May 27 16:49:51 <HOSTNAME> nova-compute[20093]: sys.exit(main())
May 27 16:49:51 <HOSTNAME> nova-compute[20093]: File "/usr/lib/python2.7/dist-packages/nova/cmd/compute.py", line 42, in main
May 27 16:49:51 <HOSTNAME> nova-compute[20093]: config.parse_args(sys.argv)
May 27 16:49:51 <HOSTNAME> nova-compute[20093]: File "/usr/lib/python2.7/dist-packages/nova/config.py", line 47, in parse_args
May 27 16:49:51 <HOSTNAME> nova-compute[20093]: config.set_middleware_defaults()
May 27 16:49:51 <HOSTNAME> nova-compute[20093]: File "/usr/lib/python2.7/dist-packages/nova/common/config.py", line 20, in set_middleware_defaults
May 27 16:49:51 <HOSTNAME> nova-compute[20093]: cors.set_defaults(
May 27 16:49:51 <HOSTNAME> nova-compute[20093]: AttributeError: 'module' object has no attribute 'set_defaults'
May 27 16:49:51 <HOSTNAME> systemd[1]: nova-compute.service: Main process exited, code=exited, status=1/FAILURE
May 27 16:49:51 <HOSTNAME> systemd[1]: nova-compute.service: Unit entered failed state.
May 27 16:49:51 <HOSTNAME> systemd[1]: nova-compute.service: Failed with result 'exit-code'.
Upon deeper investigation, it appears that the system is running
python-oslo.middleware version 3.8.0-2ubuntu1, rather than the UCA
version 3.23.1-0ubuntu1.1~cloud0. As such, it's missing the
set_defaults() function which is available in the UCA version.
The reason we ended up in this state: ubuntu-cloud-keyring was
installed after python-nova, thus originally python-nova and python-
oslo.middleware were both pulled from the distro. However, a package
installed after the cloud keychain was available required an upgrade
of python-nova. However, since the UCA python-nova simply requires
"python-oslo.middleware (>= 3.0.0)", no update to python-
oslo.middleware was pulled.
To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-archive/+bug/1830770/+subscriptions
More information about the Ubuntu-openstack-bugs
mailing list