Description of problem: Adding network via CLI fails on --usages-usage with "error: type "%s" does not exist." Version-Release number of selected component (if applicable): rhevm-cli-3.2.0.3-1.el6ev.noarch How reproducible: Always Steps to Reproduce: 1. Run add network --cluster-identifier '99408929-82cf-4dc7-a532-9d998063fa95' --usages-usage 'vm' --vlan-id 166 --data_center-id '14685314-be2e-48e8-b1b6-2db038a45320' --name 'sw1' --required true --mtu 9000 --stp false --expect 201 Actual results: "error: type "%s" does not exist." Expected results: Should add network as it does when performing the action through API Additional info: 1) 'usages' is missing in auto completion for 'add network'. 2) similar error when adding network adapter to template : 2013-04-08 03:36:30,008 - MainThread? - capabilities - DEBUG - CREATE cli command is: add nic --template-identifier '9d407a54-4d8b-4452-9c9e-c43f0fc1e25d' --name 'nic_templ' --network-u sages-usage 'vm' --network-description 'Management Network' --network-cluster-id '7051edca-c79f-4c85-9ae7-dd20a9b07734' --network-data_center-id 'b5c76c9d-b5b9-45d5-8e1f-53a0f1af42d0' --network-id '620cc728-aaf3-4bc9-9ceb-f880cf6a938a' --expect 201 --correlation_id 510 > /tmp/cli_output.tmp 2013-04-08 03:36:30,397 - MainThread? - nics - ERROR - Failed to create a new element, details: ('Wrong parameters:', u'error: type "%s" does not exist.')
*** This bug has been marked as a duplicate of bug 949642 ***
Trying to add network with --usages-usage 'vm'fails because the usage parameter doesn't exists. Please add this parameter
A little rundown: 1. Currently this really shouldn't work, because indeed add cluster network doesn't include the parameter. This should be fixed with the patch I posted. 2. However, currently the "usages" parameter also causes update network to fail, which should work, so this bug is blocked by https://bugzilla.redhat.com/show_bug.cgi?id=950993. 3. Even when both bugs are fixed, it looks to me like the CLI syntax you used is a little off so it won't work either - you'll have to change the flag to --usages-usage 'usage=vm'.
Just concerning point number 3 of my earlier comment, the syntax was okay, should work as --usages-usage 'vm'.
Verified in rhevm-cli-3.2.0.9-1.el6ev.noarch. The command exists but it's not working properly. Opening the new bug
3.2 has been released