Bug #51945
openqa/workunits/mon/caps.sh: Error: Expected return 13, got 0
0%
Description
2021-07-27T21:11:15.731 INFO:tasks.workunit.client.0.smithi110.stderr:+ ceph auth del client.bar
2021-07-27T21:11:18.771 INFO:teuthology.orchestra.run.smithi077.stdout:{"election_epoch":190,"quorum":[0,1],"quorum_names":["a","b"],"quorum_leader_name":"a","quorum_age":0,"features":{"quorum_con":"4540138297136906239","quorum_mon":["kraken","luminous","mimic","osdmap-prune","nautilus","octopus","pacific","elector-pinging"]},"monmap":{"epoch":1,"fsid":"87a21b71-6325-4bd7-b729-3438c61d134e","modified":"2021-07-27T20:51:11.510526Z","created":"2021-07-27T20:51:11.510526Z","min_mon_release":16,"min_mon_release_name":"pacific","election_strategy":1,"disallowed_leaders: ":"","stretch_mode":false,"features":{"persistent":["kraken","luminous","mimic","osdmap-prune","nautilus","octopus","pacific","elector-pinging"],"optional":[]},"mons":[{"rank":0,"name":"a","public_addrs":{"addrvec":[{"type":"v2","addr":"172.21.15.77:3300","nonce":0},{"type":"v1","addr":"172.21.15.77:6789","nonce":0}]},"addr":"172.21.15.77:6789/0","public_addr":"172.21.15.77:6789/0","priority":0,"weight":0,"crush_location":"{}"},{"rank":1,"name":"b","public_addrs":{"addrvec":[{"type":"v2","addr":"172.21.15.110:3300","nonce":0},{"type":"v1","addr":"172.21.15.110:6789","nonce":0}]},"addr":"172.21.15.110:6789/0","public_addr":"172.21.15.110:6789/0","priority":0,"weight":0,"crush_location":"{}"},{"rank":2,"name":"c","public_addrs":{"addrvec":[{"type":"v2","addr":"172.21.15.77:3301","nonce":0},{"type":"v1","addr":"172.21.15.77:6790","nonce":0}]},"addr":"172.21.15.77:6790/0","public_addr":"172.21.15.77:6790/0","priority":0,"weight":0,"crush_location":"{}"}]}}
2021-07-27T21:11:19.158 INFO:tasks.workunit.client.0.smithi110.stderr:entity client.bar does not exist
2021-07-27T21:11:19.166 INFO:tasks.workunit.client.0.smithi110.stderr:+ expect 'ceph -k /tmp/cephtest-mon-caps-madness.bar.keyring --user bar quorum_status' 13
2021-07-27T21:11:19.166 INFO:tasks.workunit.client.0.smithi110.stderr:+ cmd='ceph -k /tmp/cephtest-mon-caps-madness.bar.keyring --user bar quorum_status'
2021-07-27T21:11:19.167 INFO:tasks.workunit.client.0.smithi110.stderr:+ expected_ret=13
2021-07-27T21:11:19.167 INFO:tasks.workunit.client.0.smithi110.stderr:+ echo ceph -k /tmp/cephtest-mon-caps-madness.bar.keyring --user bar quorum_status
2021-07-27T21:11:19.168 INFO:tasks.workunit.client.0.smithi110.stdout:ceph -k /tmp/cephtest-mon-caps-madness.bar.keyring --user bar quorum_status
2021-07-27T21:11:19.169 INFO:tasks.workunit.client.0.smithi110.stderr:+ eval ceph -k /tmp/cephtest-mon-caps-madness.bar.keyring --user bar quorum_status
2021-07-27T21:11:19.597 INFO:tasks.workunit.client.0.smithi110.stderr:+ ret=0
2021-07-27T21:11:19.597 INFO:tasks.workunit.client.0.smithi110.stderr:+ [[ 0 -ne 13 ]]
2021-07-27T21:11:19.597 INFO:tasks.workunit.client.0.smithi110.stderr:+ echo 'Error: Expected return 13, got 0'
2021-07-27T21:11:19.598 INFO:tasks.workunit.client.0.smithi110.stdout:Error: Expected return 13, got 0
2021-07-27T21:11:19.598 DEBUG:teuthology.orchestra.run:got remote process result: 1
2021-07-27T21:11:19.599 INFO:tasks.workunit.client.0.smithi110.stderr:+ [[ 1 -eq 1 ]]
2021-07-27T21:11:19.599 INFO:tasks.workunit.client.0.smithi110.stderr:+ exit 1
/a/yuriw-2021-07-27_17:19:39-rados-wip-yuri-testing-2021-07-27-0830-pacific-distro-basic-smithi/6297204
RF Updated by Ronen Friedman about 5 years ago
LF Updated by Laura Flores almost 5 years ago
/a/yuriw-2021-12-23_16:50:03-rados-wip-yuri6-testing-2021-12-22-1410-distro-default-smithi/6582413
2021-12-23T18:37:45.913 INFO:tasks.workunit.client.0.smithi117.stderr:entity client.foo does not exist
2021-12-23T18:37:45.919 INFO:tasks.workunit.client.0.smithi117.stderr:+ expect 'ceph -k /tmp/cephtest-mon-caps-madness.foo.keyring --user foo quorum_status' 13
2021-12-23T18:37:45.919 INFO:tasks.workunit.client.0.smithi117.stderr:+ cmd='ceph -k /tmp/cephtest-mon-caps-madness.foo.keyring --user foo quorum_status'
2021-12-23T18:37:45.919 INFO:tasks.workunit.client.0.smithi117.stderr:+ expected_ret=13
2021-12-23T18:37:45.920 INFO:tasks.workunit.client.0.smithi117.stdout:ceph -k /tmp/cephtest-mon-caps-madness.foo.keyring --user foo quorum_status
2021-12-23T18:37:45.920 INFO:tasks.workunit.client.0.smithi117.stderr:+ echo ceph -k /tmp/cephtest-mon-caps-madness.foo.keyring --user foo quorum_status
2021-12-23T18:37:45.920 INFO:tasks.workunit.client.0.smithi117.stderr:+ eval ceph -k /tmp/cephtest-mon-caps-madness.foo.keyring --user foo quorum_status
2021-12-23T18:37:46.438 INFO:tasks.workunit.client.0.smithi117.stderr:+ ret=0
2021-12-23T18:37:46.438 INFO:tasks.workunit.client.0.smithi117.stderr:+ [[ 0 -ne 13 ]]
2021-12-23T18:37:46.439 INFO:tasks.workunit.client.0.smithi117.stdout:Error: Expected return 13, got 0
2021-12-23T18:37:46.440 DEBUG:teuthology.orchestra.run:got remote process result: 1
2021-12-23T18:37:46.440 INFO:tasks.workunit.client.0.smithi117.stderr:+ echo 'Error: Expected return 13, got 0'
2021-12-23T18:37:46.441 INFO:tasks.workunit.client.0.smithi117.stderr:+ [[ 1 -eq 1 ]]
2021-12-23T18:37:46.441 INFO:tasks.workunit.client.0.smithi117.stderr:+ exit 1
LF Updated by Laura Flores over 4 years ago
/a/yuriw-2022-03-11_00:13:58-rados-wip-yuri11-testing-2022-03-10-1443-octopus-distro-default-smithi/6730807
2022-03-11T02:40:17.017 INFO:tasks.workunit.client.0.smithi136.stderr:entity client.foo does not exist
2022-03-11T02:40:17.030 INFO:tasks.workunit.client.0.smithi136.stderr:+ expect 'ceph -k /tmp/cephtest-mon-caps-madness.foo.keyring --user foo quorum_status' 13
2022-03-11T02:40:17.030 INFO:tasks.workunit.client.0.smithi136.stderr:+ cmd='ceph -k /tmp/cephtest-mon-caps-madness.foo.keyring --user foo quorum_status'
2022-03-11T02:40:17.031 INFO:tasks.workunit.client.0.smithi136.stdout:ceph -k /tmp/cephtest-mon-caps-madness.foo.keyring --user foo quorum_status
2022-03-11T02:40:17.031 INFO:tasks.workunit.client.0.smithi136.stderr:+ expected_ret=13
2022-03-11T02:40:17.032 INFO:tasks.workunit.client.0.smithi136.stderr:+ echo ceph -k /tmp/cephtest-mon-caps-madness.foo.keyring --user foo quorum_status
2022-03-11T02:40:17.032 INFO:tasks.workunit.client.0.smithi136.stderr:+ eval ceph -k /tmp/cephtest-mon-caps-madness.foo.keyring --user foo quorum_status
2022-03-11T02:40:25.846 INFO:tasks.mon_thrash:Sending CONT to mon a
2022-03-11T02:40:25.847 INFO:tasks.ceph.mon.a:Sent signal 18
2022-03-11T02:40:25.847 INFO:tasks.mon_thrash.ceph_manager:waiting for quorum size 3
2022-03-11T02:40:25.848 DEBUG:teuthology.orchestra.run.smithi073:> sudo adjust-ulimits ceph-coverage /home/ubuntu/cephtest/archive/coverage timeout 120 ceph --cluster ceph quorum_status
2022-03-11T02:40:26.912 INFO:tasks.workunit.client.0.smithi136.stderr:+ ret=0
2022-03-11T02:40:26.912 INFO:tasks.workunit.client.0.smithi136.stderr:+ [[ 0 -ne 13 ]]
2022-03-11T02:40:26.912 INFO:tasks.workunit.client.0.smithi136.stderr:+ echo 'Error: Expected return 13, got 0'
2022-03-11T02:40:26.913 INFO:tasks.workunit.client.0.smithi136.stdout:Error: Expected return 13, got 0
2022-03-11T02:40:26.914 DEBUG:teuthology.orchestra.run:got remote process result: 1
2022-03-11T02:40:26.914 INFO:tasks.workunit.client.0.smithi136.stderr:+ [[ 1 -eq 1 ]]
2022-03-11T02:40:26.915 INFO:tasks.workunit.client.0.smithi136.stderr:+ exit 1
LF Updated by Laura Flores over 4 years ago
- Backport changed from pacific to quincy,pacific, octopus
LF Updated by Laura Flores over 4 years ago
- Backport changed from quincy,pacific, octopus to quincy, pacific, octopus
RZ Updated by Radoslaw Zarzynski over 4 years ago
- Assignee set to Radoslaw Zarzynski
LF Updated by Laura Flores over 4 years ago
/a/yuriw-2022-06-16_19:58:30-rados-wip-yuri7-testing-2022-06-16-1051-pacific-distro-default-smithi/6882914
RZ Updated by Radoslaw Zarzynski over 4 years ago
The wrong return code is just an echo of a failure with an auth entity deletion:
2022-06-16T22:41:28.399 INFO:tasks.workunit.client.0.smithi103.stderr:+ ceph auth del client.foo 2022-06-16T22:41:39.662 INFO:tasks.workunit.client.0.smithi103.stderr:entity client.foo does not exist
It affects multiple entities in the test:
2022-06-16T22:36:25.463 INFO:tasks.workunit.client.0.smithi103.stderr:+ ceph auth del client.bazar 2022-06-16T22:36:25.931 INFO:tasks.workunit.client.0.smithi103.stderr:entity client.bazar does not exist
RZ Updated by Radoslaw Zarzynski over 4 years ago
} else if ((prefix == "auth del" || prefix == "auth rm") &&
!entity_name.empty()) {
KeyServerData::Incremental auth_inc;
auth_inc.name = entity;
if (!mon.key_server.contains(auth_inc.name)) {
ss << "entity " << entity << " does not exist";
err = 0;
goto done;
}
auth_inc.op = KeyServerData::AUTH_INC_DEL;
push_cephx_inc(auth_inc);
ss << "updated";
getline(ss, rs);
wait_for_finished_proposal(op, new Monitor::C_Command(mon, op, 0, rs,
get_last_committed() + 1));
return true;
}
Why does the key server lacks these entities?
bool KeyServer::contains(const EntityName& name) const
{
std::scoped_lock l{lock};
return data.contains(name);
}
Well, the exact (but not-so-useful) answer is because KeyServerData lacks it:
struct KeyServerData {
version_t version;
/* for each entity */
std::map<EntityName, EntityAuth> secrets;
KeyRing *extra_secrets;
/* for each service type */
version_t rotating_ver;
std::map<uint32_t, RotatingSecrets> rotating_secrets;
explicit KeyServerData(KeyRing *extra)
: version(0),
extra_secrets(extra),
rotating_ver(0) {}
// ...
bool contains(const EntityName& name) const {
return (secrets.find(name) != secrets.end());
}
void clear_secrets() {
version = 0;
secrets.clear();
rotating_ver = 0;
rotating_secrets.clear();
}
void add_auth(const EntityName& name, EntityAuth& auth) {
secrets[name] = auth;
}
void remove_secret(const EntityName& name) {
auto iter = secrets.find(name);
if (iter == secrets.end())
return;
secrets.erase(iter);
}
Is this a monitors' sync issue?
LF Updated by Laura Flores almost 4 years ago
/a/yuriw-2022-11-28_16:10:10-rados-wip-yuri6-testing-2022-11-23-1348-distro-default-smithi/7093588
RZ Updated by Radoslaw Zarzynski almost 4 years ago
- Related to Bug #58305: src/mon/AuthMonitor.cc: FAILED ceph_assert(version > keys_ver) added
KS Updated by Konstantin Shalygin over 2 years ago
- Backport changed from quincy, pacific, octopus to quincy, pacific
KS Updated by Konstantin Shalygin over 2 years ago
- Backport changed from quincy, pacific to quincy
KS Updated by Konstantin Shalygin almost 2 years ago
- Backport deleted (
quincy)
KS Updated by Konstantin Shalygin 6 months ago
- Source set to Q/A
NM Updated by Nitzan Mordechai 5 months ago
- Backport set to tentacle
/a/skanta-2026-06-04_03:42:19-rados-wip-bharath4-testing-2026-06-02-0857-tentacle-distro-default-trial/262609
LF Updated by Laura Flores 5 months ago
Let's monitor. This seems pretty rare, but if the number of instances increase by a lot, we may be dealing with a recent regression.
TS Updated by Tom Sollers about 1 month ago
/a/skanta-2026-10-18_03:25:53-rados-wip-bharath31-testing-20261017.231147-umbrella-distro-default-trial/651842
KS Updated by Kamoltat (Junior) Sirivadhna about 1 month ago
0.193.30:0/3583138743 conn(0x7fa3d0125f20 msgr2=0x7fa3d009dae0 unknown :-1 s=STATE_NONE l=0).mark_down 2026-10-18T05:42:07.825 INFO:teuthology.orchestra.run.trial030.stderr:2026-10-18T05:42:07.822+0000 7fa3d8872640 1 -- 10.20.193.30:0/3583138743 shutdown_connections 2026-10-18T05:42:07.826 INFO:teuthology.orchestra.run.trial030.stderr:2026-10-18T05:42:07.822+0000 7fa3d8872640 1 -- 10.20.193.30:0/3583138743 wait complete. 2026-10-18T05:42:07.832 INFO:tasks.mon_thrash.ceph_manager:quorum is size 9 2026-10-18T05:42:07.832 INFO:tasks.mon_thrash.mon_thrasher:waiting for quorum size 9 for mon a 2026-10-18T05:42:07.832 DEBUG:teuthology.orchestra.run.trial030:> sudo adjust-ulimits ceph-coverage /home/ubuntu/cephtest/archive/coverage timeout 120 ceph --cluster ceph tell mon.a mon_status 2026-10-18T05:42:07.899 INFO:tasks.workunit.client.0.trial102.stderr:+ ret=0 2026-10-18T05:42:07.899 INFO:tasks.workunit.client.0.trial102.stderr:+ [[ 0 -ne 13 ]] 2026-10-18T05:42:07.899 INFO:tasks.workunit.client.0.trial102.stdout:Error: Expected return 13, got 0 2026-10-18T05:42:07.900 DEBUG:teuthology.orchestra.run:got remote process result: 1 2026-10-18T05:42:07.900 INFO:tasks.workunit.client.0.trial102.stderr:+ echo 'Error: Expected return 13, got 0' 2026-10-18T05:42:07.900 INFO:tasks.workunit.client.0.trial102.stderr:+ [[ 1 -eq 1 ]] 2026-10-18T05:42:07.900 INFO:tasks.workunit.client.0.trial102.stderr:+ exit 1 2026-10-18T05:42:07.901 INFO:tasks.workunit:Stopping ['mon/pool_ops.sh', 'mon/crush_ops.sh', 'mon/osd.sh', 'mon/caps.sh'] on client.0... 2026-10-18T05:42:07.901 DEBUG:teuthology.orchestra.run.trial102:> sudo rm -rf -- /home/ubuntu/cephtest/workunits.list.client.0 /home/ubuntu/cephtest/clone.client.0
KS Updated by Kamoltat (Junior) Sirivadhna about 1 month ago
- Assignee changed from Radoslaw Zarzynski to Kamoltat (Junior) Sirivadhna
Assigning this to myself
KS Updated by Kamoltat (Junior) Sirivadhna 28 days ago
bump up, on my list
LF Updated by Laura Flores 21 days ago
Bump
LF Updated by Laura Flores 14 days ago
Bump up
LF Updated by Laura Flores 8 days ago
Bump up