[Bug 1846472] Re: Juju fails to bootstrap on OpenStack
Noemi Aloisi
1846472 at bugs.launchpad.net
Tue Oct 22 10:06:35 UTC 2019
Hi James Page,
We have a proxy on top of Openstack.
I have executed curl from VM that Iwant use to create juju bootstrap and I receive:
$curl https://computer2.cs1.cloudspc.it:8774/
{"versions": [{"status": "SUPPORTED", "updated": "2011-01-21T11:33:21Z", "links": [{"href": "https://computer2.cs1.cloudspc.it:8774, computer2.cs1.cloudspc.it:8774/v2/", "rel": "self"}], "min_version": "", "version": "", "id": "v2.0"}, {"status": "CURRENT", "updated": "2013-07-23T11:33:21Z", "links": [{"href": "https://computer2.cs1.cloudspc.it:8774, computer2.cs1.cloudspc.it:8774/v2.1/", "rel": "self"}], "min_version": "2.1", "version": "2.60", "id": "v2.1"}]}
I have also tried to call flavor list and I don't receive any error:
$ n_ep="`openstack endpoint list -f value -c URL -c 'Service Name'
--interface public| grep nova| cut -f 2 -d ' '`"
$ echo $n_ep
https://computer2.cs1.cloudspc.it:8774/v2.1
$ token=`openstack token issue -c id -f value`
$ curl -H "X-Auth-Token: $token" $n_ep/flavors
{"flavors": [{"id": "0b1ab4ad-f4c6-4384-9a54-a6c82b0f5538", "links": [{"href": "https://computer2.cs1.cloudspc.it:8774, computer2.cs1.cloudspc.it:8774/v2.1/flavors/0b1ab4ad-f4c6-4384-9a54-a6c82b0f5538", "rel": "self"}, {"href": "https://computer2.cs1.cloudspc.it:8774, computer2.cs1.cloudspc.it:8774/flavors/0b1ab4ad-f4c6-4384-9a54-a6c82b0f5538", "rel": "bookmark"}], "name": "Small"}, {"id": "1ce2c4f0-c026-497d-96ed-fe5f925778ac", "links": [{"href": "https://computer2.cs1.cloudspc.it:8774, computer2.cs1.cloudspc.it:8774/v2.1/flavors/1ce2c4f0-c026-497d-96ed-fe5f925778ac", "rel": "self"}, {"href": "https://computer2.cs1.cloudspc.it:8774, computer2.cs1.cloudspc.it:8774/flavors/1ce2c4f0-c026-497d-96ed-fe5f925778ac", "rel": "bookmark"}], "name": "Large"}, {"id": "541f8b78-c4fe-4e21-ad92-b7a09fe53737", "links": [{"href": "https://computer2.cs1.cloudspc.it:8774, computer2.cs1.cloudspc.it:8774/v2.1/flavors/541f8b78-c4fe-4e21-ad92-b7a09fe53737", "rel": "self"}, {"href": "https://computer2.cs1.cloudspc.it:8774, computer2.cs1.cloudspc.it:8774/flavors/541f8b78-c4fe-4e21-ad92-b7a09fe53737", "rel": "bookmark"}], "name": "X-Medium"}, {"id": "66f0d29b-e507-4dea-8447-eb85131a6c44", "links": [{"href": "https://computer2.cs1.cloudspc.it:8774, computer2.cs1.cloudspc.it:8774/v2.1/flavors/66f0d29b-e507-4dea-8447-eb85131a6c44", "rel": "self"}, {"href": "https://computer2.cs1.cloudspc.it:8774, computer2.cs1.cloudspc.it:8774/flavors/66f0d29b-e507-4dea-8447-eb85131a6c44", "rel": "bookmark"}], "name": "X-Small"}, {"id": "6a29cd24-ca4c-40cf-8e57-8c83dc1844f0", "links": [{"href": "https://computer2.cs1.cloudspc.it:8774, computer2.cs1.cloudspc.it:8774/v2.1/flavors/6a29cd24-ca4c-40cf-8e57-8c83dc1844f0", "rel": "self"}, {"href": "https://computer2.cs1.cloudspc.it:8774, computer2.cs1.cloudspc.it:8774/flavors/6a29cd24-ca4c-40cf-8e57-8c83dc1844f0", "rel": "bookmark"}], "name": "Medium"}, {"id": "ece65898-f63d-46e4-9ba0-62d61fce9d20", "links": [{"href": "https://computer2.cs1.cloudspc.it:8774, computer2.cs1.cloudspc.it:8774/v2.1/flavors/ece65898-f63d-46e4-9ba0-62d61fce9d20", "rel": "self"}, {"href": "https://computer2.cs1.cloudspc.it:8774, computer2.cs1.cloudspc.it:8774/flavors/ece65898-f63d-46e4-9ba0-62d61fce9d20", "rel": "bookmark"}], "name": "X-Large"}]}
--
You received this bug notification because you are a member of Ubuntu
OpenStack, which is subscribed to nova in Ubuntu.
https://bugs.launchpad.net/bugs/1846472
Title:
Juju fails to bootstrap on OpenStack
Status in juju:
Triaged
Status in nova package in Ubuntu:
Incomplete
Bug description:
I wan't create o juju controller on Openstack Cluod Canonical Queen version.
Error received:
- ERROR juju.cmd.juju.commands bootstrap.go:697 failed to get list of flavour details
caused by: parse https://computer2.cs1.cloudspc.it:8774, computer2.cs1.cloudspc.it:8774/v2/: invalid character " " in host name
I have create a project and one VM and I have followed this documentation:
- https://jaas.ai/docs/creating-a-controller
- https://cloud.garr.it/apps/juju-openstack/
Following I give you all my step:
cat acilia_cloud.yaml
clouds:
acilia:
type: openstack
auth-types: [access-key, userpass]
regions:
RegionTwo:
endpoint: XXXXXXXXX
/opt/noemi# cat credentials.yaml
credentials:
acilia:
juju-canonicalk8s:
auth-type: userpass
project-domain-name: default
user-domain-name: default
tenant-name: canonicalk8s
username: XXXXXXXXX
password: XXXXXXXXX
$ juju add-cloud acilia acilia_cloud.yaml
$ juju add-credential acilia -f credentials.yaml --replace
$ juju show-cloud acilia
$ juju list-credentials --format yaml --show-secrets
$ juju metadata generate-image -d /opt/noemi/simplestreams -i
8ad030a0-2fd4-444a-be48-4b6b46522bee -s bionic -r RegionTwo -u
https://authr2.cs1.cloudspc.it:5000/v3
$ juju bootstrap acilia canonicalk8s --config network=03db2881-b30b-
4a61-833f-1ba25b26162c --config external-network=b01c4b9e-26b8-41b0
-a12f-2f5fdab84e70 --config use-floating-ip=true --metadata-source
/opt/noemi/simplestreams --debug
b01c4b9e-26b8-41b0-a12f-2f5fdab84e70 --config use-floating-ip=true --metadata-source /opt/noemi/simplestreams --debug
10:15:07 INFO juju.cmd supercommand.go:57 running juju [2.6.9 gc go1.10.4]
10:15:07 INFO cmd authkeys.go:114 Adding contents of "/root/.local/share/juju/ssh/juju_id_rsa.pub" to authorized-keys
....
10:15:07 INFO juju.provider.openstack provider.go:162 opening model "controller"
.....
10:15:08 ERROR juju.cmd.juju.commands bootstrap.go:697 failed to get list of flavour details
caused by: parse https://computer2.cs1.cloudspc.it:8774, computer2.cs1.cloudspc.it:8774/v2/: invalid character " " in host name
10:15:08 DEBUG juju.cmd.juju.commands bootstrap.go:698 (error details: [{/build/juju-core-sU8dy9/juju-core-2.6.9/obj-x86_64-linux-gnu/src/github.com/juju/juju/cmd/juju/commands/bootstrap.go:731: } {failed to get list of flavour details
caused by: parse https://computer2.cs1.cloudspc.it:8774, computer2.cs1.cloudspc.it:8774/v2/: invalid character " " in host name}])
10:15:08 DEBUG juju.cmd.juju.commands bootstrap.go:1332 cleaning up after failed bootstrap
10:15:08 INFO juju.provider.common destroy.go:21 destroying model "controller"
10:15:08 INFO juju.provider.common destroy.go:32 destroying instances
10:15:08 ERROR juju.cmd.juju.commands bootstrap.go:1334 error cleaning up: destroying controller model: destroying instances: failed to get list of server details
caused by: parse https://computer2.cs1.cloudspc.it:8774, computer2.cs1.cloudspc.it:8774/v2/: invalid character " " in host name
10:15:08 INFO cmd supercommand.go:502 command finished
To manage notifications about this bug go to:
https://bugs.launchpad.net/juju/+bug/1846472/+subscriptions
More information about the Ubuntu-openstack-bugs
mailing list