Add a command to make it easier to scale a plan

Bug #1422590 reported by Dougal Matthews
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-tuskarclient
Fix Released
Medium
Marek Aufart

Bug Description

Currently the scale a role in a plan you need to do this:

    tuskar plan-show overcloud | grep "::count" -A 1
    tuskar plan-patch -A compute-1::count=4 $PLAN_ID

We should add a sub command to make this easier, perhaps something like:

    tuskar plan-scale-list $PLAN_ID
    tuskar plan-scale-update compute --count=4 $PLAN_ID

Dougal Matthews (d0ugal)
Changed in python-tuskarclient:
status: New → Triaged
importance: Undecided → Medium
Revision history for this message
Marek Aufart (maufart) wrote :

Would not be better solution when we provide command for listing only needed parameters like below? (which would satisfy also +bug/1422591)

    tuskar plan-show-parameter overcloud count

Revision history for this message
Dougal Matthews (d0ugal) wrote :

@Marek That might work, but I think it would be better to add that to plan-show.

    tuskar plan-show $PLAN_ID --parameters=count

Revision history for this message
Marek Aufart (maufart) wrote :

Currently preffered solution is:

tuskar plan-show-scale $PLAN_ID # this method can be discussed or replaced with more generic show plan parameters

tuskar plan-scale $ROLE_NAME-VERSION --count=$COUNT $PLAN_ID

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

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

Changed in python-tuskarclient:
assignee: nobody → Marek Aufart (maufart)
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-tuskarclient (master)

Reviewed: https://review.openstack.org/160412
Committed: https://git.openstack.org/cgit/openstack/python-tuskarclient/commit/?id=b48fcb0653d40779c44104c91fa66e40000414b5
Submitter: Jenkins
Branch: master

commit b48fcb0653d40779c44104c91fa66e40000414b5
Author: Marek Aufart <email address hidden>
Date: Mon Mar 2 17:32:07 2015 +0100

    Add Plan Scale manage methods

    To make easier scaling a plan from CLI, commands tuskar plan-show-scale and
    plan-scale were added.

    Already existing scaling methods by patching plan's parameters were kept.

    Change-Id: Ib6e83a20cef67540f9aa5af6a2e9908f23d49bb6
    Closes-Bug: #1422590

Changed in python-tuskarclient:
status: In Progress → Fix Committed
Jay Dobies (jdob)
Changed in python-tuskarclient:
status: Fix Committed → Fix Released
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.