Use identity internal endpoint

The charm configured the snap with the public endpoint while it should
be internal.

Change-Id: I428a4c275203641eaaa7cdb83c8f120503bcfd92
This commit is contained in:
Guillaume Boutry 2023-07-11 10:18:08 +02:00
parent 067ddd9f2f
commit bd44c98d96
2 changed files with 2 additions and 2 deletions

View File

@ -191,7 +191,7 @@ class HypervisorOperatorCharm(sunbeam_charm.OSBaseOperatorCharm):
"compute.virt-type": "kvm",
"credentials.ovn-metadata-proxy-shared-secret": self.metadata_secret(),
"identity.admin-role": contexts.identity_credentials.admin_role,
"identity.auth-url": contexts.identity_credentials.public_endpoint,
"identity.auth-url": contexts.identity_credentials.internal_endpoint,
"identity.password": contexts.identity_credentials.password,
"identity.project-domain-id": contexts.identity_credentials.project_domain_id,
"identity.project-domain-name": contexts.identity_credentials.project_domain_name,

View File

@ -103,7 +103,7 @@ class TestCharm(test_utils.CharmTestCase):
"compute.virt-type": "kvm",
"credentials.ovn-metadata-proxy-shared-secret": metadata,
"identity.admin-role": None,
"identity.auth-url": "http://10.20.21.11:80/openstack-keystone",
"identity.auth-url": "http://10.153.2.45:80/openstack-keystone",
"identity.password": "user-password",
"identity.project-domain-id": "pdomain-id",
"identity.project-domain-name": "pdomain_-ame",