Backup & Restore: Backup fail running ansible playbook - fail on pre-backup action for nginx-ingress-controller
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
StarlingX |
Fix Released
|
High
|
Thiago Paiva Brito |
Bug Description
Brief Description
-----------------
Ansible backup bootstrap failed.
Severity
--------
Critical
Steps to Reproduce
------------------
Install StarlingX
Run the ansible backup playbook
Expected Behavior
------------------
Backup should proceed successfully.
Actual Behavior
----------------
Ansible Backup bootstrap fails.
Reproducibility
---------------
5/5 (100%)
System Configuration
-------
SX, DX, STD
Timestamp/Logs
--------------
{code:java}
TASK [backup/
Tuesday 07 June 2022 01:49:33 +0000 (0:00:02.176) 0:00:13.643 **********
fatal: [localhost]: FAILED! => changed=false
msg: |-
Pre-backup action for application nginx-ingress-
Tuesday 07 June 2022 01:49:33 +0000 (0:00:00.046) 0:00:13.689 **********
fatal: [localhost]: FAILED! => changed=true
cmd:
- /usr/bin/
- notify
- post-backup-action
- failure
delta: '0:00:03.032648'
end: '2022-06-07 01:49:36.311321'
msg: non-zero return code
rc: 1
start: '2022-06-07 01:49:33.278673'
stderr: nginx-ingress-
stderr_lines:
- nginx-ingress-
stdout: |-
sysinv 2022-06-07 01:49:35.128 281226 INFO sysinv.
sysinv 2022-06-07 01:49:35.205 281226 ERROR sysinv.cmd.utils [-] Operation 'post-backup-
stdout_lines: <omitted> {code}
Test Activity
-------------
Regression Testing
Workaround
----------
Do:
{code:java}
sudo sed -i 's/def _get_webhook_
sudo sm-restart service sysinv-conductor
sudo sm-restart service sysinv-inv
{code}
Then run again the playbook. Note that this workaround skips the backup of webhooks for nginx:
Changed in starlingx: | |
status: | New → In Progress |
Changed in starlingx: | |
assignee: | nobody → Thiago Paiva Brito (outbrito) |
Changed in starlingx: | |
importance: | Undecided → High |
tags: | added: stx.7.0 stx.update |
Reviewed: https:/ /review. opendev. org/c/starlingx /config/ +/845372 /opendev. org/starlingx/ config/ commit/ d68f2d641a730b6 1a1113e06eb5cae 5a21685170
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit d68f2d641a730b6 1a1113e06eb5cae 5a21685170
Author: Thiago Brito <email address hidden>
Date: Fri Jun 10 14:32:07 2022 -0300
Improve KubeOperator. list_custom_ resources( )
This commit extends the capabilities of list_custom_ resources( ) to send
out other parameters that may be used with the CustomResource API such
as:
- pretty
- label_selector
- resource_version
- watch
Partial-Bug: 1978346
Signed-off-by: Thiago Brito <email address hidden> db0718a0fea5300 b54b1135ef3
Change-Id: I8cb9fbb42865bf