percona cluster failed at install hook

Bug #1662642 reported by Narinder Gupta on 2017-02-07
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juju Charms Collection
Medium
David Ames

Bug Description

Percona cluster failed to install at install hook if following repo has been used.

    mysql:
      charm: ".xenial/percona-cluster"
      num_units: 3
      bindings:
        access: internal-api
        shared-db: internal-api
      options:
        innodb-buffer-pool-size: 1G
        max-connections: 4000
        source: "deb http://repo.percona.com/apt xenial main"
        key: "8507EFA5"
        root-password: {{ get_password('mysql_root') }}
        sst-password: {{ get_password('mysql_sst') }}
        vip: 10.6.1.25
        min-cluster-size: 3
      to:
        - "lxd:nodes/1"
        - "lxd:nodes/2"
        - "lxd:nodes/3"

David Ames (thedac) wrote :

The issue is the package name that debconf-set-selections uses.

When using the percona repo the package name is percona-xtradb-cluster-server not percona-server-server. This only affects the use of the percona repo.

Testing if adding percona-xtradb-cluster-server breaks the original setup.

Changed in charms:
status: New → In Progress
importance: Undecided → Medium
assignee: nobody → David Ames (thedac)
milestone: none → 17.01
David Ames (thedac) wrote :

Narinder, please take this for a test drive: cs:~thedac/percona-cluster-0

Narinder Gupta (narindergupta) wrote :

ok testing now should have results within an hour.

Narinder Gupta (narindergupta) wrote :

ok original issue of install have been fixed. But hook cluster relation failed.

2017-02-08 01:31:00 DEBUG worker.uniter.jujuc server.go:178 hook context id "mysql/2-cluster-relation-changed-5307628894442036771"; dir "/var/lib/juju/agents/unit-mysql-2/charm"
2017-02-08 01:31:00 DEBUG worker.uniter.jujuc server.go:178 hook context id "mysql/2-cluster-relation-changed-5307628894442036771"; dir "/var/lib/juju/agents/unit-mysql-2/charm"
2017-02-08 01:31:00 INFO cluster-relation-changed Traceback (most recent call last):
2017-02-08 01:31:00 INFO cluster-relation-changed File "/var/lib/juju/agents/unit-mysql-2/charm/hooks/cluster-relation-changed", line 727, in <module>
2017-02-08 01:31:00 INFO cluster-relation-changed main()
2017-02-08 01:31:00 INFO cluster-relation-changed File "/var/lib/juju/agents/unit-mysql-2/charm/hooks/cluster-relation-changed", line 720, in main
2017-02-08 01:31:00 INFO cluster-relation-changed hooks.execute(sys.argv)
2017-02-08 01:31:00 INFO cluster-relation-changed File "/var/lib/juju/agents/unit-mysql-2/charm/hooks/charmhelpers/core/hookenv.py", line 717, in execute
2017-02-08 01:31:00 INFO cluster-relation-changed self._hooks[hook_name]()
2017-02-08 01:31:00 INFO cluster-relation-changed File "/var/lib/juju/agents/unit-mysql-2/charm/hooks/cluster-relation-changed", line 364, in cluster_changed
2017-02-08 01:31:00 INFO cluster-relation-changed config_changed()
2017-02-08 01:31:00 INFO cluster-relation-changed File "/var/lib/juju/agents/unit-mysql-2/charm/hooks/charmhelpers/contrib/hardening/harden.py", line 79, in _harden_inner2
2017-02-08 01:31:00 INFO cluster-relation-changed return f(*args, **kwargs)
2017-02-08 01:31:00 INFO cluster-relation-changed File "/var/lib/juju/agents/unit-mysql-2/charm/hooks/cluster-relation-changed", line 286, in config_changed
2017-02-08 01:31:00 INFO cluster-relation-changed bootstrap=not bootstrapped)
2017-02-08 01:31:00 INFO cluster-relation-changed File "/var/lib/juju/agents/unit-mysql-2/charm/hooks/cluster-relation-changed", line 222, in render_config_restart_on_changed
2017-02-08 01:31:00 INFO cluster-relation-changed mark_seeded()
2017-02-08 01:31:00 INFO cluster-relation-changed File "/var/lib/juju/agents/unit-mysql-2/charm/hooks/percona_utils.py", line 94, in mark_seeded
2017-02-08 01:31:00 INFO cluster-relation-changed 'w') as seeded:
2017-02-08 01:31:00 INFO cluster-relation-changed IOError: [Errno 2] No such file or directory: '/var/lib/percona-xtradb-cluster/seeded'
2017-02-08 01:31:00 ERROR juju.worker.uniter.operation runhook.go:107 hook "cluster-relation-changed" failed: exit status 1
2017-02-08 01:31:00 DEBUG juju.worker.uniter.operation executor.go:84 lock released
2017-02-08 01:31:00 INFO juju.worker.uniter resolver.go:100 awaiting error resolution for "relation-changed" hook
2017-02-08 01:31:00 DEBUG juju.worker.uniter agent.go:17 [AGENT-STATUS] error: hook failed: "cluster-relation-changed"

Narinder Gupta (narindergupta) wrote :

complete log of failing unit is here http://paste.ubuntu.com/23951608/

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers