Failed to run backup ansible-playbook on subcloud
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
StarlingX |
Fix Released
|
Low
|
Unassigned |
Bug Description
Brief Description
-----------------
Backing up on subcloud fails with following log:
$ ansible-playbook /usr/share/
~~ snipped~~
2020-11-26 11:56:45,674 p=3980323 u=sysadmin | TASK [backup/
2020-11-26 11:56:45,834 p=3980323 u=sysadmin | fatal: [localhost]: FAILED! => {"changed": true, "cmd": ["slapcat", "-d", "0", "-F", "/etc/openldap/
2020-11-26 11:56:45,841 p=3980323 u=sysadmin | TASK [backup/
2020-11-26 11:56:45,988 p=3980323 u=sysadmin | changed: [localhost]
2020-11-26 11:56:45,993 p=3980323 u=sysadmin | TASK [backup/
2020-11-26 11:56:46,133 p=3980323 u=sysadmin | changed: [localhost]
2020-11-26 11:56:46,138 p=3980323 u=sysadmin | TASK [backup/
2020-11-26 11:56:46,251 p=3980323 u=sysadmin | changed: [localhost]
2020-11-26 11:56:46,256 p=3980323 u=sysadmin | TASK [backup/
2020-11-26 11:56:46,270 p=3980323 u=sysadmin | PLAY RECAP *******
2020-11-26 11:56:46,271 p=3980323 u=sysadmin | localhost : ok=38 changed=27 unreachable=0 failed=1
---
ldap db back up fails because of none config ldif file.
$ sudo slapcat -d 1 -F /etc/openldap/
Password:
5fbf3501 slapcat init: initiated tool.
5fbf3501 slap_sasl_init: initialized!
5fbf3501 bdb_back_
5fbf3501 bdb_back_
5fbf3501 hdb_back_
5fbf3501 hdb_back_
5fbf3501 mdb_back_
5fbf3501 mdb_back_
5fbf3501 backend_
5fbf3501 ldif_read_file: no entry file "/etc/openldap/
5fbf3501 send_ldap_result: conn=-1 op=0 p=0
slapcat: bad configuration directory!
Severity
--------
Minor
Steps to Reproduce
------------------
1. Run "ansible-playbook /usr/share/
Expected Behavior
------------------
Completed backing up without any failures
Actual Behavior
----------------
Failed on "Backup ldap db" task and not generated backup tar file
Reproducibility
---------------
100% reproducible
System Configuration
-------
Distributed Cloud
-. Central Could - AIO duplex
-. Sub Cloud - Standard with dedicated storages
Branch/Pull Time/Commit
-------
StarlingX r4.0.1
Last Pass
---------
N/A, I have not tried to backup before.
Timestamp/Logs
--------------
2020-11-26 11:56:45,834 p=3980323 u=sysadmin | fatal: [localhost]: FAILED! => {"changed": true, "cmd": ["slapcat", "-d", "0", "-F", "/etc/openldap/
Test Activity
-------------
Feature Testing
Workaround
----------
No Idea but I think LDAP runs on not sub-cloud but central cloud so ldap db back up should be executed only on central cloud if the system is configured as distributed cloud.
information type: | Public → Public Security |
information type: | Public Security → Public |
tags: | added: stx.distcloud stx.update |
Changed in starlingx: | |
status: | Triaged → Fix Released |
tags: | added: stx.9.0 |
tags: |
added: stx.8.0 removed: stx.9.0 |
screening: marking as low priority due to lack of activity