[Bug 1665149] [NEW] osd_upgrade_key relation data from ceph is actually a list of commands (can't decode key)
Ryan Beisner
1665149 at bugs.launchpad.net
Wed Feb 15 21:57:55 UTC 2017
Public bug reported:
A list of commands is passed to ceph-authtool as a key, and it naturally
"can't decode key"
2017-02-15 19:27:18 INFO mon-relation-changed can't decode key '"allow
command "config-key"; allow command "osd tree"; allow command "config-
key list"; allow command "config-key put"; allow command "config-key
get"; allow command "config-key exists"; allow command "osd out"; allow
command "osd in"; allow command "osd rm"; allow command "auth del""'
ceph-osd/0 error idle 1.25.9.1 0
talon.maas hook failed: "mon-relation-changed" for ceph:osd
2017-02-15 19:27:18 INFO mon-relation-changed Traceback (most recent call last):
2017-02-15 19:27:18 INFO mon-relation-changed File "/var/lib/juju/agents/unit-ceph-osd-0/charm/hooks/mon-relation-changed", line 520, in <module>
2017-02-15 19:27:18 INFO mon-relation-changed hooks.execute(sys.argv)
2017-02-15 19:27:18 INFO mon-relation-changed File "/var/lib/juju/agents/unit-ceph-osd-0/charm/hooks/charmhelpers/core/hookenv.py", line 731, in execute
2017-02-15 19:27:18 INFO mon-relation-changed self._hooks[hook_name]()
2017-02-15 19:27:18 INFO mon-relation-changed File "/var/lib/juju/agents/unit-ceph-osd-0/charm/hooks/mon-relation-changed", line 446, in mon_relation
2017-02-15 19:27:18 INFO mon-relation-changed ceph.import_osd_upgrade_key(upgrade_key)
2017-02-15 19:27:18 INFO mon-relation-changed File "lib/ceph/__init__.py", line 862, in import_osd_upgrade_key
2017-02-15 19:27:18 INFO mon-relation-changed subprocess.check_call(cmd)
2017-02-15 19:27:18 INFO mon-relation-changed File "/usr/lib/python2.7/subprocess.py", line 541, in check_call
2017-02-15 19:27:18 INFO mon-relation-changed raise CalledProcessError(retcode, cmd)
2017-02-15 19:27:18 INFO mon-relation-changed subprocess.CalledProcessError: Command '['sudo', '-u', 'ceph', 'ceph-authtool', '/var/lib/ceph/osd/ceph.client.osd-upgrade.keyring', '--create-keyring', '--name=client.osd-upgrade', '--add-key="allow command "config-key"; allow command "osd tree"; allow command "config-key list"; allow command "config-key put"; allow command "config-key get"; allow command "config-key exists"; allow command "osd out"; allow command "osd in"; allow command "osd rm"; allow command "auth del""']' returned non-zero exit status 1
2017-02-15 19:27:18 ERROR juju.worker.uniter.operation runhook.go:107 hook "mon-relation-changed" failed: exit status 1
** Affects: charms.ceph
Importance: Undecided
Status: New
** Affects: ceph (Juju Charms Collection)
Importance: Undecided
Status: New
** Affects: ceph-mon (Juju Charms Collection)
Importance: Undecided
Status: New
** Affects: ceph-osd (Juju Charms Collection)
Importance: Undecided
Status: New
** Tags: uosci
** Also affects: ceph (Ubuntu)
Importance: Undecided
Status: New
** No longer affects: ceph (Ubuntu)
** Also affects: ceph-mon (Juju Charms Collection)
Importance: Undecided
Status: New
** Also affects: ceph (Juju Charms Collection)
Importance: Undecided
Status: New
** Also affects: charms.ceph
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
OpenStack, which is subscribed to ceph in Ubuntu.
https://bugs.launchpad.net/bugs/1665149
Title:
osd_upgrade_key relation data from ceph is actually a list of commands
(can't decode key)
Status in charms.ceph:
New
Status in ceph package in Juju Charms Collection:
New
Status in ceph-mon package in Juju Charms Collection:
New
Status in ceph-osd package in Juju Charms Collection:
New
Bug description:
A list of commands is passed to ceph-authtool as a key, and it
naturally "can't decode key"
2017-02-15 19:27:18 INFO mon-relation-changed can't decode key '"allow
command "config-key"; allow command "osd tree"; allow command "config-
key list"; allow command "config-key put"; allow command "config-key
get"; allow command "config-key exists"; allow command "osd out";
allow command "osd in"; allow command "osd rm"; allow command "auth
del""'
ceph-osd/0 error idle 1.25.9.1 0
talon.maas hook failed: "mon-relation-changed" for ceph:osd
2017-02-15 19:27:18 INFO mon-relation-changed Traceback (most recent call last):
2017-02-15 19:27:18 INFO mon-relation-changed File "/var/lib/juju/agents/unit-ceph-osd-0/charm/hooks/mon-relation-changed", line 520, in <module>
2017-02-15 19:27:18 INFO mon-relation-changed hooks.execute(sys.argv)
2017-02-15 19:27:18 INFO mon-relation-changed File "/var/lib/juju/agents/unit-ceph-osd-0/charm/hooks/charmhelpers/core/hookenv.py", line 731, in execute
2017-02-15 19:27:18 INFO mon-relation-changed self._hooks[hook_name]()
2017-02-15 19:27:18 INFO mon-relation-changed File "/var/lib/juju/agents/unit-ceph-osd-0/charm/hooks/mon-relation-changed", line 446, in mon_relation
2017-02-15 19:27:18 INFO mon-relation-changed ceph.import_osd_upgrade_key(upgrade_key)
2017-02-15 19:27:18 INFO mon-relation-changed File "lib/ceph/__init__.py", line 862, in import_osd_upgrade_key
2017-02-15 19:27:18 INFO mon-relation-changed subprocess.check_call(cmd)
2017-02-15 19:27:18 INFO mon-relation-changed File "/usr/lib/python2.7/subprocess.py", line 541, in check_call
2017-02-15 19:27:18 INFO mon-relation-changed raise CalledProcessError(retcode, cmd)
2017-02-15 19:27:18 INFO mon-relation-changed subprocess.CalledProcessError: Command '['sudo', '-u', 'ceph', 'ceph-authtool', '/var/lib/ceph/osd/ceph.client.osd-upgrade.keyring', '--create-keyring', '--name=client.osd-upgrade', '--add-key="allow command "config-key"; allow command "osd tree"; allow command "config-key list"; allow command "config-key put"; allow command "config-key get"; allow command "config-key exists"; allow command "osd out"; allow command "osd in"; allow command "osd rm"; allow command "auth del""']' returned non-zero exit status 1
2017-02-15 19:27:18 ERROR juju.worker.uniter.operation runhook.go:107 hook "mon-relation-changed" failed: exit status 1
To manage notifications about this bug go to:
https://bugs.launchpad.net/charms.ceph/+bug/1665149/+subscriptions
More information about the Ubuntu-openstack-bugs
mailing list