segment create and update does not support 'auto_priority' and 'rh_priority' recovery methods

Bug #1713971 reported by Neha Alhat
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-masakariclient
Fix Released
High
Neha Alhat

Bug Description

masakari supports recovery methods('auto', 'reserved_host', 'auto_priority', 'rh_priority')
for segment create and update. But python-masakariclient only allows('auto', 'reserved_host') recovery methods
for segment create and update

Steps to reproduce:

1. create segment using recovery method 'auto_priority'

$ openstack segment create 'test_segment' 'auto_prioriy' 'test_segment'

Output:
usage: openstack segment create [-h] [-f {json,shell,table,value,yaml}]
                                [-c COLUMN] [--max-width <integer>]
                                [--fit-width] [--print-empty] [--noindent]
                                [--prefix PREFIX]
                                [--description <description>]
                                <name> <recovery_method> <service_type>
openstack segment create: error: argument <recovery_method>: invalid choice: u'auto_prioriy' (choose from 'auto', 'reserved_host')

Neha Alhat (nehaalhat)
Changed in python-masakariclient:
assignee: nobody → Neha Alhat (nehaalhat)
tags: added: pike-backport-potential
Changed in python-masakariclient:
status: New → In Progress
Changed in python-masakariclient:
importance: Undecided → High
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-masakariclient (master)

Reviewed: https://review.openstack.org/498351
Committed: https://git.openstack.org/cgit/openstack/python-masakariclient/commit/?id=f36c1c20d2b8a4ecb29b98ae9bc116ec9d28b25e
Submitter: Jenkins
Branch: master

commit f36c1c20d2b8a4ecb29b98ae9bc116ec9d28b25e
Author: nehaalhat <email address hidden>
Date: Wed Aug 16 18:47:46 2017 +0530

    Add support for auto_priority, rh_priority recovery method

    As of now segment can be created with only 'auto', 'reserved_host'
    recovery-methods.

    Added support for rh_priority and auto_priority.

    Closes-Bug: #1713971
    Change-Id: I88e4145d3e38301ce363c65409c646297b50d01a

Changed in python-masakariclient:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-masakariclient (stable/pike)

Fix proposed to branch: stable/pike
Review: https://review.openstack.org/499971

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-masakariclient (stable/pike)

Reviewed: https://review.openstack.org/499971
Committed: https://git.openstack.org/cgit/openstack/python-masakariclient/commit/?id=2af420284bef133bcfd8792cec67f1736041d1ce
Submitter: Jenkins
Branch: stable/pike

commit 2af420284bef133bcfd8792cec67f1736041d1ce
Author: nehaalhat <email address hidden>
Date: Wed Aug 16 18:47:46 2017 +0530

    Add support for auto_priority, rh_priority recovery method

    As of now segment can be created with only 'auto', 'reserved_host'
    recovery-methods.

    Added support for rh_priority and auto_priority.

    Closes-Bug: #1713971
    Change-Id: I88e4145d3e38301ce363c65409c646297b50d01a
    (cherry picked from commit f36c1c20d2b8a4ecb29b98ae9bc116ec9d28b25e)

tags: added: in-stable-pike
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/python-masakariclient 5.0.0

This issue was fixed in the openstack/python-masakariclient 5.0.0 release.

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.