Bug 2203747 - Running cephadm-distribute-ssh-key.yml will require ansible.posix collection package downstream
Summary: Running cephadm-distribute-ssh-key.yml will require ansible.posix collection ...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Ceph Storage
Classification: Red Hat Storage
Component: Build
Version: 6.1
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
: 6.1
Assignee: Ken Dreyer (Red Hat)
QA Contact: Aditya Ramteke
URL:
Whiteboard:
Depends On:
Blocks: 2127116
TreeView+ depends on / blocked
 
Reported: 2023-05-15 07:26 UTC by Aditya Ramteke
Modified: 2023-06-15 09:17 UTC (History)
2 users (show)

Fixed In Version: cephadm-ansible-2.15.0-1.el9cp
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-06-15 09:17:24 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github ceph cephadm-ansible pull 227 0 None open rpm: require ansible-posix collection package 2023-05-15 20:28:53 UTC
Red Hat Issue Tracker RHCEPH-6658 0 None None None 2023-05-15 07:27:59 UTC
Red Hat Product Errata RHSA-2023:3623 0 None None None 2023-06-15 09:17:46 UTC

Description Aditya Ramteke 2023-05-15 07:26:32 UTC
Description of problem:

ansible-playbook -i hosts cephadm-distribute-ssh-key.yml -e cephadm_ssh_user=cephuser -e admin_node=ceph-custom-images-g9kr1f-node1-installer
[DEPRECATION WARNING]: [defaults]callback_whitelist option, normalizing names to new standard, use callbacks_enabled 
instead. This feature will be removed from ansible-core in version 2.15. Deprecation warnings can be disabled by 
setting deprecation_warnings=False in ansible.cfg.
ERROR! couldn't resolve module/action 'authorized_key'. This often indicates a misspelling, missing collection, or incorrect module path.

The error appears to be in '/usr/share/cephadm-ansible/cephadm-distribute-ssh-key.yml': line 64, column 7, but may
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:


    - name: allow ssh public key for {{ cephadm_ssh_user | default('root') }} account
      ^ here
We could be wrong, but this one looks like it might be an issue with
missing quotes. Always quote template expression brackets when they
start a value. For instance:

    with_items:
      - {{ foo }}

Should be written as:

    with_items:
      - "{{ foo }}"



Running cephadm-distribute-ssh-key.yml will require ansible.posix collection package downstream.

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


How reproducible:
Always


Actual results:
Playbook is falling with following error. 
    with_items:
      - {{ foo }}

Expected results:
Playbook should successfully.

Comment 7 errata-xmlrpc 2023-06-15 09:17:24 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 (Moderate: Red Hat Ceph Storage 6.1 security and bug fix 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-2023:3623


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