Multinode Octavia deployment fails after searching for compute service endpoint

Bug #1909841 reported by Yadnesh Kulkarni
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
Triaged
High
Unassigned

Bug Description

2021-01-01 15:05:09.154613 | 00c6fc76-5702-ce06-19d0-000000000012 | FATAL | Deploy Plan | localhost | error={"changed": false, "error": "Error during stack creation: ERROR: EndpointNotFound: : resources.Cont
rollerServiceChain<https://192.168.24.2:13808/v1/AUTH_a27aed4f200544059e8aaca646bce6b9/overcloud/common/services/controller-role.yaml>.resources.ServiceChain<nested_stack>.resources.30<https://192.168.24.2:13808/v1/AUTH_a27aed4f200544059e8aaca646bce6b9/overcloud/deployment/octavia/oc
tavia-deployment-config.yaml>.resources.default_key_pair: : publicURL endpoint for compute service in regionOne region not found
Traceback (most recent call last):

  File \"/usr/lib/python3.6/site-packages/heat/engine/stack.py\", line 918, in validate
    res.validate_external()

  File \"/usr/lib/python3.6/site-packages/heat/engine/resource.py\", line 1179, in validate_external
    self._show_resource()

  File \"/usr/lib/python3.6/site-packages/heat/engine/resource.py\", line 2205, in _show_resource
    obj = getattr(self.client(), self.entity)

 File \"/usr/lib/python3.6/site-packages/heat/engine/resource.py\", line 764, in client
    return self.stack.clients.client(client_name, version)

  File \"/usr/lib/python3.6/site-packages/heat/engine/clients/__init__.py\", line 68, in client
    return client_plugin.client()
\
n File \"/usr/lib/python3.6/site-packages/heat/engine/clients/microversion_mixin.py\", line 24, in client
    version = self.get_max_microversion()

  File \"/usr/lib/python3.6/site-packages/heat/engine/clients/os/nova.py\", line 98, in get_max_microversion
    self.max_microver
sion = client.versions.get_current().version

  File \"/usr/lib/python3.6/site-packages/novaclient/v2/versions.py\", line 70, in get_current
    return self._get_current()

  File \"/usr/lib/python3.6/site-packages/novaclient/v2/versions.py\", line 52, in _get_current
    url =
 \"%s\" % self.api.client.get_endpoint()

  File \"/usr/lib/python3.6/site-packages/keystoneauth1/adapter.py\", line 291, in get_endpoint
    return self.session.get_endpoint(auth or self.auth, **kwargs)

  File \"/usr/lib/python3.6/site-packages/keystoneauth1/session.py\", line
 1233, in get_endpoint
    return auth.get_endpoint(self, **kwargs)

  File \"/usr/lib/python3.6/site-packages/keystoneauth1/identity/base.py\", line 380, in get_endpoint
    allow_version_hack=allow_version_hack, **kwargs)

  File \"/usr/lib/python3.6/site-packages/keystoneaut
h1/identity/base.py\", line 279, in get_endpoint_data
    service_name=service_name)

  File \"/usr/lib/python3.6/site-packages/keystoneauth1/access/service_catalog.py\", line 462, in endpoint_data_for
    raise exceptions.EndpointNotFound(msg)

keystoneauth1.exceptions.catalog
.EndpointNotFound: publicURL endpoint for compute service in regionOne region not found

Changed in tripleo:
status: New → Triaged
importance: Undecided → High
milestone: none → wallaby-2
Revision history for this message
Sandeep Yadav (sandeepyadav93) wrote :

Hello,

Currently, For Octavia SSH pub key we uses the existing 'default' keypair from the undercloud. But, In master nova service is removed from the undercloud so compute endpoint is not available anymore.

Looks like we need modifications in tripleo-heat-templates.

https://github.com/openstack/tripleo-heat-templates/blob/master/deployment/octavia/octavia-deployment-config.j2.yaml#L209-L211

~~~
  default_key_pair:
    type: OS::Nova::KeyPair
    external_id: default
~~~

We will need a different approach to get the public key of the 'stack' user. May be reusing '/home/stack/.ssh/id_rsa.pub' as we were doing before[1] and we deal with the permission issue separately which we noticed earlier[2]

[1] https://github.com/openstack/tripleo-heat-templates/commit/0e87e640c88c316a8bc8d75974c8ac79aca868be
[2] https://bugs.launchpad.net/tripleo/+bug/1770641

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.