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

Fixes #12274: Rudder-tests offline #112

Closed
wants to merge 1 commit into from

Conversation

Fdall
Copy link
Contributor

@Fdall Fdall commented Mar 26, 2018

@@ -0,0 +1,5 @@
{
Copy link
Member

Choose a reason for hiding this comment

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

We may not need this one in the repo 😆

@Fdall
Copy link
Contributor Author

Fdall commented Mar 26, 2018

Commit modified

@Fdall Fdall force-pushed the bug_12274/rudder_tests_offline branch from 3847703 to e01185a Compare March 26, 2018 13:28
rtf Outdated
return use_proxy
except socket.error as e:
print("Network unreachable, can only start local already set up vms")
return use_proxy
Copy link
Member

Choose a reason for hiding this comment

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

You removed use_proxy = "" and indented the return

rtf Outdated
@@ -298,7 +301,18 @@ class Vagrant(Host):
def start(self):
""" Setup and run this host """
proxy = have_proxy()
os.system(proxy + "vagrant up " + self.hostid + " --provider="+self.provider)
if (proxy==None):
Copy link
Member

Choose a reason for hiding this comment

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

I'd say this is over engineered, the empty proxy variable is sufficient for all the cases

@Fdall
Copy link
Contributor Author

Fdall commented Mar 26, 2018

Commit modified

@Fdall Fdall force-pushed the bug_12274/rudder_tests_offline branch from e01185a to a62a4f5 Compare March 26, 2018 13:42
rtf
except socket.error as e:
print("Network unreachable, can only start local already set up vms")
use_proxy=""
return use_proxy
Copy link
Member

Choose a reason for hiding this comment

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

duplicate of the lines below

rtf
@@ -298,6 +304,15 @@ class Vagrant(Host):
def start(self):
""" Setup and run this host """
proxy = have_proxy()
if (proxy==""):
command = "vagrant status " + self.hostid
Copy link
Member

Choose a reason for hiding this comment

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

i don't understand what this is for

Copy link
Contributor Author

Choose a reason for hiding this comment

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

When offline we can only try to start a group of machines that are shutdown.
This ensure the requested vms are just in poweroff mode and not in the need to be installed completely.

Copy link
Member

Choose a reason for hiding this comment

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

proxy is not empty only when you are offline
You may use a specific proxy value for this, but doesn't vagrant already tell you this when you just try a vagrant up ?

@peckpeck
Copy link
Member

peckpeck commented Apr 6, 2018

there are conflicts, you need to run rudder-dev rebase

@Fdall
Copy link
Contributor Author

Fdall commented Apr 12, 2018

Will close this PR, it is not a useful feature and it needs some time to merge with 2fc892d

@Fdall Fdall closed this Apr 12, 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
3 participants