Mismatched version of charm and deb due to failed apt-get update
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Landscape Server |
Fix Released
|
Low
|
Andreas Hasenack | ||
16.06 |
Won't Fix
|
Undecided
|
Unassigned | ||
glance-simplestreams-sync (Juju Charms Collection) |
Fix Released
|
Medium
|
Unassigned |
Bug Description
https:/
Got this traceback in the gs3 logs:
ERROR * 07-01 07:11:15 [PID:9225] * root * Exception during syncing:
Traceback (most recent call last):
File "/usr/share/
do_
File "/usr/share/
mirror_url, policy=policy, user_agent=
TypeError: __init__() got an unexpected keyword argument 'user_agent'
The charm was cs:~landscape-
The simplestreams package is python-
Our ppa:landscape/
2016-07-01 06:27:40 INFO install Get:27 http://
Maybe we failed to add the PPA.
UPDATE: see comment #2 for diagnosis
Related branches
- Bogdana Vereha (community): Approve
- Adam Collard (community): Approve
-
Diff: 12 lines (+1/-1)1 file modifiedhooks/hooks.py (+1/-1)
tags: | removed: kanban |
Changed in landscape: | |
status: | New → In Progress |
assignee: | nobody → Andreas Hasenack (ahasenack) |
importance: | Undecided → Low |
Changed in glance-simplestreams-sync-charm: | |
status: | New → In Progress |
assignee: | nobody → Andreas Hasenack (ahasenack) |
no longer affects: | glance-simplestreams-sync-charm |
description: | updated |
Changed in landscape: | |
milestone: | none → 16.07 |
status: | In Progress → Fix Committed |
Changed in landscape: | |
status: | Fix Committed → Fix Released |
Changed in glance-simplestreams-sync (Juju Charms Collection): | |
status: | New → Fix Committed |
importance: | Undecided → Medium |
Changed in glance-simplestreams-sync (Juju Charms Collection): | |
status: | Fix Committed → Fix Released |
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: kg/secring. gpg' created kg/pubring. gpg' created ubuntu. com g/trustdb. gpg: trustdb created time-conflict --no-options --no-default- keyring --homedir /tmp/tmp.xOods5XDk6 --no-auto- check-trustdb --trust-mo trusted. gpg --primary-keyring /etc/apt/ trusted. gpg --keyring /etc/apt/ trusted. gpg.d/landscape -glance- simplestreams- sync.gpg --keyserver hkp ubuntu. com:80 --recv 4652B4E6 ubuntu. com simplestreams- sync glance- simplestreams- sync apt/lists/ lock - open (11: Resource temporarily unavailable) 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:38 INFO install gpg: keyring `/tmp/tmpnba49q
2016-07-01 06:27:38 INFO install gpg: keyring `/tmp/tmpnba49q
2016-07-01 06:27:38 INFO install gpg: requesting key 4652B4E6 from hkp server keyserver.
2016-07-01 06:27:38 INFO install gpg: /tmp/tmpnba49qk
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-
del always --keyring /etc/apt/
://keyserver.
2016-07-01 06:27:38 INFO install gpg: requesting key 4652B4E6 from hkp server keyserver.
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-
2016-07-01 06:27:39 INFO juju-log creating config dir at /usr/share/
2016-07-01 06:27:39 INFO install E: Could not get lock /var/lib/
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-
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.