There are no checks that service endpoint exist in OpenStack actions

Bug #1422725 reported by Anastasia Kuznetsova
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mistral
Fix Released
Low
Yaroslav Lobankov
Liberty
Fix Released
Low
Yaroslav Lobankov

Bug Description

There are heat, cinder, neutron, glance, nova and keystone actions in Mistral. User can call any of them in workflows, but in case of absence one of called services, he will got "list index out of range" error (this error comes from keystone).

Mistral has to handle this situation and checks that called service is available.
https://github.com/stackforge/mistral/blob/master/mistral/utils/openstack/keystone.py#L77 - need to be sure that service_id isn't empty.

summary: - There is no checks that service endpoint is exist in OpenStack actions
+ There are no checks that service endpoint is exist in OpenStack actions
summary: - There are no checks that service endpoint is exist in OpenStack actions
+ There are no checks that service endpoint exist in OpenStack actions
tags: added: low-hanging-fruit
Changed in mistral:
milestone: none → kilo-3
status: New → Confirmed
importance: Undecided → Medium
no longer affects: mistral/kilo
Changed in mistral:
assignee: nobody → Pradeep Kumar Singh (pradeep-singh-u)
assignee: Pradeep Kumar Singh (pradeep-singh-u) → nobody
Ganesh (arianganesh)
Changed in mistral:
assignee: nobody → Ganesh (arianganesh)
Changed in mistral:
status: Confirmed → New
assignee: Ganesh (arianganesh) → nobody
no longer affects: mistral/mitaka
Revision history for this message
Timur Nurlygayanov (tnurlygayanov) wrote :

Yaroslav, could you please fix the issue?

Thank you!

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to mistral (master)

Fix proposed to branch: master
Review: https://review.openstack.org/225250

Changed in mistral:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to mistral (master)

Reviewed: https://review.openstack.org/225250
Committed: https://git.openstack.org/cgit/openstack/mistral/commit/?id=ba5b18c5f5954c1fdfe58f6cd5a7c40ddd514cfe
Submitter: Jenkins
Branch: master

commit ba5b18c5f5954c1fdfe58f6cd5a7c40ddd514cfe
Author: Yaroslav Lobankov <email address hidden>
Date: Fri Sep 18 20:05:20 2015 +0300

    Raise correct exception when a service doesn't exist

    There are heat, cinder, neutron, glance, nova and keystone actions
    in Mistral. We can call any of them in workflows, but in case of
    absence of one of the called services, we will get "list index out
    of range" error. This patch fixes the issue.

    Closes-Bug: #1422725

    Change-Id: I05acb5a27eb82c08b712f9687fc8230b2275ed44

Changed in mistral:
status: In Progress → Fix Committed
Changed in mistral:
milestone: 1.0.0 → none
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.