Skip to content
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

Merged
merged 2 commits into from
Sep 25, 2018
Merged

Fix getting status for OS-provisioner #359

merged 2 commits into from
Sep 25, 2018

Conversation

katyafervent
Copy link
Contributor

No description provided.

@katyafervent katyafervent force-pushed the fix-resizing branch 2 times, most recently from a927461 to 7cae473 Compare September 21, 2018 10:05
@katyafervent katyafervent changed the title Fix resizing Fix getting status for OS-provisioner Sep 21, 2018
@@ -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")}
Copy link
Contributor

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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

logging? exception?

Copy link
Contributor Author

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

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok, agree

@katyafervent katyafervent force-pushed the fix-resizing branch 2 times, most recently from 9760d5c to 7e3aa7b Compare September 24, 2018 10:49
* Also add some improvements to deprovision
* Move docker bip setting to config (redefine it only at Mirantis demo config)
@naumvd95 naumvd95 merged commit 82bfb7d into master Sep 25, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants