Red Hat Bugzilla – Bug 1027298
[RHEVM-CLI] mismatch between restore snapshot syntax and auto completion
Last modified: 2016-02-10 14:24:11 EST
Description of problem:
auto completion for restore snapshot is:
action snapshot --vm-identifier restore
filling in the missing values, results "error: syntax error"
action snapshot --vm-identifier vmname restore snapid
The working syntax appears to be:
action snapshot snapid restore --vm-identifier vmname. In that syntax the action (restore) is not suggested after snapid, but "--vm-identifier restore" again.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. see above
Getting the right syntax for restoring snapshot requires many tries
Auto completion guides for the correct syntax
this is sounds like regression on one of latest auto-completion manipulations.
michael - bug is flagged for 3.3.z, should probably be fixed?
(In reply to Itamar Heim from comment #5)
> michael - bug is flagged for 3.3.z, should probably be fixed?
currently sdk/cli are flat to 3.3 (no z yet), i think there is no point of
having Z for shell cause it's not like it fixes specific issue for given version
of api/sdk, it just addresses own problem, (also we can ship 220.127.116.11-1 to Z if
we really want), is this an issue?
verified on is28.1:
sdk version : 18.104.22.168.*final-.1
cli version : 22.214.171.124.*final-.1
python version : 2.6.6.final.0
The CLI change the command from:
# action snapshot snapid --vm-identifier MyVm restore
# action snapshot snapid restore --vm-identifier MyVm
This is the first time I see such a behaviour, the auto completion still complete in the wrong order, but the command is fixed during execution
(In reply to Barak Dagan from comment #8)
> verified on is28.1:
> sdk version : 126.96.36.199.*final-.1
> cli version : 188.8.131.52.*final-.1
> python version : 2.6.6.final.0
> The CLI change the command from:
> # action snapshot snapid --vm-identifier MyVm restore
> # action snapshot snapid restore --vm-identifier MyVm
> This is the first time I see such a behaviour, the auto completion still
> complete in the wrong order, but the command is fixed during execution
this is an chicken & egg situation, you can't figure out what actions available
till you specify the context (vm in your case),
now cli is able to recognize such cases and address the syntax at runtime
Closing - RHEV 3.3 Released