Project

General

Profile

Actions

Bug #48142

closed

rados:cephadm/upgrade/mon_election tests are failing: CapAdd and privileged are mutually exclusive options

Added by Michael Fritch over 3 years ago. Updated almost 3 years ago.

Status:
Resolved
Priority:
Urgent
Assignee:
Category:
teuthology
Target version:
-
% Done:

0%

Source:
Development
Tags:
Backport:
octopus
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

https://pulpito.ceph.com/mgfritch-2020-11-04_22:57:20-rados:cephadm-wip-mgfritch-testing-2020-11-04-1200-distro-basic-smithi/5591020/

Upgrade test enables container cap ptrace using a v15.2.0 ceph image:

2020-11-04T23:19:13.340 INFO:teuthology.orchestra.run.smithi014:> sudo /home/ubuntu/cephtest/cephadm --image docker.io/ceph/ceph:v15.2.0 shell -c /etc/ceph/ceph.conf -k /etc/ceph/ceph.client.admin.keyring --fsid f8ca6492-1ef3-11eb-a2ae-001a4aab830c -- ceph config set mgr mgr/cephadm/allow_ptrace true
...
...
2020-11-04T23:19:54.511 INFO:tasks.cephadm:Adding mon.c on smithi014
2020-11-04T23:19:54.512 INFO:teuthology.orchestra.run.smithi014:> sudo /home/ubuntu/cephtest/cephadm --image docker.io/ceph/ceph:v15.2.0 shell -c /etc/ceph/ceph.conf -k /etc/ceph/ceph.client.admin.keyring --fsid f8ca6492-1ef3-11eb-a2ae-001a4aab830c -- ceph orch daemon add mon 'smithi014:[v2:172.21.15.14:3301,v1:172.21.15.14:6790]=c'

And fails to start due to conflicting CapAdd and privileged options:

2020-11-04T23:20:09.662 INFO:journalctl@ceph.mon.c.smithi014.stdout:Nov 04 23:20:09 smithi014 systemd[1]: ceph-f8ca6492-1ef3-11eb-a2ae-001a4aab830c@mon.c.service: Service RestartSec=10s expired, scheduling restart.
2020-11-04T23:20:09.662 INFO:journalctl@ceph.mon.c.smithi014.stdout:Nov 04 23:20:09 smithi014 systemd[1]: ceph-f8ca6492-1ef3-11eb-a2ae-001a4aab830c@mon.c.service: Scheduled restart job, restart counter is at 1.
2020-11-04T23:20:09.663 INFO:journalctl@ceph.mon.c.smithi014.stdout:Nov 04 23:20:09 smithi014 systemd[1]: Stopped Ceph mon.c for f8ca6492-1ef3-11eb-a2ae-001a4aab830c.
2020-11-04T23:20:09.663 INFO:journalctl@ceph.mon.c.smithi014.stdout:Nov 04 23:20:09 smithi014 systemd[1]: Starting Ceph mon.c for f8ca6492-1ef3-11eb-a2ae-001a4aab830c...
2020-11-04T23:20:09.663 INFO:journalctl@ceph.mon.c.smithi014.stdout:Nov 04 23:20:09 smithi014 podman[2847]: Error: no container with name or ID ceph-f8ca6492-1ef3-11eb-a2ae-001a4aab830c-mon.c found: no such container
2020-11-04T23:20:09.663 INFO:journalctl@ceph.mon.c.smithi014.stdout:Nov 04 23:20:09 smithi014 systemd[1]: Started Ceph mon.c for f8ca6492-1ef3-11eb-a2ae-001a4aab830c.
2020-11-04T23:20:09.663 INFO:journalctl@ceph.mon.c.smithi014.stdout:Nov 04 23:20:09 smithi014 bash[2893]: Error: invalid config provided: CapAdd and privileged are mutually exclusive options
2020-11-04T23:20:09.663 INFO:journalctl@ceph.mon.c.smithi014.stdout:Nov 04 23:20:09 smithi014 systemd[1]: ceph-f8ca6492-1ef3-11eb-a2ae-001a4aab830c@mon.c.service: Main process exited, code=exited, status=125/n/a
2020-11-04T23:20:09.664 INFO:journalctl@ceph.mon.c.smithi014.stdout:Nov 04 23:20:09 smithi014 systemd[1]: ceph-f8ca6492-1ef3-11eb-a2ae-001a4aab830c@mon.c.service: Failed with result 'exit-code'.

Related issues 2 (0 open2 closed)

Related to Orchestrator - Bug #48463: mon.c: Error: invalid config provided: CapAdd and privileged are mutually exclusive optionsDuplicate

Actions
Related to Orchestrator - Bug #48535: QA smoke test: cephadm is removing mgr.yResolvedYuri Weinstein

Actions
Actions

Also available in: Atom PDF