Skip to content

qa/tasks/rook: test reapplication of drive groups stored in mgr#43139

Merged
josephsawaya merged 1 commit intoceph:masterfrom
josephsawaya:rook-orch-qa
Dec 17, 2021
Merged

qa/tasks/rook: test reapplication of drive groups stored in mgr#43139
josephsawaya merged 1 commit intoceph:masterfrom
josephsawaya:rook-orch-qa

Conversation

@josephsawaya
Copy link

@josephsawaya josephsawaya commented Sep 10, 2021

This commit adds testing for the drive_group_loop in the Rook orchestrator
that reapplies drive groups that were applied previously.

This test removes an OSD, zaps the underlying device then waits for the OSD
to be re-created by the drive_group_loop.

Signed-off-by: Joseph Sawaya jsawaya@redhat.com

Depends on #43138

Checklist

  • References tracker ticket
  • Updates documentation if necessary
  • Includes tests for new functionality or reproducer for bug

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

@github-actions
Copy link

This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved

@github-actions
Copy link

This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved

@josephsawaya
Copy link
Author

jenkins test make check

@github-actions
Copy link

github-actions bot commented Nov 1, 2021

This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved

@github-actions
Copy link

This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved

@josephsawaya
Copy link
Author

jenkins test make check

@liewegas
Copy link
Member

[root@rook-ceph-tools-744c55f865-9brwh /]# ceph orch osd rm 0 --force
Error cleaning environment after removing OSDs from Ceph cluster CRD: (403)
Reason: Forbidden
HTTP response headers: HTTPHeaderDict({'Audit-Id': '20cad418-a263-4309-9313-ebb7ac722d54', 'Cache-Control': 'no-cache, private', 'Content-Type': 'application/json', 'X-Content-Type-Options': 'nosniff', 'X-Kubernetes-Pf-Flowschema-Uid': '1374b1c1-b92f-403d-b423-53c7829d5151', 'X-Kubernetes-Pf-Prioritylevel-Uid': '7f1ccd3c-4a50-4ac5-a295-b46226ab8f1e', 'Date': 'Mon, 15 Nov 2021 20:34:44 GMT', 'Content-Length': '389'})
HTTP response body: {"kind":"Status","apiVersion":"v1","metadata":{},"status":"Failure","message":"deployments.apps \"rook-ceph-osd-0\" is forbidden: User \"system:serviceaccount:rook-ceph:rook-ceph-mgr\" cannot patch resource \"deployments/scale\" in API group \"apps\" in the namespace \"rook-ceph\"","reason":"Forbidden","details":{"name":"rook-ceph-osd-0","group":"apps","kind":"deployments"},"code":403}

@liewegas
Copy link
Member

status:
  message: No recycler plugin found for the volume!
  phase: Failed

@josephsawaya
Copy link
Author

jenkins test make check

@josephsawaya
Copy link
Author

@sebastian-philipp
Copy link
Contributor

could you please add Fixes: https://tracker.ceph.com/issues/53501 to the commit message?

This commit adds testing for the drive_group_loop in the Rook orchestrator
that reapplies drive groups that were applied previously.

This test removes an OSD, zaps the underlying device then waits for the OSD
to be re-created by the drive_group_loop.

This commit also updates the rook test suite to test v1.7.2 instead of 1.7.0
since `orch device zap` is only supported from v1.7.2 onwards.

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

Signed-off-by: Joseph Sawaya <jsawaya@redhat.com>
@josephsawaya josephsawaya force-pushed the rook-orch-qa branch 2 times, most recently from 0d5dbc1 to 280d735 Compare December 16, 2021 23:31
@josephsawaya
Copy link
Author

@josephsawaya josephsawaya merged commit 8742173 into ceph:master Dec 17, 2021
@ljflores
Copy link
Member

ljflores commented Apr 1, 2022

@josephsawaya this is still happening in pacific. I think this needs PR needs a backport?

@josephsawaya
Copy link
Author

josephsawaya commented Apr 1, 2022

@josephsawaya this is still happening in pacific. I think this needs PR needs a backport?

I'm actually working on a PR to remove the orchestrator commands from the Rook task since the orchestrator is not being maintained at the moment, will mention you in that. So some of the contents of this PR will go missing in master, so the new PR would have to be backported probably.

@ljflores
Copy link
Member

ljflores commented Apr 1, 2022

Thanks @josephsawaya!

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.

5 participants