-
Notifications
You must be signed in to change notification settings - Fork 898
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 resource ems_ref and ip addresses to virt-v2v options hash #18101
Conversation
36a8531
to
dbb9fc9
Compare
This pull request is not mergeable. Please rebase and repush. |
dbb9fc9
to
e338897
Compare
app/models/conversion_host.rb
Outdated
@@ -8,6 +8,7 @@ class ConversionHost < ApplicationRecord | |||
has_many :active_tasks, -> { where(:state => 'active') }, :class_name => ServiceTemplateTransformationPlanTask, :inverse_of => :conversion_host | |||
delegate :ext_management_system, :to => :resource, :allow_nil => true | |||
delegate :hostname, :to => :resource, :allow_nil => true | |||
delegate :ems_ref, :to => :resource, :allow_nil => true |
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.
You can put these on the same line e.g. delegate :hostname, :ems_ref, :to => .....
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.
Done.
Checked commits fabiendupont/manageiq@262935b~...4340b78 with ruby 2.3.3, rubocop 0.52.1, haml-lint 0.20.0, and yamllint 1.10.0 |
Add resource ems_ref and ip addresses to virt-v2v options hash (cherry picked from commit 88f7d2f) https://bugzilla.redhat.com/show_bug.cgi?id=1634029
Hammer backport details:
|
When build the virt-v2v options hash for OpenStack, the ServiceTemplateTransformationPlanTask needs the
ems_ref
of the conversion host to expose it asosp_server_id
in the options hash. This PR exposes the resourceems_ref
in ConversionHost and enrich the options hash.This PR also adds the IP address to the network mappings in options hash, as it is required to generate the network ports that will be attached to the instance.
Associated RHBZ: https://bugzilla.redhat.com/show_bug.cgi?id=1634029