-
Notifications
You must be signed in to change notification settings - Fork 165
[1LP][RFR] V2V : Update set_conversion_host_api function #9954
[1LP][RFR] V2V : Update set_conversion_host_api function #9954
Conversation
@nachandr Please check PRT results, I think you have to trigger run again. |
cfme/fixtures/v2v_fixtures.py
Outdated
resource_type = ( | ||
"ManageIQ::Providers::Redhat::InfraManager::Host" | ||
if appliance.version < '5.11' | ||
else "ManageIQ::Providers::Openstack::CloudManager::Vm" |
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.
This looks wrong @nachandr
"ManageIQ::Providers::Openstack::CloudManager::Vm"
Shouldn't it be
"ManageIQ::Providers::Redhat::InfraManager::Vm"
Please test this with UCI and then update the proper command
cfme/fixtures/v2v_fixtures.py
Outdated
if appliance.version < '5.11' | ||
else "ManageIQ::Providers::Openstack::CloudManager::Vm" | ||
) | ||
resource_type = "ManageIQ::Providers::Openstack::CloudManager::Vm" |
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.
resource_type statement twice ??
cfme/fixtures/v2v_fixtures.py
Outdated
@@ -224,7 +229,10 @@ def get_conversion_data(target_provider): | |||
) | |||
private_key = ssh_client.run_command("cat /etc/pki/ovirt-engine/keys/engine_id_rsa").output |
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.
The key needs to be updated too . It is not the same key anymore .. so you will have to pick key according to appliance version 5.10 and 5.11
f751b86
to
4789c9e
Compare
Reviewers, |
I've addressed all the comments . |
cfme/fixtures/v2v_fixtures.py
Outdated
def get_conversion_data(target_provider): | ||
if target_provider.one_of(RHEVMProvider): | ||
def get_conversion_data(appliance, target_provider): | ||
if target_provider.one_of(RHEVMProvider) and appliance.version < '5.11': |
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.
@nachandr : One more change , let's do this instead of checking fro RHEVM twice
if target_provider.one_of(RHEVMProvider):
if appliance.version == '5.11':
code ...for 5.11
else:
code for 5.10
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.
I agree here, this will be a bit more readable.
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.
Making this Required
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.
One required comment and waiting on PRT
cfme/fixtures/v2v_fixtures.py
Outdated
def get_conversion_data(target_provider): | ||
if target_provider.one_of(RHEVMProvider): | ||
def get_conversion_data(appliance, target_provider): | ||
if target_provider.one_of(RHEVMProvider) and appliance.version < '5.11': |
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.
Making this Required
3a55930
to
89065dc
Compare
except KeyError: | ||
pytest.skip("No conversion host on provider") | ||
|
||
elif appliance.version > '5.10': |
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.
Optional : since we are testing for only two versions now , you can just do else
.
I'm investigating the 511 PRT failure , but the failure is not related to the changes addressed through this PR. |
Purpose or Intent
The set_conversion_host_api function needs to be updated since support for UCI hosts for RHV was added in 5.11.4.
PRT Run
{{ pytest: cfme/tests/v2v/test_v2v_smoke.py --use-template-cache --provider-limit 2 --use-provider rhv43 --use-provider vsphere67-ims }}
PRT results:
510 - PASS
511 - Currently failing, but would pass once #9953 is merged