[focal][ussuri] nova-compute charm tries to install nova-network which doesn't exist after train

Bug #1872770 reported by Alex Kavanagh
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Nova Compute Charm
Fix Released
Undecided
Unassigned

Bug Description

2020-04-09 16:55:02 INFO juju-log cloud-compute:27: Installing ['nova-api', 'nova-network'] with options: ['--option=Dpkg::Options::=--force-confold']
2020-04-09 16:55:24 DEBUG cloud-compute-relation-joined The following packages have unmet dependencies:
2020-04-09 16:55:24 DEBUG cloud-compute-relation-joined nova-network : Depends: python3-nova (= 2:20.0.0-0ubuntu1~cloud0) but 2:21.0.0~b3~git2020032515.35240b0d8c-0ubuntu2~cloud0 is to be installed
2020-04-09 16:55:24 DEBUG cloud-compute-relation-joined E: Unable to correct problems, you have held broken packages.
2020-04-09 16:55:24 INFO juju-log cloud-compute:27: Couldn't acquire DPKG lock. Will retry in 10 seconds
2020-04-09 16:55:34 DEBUG cloud-compute-relation-joined Reading package lists...
2020-04-09 16:55:34 DEBUG cloud-compute-relation-joined Building dependency tree...
2020-04-09 16:55:34 DEBUG cloud-compute-relation-joined Reading state information...
2020-04-09 16:55:34 DEBUG cloud-compute-relation-joined Some packages could not be installed. This may mean that you have
2020-04-09 16:55:34 DEBUG cloud-compute-relation-joined requested an impossible situation or if you are using the unstable
2020-04-09 16:55:34 DEBUG cloud-compute-relation-joined distribution that some required packages have not yet been created
2020-04-09 16:55:34 DEBUG cloud-compute-relation-joined or been moved out of Incoming.
2020-04-09 16:55:34 DEBUG cloud-compute-relation-joined The following information may help to resolve the situation:
2020-04-09 16:55:34 DEBUG cloud-compute-relation-joined
2020-04-09 16:55:34 DEBUG cloud-compute-relation-joined The following packages have unmet dependencies:
2020-04-09 16:55:34 DEBUG cloud-compute-relation-joined nova-network : Depends: python3-nova (= 2:20.0.0-0ubuntu1~cloud0) but 2:21.0.0~b3~git2020032515.35240b0d8c-0ubuntu2~cloud0 is to be installed
2020-04-09 16:55:34 DEBUG cloud-compute-relation-joined E: Unable to correct problems, you have held broken packages.
2020-04-09 16:55:35 DEBUG cloud-compute-relation-joined Traceback (most recent call last):
2020-04-09 16:55:35 DEBUG cloud-compute-relation-joined File "/var/lib/juju/agents/unit-nova-compute-0/charm/hooks/cloud-compute-relation-joined", line 765, in <module>
2020-04-09 16:55:35 DEBUG cloud-compute-relation-joined main()
2020-04-09 16:55:35 DEBUG cloud-compute-relation-joined File "/var/lib/juju/agents/unit-nova-compute-0/charm/hooks/cloud-compute-relation-joined", line 761, in main
2020-04-09 16:55:35 DEBUG cloud-compute-relation-joined assess_status(CONFIGS)
2020-04-09 16:55:35 DEBUG cloud-compute-relation-joined File "/var/lib/juju/agents/unit-nova-compute-0/charm/hooks/nova_compute_utils.py", line 898, in assess_status
2020-04-09 16:55:35 DEBUG cloud-compute-relation-joined assess_status_func(configs, services_to_check)()
2020-04-09 16:55:35 DEBUG cloud-compute-relation-joined File "/var/lib/juju/agents/unit-nova-compute-0/charm/hooks/charmhelpers/contrib/openstack/utils.py", line 1639, in _assess_status_func
2020-04-09 16:55:35 DEBUG cloud-compute-relation-joined state, message = _determine_os_workload_status(*args, **kwargs)
2020-04-09 16:55:35 DEBUG cloud-compute-relation-joined File "/var/lib/juju/agents/unit-nova-compute-0/charm/hooks/charmhelpers/contrib/openstack/utils.py", line 982, in _determine_os_workload_status
2020-04-09 16:55:35 DEBUG cloud-compute-relation-joined configs, required_interfaces)
2020-04-09 16:55:35 DEBUG cloud-compute-relation-joined File "/var/lib/juju/agents/unit-nova-compute-0/charm/hooks/charmhelpers/contrib/openstack/utils.py", line 1055, in _ows_check_generic_interfaces
2020-04-09 16:55:35 DEBUG cloud-compute-relation-joined required_interfaces)
2020-04-09 16:55:35 DEBUG cloud-compute-relation-joined File "/var/lib/juju/agents/unit-nova-compute-0/charm/hooks/charmhelpers/contrib/openstack/utils.py", line 1338, in incomplete_relation_data
2020-04-09 16:55:35 DEBUG cloud-compute-relation-joined complete_ctxts = configs.complete_contexts()
2020-04-09 16:55:35 DEBUG cloud-compute-relation-joined File "/var/lib/juju/agents/unit-nova-compute-0/charm/hooks/charmhelpers/contrib/openstack/templating.py", line 351, in complete_contexts
2020-04-09 16:55:35 DEBUG cloud-compute-relation-joined for i in six.itervalues(self.templates)]
2020-04-09 16:55:35 DEBUG cloud-compute-relation-joined File "/var/lib/juju/agents/unit-nova-compute-0/charm/hooks/charmhelpers/contrib/openstack/templating.py", line 351, in <listcomp>
2020-04-09 16:55:35 DEBUG cloud-compute-relation-joined for i in six.itervalues(self.templates)]
2020-04-09 16:55:35 DEBUG cloud-compute-relation-joined File "/var/lib/juju/agents/unit-nova-compute-0/charm/hooks/charmhelpers/contrib/openstack/templating.py", line 127, in complete_contexts
2020-04-09 16:55:35 DEBUG cloud-compute-relation-joined self.context()
2020-04-09 16:55:35 DEBUG cloud-compute-relation-joined File "/var/lib/juju/agents/unit-nova-compute-0/charm/hooks/charmhelpers/contrib/openstack/templating.py", line 112, in context
2020-04-09 16:55:35 DEBUG cloud-compute-relation-joined _ctxt = context()
2020-04-09 16:55:35 DEBUG cloud-compute-relation-joined File "/var/lib/juju/agents/unit-nova-compute-0/charm/hooks/nova_compute_context.py", line 673, in __call__
2020-04-09 16:55:35 DEBUG cloud-compute-relation-joined net_manager = self.network_manager_context()
2020-04-09 16:55:35 DEBUG cloud-compute-relation-joined File "/var/lib/juju/agents/unit-nova-compute-0/charm/hooks/nova_compute_context.py", line 644, in network_manager_context
2020-04-09 16:55:35 DEBUG cloud-compute-relation-joined ctxt = self.flat_dhcp_context()
2020-04-09 16:55:35 DEBUG cloud-compute-relation-joined File "/var/lib/juju/agents/unit-nova-compute-0/charm/hooks/nova_compute_context.py", line 535, in flat_dhcp_context
2020-04-09 16:55:35 DEBUG cloud-compute-relation-joined self._ensure_packages(['nova-api', 'nova-network'])
2020-04-09 16:55:35 DEBUG cloud-compute-relation-joined File "/var/lib/juju/agents/unit-nova-compute-0/charm/hooks/nova_compute_context.py", line 470, in _ensure_packages
2020-04-09 16:55:35 DEBUG cloud-compute-relation-joined apt_install(required, fatal=True)
2020-04-09 16:55:35 DEBUG cloud-compute-relation-joined File "/var/lib/juju/agents/unit-nova-compute-0/charm/hooks/charmhelpers/fetch/ubuntu.py", line 276, in apt_install
2020-04-09 16:55:35 DEBUG cloud-compute-relation-joined _run_apt_command(cmd, fatal)
2020-04-09 16:55:35 DEBUG cloud-compute-relation-joined File "/var/lib/juju/agents/unit-nova-compute-0/charm/hooks/charmhelpers/fetch/ubuntu.py", line 770, in _run_apt_command
2020-04-09 16:55:35 DEBUG cloud-compute-relation-joined retry_message="Couldn't acquire DPKG lock")
2020-04-09 16:55:35 DEBUG cloud-compute-relation-joined File "/var/lib/juju/agents/unit-nova-compute-0/charm/hooks/charmhelpers/fetch/ubuntu.py", line 748, in _run_with_retries
2020-04-09 16:55:35 DEBUG cloud-compute-relation-joined result = subprocess.check_call(cmd, env=env)
2020-04-09 16:55:35 DEBUG cloud-compute-relation-joined File "/usr/lib/python3.6/subprocess.py", line 311, in check_call
2020-04-09 16:55:35 DEBUG cloud-compute-relation-joined raise CalledProcessError(retcode, cmd)
2020-04-09 16:55:35 DEBUG cloud-compute-relation-joined subprocess.CalledProcessError: Command '['apt-get', '--assume-yes', '--option=Dpkg::Options::=--force-confold', 'install', 'nova-api', 'nova-network']' returned non-zero exit status 100.
2020-04-09 16:55:35 ERROR juju.worker.uniter.operation runhook.go:132 hook "cloud-compute-relation-joined" failed: exit status 1

Solution:

Change charm code to not install nova-network; verify the version that it is no longer available in.

Revision history for this message
Alex Kavanagh (ajkavanagh) wrote :

Review: https://review.opendev.org/#/c/721233/
will resolved the bug.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to charm-nova-compute (master)

Reviewed: https://review.opendev.org/721233
Committed: https://git.openstack.org/cgit/openstack/charm-nova-compute/commit/?id=810ee1b37db7d25f27e2911d61d1f2dace64d792
Submitter: Zuul
Branch: master

commit 810ee1b37db7d25f27e2911d61d1f2dace64d792
Author: Alex Kavanagh <email address hidden>
Date: Mon Apr 20 10:37:07 2020 +0100

    Add focal-ussuri and bionic-ussuri bundle

    This patch adds a focal-ussuri and bionic-ussuri bundles to the tests
    for the charm. The linked bug is concerned with installing
    nova-network, which is not available on Ussuri.

    Closes-Bug: #1872770

    Change-Id: Iea5a682aaebeb6f6941cf9d8f5780473f457e455

Changed in charm-nova-compute:
status: In Progress → Fix Committed
James Page (james-page)
Changed in charm-nova-compute:
milestone: none → 20.05
David Ames (thedac)
Changed in charm-nova-compute:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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