galera-cluster charm will not install for bundle file with override for source
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
galera-cluster (Juju Charms Collection) |
Fix Released
|
High
|
Larry Michel |
Bug Description
We are running into limitation for deploying the galera-cluster using an OpenStack bundle file that have source overrides. The source overrides are needed for making sure all the charms point to the right cloud archive. For example,
overrides:
openstack-
source: cloud:trusty-
The galera-cluster charm is checking source and is only setting the repo to whatever source is set to. However, cloud:trusty-
2015-08-25 13:45:11 INFO install Reading package lists...
2015-08-25 13:45:11 INFO install Building dependency tree...
2015-08-25 13:45:11 INFO install Reading state information...
2015-08-25 13:45:11 INFO install E: Unable to locate package mysql-wsrep-
2015-08-25 13:45:11 INFO install E: Couldn't find any package by regex 'mysql-
2015-08-25 13:45:11 INFO install E: Unable to locate package mysql-wsrep-
2015-08-25 13:45:11 INFO install E: Couldn't find any package by regex 'mysql-
2015-08-25 13:45:11 INFO install E: Unable to locate package galera-3
2015-08-25 13:45:11 INFO worker.uniter.jujuc server.go:158 running hook tool "juju-log" ["Couldn't acquire DPKG lock. Will retry in 10 seconds."]
2015-08-25 13:45:11 DEBUG worker.uniter.jujuc server.go:159 hook context id "galera-
2015-08-25 13:45:11 INFO juju-log Couldn't acquire DPKG lock. Will retry in 10 seconds.
2015-08-25 13:45:21 INFO install Reading package lists...
2015-08-25 13:45:22 INFO install Building dependency tree...
2015-08-25 13:45:22 INFO install Reading state information...
2015-08-25 13:45:22 INFO install E: Unable to locate package mysql-wsrep-
2015-08-25 13:45:22 INFO install E: Couldn't find any package by regex 'mysql-
2015-08-25 13:45:22 INFO install E: Unable to locate package mysql-wsrep-
2015-08-25 13:45:22 INFO install E: Couldn't find any package by regex 'mysql-
2015-08-25 13:45:22 INFO install E: Unable to locate package galera-3
2015-08-25 13:45:22 INFO worker.uniter.jujuc server.go:158 running hook tool "juju-log" ["Couldn't acquire DPKG lock. Will retry in 10 seconds."]
2015-08-25 13:45:22 DEBUG worker.uniter.jujuc server.go:159 hook context id "galera-
2015-08-25 13:45:22 INFO juju-log Couldn't acquire DPKG lock. Will retry in 10 seconds.
2015-08-25 13:45:32 INFO install Reading package lists...
2015-08-25 13:45:32 INFO install Building dependency tree...
2015-08-25 13:45:32 INFO install Reading state information...
2015-08-25 13:45:32 INFO install E: Unable to locate package mysql-wsrep-
2015-08-25 13:45:32 INFO install E: Couldn't find any package by regex 'mysql-
2015-08-25 13:45:32 INFO install E: Unable to locate package mysql-wsrep-
2015-08-25 13:45:32 INFO install E: Couldn't find any package by regex 'mysql-
2015-08-25 13:45:32 INFO install E: Unable to locate package galera-3
2015-08-25 13:45:32 INFO worker.uniter.jujuc server.go:158 running hook tool "juju-log" ["Couldn't acquire DPKG lock. Will retry in 10 seconds."]
2015-08-25 13:45:32 DEBUG worker.uniter.jujuc server.go:159 hook context id "galera-
2015-08-25 13:45:32 INFO juju-log Couldn't acquire DPKG lock. Will retry in 10 seconds.
2015-08-25 13:45:36 DEBUG juju.worker.
2015-08-25 13:45:36 DEBUG juju.worker.
2015-08-25 13:45:36 DEBUG juju.worker.
2015-08-25 13:45:36 INFO juju.worker.
2015-08-25 13:45:42 INFO install Reading package lists...
2015-08-25 13:45:42 INFO install Building dependency tree...
2015-08-25 13:45:42 INFO install Reading state information...
2015-08-25 13:45:42 INFO install E: Unable to locate package mysql-wsrep-
2015-08-25 13:45:42 INFO install E: Couldn't find any package by regex 'mysql-
2015-08-25 13:45:42 INFO install E: Unable to locate package mysql-wsrep-
2015-08-25 13:45:42 INFO install E: Couldn't find any package by regex 'mysql-
2015-08-25 13:45:42 INFO install E: Unable to locate package galera-3
2015-08-25 13:45:42 INFO install Traceback (most recent call last):
2015-08-25 13:45:42 INFO install File "/var/lib/
2015-08-25 13:45:42 INFO install main()
2015-08-25 13:45:42 INFO install File "/var/lib/
2015-08-25 13:45:42 INFO install hooks.execute(
2015-08-25 13:45:42 INFO install File "/var/lib/
2015-08-25 13:45:42 INFO install self._hooks[
2015-08-25 13:45:42 INFO install File "/var/lib/
2015-08-25 13:45:42 INFO install apt_install(
2015-08-25 13:45:42 INFO install File "/var/lib/
2015-08-25 13:45:42 INFO install _run_apt_
2015-08-25 13:45:42 INFO install File "/var/lib/
2015-08-25 13:45:42 INFO install result = subprocess.
2015-08-25 13:45:42 INFO install File "/usr/lib/
2015-08-25 13:45:42 INFO install raise CalledProcessEr
2015-08-25 13:45:42 INFO install subprocess.
2015-08-25 13:45:43 INFO juju.worker.
2015-08-25 13:45:43 ERROR juju.worker.
2015-08-25 13:45:43 DEBUG juju.worker.uniter modes.go:31 [AGENT-STATUS] failed: run install hook
2015-08-25 13:45:43 INFO juju.worker.uniter modes.go:543 ModeContinue exiting
2015-08-25 13:45:43 INFO juju.worker.uniter modes.go:541 ModeHookError starting
The galera-cluster charm needs to have an option that does not conflict source so the galera package location can be passed in.
Related branches
- Adam Israel (community): Approve
- Tim Van Steenburgh (community): Needs Information
-
Diff: 67 lines (+27/-5)2 files modifiedconfig.yaml (+9/-1)
hooks/galera_hooks.py (+18/-4)
Changed in galera-cluster (Juju Charms Collection): | |
status: | New → In Progress |
Changed in galera-cluster (Juju Charms Collection): | |
importance: | Undecided → High |
assignee: | nobody → Larry Michel (lmic) |
Changed in galera-cluster (Juju Charms Collection): | |
status: | In Progress → Fix Committed |
Changed in galera-cluster (Juju Charms Collection): | |
status: | Fix Committed → Fix Released |
I tested a branch lp:~lmic/charms/trusty/galera-cluster/galera-cluster+source-galera-config-option where I added source-galera config option so that a galera specific repository can always be set regardless of source, and it worked. The old behavior with source remains the same.
galera-cluster: galera- cluster- 45 controller cluster/ 0:
agent- state: started
agent- status:
agent- version: 1.24.5
public- address: flaglervm05. oilstaging
workload- status:
charm: local:trusty/
exposed: false
relations:
cluster:
- galera-cluster
shared-db:
- cinder
- glance
- heat
- keystone
- neutron-api
- neutron-gateway
- nova-cloud-
service-status:
current: unknown
since: 10 Sep 2015 16:32:21Z
units:
galera-
current: idle
since: 10 Sep 2015 16:48:33Z
version: 1.24.5
machine: '4'
open-ports:
- 3306/tcp
current: unknown
since: 10 Sep 2015 16:32:21Z