Debian: Unable to copy branding tarball to /opt/branding even with sudo permissions
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
StarlingX |
Fix Released
|
Low
|
Takamasa Takenaka |
Bug Description
Brief Description
-----------------
The manual test indicates to copy a branding tarball to the /opt/branding location
The user can not copy to this location even with sudo permissions
Severity
--------
Minor
Steps to Reproduce
------------------
sysadmin@
Password:
cp: cannot create regular file '/opt/branding/
Expected Behavior
------------------
User should be able to copy the tarball to that location as per horizon branding document
Actual Behavior
----------------
User cannot copy the tarball.
cp: cannot create regular file '/opt/branding/
Reproducibility
---------------
Reproducible (100%)
System Configuration
-------
Controller in any system
Branch/Pull Time/Commit
-------
master
Last Pass
---------
In Centos
New for Debian
Timestamp/Logs
--------------
N/A
Test Activity
-------------
Feature Testing, Regression Testing
Workaround
----------
sysadmin@
sysadmin@
sysadmin@
sysadmin@
test_branding.tgz
Changed in starlingx: | |
assignee: | nobody → Takamasa Takenaka (ttakenak) |
status: | New → In Progress |
tags: | added: stx.gui |
Changed in starlingx: | |
importance: | Undecided → Low |
tags: | added: stx.8.0 |
Reviewed: https:/ /review. opendev. org/c/starlingx /ansible- playbooks/ +/864061 /opendev. org/starlingx/ ansible- playbooks/ commit/ edf85ae8f0f8ca5 fce4e2b08d794b1 1752d813d5
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit edf85ae8f0f8ca5 fce4e2b08d794b1 1752d813d5
Author: Takamasa Takenaka <email address hidden>
Date: Tue Nov 8 13:10:05 2022 -0300
Add "/" at the end of path to recognize as directory
Currently /opt/branding is checked with stat. /review. opendev. org/c/starlingx /tools/ +/863560
The patch: https:/
will replace with the symbolic file to /var/branding
This stat is evaluated in when condition later with isdir
but it is not recognized as directory.
The fix is added slash at the end of path, so that
it is recognized as a directory.
Test Plan: config/ 22.12/branding
PASS: Place a branding tar in /opt/branding
before running ansible in fresh install.
Run ansible and confirm the branding tar file
is copied to /opt/platform/
Partial-bug: 1996182
Signed-off-by: Takamasa Takenaka <email address hidden> 9768991f5508c26 51099641483
Change-Id: I3cbc72b8cc3f12