Bug 1937960
Summary: | Cannot provision VM from image in Azure that has plan info | ||
---|---|---|---|
Product: | Red Hat Satellite | Reporter: | Chris Roberts <chrobert> |
Component: | Documentation | Assignee: | Marie Hornickova <mdolezel> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | |
Severity: | medium | Docs Contact: | |
Priority: | high | ||
Version: | 6.8.0 | CC: | ahumbe, akapse, bbuckingham, csulekha, dmule, dprabhu, dsinglet, hrydmark, joboyer, jpasqual, jyejare, midzik, mjia, mkalyat, mkushwah, oezr, parmstro, sadas, satellite6-bugs, smajumda, swadeley, vijsingh |
Target Milestone: | Unspecified | Keywords: | PrioBumpGSS, PrioBumpQA, Triaged, UserExperience |
Target Release: | Unused | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
URL: | https://projects.theforeman.org/issues/32076 | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2022-06-08 19:19:38 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Chris Roberts
2021-03-11 19:29:00 UTC
Forgot to add Description of problem: If you create an image of a marketplace VM in a shared image gallery that contains plan info from the marketplace, Satellite cannot build the VM because we do not send off the plan info. If you create the VM in the Azure portal it works fine. Comment from customer in the case: I just wanted to check to see if there was any update yet? This is getting critical for us to be able to provision in Azure via Satellite. *** Bug 1992092 has been marked as a duplicate of this bug. *** Upstream bug assigned to chrobert qe_test_coverage+ as this bug is covered in https://github.com/SatelliteQE/robottelo/blob/master/tests/foreman/cli/test_computeresource_azurerm.py#L616 . So it does look like we have plan info in the Azure plugin: app/models/concerns/foreman_azure_rm/vm_extensions/managed_vm.rb: def marketplace_image_plan(image) app/models/concerns/foreman_azure_rm/vm_extensions/managed_vm.rb: image_plan = ComputeModels::PurchasePlan.new app/models/concerns/foreman_azure_rm/vm_extensions/managed_vm.rb: image_plan.publisher = publisher.downcase app/models/concerns/foreman_azure_rm/vm_extensions/managed_vm.rb: image_plan.name = sku.downcase app/models/concerns/foreman_azure_rm/vm_extensions/managed_vm.rb: image_plan.product = offer.downcase app/models/concerns/foreman_azure_rm/vm_extensions/managed_vm.rb: image_plan app/models/concerns/foreman_azure_rm/vm_extensions/managed_vm.rb: vm_params.plan = marketplace_image_plan(vm_hash[:image_id]) I wonder if we just are not using it correctly, it looks like the MSFT SDK also has support for it: azure_sdk/lib/latest/modules/compute_profile_module.rb: ImagePurchasePlan = Azure::Compute::Mgmt::V2019_12_01::Models::ImagePurchasePlan azure_sdk/lib/latest/modules/compute_profile_module.rb: Plan = Azure::Compute::Mgmt::V2020_06_01::Models::Plan azure_sdk/lib/latest/modules/compute_profile_module.rb: PurchasePlan = Azure::Compute::Mgmt::V2020_06_01::Models::PurchasePlan https://samcogan.com/creating-vms-from-a-marketplace-image-that-needs-a-plan Hi Team, We are making progress on this, I got past the error saying vm needs plan info to a new one saying you need to accept the terms and subscriptions before you can use the vm, so I got it to send the plan info over. I am working on this error and syncing up with another engineer who will be helping Monday as he will be helping as well. I will keep you posted as we make more progress, but so far we got past the initial error so we should have a soultion soon. - Chris Roberts Hi Everyone, This issue is resolved with this KCS: https://access.redhat.com/solutions/6961347 If you need further help, please open a support ticket. - Chris Roberts |