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

Added new function - Override OS type #7

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Added new function - Override OS type #7

wants to merge 5 commits into from

Conversation

lazygabe
Copy link

To override, add Tag HyclopsOS_override to the target EC2 instance and use either windows or linux (lcase)

This was due to some Windows machines tagged as 'Platform':None from AWS, hyclops will add them to the linux templates instead.

Signed-off-by: Gabriel Brussa [email protected]

gabe-brussa and others added 3 commits March 11, 2015 11:40
To override, add Tag HyclopsOS_override to the target EC2 instance and use either windows or linux (lcase)

Signed-off-by: Gabriel Brussa <[email protected]>
Removing debugging lines
@@ -233,7 +233,11 @@ def get_assigned_template_ids(self, host):
def adjust_string_length(self, base_string, suffix, max_length):
if len(suffix) == 0:
if len(base_string) > max_length:
return base_string[0:max_length - len("..")] + ".."
#Strip characters in the middle of the string
#Get the desired length of each piece based on the max_length, and the chars we're adding
Copy link
Author

Choose a reason for hiding this comment

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

I found out that when the names are too long, this stripping originally was removing the AWS ID for the name, therefore some names ended up being the same (Ie, auto scaling machines) and causing hyclops to fail and halt.
Changing the way the names are stripped (in the middle instead of the ending) when there is no suffix added fixes the problem.

gbrussa added 2 commits June 4, 2015 17:38
Fixed a horrible, horrible bug
Reverse the order of the NICs so Local is the default
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