on vivid, install hook fails with 'percona-xtradb-cluster-server-5.5' has no installation candidate

Bug #1476845 reported by Ryan Beisner
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
percona-cluster (Juju Charms Collection)
Fix Released
High
Unassigned

Bug Description

When deploying the percona-cluster/next charm on Vivid-Kilo, the install hook fails with:

2015-07-21 18:59:28 INFO install Reading state information...
2015-07-21 18:59:28 INFO install Package percona-xtradb-cluster-server-5.5 is not available, but is referred to by another package.
2015-07-21 18:59:28 INFO install This may mean that the package is missing, has been obsoleted, or
2015-07-21 18:59:28 INFO install is only available from another source
2015-07-21 18:59:28 INFO install However the following packages replace it:
2015-07-21 18:59:28 INFO install percona-xtradb-cluster-server-5.6
2015-07-21 18:59:28 INFO install
2015-07-21 18:59:28 INFO install E: Package 'percona-xtradb-cluster-server-5.5' has no installation candidate
2015-07-21 18:59:28 INFO install E: Unable to locate package percona-xtradb-cluster-client-5.5
2015-07-21 18:59:28 INFO install E: Couldn't find any package by regex 'percona-xtradb-cluster-client-5.5'
2015-07-21 18:59:28 INFO install Traceback (most recent call last):
2015-07-21 18:59:28 INFO install File "/var/lib/juju/agents/unit-mysql-0/charm/hooks/install", line 498, in <module>
2015-07-21 18:59:28 INFO install main()
2015-07-21 18:59:28 INFO install File "/var/lib/juju/agents/unit-mysql-0/charm/hooks/install", line 492, in main
2015-07-21 18:59:28 INFO install hooks.execute(sys.argv)
2015-07-21 18:59:28 INFO install File "/var/lib/juju/agents/unit-mysql-0/charm/hooks/charmhelpers/core/hookenv.py", line 603, in execute
2015-07-21 18:59:28 INFO install self._hooks[hook_name]()
2015-07-21 18:59:28 INFO install File "/var/lib/juju/agents/unit-mysql-0/charm/hooks/install", line 100, in install
2015-07-21 18:59:28 INFO install apt_install(PACKAGES, fatal=True)
2015-07-21 18:59:28 INFO install File "/var/lib/juju/agents/unit-mysql-0/charm/hooks/charmhelpers/fetch/__init__.py", line 183, in apt_install
2015-07-21 18:59:28 INFO install _run_apt_command(cmd, fatal)
2015-07-21 18:59:28 INFO install File "/var/lib/juju/agents/unit-mysql-0/charm/hooks/charmhelpers/fetch/__init__.py", line 428, in _run_apt_command
2015-07-21 18:59:28 INFO install result = subprocess.check_call(cmd, env=env)
2015-07-21 18:59:28 INFO install File "/usr/lib/python2.7/subprocess.py", line 540, in check_call
2015-07-21 18:59:28 INFO install raise CalledProcessError(retcode, cmd)
2015-07-21 18:59:28 INFO install subprocess.CalledProcessError: Command '['apt-get', '--assume-yes', '--option=Dpkg::Options::=--force-confold', 'install', 'percona-xtradb-cluster-server-5.5', 'percona-xtradb-cluster-client-5.5']' returned non-zero exit status 100
2015-07-21 18:59:28 INFO juju.worker.uniter.context context.go:543 handling reboot
2015-07-21 18:59:28 ERROR juju.worker.uniter.operation runhook.go:103 hook "install" failed: exit status 1

Revision history for this message
Ryan Beisner (1chb1n) wrote :

FYI, Vivid provides: percona-xtradb-cluster-server-5.6

Revision history for this message
Ryan Beisner (1chb1n) wrote :

There are really two separate issues here:

1. The charm will need to use the percona-xtradb-cluster-server-5.6 package name in hooks/percona_utils.py PACKAGES list when installing on Vivid. But even that will fail at the moment because of #2...

2. On Vivid, the percona-xtradb-cluster-client-5.6 package, nor any other percona-xtradb-cluster-client version, is available.

ubuntu@juju-beis1-machine-1:~$ sudo apt-cache search percona
nagios-plugins-contrib - Plugins for nagios compatible monitoring systems
percona-galera-3 - Galera replication framework for Percona XtraDB Cluster
percona-galera-3-dbg - debugging symbols for percona-galera-3
percona-galera-arbitrator-3 - Galera arbitrator daemon for Percona XtraDB Cluster
percona-galera-arbitrator-3-dbg - debugging symbols for percona-galera-arbitrator-3
percona-server-5.6-dbg - Debugging package for Percona Server
percona-server-server - Percona Server database server
percona-server-server-5.6 - Percona Server database server binaries
percona-server-source-5.6 - Percona Server 5.6 source
percona-server-test - Percona Servere regression test suite
percona-server-test-5.6 - Percona Server database test suite
percona-toolkit - Command-line tools for MySQL and system tasks
percona-xtrabackup - Open source backup tool for InnoDB and XtraDB
percona-xtrabackup-dbg - Debug symbols for Percona XtraBackup
percona-xtrabackup-test - Test suite for Percona XtraBackup
percona-xtradb-cluster-5.6-dbg - Debugging package for Percona XtraDB Cluster
percona-xtradb-cluster-server - Percona XtraDB Cluster database server
percona-xtradb-cluster-server-5.6 - Percona XtraDB Cluster database server binaries
percona-xtradb-cluster-source-5.6 - Percona XtraDB Cluster 5.6 source
xtrabackup - Transitional package for percona-xtrabackup

ubuntu@juju-beis1-machine-1:~$ apt-cache policy percona-xtradb-cluster-server-5.6
percona-xtradb-cluster-server-5.6:
  Installed: (none)
  Candidate: 5.6.21-25.8-0ubuntu2
  Version table:
     5.6.21-25.8-0ubuntu2 0
        500 http://nova.clouds.archive.ubuntu.com/ubuntu/ vivid-updates/universe amd64 Packages
     5.6.21-25.8-0ubuntu1 0
        500 http://nova.clouds.archive.ubuntu.com/ubuntu/ vivid/universe amd64 Packages

Ryan Beisner (1chb1n)
description: updated
Revision history for this message
Ryan Beisner (1chb1n) wrote :

I raised a separate bug for the pxc client 5.6 package on Vivid, which is pre-requisite to resolving the pxc Vivid charm bug.
https://bugs.launchpad.net/ubuntu/+source/percona-xtradb-cluster-5.6/+bug/1476904

Revision history for this message
Ryan Beisner (1chb1n) wrote :

Regarding pxc client 5.6 not being in Vivid, the recommendation from bug 1476904 is to use mysql client 5.6.

James Page (james-page)
Changed in percona-cluster (Juju Charms Collection):
status: New → Triaged
importance: Undecided → High
milestone: none → 15.07
James Page (james-page)
Changed in percona-cluster (Juju Charms Collection):
milestone: 15.07 → 15.10
Changed in percona-cluster (Juju Charms Collection):
status: Triaged → Fix Committed
James Page (james-page)
Changed in percona-cluster (Juju Charms Collection):
status: Fix Committed → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to charm-percona-cluster (master)

Related fix proposed to branch: master
Review: https://review.openstack.org/307414

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to charm-percona-cluster (master)

Reviewed: https://review.openstack.org/307414
Committed: https://git.openstack.org/cgit/openstack/charm-percona-cluster/commit/?id=324cdff5262907c6909f952682cab96ab72948c8
Submitter: Jenkins
Branch: master

commit 324cdff5262907c6909f952682cab96ab72948c8
Author: Ryan Beisner <email address hidden>
Date: Mon Apr 18 18:42:24 2016 +0000

    Update determine_packages to let package dependencies win

    A previous charm work-around for forcefully installing the
    mysql-client-5.6 package is no longer relevant, with
    Utopic and Vivid both EOL. Wily and Xenial package
    dependencies are in order for mysql-client.

    Change-Id: I6d8c0c34d3bb3c4d19b641086f70c197961c4ad4
    Closes-Bug: 1571789
    Related-Bug: 1476845

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.