[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 11:35:33 UTC 2020


I can confirm this happens:

root at test:~# apt-cache policy python-nova
python-nova:
  Installed: 2:13.1.4-0ubuntu4.5
  Candidate: 2:13.1.4-0ubuntu4.5
  Version table:
 *** 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.8.0-2ubuntu1
  Version table:
 *** 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:~# add-apt-repository cloud-archive:ocata
<--snip-->
root at test:~# sudo apt install python-nova
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following package was automatically installed and is no longer required:
  python-ndg-httpsclient
Use 'sudo apt autoremove' to remove it.
The following additional packages will be installed:
  alembic os-brick-common python-alembic python-babel python-babel-localedata python-blinker python-ceilometerclient
  python-cffi python-glanceclient python-jwt python-keystoneauth1 python-microversion-parse python-oauthlib python-os-brick
  python-os-vif python-os-win python-os-xenapi python-oslo.concurrency python-oslo.config python-oslo.context python-oslo.db
  python-oslo.log python-oslo.messaging python-oslo.policy python-oslo.privsep python-oslo.service python-oslo.utils
  python-oslo.versionedobjects python-osprofiler python-ply python-positional python-pycparser python-pyparsing
  python-requests python-stevedore python-tenacity python-urllib3 python-webob
Suggested packages:
  python-editor python-blinker-doc python-ceilometerclient-doc python-dev python-glanceclient-doc python-keystoneauth1-doc
  python-requests-kerberos python-microversion-parse-doc python-ldap python-os-brick-doc python-os-vif-doc python-os-win-doc
  python-os-xenapi-doc python-oslo.concurrency-doc python-oslo.log-doc python-kafka python-zmq python-oslo.policy-doc
  python-oslo.privsep-doc python-oslo.service-doc python-oslo.versionedobjects-doc python-ply-doc python-positional-doc cpp
  python-pyparsing-doc python-socks python-tenacity-doc python-ntlm python-webob-doc
The following NEW packages will be installed:
  python-blinker python-ceilometerclient python-cffi python-jwt python-microversion-parse python-oauthlib python-os-vif
  python-os-xenapi python-oslo.privsep python-osprofiler python-ply python-pycparser python-tenacity
The following packages will be upgraded:
  alembic os-brick-common python-alembic python-babel python-babel-localedata python-glanceclient python-keystoneauth1
  python-nova python-os-brick python-os-win python-oslo.concurrency python-oslo.config python-oslo.context python-oslo.db
  python-oslo.log python-oslo.messaging python-oslo.policy python-oslo.service python-oslo.utils
  python-oslo.versionedobjects python-positional python-pyparsing python-requests python-stevedore python-urllib3
  python-webob
26 upgraded, 13 newly installed, 0 to remove and 38 not upgraded.
Need to get 8449 kB of archives.
After this operation, 15.5 MB of additional disk space will be used.
Do you want to continue? [Y/n]
<--snip-->
root at test:~# apt-cache policy python-nova
python-nova:
  Installed: 2:15.1.5-0ubuntu1~cloud5
  Candidate: 2:15.1.5-0ubuntu1~cloud5
  Version table:
 *** 2:15.1.5-0ubuntu1~cloud5 500
        500 http://ubuntu-cloud.archive.canonical.com/ubuntu xenial-updates/ocata/main amd64 Packages
        100 /var/lib/dpkg/status
     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.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.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

** Changed in: cloud-archive
       Status: New => Confirmed

-- 
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:
  Confirmed

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