Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mgr/cephadm: Add client.admin keyring when upgrading from older version #43149

Merged

Conversation

sebastian-philipp
Copy link
Contributor

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

Copy link
Member

@liewegas liewegas left a comment

Choose a reason for hiding this comment

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

looks reasonable to me!

@sebastian-philipp sebastian-philipp added wip-swagner-testing My Teuthology tests and removed wip-swagner-testing My Teuthology tests labels Sep 13, 2021
src/pybind/mgr/cephadm/migrations.py Outdated Show resolved Hide resolved
src/pybind/mgr/cephadm/tests/test_cephadm.py Outdated Show resolved Hide resolved
src/pybind/mgr/cephadm/tests/test_cephadm.py Show resolved Hide 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

@sebastian-philipp
Copy link
Contributor Author

rebased

@sebastian-philipp
Copy link
Contributor Author

teuthology.exceptions.CommandFailedError: Command failed on smithi016 with status 1: "sudo /home/ubuntu/cephtest/cephadm --image docker.io/ceph/ceph:v16.2.4 shell -c /etc/ceph/ceph.conf -k /etc/ceph/ceph.client.admin.keyring --fsid b99d5e34-46dc-11ec-8c2c-001a4aab830c -- bash -c 'ceph config get mgr mgr/cephadm/migration_current | grep 3'"

@sebastian-philipp
Copy link
Contributor Author

Just saw this also:

2021-11-16T16:51:41.673 INFO:journalctl@ceph.mon.smithi084.smithi084.stdout:Nov 16 16:51:41 smithi084 ceph-mon[105090]: unable to calc client keyring client.admin placement PlacementSpec(label='_admin'): Cannot 
place <ServiceSpec for service_name=mon>: No matching hosts for label _admin
2021-11-16T16:51:41.673 INFO:journalctl@ceph.mon.smithi084.smithi084.stdout:Nov 16 16:51:41 smithi084 ceph-mon[105090]: from='mgr.34104 172.21.15.84:0/2500387284' entity='mgr.smithi084.rrvvbg'
2021-11-16T16:51:41.673 INFO:journalctl@ceph.mon.smithi084.smithi084.stdout:Nov 16 16:51:41 smithi084 ceph-mon[105090]: from='mgr.34104 172.21.15.84:0/2500387284' entity='mgr.smithi084.rrvvbg'
2021-11-16T16:51:41.673 INFO:journalctl@ceph.mon.smithi084.smithi084.stdout:Nov 16 16:51:41 smithi084 ceph-mon[105090]: pgmap v261: 129 pgs: 129 active+clean; 207 MiB data, 906 MiB used, 714 GiB / 715 GiB avail;
 170 B/s rd, 0 op/s
2021-11-16T16:51:42.874 DEBUG:teuthology.orchestra.run.smithi084:> sudo /home/ubuntu/cephtest/cephadm --image docker.io/ceph/ceph:v16.2.5 shell -c /etc/ceph/ceph.conf -k /etc/ceph/ceph.client.admin.keyring --fsi
d 2fe7eeb0-46fb-11ec-8c2c-001a4aab830c -e sha1=d00da0dae00bf2c237888193c6222945bdd44895 -- bash -c 'ceph orch ps'
2021-11-16T16:51:42.900 INFO:journalctl@ceph.mon.smithi084.smithi084.stdout:Nov 16 16:51:42 smithi084 ceph-mon[105090]: pgmap v262: 129 pgs: 129 active+clean; 207 MiB data, 906 MiB used, 714 GiB / 715 GiB avail; 341 B/s rd, 0 op/s
2021-11-16T16:51:43.177 INFO:teuthology.orchestra.run.smithi084.stderr:ERROR: [Errno 2] No such file or directory: '/etc/ceph/ceph.conf'
2021-11-16T16:51:43.195 DEBUG:teuthology.orchestra.run:got remote process result: 1

@github-actions
Copy link

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

@sebastian-philipp
Copy link
Contributor Author

failed: https://pulpito.ceph.com/swagner-2021-11-18_15:21:11-orch:cephadm-wip-swagner-testing-2021-11-18-1159-distro-default-smithi/

2021-11-18T17:16:49.238 DEBUG:teuthology.orchestra.run.smithi073:> sudo /home/ubuntu/cephtest/cephadm --image docker.io/ceph/ceph:v16.2.5 shell -c /etc/ceph/ceph.conf -k /etc/ceph/ceph.client.admin.keyring --fsid f183e858-4890-11ec-8c2c-001a4aab830c -e sha1=80382af1ea5f62daedbd7945c24ea56590dddd99 -- bash -c 'ceph orch ps'
2021-11-18T17:16:49.543 INFO:teuthology.orchestra.run.smithi073.stderr:ERROR: [Errno 2] No such file or directory: '/etc/ceph/ceph.conf'
2021-11-18T17:16:49.561 DEBUG:teuthology.orchestra.run:got remote process result: 1

https://pulpito.ceph.com/swagner-2021-11-18_15:21:11-orch:cephadm-wip-swagner-testing-2021-11-18-1159-distro-default-smithi/6512016

@sebastian-philipp sebastian-philipp removed the wip-swagner-testing My Teuthology tests label Nov 22, 2021
Signed-off-by: Sebastian Wagner <sewagner@redhat.com>
Signed-off-by: Sebastian Wagner <sewagner@redhat.com>
otherwise `ceph orch host rm` will return 0

Signed-off-by: Sebastian Wagner <sewagner@redhat.com>
Signed-off-by: Sebastian Wagner <sewagner@redhat.com>
Signed-off-by: Sebastian Wagner <sewagner@redhat.com>
@sebastian-philipp
Copy link
Contributor Author

@sebastian-philipp
Copy link
Contributor Author

jenkins test api

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants