helm-upload failed with permission denied on controller-1
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
StarlingX |
Fix Released
|
High
|
Angie Wang |
Bug Description
Brief Description
-----------------
application upload with .tgz fail, the upload status shows upload-failed. helm-upload shows adding file under ‘/www/pages/
Severity
--------
Major
Steps to Reproduce
------------------
system application-upload -n hello-kitty -v 1.0 /home/sysadmin/
helm-upload starlingx /home/sysadmin/
TC-name: z_containers/
Expected Behavior
------------------
uploaded success
Actual Behavior
----------------
upload-failed
Reproducibility
---------------
Reproducible
System Configuration
-------
Multi-node system
Lab-name:
IP_1-4
WCP_71-75
WCP_113-121
Branch/Pull Time/Commit
-------
stx master as of 20190620T013000Z
Last Pass
---------
20190613T013000Z
Timestamp/Logs
--------------
[2019-06-20 15:08:15,448] 268 DEBUG MainThread ssh.send :: Send 'system --os-username 'admin' --os-password 'Li69nux*' --os-project-name admin --os-auth-url http://
[2019-06-20 15:08:17,075] 387 DEBUG MainThread ssh.expect :: Output:
+------
| Property | Value |
+------
| active | False |
| app_version | 1.0 |
| created_at | 2019-06-
| manifest_file | manifest.yaml |
| manifest_name | hello-kitty |
| name | hello-kitty |
| progress | None |
| status | uploading |
| updated_at | None |
+------
[2019-06-20 15:08:43,954] 268 DEBUG MainThread ssh.send :: Send 'system --os-username 'admin' --os-password 'Li69nux*' --os-project-name admin --os-auth-url http://
[2019-06-20 15:08:45,480] 387 DEBUG MainThread ssh.expect :: Output:
+------
| application | version | manifest name | manifest file | status | progress |
+------
| hello-kitty | 1.0 | hello-kitty | manifest.yaml | upload-failed | Upload of application hello-kitty (1.0) failed: Command '['helm-upload', 'starlingx', u'/scratch/
| | | | | | tgz']' returned non-zero exit status 1 |
[2019-06-20 15:09:56,587] 268 DEBUG MainThread ssh.send :: Send 'helm-upload starlingx /home/sysadmin/
[2019-06-20 15:09:56,717] 387 DEBUG MainThread ssh.expect :: Output:
cp: cannot create regular file ‘/www/pages/
Problem adding /home/sysadmin/
controller-1:~$
Test Activity
-------------
Sanity
tags: | added: stx.retestneeded |
tags: | added: stx.sanity |
Changed in starlingx: | |
status: | Triaged → In Progress |
The problem is that the ownerships of the helm repos are not right on the controller-1. controller- 1 ~(keystone_admin)]$ ls -ltra /www/pages/ helm_charts/
[sysadmin@
total 16
drwxr-xr-x 4 1877 root 4096 Jun 20 13:44 .
drwxr-xr-x 2 1877 root 4096 Jun 20 13:44 starlingx
drwxr-xr-x 2 1877 root 4096 Jun 20 14:00 stx-platform
drwxr-xr-x. 7 root root 4096 Jun 20 14:24 ..
The ownerships are correct on the controller-0. helm_charts/
controller-0:~$ ls -ltra /www/pages/
total 16
drwxr-xr-x 2 www root 4096 Jun 20 13:58 starlingx
drwxr-xr-x 4 www root 4096 Jun 20 13:58 .
drwxr-xr-x 2 www root 4096 Jun 20 13:58 stx-platform
drwxr-xr-x. 7 root root 4096 Jun 20 13:59 ..
Any application upload actions issued on controller-1 will fail due to the permission denied.
I didn't check further, not sure who/why the ownership was changed on controller-1.