keyserver workarounds in templates/lxc-download.in not accessible
Bug #1331920 reported by
Mike Spreitzer
This bug affects 5 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
lxc |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
I am on a machine where I need to use the HTTP proxy for the keyserver. I found no way to engage line 59 of https:/
DOWNLOAD_
I tried
http_proxy=True lxc-create ...
but I still got a failure fetching the key. (Manually issuing the gpg command computed for the proxy works.)
I also tried adding -keyserver <keyserver> to the template options on my lxc-create command line, as line 192 suggests, but got a complaint that --keyserver is not a valid option; indeed, the option parsing in lines 217--237 does not handle that one.
To post a comment you must log in.
Hi Mike, did you ever resolve this problem by any chance as a configuration problem or is this still and issue?
I'm hitting this symptom in a proxy environment myself with Juju+MAAS+lxc:
1) " curl https:/ /cloud- images. ubuntu. com/ " works on the node (assumed using the predefined proxy setting)
2) Keys fail though but should work given the download.in code:
sudo lxc-create --template download --name u1 run_template: 1125 container creation template for u1 failed
Setting up the GPG keyring
ERROR: Unable to fetch GPG key from keyserver.
lxc_container: lxccontainer.c: create_
lxc_container: lxc_create.c: main: 271 Error creating container u1
3) Here's my failure but the failure may actually be caused by the proxy I just noticed 46 lines in:
environment: maas 1.0/nodes/ node-b91e178a- e308-11e4- 835d-001e6708f9 f4/
agent- state-info: 'failed to retrieve the template to clone: container failed
instance- id: pending server- member- status: has-vote 1.0/nodes/ node-821b00ca- e2fb-11e4- b806-001e6708f9 f4/
agent- state-info: 'failed to retrieve the template to clone: lxc container lxc/juju- trusty- lxc-template '']''; ++ id -u; /var/lib/ lxc/juju- trusty- lxc-template/ config; lxc/juju- trusty- lxc-template/ rootfs '']''; + type ubuntu- cloudimg- query;
ubuntu- cloudimg- query is /usr/bin/ ubuntu- cloudimg- query; + type wget; wget 543/wget; + cache=/ var/cache/ lxc/cloud- trusty; + ''['' lxc/cloud- trusty; + ''['' tryreleased cloudimg- query trusty released /10.125. 4.241:17070/ environment/ 29f9e545- 51b0-4ff6- 83d1-9ff5f7d13c e2/images/ lxc/trusty/ amd64/ubuntu- 14.04-server- cloudimg- amd64-root. tar.gz /10.125. 4.241:17070/ environment/ 29f9e545- 51b0-4ff6- 83d1-9ff5f7d13c e2/images/ lxc/trusty/ amd64/ubuntu- 14.04-server- cloudimg- amd64-root. tar.gz; /10.125. 4.241:17070/ environment/ 29f9e545- 51b0-4ff6- 83d1-9ff5f7d13c e2/images/ lxc/trusty/ amd64/ubuntu- 14.04-server- cloudimg- amd64-root. tar.gz; ubuntu- 14.04-server- cloudimg- amd64-root. tar.gz; + ''['' -n https:/ /10.125. 4.241:17070/ environment/ 29f9e545- 51b0-4ff6- 83d1-9ff5f7d13c e2/images/ lxc/trusty/ amd64/ubuntu- 14.04-server- cloudimg- amd64-root. tar.gz
machines:
"0":
agent-state: started
agent-version: 1.23.3.1
dns-name: 05.maas
instance-id: /MAAS/api/
series: trusty
containers:
0/lxc/0:
to start'
series: trusty
hardware: arch=amd64 cpu-cores=80 mem=1048576M
state-
"1":
...
"6":
agent-state: started
agent-version: 1.23.3.1
dns-name: 01.maas
instance-id: /MAAS/api/
series: trusty
containers:
6/lxc/0:
creation failed: error executing "lxc-create": + ''['' amd64 = i686 '']'';
+ ''['' 0 = 0 '']''; + case "$hostarch:$arch" in; + :; + ''['' tryreleased
''!='' daily -a tryreleased ''!='' released -a tryreleased ''!='' tryreleased
'']''; + ''['' -z /var/lib/
+ ''['' 0 ''!='' 0 '']''; + config=
+ ''['' -z /var/lib/
is /tmp/wget264411
0 -eq 1 '']''; + mkdir -p /var/cache/
= tryreleased '']''; + stream=released; + ubuntu-
amd64; + ''['' -n https:/
'']''; + url2=https:/
++ basename https:/
+ filename=
'']''; + d...