This bug has been migrated to another issue tracking site. It has been closed here and may no longer be being monitored.

If you would like to get updates for this issue, or to participate in it, you may do so at Red Hat Issue Tracker .
Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1916846 - Unable to provision OS in Azure when image definition is set to "Specialized"
Summary: Unable to provision OS in Azure when image definition is set to "Specialized"
Keywords:
Status: CLOSED MIGRATED
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Compute Resources - Azure
Version: 6.9.0
Hardware: x86_64
OS: Linux
high
medium
Target Milestone: Unspecified
Assignee: satellite6-bugs
QA Contact: Satellite QE Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-01-15 16:36 UTC by Chris Roberts
Modified: 2024-06-06 00:44 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2024-06-06 00:44:55 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Failed image creation with no version in Azure (146.76 KB, image/png)
2021-02-24 21:07 UTC, Chris Roberts
no flags Details
Azure specialized image with no version (137.34 KB, image/png)
2021-02-24 21:07 UTC, Chris Roberts
no flags Details
Azure specialized image with version (137.57 KB, image/png)
2021-02-24 21:11 UTC, Chris Roberts
no flags Details
Specialized image created in Foreman (151.62 KB, image/png)
2021-02-24 21:11 UTC, Chris Roberts
no flags Details
Specialized VM listed in Foreman (146.81 KB, image/png)
2021-02-24 21:12 UTC, Chris Roberts
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 31656 0 Normal New Unable to provision OS in Azure when image definition is set to "Specialized 2023-07-21 08:14:24 UTC
Github theforeman foreman_azure_rm pull 138 0 None Draft Fixes #31656 - Add support for Specialized Images 2023-08-10 14:47:41 UTC
Red Hat Issue Tracker   SAT-6312 0 None Migrated None 2024-06-06 00:44:53 UTC

Description Chris Roberts 2021-01-15 16:36:41 UTC
Description of problem:
Customer is unable to provision a VM in Azure when the Image OS is set to Specialized. 

Version-Release number of selected component (if applicable):

Red Hat Satellite 6.8
tfm-rubygem-foreman_azure_rm-2.1.2-1.fm2_1.el7sat.noarch


How reproducible:


Steps to Reproduce:
1. Hook up Satellite to Azure
2. Create a shared image gallery
3. Create an image and set it to Specialized
4. Try to build a VM with the Azure compute resource

Traceback:

New error: osProfile is not allowed

Failed to create a compute test_raleigh (Azure Resource Manager) instance testvm.example.com: { "message": "MsRestAzure::AzureOperationError: InvalidParameter: Parameter 'osProfile' is not allowed.", "request": { "base_uri": "https://management.azure.com", "path_template": "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}", "method": "put", "path_params": { "resourceGroupName": "Images-SC", "vmName": "testvm", "subscriptionId": "xxxxxxxxxxxxxxxxxxxxxx" }, "skip_encoding_path_params": null, "query_params": { "api-version": "2019-03-01" }, "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": "50783a49-5407-4559-8528-460227b6dca6" }, "body": "{\"location\":\"southcentralus\",\"properties\":{\"hardwareProfile\":{\"vmSize\":\"Standard_D2s_v4\"},\"storageProfile\":{\"imageReference\":{\"id\":\"/subscriptions/xxxxxxxxxxxxxxxxxxxxxx/resourceGroups/Images-SC/providers/Microsoft.Compute/galleries/RedHat/images/RHEL8\"},\"osDisk\":{\"osType\":\"Linux\",\"name\":\"testvm-osdisk\",\"createOption\":\"FromImage\",\"managedDisk\":{\"storageAccountType\":\"Premium_LRS\"}},\"dataDisks\":[{\"lun\":1,\"name\":\"testvm-data-disk0\",\"createOption\":\"Empty\",\"diskSizeGB\":\"128\",\"managedDisk\":{}}]},\"osProfile\":{\"computerName\":\"testvm\",\"adminUsername\":\"Admin\",\"adminPassword\":\"Redhat1234\",\"linuxConfiguration\":{\"disablePasswordAuthentication\":false,\"ssh\":{\"publicKeys\":[{\"path\":\"/home/admin/.ssh/authorized_keys\",\"keyData\":\"ssh-rsa food\"}]}}},\"networkProfile\":{\"networkInterfaces\":[{\"id\":\"/subscriptions/xxxxxxxxxxxxxxxxxxxxxx/resourceGroups/Images-SC/providers/Microsoft.Network/networkInterfaces/testvm-nic0\",\"properties\":{\"primary\":true}}]}}}", "middlewares": [ [ "MsRest::RetryPolicyMiddleware", { "times": 3, "retry": 0.02 } ], [ "cookie_jar" ] ], "log": null }, "response": { "body": "{\r\n \"error\": {\r\n \"code\": \"InvalidParameter\",\r\n \"message\": \"Parameter 'osProfile' is not allowed.\",\r\n \"target\": \"osProfile\"\r\n }\r\n}", "headers": { "Cache-Control": "no-cache", "Pragma": "no-cache", "Content-Length": "140", "Content-Type": "application/json; charset=utf-8", "Expires": "-1", "x-ms-ratelimit-remaining-resource": "Microsoft.Compute/PutVM3Min;239,Microsoft.Compute/PutVM30Min;1199", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "x-ms-request-id": "7da71ccb-2c9e-4e02-9cdc-00e43989ed4e", "Server": "Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0", "x-ms-ratelimit-remaining-subscription-writes": "1199", "x-ms-correlation-request-id": "6e4b6d36-7559-43e9-8d4c-f7a87196e498", "x-ms-routing-request-id": "WESTUS2:20210114T141741Z:6e4b6d36-7559-43e9-8d4c-f7a87196e498", "X-Content-Type-Options": "nosniff", "Date": "Thu, 14 Jan 2021 14:17:41 GMT" }, "status": 400 } }

Expected results:


Additional info:

Creating an image definition with the "operating system state" defined to generalized it works.

Comment 2 Chris Roberts 2021-02-24 21:07:08 UTC
Created attachment 1759161 [details]
Failed image creation with no version in Azure

Comment 3 Chris Roberts 2021-02-24 21:07:49 UTC
Created attachment 1759162 [details]
Azure specialized image with no version

Comment 4 Chris Roberts 2021-02-24 21:11:06 UTC
Created attachment 1759163 [details]
Azure specialized image with version

Comment 5 Chris Roberts 2021-02-24 21:11:39 UTC
Created attachment 1759164 [details]
Specialized image created in Foreman

Comment 6 Chris Roberts 2021-02-24 21:12:17 UTC
Created attachment 1759165 [details]
Specialized VM listed in Foreman

Comment 7 Chris Roberts 2021-03-03 14:32:40 UTC
Looks like a bug currently with the Azure Ruby SDK:

Opened an issue here:

https://github.com/Azure/azure-sdk-for-ruby/issues/2824

Comment 10 Bryan Kearney 2022-02-17 16:03:59 UTC
Upstream bug assigned to chrobert

Comment 11 Bryan Kearney 2022-02-17 16:04:00 UTC
Upstream bug assigned to chrobert

Comment 14 Eric Helms 2024-06-06 00:44:55 UTC
This BZ has been automatically migrated to the issues.redhat.com Red Hat Issue Tracker. All future work related to this report will be managed there.

Due to differences in account names between systems, some fields were not replicated.  Be sure to add yourself to Jira issue's "Watchers" field to continue receiving updates and add others to the "Need Info From" field to continue requesting information.

To find the migrated issue, look in the "Links" section for a direct link to the new issue location. The issue key will have an icon of 2 footprints next to it, and begin with "SAT-" followed by an integer.  You can also find this issue by visiting https://issues.redhat.com/issues/?jql= and searching the "Bugzilla Bug" field for this BZ's number, e.g. a search like:

"Bugzilla Bug" = 1234567

In the event you have trouble locating or viewing this issue, you can file an issue by sending mail to rh-issues. You can also visit https://access.redhat.com/articles/7032570 for general account information.


Note You need to log in before you can comment on or make changes to this bug.