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

Add thumbprint_sha1 method to host_esx #328

Merged
merged 2 commits into from Oct 4, 2018
Merged

Add thumbprint_sha1 method to host_esx #328

merged 2 commits into from Oct 4, 2018

Conversation

ghost
Copy link

@ghost ghost commented Oct 4, 2018

For VM migration, we need the thumbprint of the ESX host where the VM resides (vm.host). This PR adds a method named thumbprint_sha1 that returns the needed fingerprint.

Required by: ManageIQ/manageiq#18033

Associated RHBZ: https://bugzilla.redhat.com/show_bug.cgi?id=1634029

@agrare agrare self-assigned this Oct 4, 2018
@@ -177,4 +177,8 @@ def refresh_advanced_settings
def self.display_name(number = 1)
n_('Host (Vmware)', 'Hosts (Vmware)', number)
end

def thumbprint_sha1
ESXThumbPrint.new(ipaddress, authentication_userid, authentication_password).to_sha1
Copy link
Member

@agrare agrare Oct 4, 2018

Choose a reason for hiding this comment

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

Probably need to require VMwareWebService/esx_thumb_print right above this`

@ghost
Copy link
Author

ghost commented Oct 4, 2018

@miq-bot add-label enhancement, transformation

@agrare agrare merged commit 28737cf into ManageIQ:master Oct 4, 2018
agrare added a commit that referenced this pull request Oct 4, 2018
@agrare agrare added this to the Sprint 96 Ending Oct 8, 2018 milestone Oct 4, 2018
@ghost ghost deleted the add_thumbprint_for_host_esx branch October 4, 2018 13:48
simaishi pushed a commit that referenced this pull request Oct 4, 2018
Add thumbprint_sha1 method to host_esx

(cherry picked from commit a649de7)
@simaishi
Copy link
Contributor

simaishi commented Oct 4, 2018

Hammer backport details:

$ git log -1
commit 82d3aa15d6c542e7f295bcbd67ea4f46d0b381f1
Author: Adam Grare <agrare@redhat.com>
Date:   Thu Oct 4 09:36:18 2018 -0400

    Merge pull request #328 from fdupont-redhat/add_thumbprint_for_host_esx
    
    Add thumbprint_sha1 method to host_esx
    
    (cherry picked from commit a649de7df2fd390af17359b8f15dc292cbc9625e)

@miq-bot
Copy link
Member

miq-bot commented Oct 4, 2018

@fdupont-redhat Cannot apply the following label because they are not recognized: transformation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants