Skip to content

qa/tasks/cephadm.py: add ceph logs directory in job's info.yaml#36738

Merged
sebastian-philipp merged 1 commit intoceph:masterfrom
shraddhaag:cephadm-archive-logs
Aug 25, 2020
Merged

qa/tasks/cephadm.py: add ceph logs directory in job's info.yaml#36738
sebastian-philipp merged 1 commit intoceph:masterfrom
shraddhaag:cephadm-archive-logs

Conversation

@shraddhaag
Copy link
Contributor

This PR adds the file path of ceph log directories to the job's
info.yaml log file. The motivation behind this is, in case of job
timeout, the logs would still be tranferred to teuthology host
before nuking test machines using these ceph log directory paths in
job's info.yaml log file.

Signed-off-by: Shraddha Agrawal shraddha.agrawal000@gmail.com

related: #1546

This commit adds the file path of ceph log directories to the job's
info.yaml log file. The motivation behind this is, in case of job
timeout, the logs would still be tranferred to teuthology host
before nuking test machines using these ceph log directory paths in
job's info.yaml log file.

Signed-off-by: Shraddha Agrawal <shraddha.agrawal000@gmail.com>
@shraddhaag shraddhaag requested a review from a team as a code owner August 20, 2020 13:27
@shraddhaag shraddhaag changed the title qa/tasks/cephadm.py: add ceph logs directory in job's info.yaml [WIP] qa/tasks/cephadm.py: add ceph logs directory in job's info.yaml Aug 20, 2020
@shraddhaag shraddhaag changed the title [WIP] qa/tasks/cephadm.py: add ceph logs directory in job's info.yaml qa/tasks/cephadm.py: add ceph logs directory in job's info.yaml Aug 20, 2020
@shraddhaag
Copy link
Contributor Author

Tests performed:

  • Test on main teuthology lab: link
  • Test archiving log dirs in case of job timeout on dev teuthology lab: link

@sebastian-philipp
Copy link
Contributor

@jdurgin or @yuriw or @tchaikov . This is beyond me. I need anyone of you to review this.

@sebastian-philipp
Copy link
Contributor

just fyi, we have

def ceph_log(ctx, config):
. might be related

@sebastian-philipp sebastian-philipp added the wip-swagner-testing My Teuthology tests label Aug 21, 2020
Copy link
Member

@jdurgin jdurgin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good, as you suggest we can extract to a separate function once the teuthology PR merges

@sebastian-philipp
Copy link
Contributor

pass: https://pulpito.ceph.com/swagner-2020-08-25_11:21:05-rados:cephadm-wip-swagner-testing-2020-08-25-1023-distro-basic-smithi/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants