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 bug where ip address is not returned from guest tools #85

Merged
merged 1 commit into from
Jun 5, 2018

Conversation

josh-barker
Copy link

@josh-barker josh-barker commented Jun 4, 2018

Description

There's a bug where the ip address is not returned from the guest tools properly.
This causes the connectivity test to fail, because its trying to connect to ip address nil.

Check List

  • All tests pass.
  • All style checks pass.
  • Functionality includes testing.
  • Functionality has been documented in the README if applicable

@@ -17,12 +17,6 @@ class VmHelper
Timeout::Error, IPAddr::AddressFamilyError
].freeze

# If the IP is true
Copy link
Author

Choose a reason for hiding this comment

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

Removed code as there was only 1 reference to it, in the ip_to_bootstrap method

else
## Check if true available
vm_ip = bootstrap_options[:customization_spec][:ipsettings][:ip] unless vm_helper.ip?
nb_attempts = 0
until @vm_helper.open_port?(vm_ip, @vm_helper.port, 1) || (nb_attempts > (bootstrap_options[:ready_timeout] || 90))
Copy link
Author

Choose a reason for hiding this comment

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

Removed port checking as we're already checking that at the end of the method.

@jjasghar
Copy link

jjasghar commented Jun 4, 2018

Can one of the admins verify this patch?

1 similar comment
@jjasghar
Copy link

jjasghar commented Jun 4, 2018

Can one of the admins verify this patch?

@jjasghar
Copy link

jjasghar commented Jun 4, 2018

ok to test

@jjasghar jjasghar merged commit 8360c95 into chef-boneyard:master Jun 5, 2018
@josh-barker josh-barker deleted the bug/get-boot-ipaddress branch June 12, 2018 23:00
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