Comment 5 for bug 1543262

Revision history for this message
Marco Ceppi (marcoceppi) wrote :

Using a project configured v3 auth endpoint I'm unable to bootstrap.

```
OS_REGION_NAME=coolcloud
OS_USER_DOMAIN_NAME=admin_domain
OS_PROJECT_NAME=cloud_kubernetes
OS_IDENTITY_API_VERSION=3
OS_PASSWORD=<REDACTED>
OS_AUTH_URL=http://10.0.3.240:5000/v3
OS_USERNAME=kubernetes_admin
OS_PROJECT_DOMAIN_NAME=jumpin-joy
```

```
$ juju show-cloud my-cloud
defined: local
type: openstack
description: Openstack Cloud
auth-types: [userpass, access-key]
regions:
  coolcloud:
    endpoint: http://10.0.3.240:5000/v3
```

```
$ juju list-credentials --format yaml --show-secrets
credentials:
  my-cloud:
    kubernetes:
      auth-type: userpass
      domain-name: admin_domain
      password: <REDACTED>
      tenant-name: cloud_kubernetes
      username: kubernetes_admin
```

```
$ juju bootstrap --debug my-cloud
19:49:14 INFO juju.cmd supercommand.go:63 running juju [2.1-rc1 gc go1.6.2]
19:49:14 DEBUG juju.cmd supercommand.go:64 args: []string{"juju", "bootstrap", "--debug", "my-cloud"}
19:49:14 DEBUG juju.cmd.juju.commands bootstrap.go:780 authenticating with region "coolcloud" and credential "kubernetes" ()
19:49:14 DEBUG juju.cmd.juju.commands bootstrap.go:892 provider attrs: map[use-floating-ip:false use-default-secgroup:false network: external-network:]
19:49:14 INFO cmd cmd.go:141 Adding contents of "/home/ubuntu/.local/share/juju/ssh/juju_id_rsa.pub" to authorized-keys
19:49:14 DEBUG juju.cmd.juju.commands bootstrap.go:948 preparing controller with config: map[logging-config: enable-os-refresh-update:true external-network: image-metadata-url: agent-stream:released provisioner-harvest-mode:destroyed http-proxy: name:controller proxy-ssh:false ignore-machine-addresses:false authorized-keys:ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC7ax7LrroQh6ayFPH7vfU+/1veF40s6UJF4YeaevTvrx/xELELSjSeEIkQw6KoA/nCysOMUDmkFPfVoe7u5reO37IRWS+c7k/O3MOMTUGlOeGEmDE2trFzoBSNj4lYRuQxDC8ecyk0d0Lui1gEV24ZjT/Wo/d3QUJy/VQojqEztl565+UoaCv5Ck33suD1mYpesoDkJcQv9igArNCqQ/t5QnMxgmhxs0HOF29PI+aGkHMjGBHVL8PQaC95n0B9q1tD0w5DdkFRZQpRaWuvZ1g0ykBNKX+OU5Tp4iq+bU9NH9za8UnBrVgumAXv9gAVjrcWpOo/VUkhvb06FRi63ZCD juju-client-key
 image-stream:released development:false net-bond-reconfigure-delay:17 type:openstack ssl-hostname-verification:true enable-os-upgrade:true no-proxy: network: apt-ftp-proxy: use-default-secgroup:false uuid:4465ae20-ad7c-4e1c-8cf3-31c403ff59ea disable-network-management:false transmit-vendor-metrics:true apt-mirror: resource-tags: https-proxy: default-series:xenial apt-https-proxy: firewall-mode:instance apt-http-proxy: agent-metadata-url: test-mode:false use-floating-ip:false ftp-proxy: logforward-enabled:false automatically-retry-hooks:true]
19:49:14 INFO juju.provider.openstack provider.go:131 opening model "controller"
19:49:15 DEBUG juju.provider.openstack provider.go:763 authentication failed: authentication failed
caused by: requesting token: Unauthorised URL http://10.0.3.240:5000/v3/auth/tokens
caused by: request (http://10.0.3.240:5000/v3/auth/tokens) returned unexpected status: 401; error info: Failed: 401 error: The request you have made requires authentication.
19:49:15 ERROR cmd supercommand.go:458 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.
19:49:15 DEBUG cmd supercommand.go:459 (error details: [{github.com/juju/juju/cmd/juju/commands/bootstrap.go:445: } {github.com/juju/juju/environs/bootstrap/prepare.go:99: } {github.com/juju/juju/environs/bootstrap/prepare.go:163: } {github.com/juju/juju/provider/openstack/provider.go:768: 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.}])
```