When I execute :
# mistral --debug cron-trigger-create echo_flow_cron_2 echo_flow '{"echo_str":"test"}' --first-time '2015-11-17 17:45'
DEBUG (extension) found extension EntryPoint.parse('table = cliff.formatters.table:TableFormatter')
DEBUG (extension) found extension EntryPoint.parse('json = cliff.formatters.json_format:JSONFormatter')
DEBUG (extension) found extension EntryPoint.parse('shell = cliff.formatters.shell:ShellFormatter')
DEBUG (extension) found extension EntryPoint.parse('value = cliff.formatters.value:ValueFormatter')
DEBUG (extension) found extension EntryPoint.parse('yaml = cliff.formatters.yaml_format:YAMLFormatter')
DEBUG (httpclient) HTTP POST http://localhost:8989/v2/cron_triggers 400
ERROR (app) first_execution_time must be at least 1 second in the future.
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/cliff/app.py", line 374, in run_subcommand
result = cmd.run(parsed_args)
File "/usr/lib/python2.7/site-packages/cliff/display.py", line 92, in run
column_names, data = self.take_action(parsed_args)
File "/usr/lib/python2.7/site-packages/mistralclient/commands/v2/cron_triggers.py", line 165, in take_action
parsed_args.count
File "/usr/lib/python2.7/site-packages/mistralclient/api/v2/cron_triggers.py", line 49, in create
return self._create('/cron_triggers', data)
File "/usr/lib/python2.7/site-packages/mistralclient/api/base.py", line 95, in _create
self._raise_api_exception(resp)
File "/usr/lib/python2.7/site-packages/mistralclient/api/base.py", line 143, in _raise_api_exception
error_message=error_data)
APIException: first_execution_time must be at least 1 second in the future.
Traceback (most recent call last):
File "/usr/bin/mistral", line 10, in <module>
sys.exit(main())
File "/usr/lib/python2.7/site-packages/mistralclient/shell.py", line 389, in main
return MistralShell().run(argv)
File "/usr/lib/python2.7/site-packages/cliff/app.py", line 255, in run
result = self.run_subcommand(remainder)
File "/usr/lib/python2.7/site-packages/cliff/app.py", line 374, in run_subcommand
result = cmd.run(parsed_args)
File "/usr/lib/python2.7/site-packages/cliff/display.py", line 92, in run
column_names, data = self.take_action(parsed_args)
File "/usr/lib/python2.7/site-packages/mistralclient/commands/v2/cron_triggers.py", line 165, in take_action
parsed_args.count
File "/usr/lib/python2.7/site-packages/mistralclient/api/v2/cron_triggers.py", line 49, in create
return self._create('/cron_triggers', data)
File "/usr/lib/python2.7/site-packages/mistralclient/api/base.py", line 95, in _create
self._raise_api_exception(resp)
File "/usr/lib/python2.7/site-packages/mistralclient/api/base.py", line 143, in _raise_api_exception
error_message=error_data)
mistralclient.api.base.APIException: first_execution_time must be at least 1 second in the future.
But the time I executed is 2015-11-17 17:44. And when I added 2 minutes to first-time. It succeed.
Change abandoned by wangzhh (<email address hidden>) on branch: master /review. openstack. org/247944
Review: https:/