Bug #47045
open[pubsub] Listing pubsub events via the command line
0%
Description
Running a 3-node cluster in a lab environment running on ceph version 14.2.9 (containerized). Each node is running a OSD, MON, MGR, MDS and 2 x RGW (we're using a second RGW instance to host a pubsub endpoint).
Can I confirm that after it's no longer supported to list the events in the pubsub subscription via the command line?
I'm trying two methods:
1) As documented here: https://docs.ceph.com/docs/master/radosgw/pubsub-module/
$ radosgw-admin subscription pull --uid={user-id} --subscription={topic-name}
returns "ERROR: invalid flag --subscription={topic-name}". If I revert to --sub-name instead, I get "unrecognized arg subscription"
2) On older versions of nautilus we were using
$ radosgw-admin pubsub sub pull --sub-name <subname>--uid <username> --rgw-zone <zone>
but this now returns a large stack trace:
/home/jenkins-build/build/workspace/ceph-build/ARCH/x86_64/AVAILABLE_ARCH/x86_64/AVAILABLE_DIST/centos7/DIST/centos7/MACHINE_SIZE/gigantic/release/14.2.9/rpm/el7/BUILD/ceph-14.2.9/src/rgw/rgw_pubsub.h: In function 'virtual int RGWUserPubSub::Sub::list_events(const string&, int)' thread 7f0adf6dd6c0 time 2020-08-19 15:56:32.108180
/home/jenkins-build/build/workspace/ceph-build/ARCH/x86_64/AVAILABLE_ARCH/x86_64/AVAILABLE_DIST/centos7/DIST/centos7/MACHINE_SIZE/gigantic/release/14.2.9/rpm/el7/BUILD/ceph-14.2.9/src/rgw/rgw_pubsub.h: 650: FAILED ceph_assert(false)
ceph version 14.2.9 (581f22da52345dba46ee232b73b990f06029a2a0) nautilus (stable)
1: (ceph::__ceph_assert_fail(char const*, char const*, int, char const*)+0x14a) [0x7f0ad5900875]
2: (()+0x253a3d) [0x7f0ad5900a3d]
3: (RGWUserPubSub::Sub::remove_event(std::string const&)+0) [0x55b70cdcc480]
4: (main()+0x1698c) [0x55b70cd99bac]
5: (__libc_start_main()+0xf5) [0x7f0ad2364505]
6: (()+0x219430) [0x55b70cdc2430]
2020-08-19 15:56:32.108 7f0adf6dd6c0 -1 /home/jenkins-build/build/workspace/ceph-build/ARCH/x86_64/AVAILABLE_ARCH/x86_64/AVAILABLE_DIST/centos7/DIST/centos7/MACHINE_SIZE/gigantic/release/14.2.9/rpm/el7/BUILD/ceph-14.2.9/src/rgw/rgw_pubsub.h: In function 'virtual int RGWUserPubSub::Sub::list_events(const string&, int)' thread 7f0adf6dd6c0 time 2020-08-19 15:56:32.108180
/home/jenkins-build/build/workspace/ceph-build/ARCH/x86_64/AVAILABLE_ARCH/x86_64/AVAILABLE_DIST/centos7/DIST/centos7/MACHINE_SIZE/gigantic/release/14.2.9/rpm/el7/BUILD/ceph-14.2.9/src/rgw/rgw_pubsub.h: 650: FAILED ceph_assert(false)
ceph version 14.2.9 (581f22da52345dba46ee232b73b990f06029a2a0) nautilus (stable)
1: (ceph::__ceph_assert_fail(char const*, char const*, int, char const*)+0x14a) [0x7f0ad5900875]
2: (()+0x253a3d) [0x7f0ad5900a3d]
3: (RGWUserPubSub::Sub::remove_event(std::string const&)+0) [0x55b70cdcc480]
4: (main()+0x1698c) [0x55b70cd99bac]
5: (__libc_start_main()+0xf5) [0x7f0ad2364505]
6: (()+0x219430) [0x55b70cdc2430]
- Caught signal (Aborted) **
in thread 7f0adf6dd6c0 thread_name:radosgw-admin
ceph version 14.2.9 (581f22da52345dba46ee232b73b990f06029a2a0) nautilus (stable)
1: (()+0xf5f0) [0x7f0ad54a05f0]
2: (gsignal()+0x37) [0x7f0ad2378337]
3: (abort()+0x148) [0x7f0ad2379a28]
....
(full trace attached)
Is the only supported way to list these events via the REST API?
Thanks in advance,
Dave
Files