Comment 2 for bug 1598224

Revision history for this message
Andreas Hasenack (ahasenack) wrote : Re: TypeError: __init__() got an unexpected keyword argument 'user_agent'

ok, I think I know what happened. The logs below show the ppa being added, then an error message about a lock, then an immediate apt-get install, and we install python-simplestreams from trusty, not our ppa. Looks like the lock error message are about apt-get update, which I don't see being run:
2016-07-01 06:27:38 INFO install gpg: keyring `/tmp/tmpnba49qkg/secring.gpg' created
2016-07-01 06:27:38 INFO install gpg: keyring `/tmp/tmpnba49qkg/pubring.gpg' created
2016-07-01 06:27:38 INFO install gpg: requesting key 4652B4E6 from hkp server keyserver.ubuntu.com
2016-07-01 06:27:38 INFO install gpg: /tmp/tmpnba49qkg/trustdb.gpg: trustdb created
2016-07-01 06:27:38 INFO install gpg: key 4652B4E6: public key "Launchpad PPA for Landscape" imported
2016-07-01 06:27:38 INFO install gpg: Total number processed: 1
2016-07-01 06:27:38 INFO install gpg: imported: 1 (RSA: 1)
2016-07-01 06:27:38 INFO install OK
2016-07-01 06:27:38 INFO install Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --homedir /tmp/tmp.xOods5XDk6 --no-auto-check-trustdb --trust-mo
del always --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg --keyring /etc/apt/trusted.gpg.d/landscape-glance-simplestreams-sync.gpg --keyserver hkp
://keyserver.ubuntu.com:80 --recv 4652B4E6
2016-07-01 06:27:38 INFO install gpg: requesting key 4652B4E6 from hkp server keyserver.ubuntu.com
2016-07-01 06:27:39 INFO install gpg: key 4652B4E6: "Launchpad PPA for Landscape" not changed
2016-07-01 06:27:39 INFO install gpg: Total number processed: 1
2016-07-01 06:27:39 INFO install gpg: unchanged: 1
2016-07-01 06:27:39 INFO juju-log creating config dir at /etc/glance-simplestreams-sync
2016-07-01 06:27:39 INFO juju-log creating config dir at /usr/share/glance-simplestreams-sync
2016-07-01 06:27:39 INFO install E: Could not get lock /var/lib/apt/lists/lock - open (11: Resource temporarily unavailable)
2016-07-01 06:27:39 INFO install E: Unable to lock directory /var/lib/apt/lists/
2016-07-01 06:27:39 INFO juju-log Installing ['python-simplestreams', 'python-glanceclient', 'python-yaml', 'python-keystoneclient', 'python-kombu', 'python-swiftclient', 'ubuntu-cloudimage-keyring'] with options: ['--option=Dpkg::Options::=--force-confold']
2016-07-01 06:27:40 INFO install Reading package lists...
2016-07-01 06:27:40 INFO install Building dependency tree...
2016-07-01 06:27:40 INFO install Reading state information...
2016-07-01 06:27:40 INFO install python-yaml is already the newest version.

So, bottom line, I think we need to make sure apt-get update retries.