Skip to content

mgr/cephadm: check for events key before accessing it#46897

Merged
adk3798 merged 1 commit intoceph:mainfrom
rkachach:fix_issue_55808
Jul 16, 2022
Merged

mgr/cephadm: check for events key before accessing it#46897
adk3798 merged 1 commit intoceph:mainfrom
rkachach:fix_issue_55808

Conversation

@rkachach
Copy link
Contributor

This is an attempt to fix the issue. Current code assumes that events key always exists which is not correct as this key is optional on the Daemon description and it's only populated once the first daemon event occurs. For example, after a mgr fail over this key doesn't exist. I'm also increasing the timeout to 3 min instead of 2 min as nfs daemon sometimes could take more than 2 min to get up&running (after a mgr fail over).

Fixes: https://tracker.ceph.com/issues/55808
Signed-off-by: Redouane Kachach rkachach@redhat.com

Contribution Guidelines

Checklist

  • Tracker (select at least one)
    • References tracker ticket
    • Very recent bug; references commit where it was introduced
    • New feature (ticket optional)
    • Doc update (no ticket needed)
    • Code cleanup (no ticket needed)
  • Component impact
    • Affects Dashboard, opened tracker ticket
    • Affects Orchestrator, opened tracker ticket
    • No impact that needs to be tracked
  • Documentation (select at least one)
    • Updates relevant documentation
    • No doc update is appropriate
  • Tests (select at least one)
Show available Jenkins commands
  • jenkins retest this please
  • jenkins test classic perf
  • jenkins test crimson perf
  • jenkins test signed
  • jenkins test make check
  • jenkins test make check arm64
  • jenkins test submodules
  • jenkins test dashboard
  • jenkins test dashboard cephadm
  • jenkins test api
  • jenkins test docs
  • jenkins render docs
  • jenkins test ceph-volume all
  • jenkins test ceph-volume tox
  • jenkins test windows

Fixes: https://tracker.ceph.com/issues/55808

Signed-off-by: Redouane Kachach <rkachach@redhat.com>
@rkachach
Copy link
Contributor Author

jenkins test make check

Copy link
Contributor

@phlogistonjohn phlogistonjohn left a comment

Choose a reason for hiding this comment

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

LGTM

@adk3798
Copy link
Contributor

adk3798 commented Jul 2, 2022

@adk3798
Copy link
Contributor

adk3798 commented Jul 16, 2022

still seeing a lot of failures in the agent/on test_nfs test.

https://pulpito.ceph.com/adking-2022-07-01_21:10:00-orch:cephadm-wip-adk3-testing-2022-06-30-2111-distro-default-smithi/

but it's not failing with the issue in the tracker, so I'm still going to merge this. We'll just also need a fix for the other underlying issue

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

Labels

cephfs Ceph File System nfs tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants