Bug 1911670
Summary: | redhat.satellite.host fails to deploy a new VM if image_id is not passed in compute attributes | ||
---|---|---|---|
Product: | Red Hat Satellite | Reporter: | Rudnei Bertol Jr. <rbertolj> |
Component: | Ansible Collection | Assignee: | Evgeni Golov <egolov> |
Status: | CLOSED ERRATA | QA Contact: | Vladimír Sedmík <vsedmik> |
Severity: | medium | Docs Contact: | |
Priority: | unspecified | ||
Version: | 6.8.0 | CC: | egolov, ehelms, gtaylor |
Target Milestone: | 6.10.0 | Keywords: | Triaged |
Target Release: | Unused | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2021-11-16 14:09: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
Rudnei Bertol Jr.
2020-12-30 16:14:36 UTC
Okay, I think I found the culprit, even tho I am not totally sure how to best fix it. To deploy on Azure, we need to provide a boot image (like 'marketplace://RedHat:RHEL:7-RAW:latest' or similar), but neither the HG nor the Compute Profile does that automatically for us. Now the Ansible module has an "image" param, but setting it doesn't help, as that somehow is not properly translated to Azure. However, setting "compute_attributes: {image_id: 'marketplace://RedHat:RHEL:7-RAW:latest'}" helps. Absolutely nothing we should require our users to do (they should set "image: RHEL7" and the rest should be looked up magically). There is a similar-ish workaround in hammer: https://github.com/theforeman/hammer-cli-foreman/commit/f163dd9fc9a232f711621f81a16752624edd5de7 Successfully deployed an image-based host on Azure without need to provide the 'image_id' (only 'image' was defined in the playbook) Verified at: Satellite 6.10.0 snap 18 ansible-collection-redhat-satellite-2.1.2-1.el7sat.noarch Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (Moderate: Satellite 6.10 Release), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2021:4702 |