-
Notifications
You must be signed in to change notification settings - Fork 4
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
Update ovh flavors #109
Update ovh flavors #109
Conversation
teuthology/openstack/__init__.py
Outdated
if e.returncode == 1: | ||
return None | ||
else: | ||
raise e |
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.
When it was just one line [1] being duplicated it wasn't a big deal. But now that you add this try..except block the amount of code being duplicated increases considerably. Can you split this out into a helper method to eliminate the code duplication?
[1] ips = json.loads(OpenStack().run("ip floating list -f json"))
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.
agree
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.
Other than the code duplication nit, this looks good to me. Needs some basic testing before merge.
1e8e42d
to
3cc921b
Compare
Add s1 flavor to make teuthology working in new regions in OVH Add workaround for floating ip exception for some regions in OVH
3cc921b
to
dd3a62d
Compare
@@ -454,7 +465,7 @@ def __flavor_wrapper(self, min, good, hint, arch): | |||
select = None | |||
if self.get_provider() == 'ovh': | |||
log.debug("Looking for a match among the El Cheapo flavors...") | |||
select = '^vps-ssd-' | |||
select = '^(vps-ssd|s1)-' |
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.
@kshtsk Did you want to reverse the order here?
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.
@smithfarm yes... probably this can be implemented with ECP feature.
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.
@kshtsk Good idea. Then this PR could be closed.
#124 is covering this request |
Add s1 flavor to make teuthology working in new regions in OVH
Add workaround for floating ip exception for some regions in OVH