Description of problem:
We currently have three different methods of scaling a Tuskar deployment.
This was added to the unified CLI before the deploy command was merged, so at the time there was no other way to do this. The command is long and confusing as it strictly follows the python-oscplugin guidelines.
openstack overcloud scale stack overcloud overcloud -r Compute-1 -n 2
This method updates the plan and then deploys the plan.
openstack management plan set $PLAN_UUID -S Compute-1=2
openstack overcloud deploy --plan-uuid $PLAN_UUID
This method adds the Heat parameter to the Tuskar plan before sending it to Heat but doesn't actually send these parameters to the Tuskar API. So the changes are not saved and are not visible in the UI. This argument was added for when we deploy the TripleO Heat Templates, which can only be customised by passing parameters like this. Really these arguments don't make sense when deploying a plan, as it should have been planned before deploying.
openstack overcloud deploy --plan-uuid $PLAN_UUID --compute-scale 2
There should be one-- and preferably only one --obvious way to do it.
I would suggest removing option 1. Documenting option 2 and possibly disallowing the arguments to deploy when deploying a plan. Thus, only making option 3 valid when the flag --use-tripleo-heat-templates is passed and Tuskar isn't then used. This applies to all the other flags on the deploy command which are currently:
Nova flavor to use for control nodes.
Nova flavor to use for compute nodes.
Nova flavor to use for ceph storage nodes.
Nova flavor to use for cinder storage nodes.
Nova flavor to use for swift storage nodes.
+1 for removing option 1 (as there is now working more general way)
Change to remove option 1: https://review.gerrithub.io/#/c/237070/
Verified in python-rdomanager-oscplugin-0.0.8-13.el7ost.noarch
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.