Activity log for bug #1552771

Date Who What changed Old value New value Message
2016-03-03 16:03:09 Goutham Pacha Ravi bug added bug
2016-03-03 16:07:00 Goutham Pacha Ravi description Single alias action does not support non None default values If aliases are used for CLI options, setting 'action=single_alias' is a way to force the CLI user to only use one alias of a particular option. However, when the default value of the option is not None, this method is broken. For example: @cliutils.arg( 'share', metavar='<share>', help='Name or ID of the share to modify.') @cliutils.arg( '--task-state', '--task_state', '--state', metavar='<task_state>', action='single_alias', default='migration_error', help=('Indicate which task state to assign the share. Options include ' 'migration_starting, migration_in_progress, migration_completing, ' 'migration_success, migration_error, migration_cancelled, ' 'migration_driver_in_progress, migration_driver_phase1_done, ' 'data_copying_starting, data_copying_in_progress, ' 'data_copying_completing, data_copying_completed, ' 'data_copying_cancelled, data_copying_error. If no value is ' 'provided, migration_error will be used.')) @api_versions.experimental_api @api_versions.wraps("2.15") def do_reset_task_state(cs, args): """Explicitly update the task state of a share (Experimental).""" share = _find_share(cs, args.share) share.reset_task_state(args.task_state) Execute: manila reset-task-state share_1 --task-state llama error: argument --task-state/--task_state/--state: Only one alias is allowed at a time. There are some aliases being allowed multiple times at this point as a workaround to this bug.
2016-04-11 10:26:33 NidhiMittalHada python-manilaclient: assignee NidhiMittalHada (nidhimittal19)
2016-05-12 09:42:29 NidhiMittalHada python-manilaclient: status New In Progress
2016-05-13 13:35:46 Ben Swartzlander python-manilaclient: importance Undecided High
2016-05-13 13:35:55 Ben Swartzlander python-manilaclient: assignee NidhiMittalHada (nidhimittal19) Valeriy Ponomaryov (vponomaryov)
2016-05-27 14:28:10 OpenStack Infra python-manilaclient: status In Progress Fix Released