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 2131790 - [BUG] Invalid choice for template_kind listed for os_default_template module
Summary: [BUG] Invalid choice for template_kind listed for os_default_template module
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Ansible Collection
Version: 6.9.0
Hardware: All
OS: Unspecified
unspecified
medium
Target Milestone: 6.11.4
Assignee: Evgeni Golov
QA Contact: Griffin Sullivan
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-10-03 16:05 UTC by Odilon Sousa
Modified: 2022-10-27 13:08 UTC (History)
3 users (show)

Fixed In Version: ansible-collection-redhat-satellite-3.6.0
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 1970132
Environment:
Last Closed: 2022-10-27 13:08:49 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github theforeman foreman-ansible-modules pull 1403 0 None Merged don't document invalid template kind ``ptable`` 2022-10-03 16:05:15 UTC
Red Hat Issue Tracker SAT-12650 0 None None None 2022-10-03 16:05:15 UTC
Red Hat Product Errata RHSA-2022:7242 0 None None None 2022-10-27 13:08:57 UTC

Description Odilon Sousa 2022-10-03 16:05:03 UTC
+++ This bug was initially created as a clone of Bug #1970132 +++

Description of problem:

Accessing https://cloud.redhat.com/ansible/automation-hub/repo/published/redhat/satellite/content/module/os_default_template will show that someone can select "ptable" as one of the template_kind but there are no such template kind available in Satellite or foreman.


This can cause confusion if someone thinks they can use this module to associate a partition_table with an OS.


The only available template kinds are as follows.

# curl -ksu admin:RedHat1! https://`hostname -f`//api/template_kinds | json_reformat | grep name

            "name": "Bootdisk",
            "name": "PXELinux",
            "name": "PXEGrub",
            "name": "PXEGrub2",
            "name": "iPXE",
            "name": "provision",
            "name": "finish",
            "name": "script",
            "name": "user_data",
            "name": "ZTP",
            "name": "POAP",
            "name": "cloud-init",
            "name": "registration",
            "name": "kexec",


Exact same DATA is present in upstream foreman modules as well

--> https://theforeman.github.io/foreman-ansible-modules/v2.1.0/plugins/os_default_template_module.html#parameter-template_kind 


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

Red Hat Satellite Ansible connection [any version]


How reproducible:
Always

Steps to Reproduce:
NA

Actual results:
NA

Expected results:
NA

Additional info:
NA

--- Additional comment from  on 2022-09-09T15:52:30Z 

Verified in 6.12 snap 10

ptable no longer an option for os_default_template template_kind parameter.

Steps to Reproduce:

1) # ansible-doc -M /usr/share/ansible/collections/ansible_collections/redhat/satellite/plugins/modules os_default_template


Results:
= template_kind
        name of the template kind
        (Choices: Bootdisk, cloud-init, finish, host_init_config, iPXE, job_template, kexec, POAP, provision, PXEGrub, PXEGrub2,
        PXELinux, registration, script, user_data, ZTP)
        type: str


Notes:

The initial link to https://cloud.redhat.com/ansible/automation-hub/repo/published/redhat/satellite/content/module/os_default_template no longer shows ptable either.

Comment 2 Griffin Sullivan 2022-10-11 15:15:32 UTC
Verified in 6.11.4 snap 1.0

ptable not listed in template_kind options for os_default_template

Steps to Reproduce:

1) # ansible-doc -M /usr/share/ansible/collections/ansible_collections/redhat/satellite/plugins/modules os_default_template

Results:

= template_kind
        name of the template kind
        (Choices: Bootdisk, cloud-init, finish, host_init_config,
        iPXE, job_template, kexec, POAP, provision, PXEGrub, PXEGrub2,
        PXELinux, registration, script, user_data, ZTP)
        type: str

Comment 7 errata-xmlrpc 2022-10-27 13:08:49 UTC
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 (Important: Satellite 6.11.4 Async Security Update), 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-2022:7242


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