-
Notifications
You must be signed in to change notification settings - Fork 339
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
vmware_content_deploy_ovf_template does not respet resource_pool parameter #1290
Comments
This bug is still available in the latest version of vmware ansible collections. Issue seems to be in
get_resource_pool_by_name function. But that function itself is not available. Hence no activity is happening at that lebel.
Can we get this fixed ? |
@Udayendu This issue is about the
Do you run into this issue with
I think you're wrong there. You see, if this method wouldn't be available I think the module would crash. And, anyway, the method is defined in community.vmware/plugins/module_utils/vmware_rest_client.py Lines 370 to 375 in 1f295a8
|
@Pigi-102 It looks like the module searches for the resource pool only if both community.vmware/plugins/modules/vmware_content_deploy_ovf_template.py Lines 262 to 264 in 1f295a8
Could you please try to deploy to a specific host in the cluster? I'd like to see what happens in this case. It would help me to fix this. |
@n3pjk Could you have a look at this? You've been the last one to work on this module, so I thought you might be interested. |
Sure thing! I don't use resource pools since they're evil, but I'll have a look.
Sent from my Verizon, Samsung Galaxy smartphone
Get Outlook for Android<https://aka.ms/AAb9ysg>
…________________________________
From: Mario Lenz ***@***.***>
Sent: Saturday, June 11, 2022 11:30:22 AM
To: ansible-collections/community.vmware ***@***.***>
Cc: Paul Knight ***@***.***>; Mention ***@***.***>
Subject: Re: [ansible-collections/community.vmware] vmware_content_deploy_ovf_template does not respet resource_pool parameter (Issue #1290)
@n3pjk<https://github.com/n3pjk> Could you have a look at this? You've been the last one to work on this module, so I thought you might be interested.
—
Reply to this email directly, view it on GitHub<#1290 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AA2LV6YAXZMZ5HAOO6EB5V3VOSWI5ANCNFSM5TQOIZMQ>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Hello, |
Issue is with both the modules. As this bug was already opened, so I though I should include it here. |
@Udayendu I don't think that's necessary. Let's track both issues here. It's possibly the same basic problem because community.vmware/plugins/modules/vmware_content_deploy_template.py Lines 281 to 283 in 1f295a8
Could you please specify both |
So far I was just using the cluster & resource_pool. Never tried to use the host as cluster supposed to do that selection. But I will try and update you by Monday. |
@mariolenz
|
I see the problem. In both modules, cluster and host are in the if clause. I think removing them from the clause should correct the problem. I will submit a PR later today.
Sent from my Verizon, Samsung Galaxy smartphone
Get Outlook for Android<https://aka.ms/AAb9ysg>
…________________________________
From: Udayendu Kar ***@***.***>
Sent: Monday, June 20, 2022 1:57:29 AM
To: ansible-collections/community.vmware ***@***.***>
Cc: Paul Knight ***@***.***>; Mention ***@***.***>
Subject: Re: [ansible-collections/community.vmware] vmware_content_deploy_ovf_template does not respet resource_pool parameter (Issue #1290)
@mariolenz<https://github.com/mariolenz>
I have completed the testing and here is my observation:
* Its able to deploy the vm under resource pool if cluster, resource pool and esxi hosts are selected at a time.
* ESXi server should be 6.7 and higher. Initial I tried on couple of ESXi 6.5 hosts and it failed with a compatibility error message.
—
Reply to this email directly, view it on GitHub<#1290 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AA2LV67FVMCNNNBQ5OE3YT3VQAB4TANCNFSM5TQOIZMQ>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
@Udayendu and @Pigi-102 - please check if PR #1362 resolves your issues. I have corrected the same behavior in both modules. Zuul passed the PR, thanks @mariolenz! Let me know if you still have issues. |
@n3pjk |
@n3pjk, this patch fixed the issue in both the modules. Thanks for the quick fix :) |
ISSUE-1290 Remove cluster host fm Pools SUMMARY Fixes #1290 The two template deployment modules both require cluster and host when attempting to identify a resource pool. I have removed that constraint, as the lookup function defaults cluster and host to None if not provided. ISSUE TYPE Bugfix Pull Request COMPONENT NAME vmware_content_deploy_ovf_template vmware_content_deploy_template ADDITIONAL INFORMATION Reviewed-by: Mario Lenz <[email protected]>
SUMMARY
When creating a VM from an OVF template in a Content Library, no matter what resource_pool you try to configure ( either it does exist or not ) the VM get created in the top level resource pool ( if such thing exist ).
ISSUE TYPE
COMPONENT NAME
vmware_content_deploy_ovf_template
ANSIBLE VERSION
COLLECTION VERSION
CONFIGURATION
OS / ENVIRONMENT
STEPS TO REPRODUCE
Have a vmware environment with some resource pools.
Create a Content Library and upload an ovf
Try to create a VM from this ovf in a specific resource pool
EXPECTED RESULTS
I expepct that the VM would be created in the OCP_TST resource pool
ACTUAL RESULTS
The VM get created in the correct cluster but outside the resource pool
The text was updated successfully, but these errors were encountered: