Usage of internal URL in clouds.yaml causes a 404
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
keystoneauth |
Fix Released
|
High
|
wangxiyuan |
Bug Description
auth_url was set to the internal URL (port 5000 on the controller node), this works fine on openstack version 2.3.1 and 3.8.1, but not on 3.12.0:
# openstack --os-cloud cloud-admin project list
+--
| ID | Name |
+--
(...)
# grep auth /etc/openstack/
auth:
auth_url: https:/
auth:
auth_url: https:/
# openstack --version
openstack 3.8.1
vs
$ openstack --version
openstack 3.12.0
$ grep auth_url clouds.yaml
auth_url: https:/
$ openstack --os-cloud=
The resource could not be found. (HTTP 404)
Now, if I change the auth_url to https:/
I was digging quite a bit, and found this ...
(Pdb) bt
/
-> sys.exit(main())
/
-> return OpenStackShell(
/
-> ret_val = super(OpenStack
/
-> result = self.run_
/
-> ret_value = super(OpenStack
/
-> self.prepare_
/
-> return super(OpenStack
/
-> self.client_
/
-> return super(ClientMan
/
-> self._auth_ref = self.auth.
/
-> self._plugin = self._do_
/
-> disc = self.get_
> /usr/lib/
-> url = _combine_
(Pdb) _combine_
'https:/
(line numbers may be a bit off, I threw in some extra debug statements into the code)
https:/
Changed in keystoneauth: | |
status: | New → Confirmed |
Changed in keystoneauth: | |
status: | Confirmed → Triaged |
importance: | Undecided → High |
Changed in keystoneauth: | |
assignee: | nobody → wangxiyuan (wangxiyuan) |
Changed in keystoneauth: | |
assignee: | wangxiyuan (wangxiyuan) → Adam Young (ayoung) |
Changed in keystoneauth: | |
assignee: | Adam Young (ayoung) → wangxiyuan (wangxiyuan) |
This bug exists since keystoneauth version 3.2.0 (Queens). It was introduced in commit https:/ /github. com/openstack/ keystoneauth/ commit/ 8b8ff830e89923c a6862362a5d16e4 96a0c0093c