Revision 96feddae snf-cyclades-app/synnefo/logic/backend.py
b/snf-cyclades-app/synnefo/logic/backend.py | ||
---|---|---|
170 | 170 |
if opcode == 'OP_INSTANCE_CREATE' and status in ('canceled', 'error'): |
171 | 171 |
vm.operstate = 'ERROR' |
172 | 172 |
vm.backendtime = etime |
173 |
# Update state of associated NICs |
|
174 |
vm.nics.all().update(state="ERROR") |
|
173 | 175 |
elif opcode == 'OP_INSTANCE_REMOVE': |
174 | 176 |
# Special case: OP_INSTANCE_REMOVE fails for machines in ERROR, |
175 | 177 |
# when no instance exists at the Ganeti backend. |
Also available in: Unified diff