-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix getting status for OS-provisioner #359
Conversation
ba354b1
to
83999d1
Compare
a927461
to
7cae473
Compare
7cae473
to
438cfce
Compare
@@ -822,7 +824,7 @@ def shrink(self, *, resources, remove_hostnames): | |||
return resources | |||
|
|||
def _get_userdata(self): | |||
docker_bip = {"bip": self.meta["docker_bip_network"]} | |||
docker_bip = {"bip": self.cluster.metadata.get("docker_bip_network", "10.13.0.1/16")} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if u want to define "10.13.0.1/16" as sane default, please define it in kqueen config base.py
@@ -756,6 +754,10 @@ def deprovision(self, volume_names): | |||
self.c.remove_router_interface(router, port_id=i.id) | |||
time.sleep(2) | |||
self.c.delete_router(router.id) | |||
logger.debug("Router {0} has been deleted".format(self.stack_name)) | |||
if "resources" not in self.cluster.metadata: | |||
# Deployment failed before instance spawning |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
logging? exception?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
exception was raised while provisioning, in that case we are handling deprovision of failed deployment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok, agree
9760d5c
to
7e3aa7b
Compare
* Also add some improvements to deprovision * Move docker bip setting to config (redefine it only at Mirantis demo config)
7e3aa7b
to
c5dbf59
Compare
No description provided.