Comment 0 for bug 1587606

Revision history for this message
Francis Ginther (fginther) wrote :

Hit this while trying to deploy a Landscape Openstack Autopilot cloud (OBJECT=ceph, BLOCK=iscsi, LDS=16.05~bzr10071~release43+jenkins131-1):

[From /var/log/juju/unit-glance-simplestreams-sync-0.log]
2016-05-19 08:53:43 INFO install gpg: keyring `/tmp/tmpymwhfvuw/secring.gpg' created
2016-05-19 08:53:43 INFO install gpg: keyring `/tmp/tmpymwhfvuw/pubring.gpg' created
2016-05-19 08:53:43 INFO install gpg: requesting key 4652B4E6 from hkp server keyserver.ubuntu.com
2016-05-19 08:53:44 INFO install gpgkeys: key 35F77D63B5CEC106C577ED856E85A86E4652B4E6 can't be retrieved
2016-05-19 08:53:44 INFO install gpg: no valid OpenPGP data found.
2016-05-19 08:53:44 INFO install gpg: Total number processed: 0
2016-05-19 08:53:44 INFO install Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --homedir /tmp/tmp.r3WjgmYPPD --no-auto-check-trustdb --trust-model always --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg --keyserver hkp://keyserver.ubuntu.com:80 --recv 4652B4E6
2016-05-19 08:53:44 INFO install gpg: requesting key 4652B4E6 from hkp server keyserver.ubuntu.com
2016-05-19 08:53:44 INFO install gpgkeys: key 4652B4E6 can't be retrieved
2016-05-19 08:53:44 INFO install gpg: no valid OpenPGP data found.
2016-05-19 08:53:44 INFO install gpg: Total number processed: 0
2016-05-19 08:53:44 INFO install Traceback (most recent call last):
2016-05-19 08:53:44 INFO install File "/var/lib/juju/agents/unit-glance-simplestreams-sync-0/charm/hooks/install", line 281, in <module>
2016-05-19 08:53:44 INFO install hooks.execute(sys.argv)
2016-05-19 08:53:44 INFO install File "/var/lib/juju/agents/unit-glance-simplestreams-sync-0/charm/hooks/charmhelpers/core/hookenv.py", line 704, in execute
2016-05-19 08:53:44 INFO install self._hooks[hook_name]()
2016-05-19 08:53:44 INFO install File "/var/lib/juju/agents/unit-glance-simplestreams-sync-0/charm/hooks/install", line 199, in install
2016-05-19 08:53:44 INFO install add_source(hookenv.config('source'), hookenv.config('key'))
2016-05-19 08:53:44 INFO install File "/var/lib/juju/agents/unit-glance-simplestreams-sync-0/charm/hooks/charmhelpers/fetch/__init__.py", line 315, in add_source
2016-05-19 08:53:44 INFO install key])
2016-05-19 08:53:44 INFO install File "/usr/lib/python2.7/subprocess.py", line 540, in check_call
2016-05-19 08:53:44 INFO install raise CalledProcessError(retcode, cmd)
2016-05-19 08:53:44 INFO install subprocess.CalledProcessError: Command '['apt-key', 'adv', '--keyserver', 'hkp://keyserver.ubuntu.com:80', '--recv', u'4652B4E6']' returned non-zero exit status 2
2016-05-19 08:53:44 ERROR juju.worker.uniter.operation runhook.go:107 hook "install" failed: exit status 1

The failure to retrieve the key requires networking and can be a transient failure. Should this be retried? A single failure is currently fatal to the charms install hook and causes the Autopilot deploy to fail.