About the missing internal endpoint, I check with the team and it seems to
be a mistake on our side.
We plan the add the internal and admin back into the catalog for SGP1 (and
also SYD1).
About why you have that in your ansible playbooks, that's maybe because you
copy pasted some code from openstack ansible (osa), which, I think, are
using internal endpoint when configuring openstack itself.
Le jeu. 6 févr. 2020 à 17:35, Raphaël Droz <email address hidden> a
écrit :
> I can confirm that removing "interface: internal" makes the task work.
> (Still, I think it's worth checking why this only affected SGP1)
>
> Although it's an Ansible question, I don't remember why all my (mostly
> copy/pasted) os_* Ansible tasks contained this `interface: internal` in
> the first place : I don't understand the meaning of this option.
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1861695
>
> Title:
> Programming error choosing an endpoint.
>
> Status in keystoneauth:
> New
>
> Bug description:
> Using Ansible to provision SGP1 on OVH public cloud using KeyStone v3:
>
> Traceback (most recent call last):
> File "<stdin>", line 102, in <module>
> File "<stdin>", line 94, in _ansiballz_main
> File "<stdin>", line 40, in invoke_module
> File "/usr/lib/python3.7/runpy.py", line 205, in run_module
> return _run_module_code(code, init_globals, run_name, mod_spec)
> File "/usr/lib/python3.7/runpy.py", line 96, in _run_module_code
> mod_name, mod_spec, pkg_name, script_name)
> File "/usr/lib/python3.7/runpy.py", line 85, in _run_code
> exec(code, run_globals)
> File
> "/tmp/ansible_os_volume_payload_64uiuf5r/ansible_os_volume_payload.zip/ansible/modules/cloud/openstack/os_volume.py",
> line 256, in <module>
> File
> "/tmp/ansible_os_volume_payload_64uiuf5r/ansible_os_volume_payload.zip/ansible/modules/cloud/openstack/os_volume.py",
> line 248, in main
> File
> "/tmp/ansible_os_volume_payload_64uiuf5r/ansible_os_volume_payload.zip/ansible/modules/cloud/openstack/os_volume.py",
> line 155, in _present_volume
> File
> "/home/yug/.local/lib/python3.7/site-packages/openstack/cloud/_block_storage.py",
> line 382, in volume_exists
> return self.get_volume(name_or_id) is not None
> File
> "/home/yug/.local/lib/python3.7/site-packages/openstack/cloud/_block_storage.py",
> line 136, in get_volume
> return _utils._get_entity(self, 'volume', name_or_id, filters)
> File
> "/home/yug/.local/lib/python3.7/site-packages/openstack/cloud/_utils.py",
> line 205, in _get_entity
> entities = search(name_or_id, filters, **kwargs)
> File
> "/home/yug/.local/lib/python3.7/site-packages/openstack/cloud/_block_storage.py",
> line 790, in search_volumes
> volumes = self.list_volumes()
> File
> "/home/yug/.local/lib/python3.7/site-packages/openstack/cloud/_block_storage.py",
> line 78, in list_volumes
> data = self._volume_client.get('/volumes/detail')
> File "/usr/lib/python3/dist-packages/keystoneauth1/adapter.py", line
> 386, in get
> return self.request(url, 'GET', **kwargs)
> File
> "/home/yug/.local/lib/python3.7/site-packages/openstack/proxy.py", line
> 464, in request
> response = super(_ShadeAdapter, self).request(url, method, **kwargs)
> File
> "/home/yug/.local/lib/python3.7/site-packages/openstack/proxy.py", line
> 151, in request
> **kwargs)
> File "/usr/lib/python3/dist-packages/keystoneauth1/adapter.py", line
> 248, in request
> return self.session.request(url, method, **kwargs)
> File "/usr/lib/python3/dist-packages/keystoneauth1/session.py", line
> 769, in request
> **endpoint_filter)
> File "/usr/lib/python3/dist-packages/keystoneauth1/session.py", line
> 1200, in get_endpoint
> return auth.get_endpoint(self, **kwargs)
> File "/usr/lib/python3/dist-packages/keystoneauth1/identity/base.py",
> line 380, in get_endpoint
> allow_version_hack=allow_version_hack, **kwargs)
> File "/usr/lib/python3/dist-packages/keystoneauth1/identity/base.py",
> line 279, in get_endpoint_data
> service_name=service_name)
> File
> "/usr/lib/python3/dist-packages/keystoneauth1/access/service_catalog.py",
> line 435, in endpoint_data_for
> endpoint_id=endpoint_id)
> File
> "/usr/lib/python3/dist-packages/keystoneauth1/access/service_catalog.py",
> line 340, in get_endpoint_data_list
> endpoint_id=endpoint_id)
> File
> "/usr/lib/python3/dist-packages/keystoneauth1/access/service_catalog.py",
> line 222, in get_endpoints_data
> return self._endpoints_by_type(service_type, ret)
> File
> "/usr/lib/python3/dist-packages/keystoneauth1/access/service_catalog.py",
> line 285, in _endpoints_by_type
> raise ValueError("Programming error choosing an endpoint.")
> ValueError: Programming error choosing an endpoint.
>
>
>
> https://github.com/openstack/keystoneauth/blob/master/keystoneauth1/access/service_catalog.py#L281
>
>
> Within _endpoints_by_type, I printed these variables:
> - endpoints = {'volumev3': [], 'volumev2': [], 'volume': []}
> - alias = block-store
> - requested = block-storage
>
> Let me know if I can provide any other information of use.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/keystoneauth/+bug/1861695/+subscriptions
>
Hello,
About the missing internal endpoint, I check with the team and it seems to
be a mistake on our side.
We plan the add the internal and admin back into the catalog for SGP1 (and
also SYD1).
About why you have that in your ansible playbooks, that's maybe because you
copy pasted some code from openstack ansible (osa), which, I think, are
using internal endpoint when configuring openstack itself.
Le jeu. 6 févr. 2020 à 17:35, Raphaël Droz <email address hidden> a
écrit :
> I can confirm that removing "interface: internal" makes the task work. /bugs.launchpad .net/bugs/ 1861695 python3. 7/runpy. py", line 205, in run_module code(code, init_globals, run_name, mod_spec) python3. 7/runpy. py", line 96, in _run_module_code python3. 7/runpy. py", line 85, in _run_code os_volume_ payload_ 64uiuf5r/ ansible_ os_volume_ payload. zip/ansible/ modules/ cloud/openstack /os_volume. py", os_volume_ payload_ 64uiuf5r/ ansible_ os_volume_ payload. zip/ansible/ modules/ cloud/openstack /os_volume. py", os_volume_ payload_ 64uiuf5r/ ansible_ os_volume_ payload. zip/ansible/ modules/ cloud/openstack /os_volume. py", yug/.local/ lib/python3. 7/site- packages/ openstack/ cloud/_ block_storage. py", volume( name_or_ id) is not None yug/.local/ lib/python3. 7/site- packages/ openstack/ cloud/_ block_storage. py", _get_entity( self, 'volume', name_or_id, filters) yug/.local/ lib/python3. 7/site- packages/ openstack/ cloud/_ utils.py" , yug/.local/ lib/python3. 7/site- packages/ openstack/ cloud/_ block_storage. py", yug/.local/ lib/python3. 7/site- packages/ openstack/ cloud/_ block_storage. py", client. get('/volumes/ detail' ) python3/ dist-packages/ keystoneauth1/ adapter. py", line yug/.local/ lib/python3. 7/site- packages/ openstack/ proxy.py" , line ShadeAdapter, self).request(url, method, **kwargs) yug/.local/ lib/python3. 7/site- packages/ openstack/ proxy.py" , line python3/ dist-packages/ keystoneauth1/ adapter. py", line request( url, method, **kwargs) python3/ dist-packages/ keystoneauth1/ session. py", line python3/ dist-packages/ keystoneauth1/ session. py", line endpoint( self, **kwargs) python3/ dist-packages/ keystoneauth1/ identity/ base.py" , hack=allow_ version_ hack, **kwargs) python3/ dist-packages/ keystoneauth1/ identity/ base.py" , name=service_ name) python3/ dist-packages/ keystoneauth1/ access/ service_ catalog. py", id=endpoint_ id) python3/ dist-packages/ keystoneauth1/ access/ service_ catalog. py", data_list id=endpoint_ id) python3/ dist-packages/ keystoneauth1/ access/ service_ catalog. py", _by_type( service_ type, ret) python3/ dist-packages/ keystoneauth1/ access/ service_ catalog. py", "Programming error choosing an endpoint.") /github. com/openstack/ keystoneauth/ blob/master/ keystoneauth1/ access/ service_ catalog. py#L281 /bugs.launchpad .net/keystoneau th/+bug/ 1861695/ +subscriptions
> (Still, I think it's worth checking why this only affected SGP1)
>
> Although it's an Ansible question, I don't remember why all my (mostly
> copy/pasted) os_* Ansible tasks contained this `interface: internal` in
> the first place : I don't understand the meaning of this option.
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https:/
>
> Title:
> Programming error choosing an endpoint.
>
> Status in keystoneauth:
> New
>
> Bug description:
> Using Ansible to provision SGP1 on OVH public cloud using KeyStone v3:
>
> Traceback (most recent call last):
> File "<stdin>", line 102, in <module>
> File "<stdin>", line 94, in _ansiballz_main
> File "<stdin>", line 40, in invoke_module
> File "/usr/lib/
> return _run_module_
> File "/usr/lib/
> mod_name, mod_spec, pkg_name, script_name)
> File "/usr/lib/
> exec(code, run_globals)
> File
> "/tmp/ansible_
> line 256, in <module>
> File
> "/tmp/ansible_
> line 248, in main
> File
> "/tmp/ansible_
> line 155, in _present_volume
> File
> "/home/
> line 382, in volume_exists
> return self.get_
> File
> "/home/
> line 136, in get_volume
> return _utils.
> File
> "/home/
> line 205, in _get_entity
> entities = search(name_or_id, filters, **kwargs)
> File
> "/home/
> line 790, in search_volumes
> volumes = self.list_volumes()
> File
> "/home/
> line 78, in list_volumes
> data = self._volume_
> File "/usr/lib/
> 386, in get
> return self.request(url, 'GET', **kwargs)
> File
> "/home/
> 464, in request
> response = super(_
> File
> "/home/
> 151, in request
> **kwargs)
> File "/usr/lib/
> 248, in request
> return self.session.
> File "/usr/lib/
> 769, in request
> **endpoint_filter)
> File "/usr/lib/
> 1200, in get_endpoint
> return auth.get_
> File "/usr/lib/
> line 380, in get_endpoint
> allow_version_
> File "/usr/lib/
> line 279, in get_endpoint_data
> service_
> File
> "/usr/lib/
> line 435, in endpoint_data_for
> endpoint_
> File
> "/usr/lib/
> line 340, in get_endpoint_
> endpoint_
> File
> "/usr/lib/
> line 222, in get_endpoints_data
> return self._endpoints
> File
> "/usr/lib/
> line 285, in _endpoints_by_type
> raise ValueError(
> ValueError: Programming error choosing an endpoint.
>
>
>
> https:/
>
>
> Within _endpoints_by_type, I printed these variables:
> - endpoints = {'volumev3': [], 'volumev2': [], 'volume': []}
> - alias = block-store
> - requested = block-storage
>
> Let me know if I can provide any other information of use.
>
> To manage notifications about this bug go to:
> https:/
>