Initial execution of parallel engines can be racey
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
watcher |
Won't Fix
|
Undecided
|
Zhai, Edwin |
Bug Description
When running multiple watcher engines in parallel (ie, via automated HA deployment), the initial run can create multiple duplicate Goals and Strategies.
For example:
+------
| UUID | Name | Display name |
+------
| 55211ddd-
| b084a6c7-
| 2ff77cc0-
| 542de4f0-
| f78952c5-
| 6beb2ff1-
| 45a9d181-
| aa619ddd-
+------
This has bad consequences, such as:
2016-07-04 17:22:41.053 1 CRITICAL python-watcher [req-b99b79f4-
2016-07-04 17:22:41.053 1 ERROR python-watcher Traceback (most recent call last):
2016-07-04 17:22:41.053 1 ERROR python-watcher File "/var/lib/
2016-07-04 17:22:41.053 1 ERROR python-watcher sys.exit(main())
2016-07-04 17:22:41.053 1 ERROR python-watcher File "/var/lib/
2016-07-04 17:22:41.053 1 ERROR python-watcher syncer.sync()
2016-07-04 17:22:41.053 1 ERROR python-watcher File "/var/lib/
2016-07-04 17:22:41.053 1 ERROR python-watcher self.strategy_
2016-07-04 17:22:41.053 1 ERROR python-watcher File "/var/lib/
2016-07-04 17:22:41.053 1 ERROR python-watcher strategy.goal_id = objects.
2016-07-04 17:22:41.053 1 ERROR python-watcher File "/var/lib/
2016-07-04 17:22:41.053 1 ERROR python-watcher db_goal = cls.dbapi.
2016-07-04 17:22:41.053 1 ERROR python-watcher File "/var/lib/
2016-07-04 17:22:41.053 1 ERROR python-watcher return self._get_
2016-07-04 17:22:41.053 1 ERROR python-watcher File "/var/lib/
2016-07-04 17:22:41.053 1 ERROR python-watcher fieldname=
2016-07-04 17:22:41.053 1 ERROR python-watcher File "/var/lib/
2016-07-04 17:22:41.053 1 ERROR python-watcher obj = query.one()
2016-07-04 17:22:41.053 1 ERROR python-watcher File "/var/lib/
2016-07-04 17:22:41.053 1 ERROR python-watcher "Multiple rows were found for one()")
2016-07-04 17:22:41.053 1 ERROR python-watcher MultipleResults
2016-07-04 17:22:41.053 1 ERROR python-watcher
Changed in watcher: | |
assignee: | nobody → Zhai, Edwin (edwin-zhai) |
Changed in watcher: | |
milestone: | none → newton-3 |
importance: | Undecided → Medium |
Changed in watcher: | |
status: | In Progress → Won't Fix |
Fix proposed to branch: master /review. openstack. org/339285
Review: https:/