Error uploading tools into openstack: 401 Unauth
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
juju-core |
Fix Released
|
Medium
|
Unassigned |
Bug Description
dpb@helo:juju-core$ juju bootstrap -v --upload-tools
2013/05/23 10:09:07 INFO environs/openstack: opening environment "cstack"
2013/05/23 10:09:07 WARNING config attribute "default-image-id" (54139fc1-
2013/05/23 10:09:07 WARNING config attribute "default-
2013/05/23 10:09:10 INFO environs/tools: built 1.11.0.
2013/05/23 10:09:10 INFO environs/tools: uploading 1.11.0.
2013/05/23 10:09:16 INFO environs/tools: uploading 1.11.0.
2013/05/23 10:09:22 WARNING config attribute "default-image-id" (54139fc1-
2013/05/23 10:09:22 WARNING config attribute "default-
2013/05/23 10:09:22 INFO environs/openstack: bootstrapping environment "cstack"
2013/05/23 10:09:32 INFO environs: reading tools with major version 1
2013/05/23 10:09:32 INFO environs: filtering tools by series: precise
2013/05/23 10:09:32 INFO environs: filtering tools by version: 1.11.0.1
2013/05/23 10:09:33 ERROR command failed: cannot start bootstrap instance: cannot read index data, cannot access URL "https:/
error: cannot start bootstrap instance: cannot read index data, cannot access URL "https:/
dpb@helo:juju-core$
default: cstack
environments:
aws:
type: ec2
admin-secret: xxx
control-bucket: juju-8781932b23
default-series: precise
secret-key: "xxx/xxx"
access-key: "xxx"
cstack:
type: openstack
# use-floating-ip: false
admin-secret: xxx
control-bucket: 1d41169c-
auth-url: https:/
default-series: precise
default-
default-
auth-mode: userpass
username: dpb
password: xxx
tenant-name: dpb_project
region: lcy01
+------
| nova | Value |
+------
| adminURL | http://
| region | lcy01 |
| id | 72b6fb73834242e
| serviceName | nova |
| internalURL | http://
| publicURL | https:/
+------
+------
| swift3 | Value |
+------
| adminURL | https:/
| region | lcy01 |
| publicURL | https:/
| internalURL | https:/
| id | f7036662bcb2472
+------
+------
| glance | Value |
+------
| adminURL | http://
| region | lcy01 |
| publicURL | http://
| internalURL | http://
| id | 0951f70d0543490
+------
+------
| cinder | Value |
+------
| adminURL | http://
| region | lcy01 |
| publicURL | https:/
| internalURL | http://
| id | a60223bd41df4cd
+------
+------
| ec2 | Value |
+------
| adminURL | http://
| region | lcy01 |
| publicURL | https:/
| internalURL | http://
| id | d2dc2db6f4444bb
+------
+------
| fakecinder | Value |
+------
| adminURL | http://
| region | lcy02 |
| publicURL | https:/
| internalURL | http://
| id | b3848c25441346f
+------
+------
| swift | Value |
+------
| adminURL | https:/
| region | lcy01 |
| publicURL | https:/
| internalURL | https:/
| id | 57156bc99dd0471
+------
+------
| product-streams | Value |
+------
| adminURL | https:/
| region | lcy01 |
| publicURL | https:/
| internalURL | https:/
| id | db3cb46f5d704ff
+------
+------
| keystone | Value |
+------
| adminURL | http://
| region | lcy01 |
| publicURL | https:/
| internalURL | http://
| id | 8b4d3ac9a11246f
+------
A workaround of setting the following gets me around the issue:
public-bucket-url: https:/
summary: |
- Error uploading tools into openstack + Error uploading tools into openstack: 401 Unauth |
Changed in juju-core: | |
milestone: | none → 1.11.1 |
importance: | Undecided → Medium |
Changed in juju-core: | |
status: | Fix Committed → Fix Released |
The use of the public-bucket-url setting is not a work around - it's recommended to have this properly set.
Having said that, there's another issue which has already been fixed in trunk. Juju now treats 401 errors like 404 when trying to find the metadata which defines which image id to use. So marking this as Fix Committed.