cannot get tempest to use public interface
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tempest |
Invalid
|
Undecided
|
Lukas Piwowarski |
Bug Description
keystone endpoints
admin: http://
public: http://
internal: http://
I have options in config
[identity]
region =
auth_version = v3
uri = http://
uri_v3 = http://
disable_
ca_certificates
v3_endpoint_type = publicURL
(I tried also v3_endpoint_type = public)
But when I run tempest it tries to use admin interface
WARNING urllib3.
I use --fromenv and these env vars are defined
export OS_AUTH_URL=http://
export OS_USERNAME=demo
export OS_PASSWORD=
export OS_USER_
export OS_PROJECT_
export OS_PROJECT_
export OS_AUTH_VERSION=3
export OS_IDENTITY_
It is the same for admin and nonadmin user.
Do I miss something or is it a bug?
Tempest is from 34.2.0 and OpenStack is Antelope.
Changed in tempest: | |
assignee: | nobody → Lukas Piwowarski (lukas-piwowarski) |
Hi Marian,
I'm not 100 % sure about this but I think I know what might be wrong here. The issue is probably the empty value for identity.region option. When you do not specify the region tempest then picks the first endpoint it finds for a given service [1]. If it happens that the first endpoint is an admin endpoint then the admin endpoint is used instead of the public/internal one. So maybe you can try specifying the region value. Or is there a specific reason why you did not set the region value?
[1] https:/ /opendev. org/openstack/ tempest/ src/commit/ fbd3dbc638ede07 2b7947c7a005404 f389da2901/ tempest/ lib/auth. py#L586