maas 2.9 rc1 machines create error
Bug #1904398 reported by
Bart Vrancken
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
Critical
|
Lee Trager | ||
2.8 |
Fix Released
|
High
|
Lee Trager |
Bug Description
If you manually create a node via the CLI this works, however accourding to --help there is an additional flag to be given:
commission=true
However when using this setting you will get an error:
save() prohibited to prevent data loss due to unsaved related object 'node'.
It does not tell why, but it seems the commision state needs a valid object first?
Related branches
~ltrager/maas:lp1904398_2.8
- MAAS Lander: Approve
- Lee Trager (community): Approve
-
Diff: 148 lines (+59/-14)4 files modifiedsrc/maasserver/api/machines.py (+8/-2)
src/maasserver/api/tests/test_machines.py (+33/-0)
src/maasserver/forms/__init__.py (+13/-11)
src/maasserver/forms/tests/test_machinewithmacaddresses.py (+5/-1)
~ltrager/maas:lp1904398_2.9
- Lee Trager (community): Approve
-
Diff: 144 lines (+58/-11)4 files modifiedsrc/maasserver/api/machines.py (+8/-2)
src/maasserver/api/tests/test_machines.py (+33/-0)
src/maasserver/forms/__init__.py (+12/-8)
src/maasserver/forms/tests/test_machinewithmacaddresses.py (+5/-1)
~ltrager/maas:lp1904398
- Adam Collard (community): Approve
- MAAS Lander: Approve
-
Diff: 144 lines (+58/-11)4 files modifiedsrc/maasserver/api/machines.py (+8/-2)
src/maasserver/api/tests/test_machines.py (+33/-0)
src/maasserver/forms/__init__.py (+12/-8)
src/maasserver/forms/tests/test_machinewithmacaddresses.py (+5/-1)
tags: | added: ui |
tags: | removed: ui |
Changed in maas: | |
assignee: | nobody → Lee Trager (ltrager) |
Changed in maas: | |
status: | Triaged → In Progress |
Changed in maas: | |
status: | In Progress → Fix Committed |
Changed in maas: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
I can reproduce this. Looking at the code its not clear why this is occurring though. The Node is saved right before the ScriptSet is created which triggers this bug.