Project

General

Profile

Actions

Bug #32076

closed

Cannot provision VM from image in Azure that has plan info

Added by Chris Roberts over 3 years ago. Updated about 2 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Windows VM Issues
Target version:
Difficulty:
Triaged:
No
Fixed in Releases:
Found in Releases:

Description

Description of problem:

Version-Release number of selected component (if applicable):
Satellite 6.8
tfm-rubygem-ms_rest_azure-0.11.1-2.el7sat.noarch
tfm-rubygem-foreman_azure_rm-2.1.2-1.fm2_1.el7sat.noarch
tfm-rubygem-azure_mgmt_compute-0.18.7-1.el7sat.noarch
tfm-rubygem-azure_mgmt_network-0.19.0-1.el7sat.noarch
tfm-rubygem-azure_mgmt_storage-0.17.10-1.el7sat.noarch
tfm-rubygem-azure_mgmt_subscriptions-0.18.2-1.el7sat.noarch
tfm-rubygem-hammer_cli_foreman_azure_rm-0.2.0-1.el7sat.noarch
tfm-rubygem-azure_mgmt_resources-0.17.6-1.el7sat.noarch

How reproducible:

Steps to Reproduce:
1. Create Azure Compute Resource and create Image that is mapped to an image in Azure with plan info
2. Try to build a host
3. Error

Actual results:

Failed to create a compute VMAZURE (Azure Resource Manager) instance vm.example.com: { "message": "Long running operation failed with status Failed", "request": { "base_uri": "https://management.azure.com", "path_template": "https://management.azure.com/subscriptions/xxxxxxxxxxxxxxxxxxx/providers/Microsoft.Compute/locations/eastus2/operations/f762f41a-6a64-49ff-ae31-71ee6d23e8ac?api-version=2019-03-01", "method": "get", "path_params": null, "skip_encoding_path_params": null, "query_params": null, "skip_encoding_query_params": null, "headers": { "Content-Type": "application/json; charset=utf-8", "Accept": "application/json", "accept-language": "en-US", "x-ms-client-request-id": "9423959a-e8df-4754-a42e-f25b00a31a1e" }, "body": null, "middlewares": [ [ "MsRest::RetryPolicyMiddleware", { "times": 3, "retry": 0.02 } ], [ "cookie_jar" ] ], "log": null }, "response": { "body": "{\r\n \"startTime\": \"2021-03-02T19:25:01.9399099+00:00\",\r\n \"endTime\": \"2021-03-02T19:25:05.9869235+00:00\",\r\n \"status\": \"Failed\",\r\n \"error\": {\r\n \"code\": \"VMMarketplaceInvalidInput\",\r\n \"message\": \"Creating a virtual machine from Marketplace image or a custom image sourced from a Marketplace image requires Plan information in the request. VM: '/subscriptions/xxxxxxxxxxxxxxxxx/resourceGroups/rg/providers/Microsoft.Compute/virtualMachines/vm'.\"\r\n },\r\n \"name\": \"f762f41a-6a64-49ff-ae31-71ee6d23e8ac\"\r\n}", "headers": { "Cache-Control": "no-cache", "Pragma": "no-cache", "Content-Length": "557", "Content-Type": "application/json; charset=utf-8", "Expires": "-1", "x-ms-ratelimit-remaining-resource": "Microsoft.Compute/GetOperation3Min;14998,Microsoft.Compute/GetOperation30Min;29994", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "x-ms-request-id": "4f9821c6-0ccc-4873-865d-e2db38525911", "Server": "Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0", "x-ms-ratelimit-remaining-subscription-reads": "11999", "x-ms-correlation-request-id": "72c8d906-6624-4c9d-9059-fa816591d3e5", "x-ms-routing-request-id": "CENTRALUS:20210302T192532Z:72c8d906-6624-4c9d-9059-fa816591d3e5", "X-Content-Type-Options": "nosniff", "Date": "Tue, 02 Mar 2021 19:25:32 GMT" }, "status": 200 } }

Expected results:

VM to build without errors

Additional info:

Screenshots are in case of VM params with plan info and shared image gallery info.

We do have support in the Azure Ruby SDK for plans, it looks like we just need to add it in the plugin.

ttps://github.com/Azure/azure-sdk-for-ruby/blob/master/management/azure_mgmt_compute/lib/2019-12-01/generated/azure_mgmt_compute.rb
---
autoload :ImagePurchasePlan, '2019-12-01/generated/azure_mgmt_compute/models/image_purchase_plan.rb'
autoload :PurchasePlan, '2019-12-01/generated/azure_mgmt_compute/models/purchase_plan.rb'


Related issues 1 (0 open1 closed)

Related to AzureRM - Feature #29819: Support RHEL BYOS images on AzureRmClosedAditi PuntambekarActions
Actions #1

Updated by Chris Roberts over 3 years ago

  • Bugzilla link set to 1937960
Actions #2

Updated by Chris Roberts over 3 years ago

  • Category set to Linux VM Issues
  • Target version set to 2.2.2
Actions #3

Updated by Chris Roberts over 3 years ago

  • Category changed from Linux VM Issues to Windows VM Issues
Actions #4

Updated by Chris Roberts over 3 years ago

  • Target version changed from 2.2.2 to Backlog
Actions #5

Updated by Chris Roberts over 3 years ago

  • Target version changed from Backlog to 2.2.2
Actions #6

Updated by Chris Roberts over 3 years ago

  • Target version changed from 2.2.2 to 2.2.3
Actions #7

Updated by Chris Roberts over 3 years ago

  • Target version changed from 2.2.3 to 2.2.4
Actions #8

Updated by Chris Roberts over 3 years ago

  • Target version changed from 2.2.4 to 2.2.5
Actions #9

Updated by Chris Roberts over 3 years ago

  • Target version changed from 2.2.5 to 2.2.6
Actions #10

Updated by Chris Roberts over 2 years ago

  • Assignee deleted (Chris Roberts)
Actions #11

Updated by Ondřej Ezr over 2 years ago

  • Related to Feature #29819: Support RHEL BYOS images on AzureRm added
Actions #12

Updated by Chris Roberts about 2 years ago

  • Status changed from New to Closed
Actions

Also available in: Atom PDF