Bug #47232
mgr/dashboard/api: print logs when vstart fails
Status:
Pending Backport
Priority:
Normal
Assignee:
Category:
API Tests
Target version:
% Done:
0%
Source:
Tags:
Backport:
nautilus, octopus
Regression:
No
Severity:
3 - minor
Description
Some times the API tests fail and the only output a user gets is:
2020-08-31 14:57:01,212.212 INFO:__main__:Creating cluster with 1 MDS daemons 2020-08-31 14:57:01,212.212 INFO:__main__: tearing down the cluster... 2020-08-31 14:57:01,212.212 INFO:__main__:Running ['../src/stop.sh'] 2020-08-31 14:57:01,922.922 INFO:__main__:Running ['rm', '-rf', './dev', './out'] 2020-08-31 14:57:01,929.929 INFO:__main__:Running ['../src/vstart.sh', '-n', '--nolockdep'] Build step 'Execute shell' marked build as failure Setting status of 6440282a6c01fd79ddc90bda6383e47da2137b3e to FAILURE with url https://jenkins.ceph.com/job/ceph-api/2088/ and message: 'ceph API tests failed ' Using context: ceph API tests Finished: FAILURE
That's because daemon logs are only dumped when the tests have already started, but if the error happens during the start up stage, no feedback is provided.
Related issues
History
#1 Updated by Ernesto Puerta 5 months ago
- Status changed from New to In Progress
- Assignee changed from Laura Paduano to Ernesto Puerta
#2 Updated by Ernesto Puerta 5 months ago
- Status changed from In Progress to Fix Under Review
- Pull request ID set to 36923
#3 Updated by Lenz Grimmer 5 months ago
- Status changed from Fix Under Review to Pending Backport
#4 Updated by Nathan Cutler 5 months ago
- Copied to Backport #47279: nautilus: mgr/dashboard/api: print logs when vstart fails added
#5 Updated by Nathan Cutler 5 months ago
- Copied to Backport #47280: octopus: mgr/dashboard/api: print logs when vstart fails added
#6 Updated by Ernesto Puerta 5 months ago
As a side effect of this, now logs are printed twice in other situations. Need more time to check it.
#7 Updated by Ernesto Puerta 5 months ago
- Copied to Bug #47285: mgr/dashboard/api: fix duplicate logs added