Skip to content
This repository has been archived by the owner on May 27, 2024. It is now read-only.

Commit

Permalink
Dev (#209)
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
eKatchko authored Jan 31, 2020
2 parents 3f89767 + d9a83ec commit b43e1ed
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## (2020-01-31)

#### Bug Fixes

* **vm:** also check and set error state ([f1373adf](f1373adf))

## (2020-01-24)

#### Features
Expand Down
5 changes: 5 additions & 0 deletions VirtualMachineService/VirtualMachineHandler.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ class VirtualMachineHandler(Iface):
global active_playbooks
BUILD = "BUILD"
ACTIVE = "ACTIVE"
ERROR = "ERROR"
PREPARE_PLAYBOOK_BUILD = "PREPARE_PLAYBOOK_BUILD"
BUILD_PLAYBOOK = "BUILD_PLAYBOOK"
PLAYBOOK_FAILED = "PLAYBOOK_FAILED"
Expand Down Expand Up @@ -1225,6 +1226,10 @@ def check_server_status(self, openstack_id, diskspace, volume_id):
server = self.get_server(openstack_id)
server.status = "PORT_CLOSED"
return server
elif serv["status"] == self.ERROR:
server = self.get_server(openstack_id)
server.status = self.ERROR
return server
else:
server = self.get_server(openstack_id)
server.status = self.BUILD
Expand Down

0 comments on commit b43e1ed

Please sign in to comment.