Bug 2055416
Summary: | redhat.satellite.content_upload ansible module with unexpected src parameter behavior | ||
---|---|---|---|
Product: | Red Hat Satellite | Reporter: | Dan Kolepp <dkolepp> |
Component: | Ansible Collection | Assignee: | Evgeni Golov <egolov> |
Status: | CLOSED ERRATA | QA Contact: | Griffin Sullivan <gsulliva> |
Severity: | medium | Docs Contact: | |
Priority: | unspecified | ||
Version: | 6.9.8 | CC: | egolov |
Target Milestone: | 6.12.0 | Keywords: | Triaged |
Target Release: | Unused | ||
Hardware: | Unspecified | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | ansible-collection-redhat-satellite-3.3.0 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2022-11-16 13:33:27 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
Dan Kolepp
2022-02-16 21:20:16 UTC
The src points to whatever machine you're running the module against. So if youre playbook says "hosts: localhsot", it will be localhost, if your playbook says "hosts: satellite.example.com" it will be satellite.example.com This is *unexpected* behavior in my opinion - based on other standard/common modules. For other modules, there is a `remote_src` option to indicate that the "src" is located remotely, and not on the controller. If this is the case - I would state this explicitly in the documentation. Right now, the description says: src: file to upload I would change this to something like: "file to upload, which exists on the host targeted by the task", or provide additional information. Here is the copy module: https://docs.ansible.com/ansible/latest/collections/ansible/builtin/copy_module.html The "src" definition here is "common" for many modules - like "template", etc. Moving to ON_DEV as this is already included in 6.12: ansible-collection-redhat-satellite-3.3.0-1.el8sat.noarch Verified in 6.12.0 snap 3.0 redhat.satellite.content_upload src description is updated. Steps to Reproduce: 1) SSH into Satellite 2) # ansible-doc redhat.satellite.content_upload Expected Result: src description is updated to "File (on the remote/target machine) to upload" Actual Result: src description is updated to "File (on the remote/target machine) to upload" 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.12 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-2022:8506 |