charm tries to install lbaas instead of lbaasv2 @ newton when ODL plugin is active

Bug #1632660 reported by Ryan Beisner
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
neutron-gateway (Juju Charms Collection)
Fix Released
High
James Page

Bug Description

With the ODL plugin, charm tries to install lbaas instead of lbaasv2 @ newton; neutron-gateway install hook fails with unmet package dependencies. I believe get_packages() modifications are necessary to resolve this.

https://openstack-ci-reports.ubuntu.com/artifacts/test_charm_pipeline_amulet_full/openstack/charm-neutron-api-odl/375025/18/272/index.html

DEBUG:runner: unit: neutron-gateway/5: machine: 49 agent-state: error details: hook failed: "install"

2016-10-12 05:50:27 INFO install Reading package lists...
2016-10-12 05:50:28 INFO install Building dependency tree...
2016-10-12 05:50:28 INFO install Reading state information...
2016-10-12 05:50:28 INFO install Some packages could not be installed. This may mean that you have
2016-10-12 05:50:28 INFO install requested an impossible situation or if you are using the unstable
2016-10-12 05:50:28 INFO install distribution that some required packages have not yet been created
2016-10-12 05:50:28 INFO install or been moved out of Incoming.
2016-10-12 05:50:28 INFO install The following information may help to resolve the situation:
2016-10-12 05:50:28 INFO install
2016-10-12 05:50:28 INFO install The following packages have unmet dependencies:
2016-10-12 05:50:28 INFO install neutron-lbaas-agent : Depends: neutron-lbaas-common (= 2:9.0.0~b2-0ubuntu1~cloud0) but it is not going to be installed
2016-10-12 05:50:28 INFO install E: Unable to correct problems, you have held broken packages.
2016-10-12 05:50:28 INFO install Traceback (most recent call last):
2016-10-12 05:50:28 INFO install File "/var/lib/juju/agents/unit-neutron-gateway-5/charm/hooks/install.real", line 359, in <module>
2016-10-12 05:50:28 INFO install hooks.execute(sys.argv)
2016-10-12 05:50:28 INFO install File "/var/lib/juju/agents/unit-neutron-gateway-5/charm/hooks/charmhelpers/core/hookenv.py", line 715, in execute
2016-10-12 05:50:28 INFO install self._hooks[hook_name]()
2016-10-12 05:50:28 INFO install File "/var/lib/juju/agents/unit-neutron-gateway-5/charm/hooks/charmhelpers/contrib/hardening/harden.py", line 79, in _harden_inner2
2016-10-12 05:50:28 INFO install return f(*args, **kwargs)
2016-10-12 05:50:28 INFO install File "/var/lib/juju/agents/unit-neutron-gateway-5/charm/hooks/install.real", line 97, in install
2016-10-12 05:50:28 INFO install fatal=True)
2016-10-12 05:50:28 INFO install File "/var/lib/juju/agents/unit-neutron-gateway-5/charm/hooks/charmhelpers/fetch/ubuntu.py", line 154, in install
2016-10-12 05:50:28 INFO install _run_apt_command(cmd, fatal)
2016-10-12 05:50:28 INFO install File "/var/lib/juju/agents/unit-neutron-gateway-5/charm/hooks/charmhelpers/fetch/ubuntu.py", line 305, in _run_apt_command
2016-10-12 05:50:28 INFO install result = subprocess.check_call(cmd, env=env)
2016-10-12 05:50:28 INFO install File "/usr/lib/python2.7/subprocess.py", line 541, in check_call
2016-10-12 05:50:28 INFO install raise CalledProcessError(retcode, cmd)
2016-10-12 05:50:28 INFO install subprocess.CalledProcessError: Command '['apt-get', '--assume-yes', '--option=Dpkg::Options::=--force-confold', 'install', 'openvswitch-switch', 'neutron-l3-agent', 'neutron-dhcp-agent', 'nova-api-metadata', 'neutron-metering-agent', 'neutron-lbaas-agent']' returned non-zero exit status 100
2016-10-12 05:50:28 INFO juju.worker.uniter.context context.go:579 handling reboot
2016-10-12 05:50:28 ERROR juju.worker.uniter.operation runhook.go:107 hook "install" failed: exit status 1
2016-10-12 05:50:28 DEBUG juju.worker.uniter modes.go:31 [AGENT-STATUS] failed: run install hook

Tags: uosci
James Page (james-page)
Changed in neutron-gateway (Juju Charms Collection):
status: New → In Progress
importance: Undecided → High
assignee: nobody → James Page (james-page)
milestone: none → 16.10
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to charm-neutron-gateway (master)

Reviewed: https://review.openstack.org/385474
Committed: https://git.openstack.org/cgit/openstack/charm-neutron-gateway/commit/?id=b77fc3b1a5a389840eaec4590aa78ddfc0b3bf29
Submitter: Jenkins
Branch: master

commit b77fc3b1a5a389840eaec4590aa78ddfc0b3bf29
Author: James Page <email address hidden>
Date: Wed Oct 12 14:30:10 2016 +0100

    Fix packages and restart map for ovs-odl

    OpenStack Newton drops support for LBaaS v1; ensure that
    OVS ODL integration aligns with OVS ML2 integration and
    switches to the lbaasv2 agent package for >= newton.

    Change-Id: If1bc6151e8bb9b23eaac94662f4d18ff63040af2
    Closes-Bug: 1632660

Changed in neutron-gateway (Juju Charms Collection):
status: In Progress → Fix Committed
James Page (james-page)
Changed in neutron-gateway (Juju Charms Collection):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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