tag popluation should be done in a post-commit hook

Bug #1579159 reported by LaMont Jones
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MAAS
Fix Released
High
LaMont Jones

Bug Description

Today, when a tag is created (or modified), the work of populating the tag across existing nodes is farmed out to the rack controllers, who then run through and do the actual work. If the rack controller manages to find a node which should have the tag before the region finishes committing the tag to the database, then the node update will fail.

The solution is to always populate_tags from a post-commit hook on Tag.save(), rather than directly from the save() function.

Changed in maas:
status: New → Fix Committed
milestone: none → 2.0.0
importance: Undecided → High
assignee: nobody → LaMont Jones (lamont)
Changed in maas:
status: Fix Committed → Fix Released
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.