Prestage playbook failed due to non-release type directories in /opt/platform-backup
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
StarlingX |
In Progress
|
Undecided
|
Unassigned |
Bug Description
Brief Description
-----------------
The prestage playbook failed in cleanup task because there's a 'lost+found' directory in /opt/platform-
Severity
--------
Minor
Steps to Reproduce
------------------
Create a non-release type of directory under /opt/platform-
Expected Behavior
------------------
Prestage succeeds
Actual Behavior
----------------
Prestage failed in cleanup task
Reproducibility
---------------
100% reproducible
System Configuration
-------
DC
Branch/Pull Time/Commit
-------
22.12 + commits from feature - "Subcloud install or restore of previous release - 22.12"
Last Pass
---------
N/A
Timestamp/Logs
--------------
TASK [prestage/
Wednesday 14 June 2023 12:30:11 +0000 (0:00:00.752) 0:00:09.963 ********
fatal: [subcloud6]: FAILED! =>
msg: |-
The conditional check 'item.path.
The error appears to be in '/usr/share/
be elsewhere in the file depending on the exact syntax problem.
The offending line appears to be:
- name: Clean up old release(s) (lower than {{ minimum_
^ 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 }}"
Test Activity
-------------
Feature Testing
Workaround
----------
Manually removing the non-release type of directories from /opt/platform-
Fix proposed to branch: master /review. opendev. org/c/starlingx /ansible- playbooks/ +/886530
Review: https:/