openstack tripleo validator run --validation service-status is broken
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tripleo |
Won't Fix
|
Medium
|
Jiri Podivin |
Bug Description
From yesterdays's master:
(undercloud) [stack@undercloud-0 ~]$ openstack tripleo validator run --validation service-status
Running Validations without Overcloud settings.
WARNING:
Error while creating Ansible artifacts log file.Please check the access rights for /var/log/
Traceback (most recent call last):
File "/usr/lib/
os.
File "/usr/lib64/
makedirs(head, mode, exist_ok)
File "/usr/lib64/
mkdir(name, mode)
PermissionError: [Errno 13] Permission denied: '/var/log/
'NoneType' object is not iterable
(undercloud) [stack@undercloud-0 ~]$ openstack tripleo validator run --static-inventory ~/config-
Running Validations without Overcloud settings.
Error while creating Ansible artifacts log file.Please check the access rights for /var/log/
Traceback (most recent call last):
File "/usr/lib/
os.
File "/usr/lib64/
makedirs(head, mode, exist_ok)
File "/usr/lib64/
mkdir(name, mode)
PermissionError: [Errno 13] Permission denied: '/var/log/
'NoneType' object is not iterable
Changed in tripleo: | |
assignee: | nobody → Jiri Podivin (jpodivin) |
Changed in tripleo: | |
status: | Triaged → Won't Fix |
(undercloud) [stack@undercloud-0 ~]$ sudo ls -la /var/log/ validations 2b07-0867- 13fb-0000000000 06_deploy_ steps_playbook_ 2021-04- 22T20:38: 17.750278Z. json 2b07-13cf- 6690-0000000000 05_playbook_ 2021-04- 22T20:56: 28.567458Z. json 2b07-3987- ac02-0000000000 06_cli- container- image-prepare_ 2021-04- 22T20:56: 16.120298Z. json 2b07-44b4- d974-0000000000 05_playbook_ 2021-04- 22T20:56: 28.588026Z. json 2b07-6024- 9f3d-0000000000 06_cli- container- image-prepare_ 2021-04- 22T20:54: 15.146741Z. json 2b07-9201- 166f-0000000000 05_playbook_ 2021-04- 22T20:56: 28.600166Z. json 2b07-9420- 0a69-0000000000 05_playbook_ 2021-04- 22T20:56: 28.607561Z. json
total 8428
drwxr-xr-x. 2 root root 4096 Apr 22 20:57 .
drwxr-xr-x. 25 root root 4096 Apr 22 20:57 ..
-rw-r--r--. 1 root root 8095563 Apr 22 20:54 5254009c-
-rw-r--r--. 1 root root 85434 Apr 22 20:57 5254009c-
-rw-r--r--. 1 root root 78978 Apr 22 20:57 5254009c-
-rw-r--r--. 1 root root 85446 Apr 22 20:57 5254009c-
-rw-r--r--. 1 root root 98213 Apr 22 20:56 5254009c-
-rw-r--r--. 1 root root 85418 Apr 22 20:57 5254009c-
-rw-r--r--. 1 root root 85456 Apr 22 20:57 5254009c-
So root-owned by default is the issue here. I chowned it to stack: and it sort of works? In the sense that it only finds the undercloud by default?
(undercloud) [stack@undercloud-0 ~]$ sudo chown -R stack: /var/log/ validations/ tripleo_ common. inventory: Stack not found: None. No data found in neither neutron or heat. Only the undercloud will be added to the inventory. ------- ------- ------- ------- ----+-- ------- ------- +------ --+---- ------- -+----- ------- ----+-- ------- ------- ---+--- ------- ---+ ------- ------- ------- ------- ----+-- ------- ------- +------ --+---- ------- -+----- ------- ----+-- ------- ------- ---+--- ------- ---+ e386-4eac- 9c5e-054cc929b7 76 | service-status | PASSED | all | undercloud | | 0:00:04.965 | ------- ------- ------- ------- ----+-- ------- ------- +------ --+---- ------- -+----- ------- ----+-- ------- ------- ---+--- ------- ---+
(undercloud) [stack@undercloud-0 ~]$ openstack tripleo validator run --validation service-status
Running Validations without Overcloud settings.
WARNING:
+------
| UUID | Validations | Status | Host_Group | Status_by_Host | Unreachable_Hosts | Duration |
+------
| 300d821b-
+------
Assuming that I need to forcefully pass an inventory file (which ideally would not be needed), I got this: download/ overcloud/ tripleo- ansible- inventory. yaml --validation service-status ------- ------- ------- ------- ----+-- ------- ------- +------ --+---- ------- -+----- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- +------ ------- ------+ ------- ------+ ------- ------- ------- ------- ----+-- ------- ------- +------ --+---- ------- -+----- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- --...
(undercloud) [stack@undercloud-0 ~]$ openstack tripleo validator run --static-inventory ~/config-
Running Validations without Overcloud settings.
+------
| UUID | Validations | Status | Host_Group | Status_by_Host | Unreachable_Hosts | Duration |
+------