Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix missing exceptions openstack modules #48088

Merged
merged 2 commits into from
Nov 5, 2018
Merged

fix missing exceptions openstack modules #48088

merged 2 commits into from
Nov 5, 2018

Conversation

gtema
Copy link
Contributor

@gtema gtema commented Nov 5, 2018

SUMMARY

backport PR #45775 for Issue #45151

ISSUE TYPE
  • Bugfix Pull Request
COMPONENT NAME

module.cloud.openstack.*

ANSIBLE VERSION
ansible 2.7.0
  config file = /etc/ansible/ansible.cfg
  configured module search path = ['/home/gtema/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/lib/python3.7/site-packages/ansible
  executable location = /usr/bin/ansible
  python version = 3.7.1 (default, Oct 23 2018, 18:19:07) [GCC 8.2.1 20180801 (Red Hat 8.2.1-2)]
ADDITIONAL INFORMATION

backport changes to stable-2.7 branch

wiorka and others added 2 commits November 5, 2018 13:31
* Replace non-existing OpenStackCloudTimeout exception. Fixes: #45151

* Replace OpenStackCloudURINotFound that doesn't exist in the 'exceptions' module

(cherry picked from commit eb39c46)
@ansibot
Copy link
Contributor

ansibot commented Nov 5, 2018

Hi @gtema, thank you for submitting this pull-request!

click here for bot help

@ansibot
Copy link
Contributor

ansibot commented Nov 5, 2018

@ansibot ansibot added affects_2.7 This issue/PR affects Ansible v2.7 backport This PR does not target the devel branch. bug This issue/PR relates to a bug. cloud community_review In order to be merged, this PR must follow the community review workflow. module This issue/PR relates to a module. needs_triage Needs a first human triage before being processed. openstack python3 support:community This issue/PR relates to code supported by the Ansible community. labels Nov 5, 2018
@bcoca bcoca changed the title Backport/2.7/45775 fix missing exceptions openstack modules Nov 5, 2018
@bcoca bcoca removed the needs_triage Needs a first human triage before being processed. label Nov 5, 2018
@abadger abadger merged commit 953568e into ansible:stable-2.7 Nov 5, 2018
@abadger
Copy link
Contributor

abadger commented Nov 5, 2018

Merged for the 2.7.2 release.

@satishdotpatel
Copy link

I am getting this error during openstack-ansible run where i am not using cinder storage. my ansible version is 2.7.9, I have verify also and i do have this patch but still getting error.

fatal: [ostack-infra-2-1_octavia_server_container-d9cb19fb -> localhost]: FAILED! => { "changed": false, "module_stderr": "Traceback (most recent call last):\n File \"/root/.ansible/tmp/ansible-tmp-1561603225.84-168050997064086/AnsiballZ_os_quota.py\", line 113, in <module>\n _ansiballz_main()\n File \"/root/.ansible/tmp/ansible-tmp-1561603225.84-168050997064086/AnsiballZ_os_quota.py\", line 105, in _ansiballz_main\n invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\n File \"/root/.ansible/tmp/ansible-tmp-1561603225.84-168050997064086/AnsiballZ_os_quota.py\", line 48, in invoke_module\n imp.load_module('__main__', mod, module, MOD_DESC)\n File \"/tmp/ansible_os_quota_payload_BEb7UH/__main__.py\", line 449, in <module>\n File \"/tmp/ansible_os_quota_payload_BEb7UH/__main__.py\", line 384, in main\n File \"/tmp/ansible_os_quota_payload_BEb7UH/__main__.py\", line 251, in _get_quotas\n File \"/tmp/ansible_os_quota_payload_BEb7UH/__main__.py\", line 234, in _get_volume_quotas\n File \"/opt/ansible-runtime/lib/python2.7/site-packages/openstack/cloud/openstackcloud.py\", line 11530, in get_volume_quotas\n error_message=\"cinder client call failed\")\n File \"/opt/ansible-runtime/lib/python2.7/site-packages/keystoneauth1/adapter.py\", line 375, in get\n return self.request(url, 'GET', **kwargs)\n File \"/opt/ansible-runtime/lib/python2.7/site-packages/openstack/_adapter.py\", line 138, in request\n response = super(ShadeAdapter, self).request(url, method, **kwargs)\n File \"/opt/ansible-runtime/lib/python2.7/site-packages/openstack/_adapter.py\", line 124, in request\n **kwargs)\n File \"/opt/ansible-runtime/lib/python2.7/site-packages/keystoneauth1/adapter.py\", line 237, in request\n return self.session.request(url, method, **kwargs)\n File \"/opt/ansible-runtime/lib/python2.7/site-packages/keystoneauth1/session.py\", line 726, in request\n **endpoint_filter)\n File \"/opt/ansible-runtime/lib/python2.7/site-packages/keystoneauth1/session.py\", line 1139, in get_endpoint\n return auth.get_endpoint(self, **kwargs)\n File \"/opt/ansible-runtime/lib/python2.7/site-packages/keystoneauth1/identity/base.py\", line 380, in get_endpoint\n allow_version_hack=allow_version_hack, **kwargs)\n File \"/opt/ansible-runtime/lib/python2.7/site-packages/keystoneauth1/identity/base.py\", line 279, in get_endpoint_data\n service_name=service_name)\n File \"/opt/ansible-runtime/lib/python2.7/site-packages/keystoneauth1/access/service_catalog.py\", line 462, in endpoint_data_for\n raise exceptions.EndpointNotFound(msg)\nkeystoneauth1.exceptions.catalog.EndpointNotFound: admin endpoint for block-storage service in RegionOne region not found\n", "module_stdout": "", "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error", "rc": 1 }

@ansible ansible locked and limited conversation to collaborators Jul 22, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
affects_2.7 This issue/PR affects Ansible v2.7 backport This PR does not target the devel branch. bug This issue/PR relates to a bug. cloud community_review In order to be merged, this PR must follow the community review workflow. module This issue/PR relates to a module. openstack python3 support:community This issue/PR relates to code supported by the Ansible community.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants