cron-trigger-create failed.

Bug #1516953 reported by wangzhh
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mistral
Fix Released
Medium
wangzhh

Bug Description

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.

Changed in mistral:
milestone: none → mitaka-1
Changed in mistral:
status: New → In Progress
importance: Undecided → Medium
assignee: nobody → Nikolay Makhotkin (nmakhotkin)
assignee: Nikolay Makhotkin (nmakhotkin) → wangzhh (wangzhh)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on mistral (master)

Change abandoned by wangzhh (<email address hidden>) on branch: master
Review: https://review.openstack.org/247944

Changed in mistral:
milestone: mitaka-1 → mitaka-2
Revision history for this message
Lingxian Kong (kong) wrote :
Changed in mistral:
status: In Progress → Fix Committed
Changed in mistral:
status: Fix Committed → Fix Released
Changed in mistral:
milestone: mitaka-2 → 2.0.0
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.