Thanks for the input, I have tried that, but looks like some bits are missing. I can use the same credential to get authenticated, but not with juju bootstrap.
$ juju bootstrap openstack --debug
14:53:46 INFO juju.cmd supercommand.go:56 running juju [2.3.2 gc go1.8]
14:53:46 DEBUG juju.cmd supercommand.go:57 args: []string{"juju", "bootstrap", "openstack", "--debug"}
14:53:46 INFO cmd bootstrap.go:739 cloud "openstack" not found, trying as a provider name
14:53:46 INFO cmd cloudcredential.go:51 no credentials found, checking environment
14:53:46 DEBUG juju.cmd.juju.commands bootstrap.go:829 authenticating with region "MY_Cloud" and credential "admin" ()
14:53:46 DEBUG juju.cmd.juju.commands bootstrap.go:954 provider attrs: map[external-network: use-floating-ip:false use-default-secgroup:false network:]
14:53:46 INFO cmd authkeys.go:114 Adding contents of "/home/ubuntu/.local/share/juju/ssh/juju_id_rsa.pub" to authorized-keys
14:53:46 DEBUG juju.cmd.juju.commands bootstrap.go:1010 preparing controller with config: map[provisioner-harvest-mode:destroyed apt-http-proxy: firewall-mode:instance ssl-hostname-verification:true use-default-secgroup:false agent-stream:released enable-os-upgrade:true network: authorized-keys:ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC8ZZy6BE44yl3DyXOvmqoY2QYWCYxiVR6bkqK1H9Sf0xMx5P25J2vU7dv4J4yoxh8CYNfTI7SdMSHteAQtIlLOK2DP0kY3ssokFc0drs8L/FwL3tvPXnA3qo/YYNQOSbcRkPL8XBlTH9YEKnfkA+pZyluPcPjVorjDkBSe9/Yx8Zhdbex47vYjKMSQxDpJ0bEKdj8aLq3eX4tPA7GnPH8LZMoiBc4+lLq7Ibrq6ZdKjkMH0V7I49l/2Dj4JYHp1WZ7uNmhQLjHL2KDCJNo+jYg87tnI4qP9wAvx/L0W159l8f/Hfk8sqQ7CUVvylb3sWQdbHJ4YBCVfm/5KNbuiu+T juju-client-key
resource-tags: max-status-history-age:336h disable-network-management:false image-metadata-url: ftp-proxy: no-proxy:127.0.0.1,localhost,::1 uuid:f160ec8d-a427-4692-82e8-c37272b10b94 type:openstack name:controller max-status-history-size:5G ignore-machine-addresses:false apt-https-proxy: logging-config: use-floating-ip:false logforward-enabled:false apt-mirror: external-network: development:false egress-subnets: http-proxy: update-status-hook-interval:5m proxy-ssh:false enable-os-refresh-update:true https-proxy: max-action-results-age:336h cloudinit-userdata: max-action-results-size:5G net-bond-reconfigure-delay:17 agent-metadata-url: image-stream:released fan-config: apt-no-proxy: automatically-retry-hooks:true apt-ftp-proxy: test-mode:false container-networking-method: default-series:xenial transmit-vendor-metrics:true]
14:53:46 INFO juju.provider.openstack provider.go:144 opening model "controller"
14:53:47 DEBUG juju.provider.openstack provider.go:803 authentication failed: authentication failed
caused by: requesting token: Unauthorised URL http://172.20.5.49:5000/v3/auth/tokens
caused by: request (http://172.20.5.49:5000/v3/auth/tokens) returned unexpected status: 401; error info: Failed: 401 error: The request you have made requires authentication.
ERROR authentication failed.
Please ensure the credentials are correct. A common mistake is
to specify the wrong tenant. Use the OpenStack "project" name
for tenant-name in your model configuration.
14:53:47 DEBUG cmd supercommand.go:459 error stack:
github.com/juju/juju/provider/openstack/provider.go:808: authentication failed.
Please ensure the credentials are correct. A common mistake is
to specify the wrong tenant. Use the OpenStack "project" name
for tenant-name in your model configuration.
github.com/juju/juju/environs/bootstrap/prepare.go:163:
github.com/juju/juju/environs/bootstrap/prepare.go:99:
github.com/juju/juju/cmd/juju/commands/bootstrap.go:471:
@Andrew,
Thanks for the input, I have tried that, but looks like some bits are missing. I can use the same credential to get authenticated, but not with juju bootstrap.
## sourced env
$ env | grep OS_ ID=f2b17b339ce0 482c9d01b625000 5db53 NAME=MY_ Cloud DOMAIN_ NAME=admin_ domain NAME=admin API_VERSION= 3 PASSWORD 172.20. 5.49:5000/ v3
OS_PROJECT_
OS_REGION_
OS_USER_
OS_PROJECT_
OS_IDENTITY_
OS_PASSWORD=
OS_AUTH_URL=http://
OS_USERNAME=admin
OS_INTERFACE=public
## verify the credentail
$ openstack token issue ------+ ------- ------- ------- ------- ------+ ------+ ------- ------- ------- ------- ------+ 25T15:53: 35.000000Z | 29633702f2c426c 9c | c9d01b6250005db 53 | 38ac854c05251e2 68 | ------+ ------- ------- ------- ------- ------+
+------
| Field | Value |
+------
| expires | 2018-01-
| id | efa5f03c94a8406
| project_id | f2b17b339ce0482
| user_id | fa594f790d6142f
+------
## bootstrap
$ juju bootstrap openstack --debug .go:51 no credentials found, checking environment juju.commands bootstrap.go:829 authenticating with region "MY_Cloud" and credential "admin" () juju.commands bootstrap.go:954 provider attrs: map[external- network: use-floating- ip:false use-default- secgroup: false network:] ubuntu/ .local/ share/juju/ ssh/juju_ id_rsa. pub" to authorized-keys juju.commands bootstrap.go:1010 preparing controller with config: map[provisioner -harvest- mode:destroyed apt-http-proxy: firewall- mode:instance ssl-hostname- verification: true use-default- secgroup: false agent-stream: released enable- os-upgrade: true network: authorized- keys:ssh- rsa AAAAB3NzaC1yc2E AAAADAQABAAABAQ C8ZZy6BE44yl3Dy XOvmqoY2QYWCYxi VR6bkqK1H9Sf0xM x5P25J2vU7dv4J4 yoxh8CYNfTI7SdM SHteAQtIlLOK2DP 0kY3ssokFc0drs8 L/FwL3tvPXnA3qo /YYNQOSbcRkPL8X BlTH9YEKnfkA+ pZyluPcPjVorjDk BSe9/Yx8Zhdbex4 7vYjKMSQxDpJ0bE Kdj8aLq3eX4tPA7 GnPH8LZMoiBc4+ lLq7Ibrq6ZdKjkM H0V7I49l/ 2Dj4JYHp1WZ7uNm hQLjHL2KDCJNo+ jYg87tnI4qP9wAv x/L0W159l8f/ Hfk8sqQ7CUVvylb 3sWQdbHJ4YBCVfm /5KNbuiu+ T juju-client-key history- age:336h disable- network- management: false image-metadata-url: ftp-proxy: no-proxy: 127.0.0. 1,localhost, ::1 uuid:f160ec8d- a427-4692- 82e8-c37272b10b 94 type:openstack name:controller max-status- history- size:5G ignore- machine- addresses: false apt-https-proxy: logging-config: use-floating- ip:false logforward- enabled: false apt-mirror: external-network: development:false egress-subnets: http-proxy: update- status- hook-interval: 5m proxy-ssh:false enable- os-refresh- update: true https-proxy: max-action- results- age:336h cloudinit-userdata: max-action- results- size:5G net-bond- reconfigure- delay:17 agent-metadata-url: image-stream: released fan-config: apt-no-proxy: automatically- retry-hooks: true apt-ftp-proxy: test-mode:false container- networking- method: default- series: xenial transmit- vendor- metrics: true] openstack provider.go:144 opening model "controller" openstack provider.go:803 authentication failed: authentication failed 172.20. 5.49:5000/ v3/auth/ tokens 172.20. 5.49:5000/ v3/auth/ tokens) returned unexpected status: 401; error info: Failed: 401 error: The request you have made requires authentication.
14:53:46 INFO juju.cmd supercommand.go:56 running juju [2.3.2 gc go1.8]
14:53:46 DEBUG juju.cmd supercommand.go:57 args: []string{"juju", "bootstrap", "openstack", "--debug"}
14:53:46 INFO cmd bootstrap.go:739 cloud "openstack" not found, trying as a provider name
14:53:46 INFO cmd cloudcredential
14:53:46 DEBUG juju.cmd.
14:53:46 DEBUG juju.cmd.
14:53:46 INFO cmd authkeys.go:114 Adding contents of "/home/
14:53:46 DEBUG juju.cmd.
resource-tags: max-status-
14:53:46 INFO juju.provider.
14:53:47 DEBUG juju.provider.
caused by: requesting token: Unauthorised URL http://
caused by: request (http://
ERROR authentication failed.
Please ensure the credentials are correct. A common mistake is com/juju/ juju/provider/ openstack/ provider. go:808: authentication failed.
to specify the wrong tenant. Use the OpenStack "project" name
for tenant-name in your model configuration.
14:53:47 DEBUG cmd supercommand.go:459 error stack:
github.
Please ensure the credentials are correct. A common mistake is com/juju/ juju/environs/ bootstrap/ prepare. go:163: com/juju/ juju/environs/ bootstrap/ prepare. go:99: com/juju/ juju/cmd/ juju/commands/ bootstrap. go:471:
to specify the wrong tenant. Use the OpenStack "project" name
for tenant-name in your model configuration.
github.
github.
github.