workshops icon indicating copy to clipboard operation
workshops copied to clipboard

Control node is instance creation is not idempotent

Open termlen0 opened this issue 6 years ago • 5 comments

Yesterday I ran into an issue where I had to rerun the provisioner with an updated student count. This caused 2 control nodes to be created for previously created student pods. The routers were still idempotent.

termlen0 avatar Aug 23 '18 14:08 termlen0

yeah this is known issue that I should have tracked here, tagging @jmcleroy so he knows we are working on it

IPvSean avatar Aug 23 '18 17:08 IPvSean

Tried removing the exact count attribute from the instances to see if that would resolve the issue without success. Still not seeing why the tagging it getting off as the nodes are being retagged as student1 for instance when you add a second student and so forth.

jmcleroy avatar Aug 28 '18 16:08 jmcleroy

The reason for the issue is due to the use of the index in the subsequent tagging task. That will always start at 0 when we re-run the provisioner causing duplicates.

termlen0 avatar Sep 04 '18 13:09 termlen0

MORE INFO: so the problem description is if you use student_count: 10 then later you want to add two students and do student_count: 12 with the name workshop name it will not add student 11 and student 12 it adds more instances to student1 and student2, we need to use a filter to order the instances when we grab facts

IPvSean avatar Dec 11 '19 14:12 IPvSean

@IPvSean ping

cloin avatar Oct 07 '21 15:10 cloin