manage_local_ldap_account playbook: Fix error handling in "create-account"

Bug #2024906 reported by Karla Felix
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
StarlingX
New
Undecided
Karla Felix

Bug Description

Brief Description

When running LDAP playbook, manage_local_ldap_account.yml, to create a user account the following error occurs :

TASK [manage-local-ldap-account/create-account : Change LDAP user initial password and create home directory] ***
Thursday 27 April 2023 16:08:29 +0000 (0:00:01.003) 0:00:35.748 ********
fatal: [systemcontroller-0]: FAILED! => changed=true
censored: 'the output has been hidden due to the fact that ''no_log: true'' was specified for this result'

Severity
Minor

Steps to Reproduce

Execute playbook command:

ansible-playbook --inventory secure-inventory --ask-vault-pass --extra-vars='user_id=johnkung mode=create sys_protected=yes' /usr/share/ansible/stx-ansible/playbooks/manage_local_ldap_account.yml

Expected Behavior

Account gets created and there are no errors.

Actual Behavior

Account gets created with the following error that does not seem to affect the actual account functionality.

Reproducibility

100%

System Configuration

AIO-SX and DC system

Load info

SW_VERSION="22.12"
BUILD_TARGET="Host Installer"
BUILD_TYPE="Formal"
BUILD_ID="2023-03-28_18-00-35"
SRC_BUILD_ID="690"

Karla Felix (kkarolin)
Changed in starlingx:
assignee: nobody → Karla Felix (kkarolin)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.