Bug 1954819 - tools/rados: omnibus NUL character in object name commits 4.2
Summary: tools/rados: omnibus NUL character in object name commits 4.2
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Ceph Storage
Classification: Red Hat Storage
Component: RADOS
Version: 4.2
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
: 4.2z2
Assignee: J. Eric Ivancich
QA Contact: skanta
URL:
Whiteboard:
: 1925342 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-04-28 19:50 UTC by J. Eric Ivancich
Modified: 2021-06-15 17:14 UTC (History)
14 users (show)

Fixed In Version: ceph-14.2.11-152.el8cp, ceph-14.2.11-152.el7cp
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-06-15 17:14:17 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github ceph ceph pull 39324 0 None closed nautilus: librados, tests: allow to list objects with the NUL character in names 2021-05-06 17:46:09 UTC
Github ceph ceph pull 39329 0 None closed nautilus: tools/rados: add support for binary object names in the rados CLI 2021-05-06 17:46:09 UTC
Red Hat Product Errata RHSA-2021:2445 0 None None None 2021-06-15 17:14:35 UTC

Comment 7 Neha Ojha 2021-05-06 17:44:51 UTC
*** Bug 1925342 has been marked as a duplicate of this bug. ***

Comment 9 skanta 2021-05-27 00:06:32 UTC
Created and removed the objects with a NUL character in their names with the following scenarios.


scenario 1:
[root@ceph-bharath-1622003345629-node1-mon-mgr-installer cephuser]# rados -p pool-A put "obj ect-c"  object-A
[root@ceph-bharath-1622003345629-node1-mon-mgr-installer cephuser]# rados -p pool-A ls  
obj ect-c    
[root@ceph-bharath-1622003345629-node1-mon-mgr-installer cephuser]# rados rm  "obj ect-c" -p pool-A
[root@ceph-bharath-1622003345629-node1-mon-mgr-installer cephuser]# rados -p pool-A ls

[root@ceph-bharath-1622003345629-node1-mon-mgr-installer cephuser]# 


scenario 2:
[root@ceph-bharath-1622003345629-node1-mon-mgr-installer cephuser]# rados -p pool-A put "ob je ct-c"  object-A
[root@ceph-bharath-1622003345629-node1-mon-mgr-installer cephuser]# rados -p pool-A ls
ob je ct-c
[root@ceph-bharath-1622003345629-node1-mon-mgr-installer cephuser]# rados rm  "ob je ct-c" -p pool-A
[root@ceph-bharath-1622003345629-node1-mon-mgr-installer cephuser]# rados -p pool-A ls

[root@

scenario3:

[root@ceph-bharath-1622003345629-node1-mon-mgr-installer cephuser]# rados -p pool-A put "o b j e c t-c"  object-A
[root@ceph-bharath-1622003345629-node1-mon-mgr-installer cephuser]# rados -p pool-A ls
o b j e c t-c
[root@ceph-bharath-1622003345629-node1-mon-mgr-installer cephuser]# rados rm  "o b j e c t-c" -p pool-A
[root@ceph-bharath-1622003345629-node1-mon-mgr-installer cephuser]# rados -p pool-A ls

[root@ceph-bharath-1622003345629-node1-mon-mgr-installer cephuser]#

Scenario 4:
 [root@ceph-bharath-1622003345629-node1-mon-mgr-installer cephuser]# rados -p pool-A put "  o b j e c t-c"  object-A
[root@ceph-bharath-1622003345629-node1-mon-mgr-installer cephuser]# rados -p pool-A ls   
  o b j e c t-c
[root@ceph-bharath-1622003345629-node1-mon-mgr-installer cephuser]# rados rm  "  o b j e c t-c" -p pool-A
[root@ceph-bharath-1622003345629-node1-mon-mgr-installer cephuser]# rados -p pool-A ls

[root@ceph-bharath-1622003345629-node1-mon-mgr-installer cephuser]#

scenario 5:
[root@ceph-bharath-1622003345629-node1-mon-mgr-installer cephuser]# rados -p pool-A put "  o b j e c t-c  "  object-A
[root@ceph-bharath-1622003345629-node1-mon-mgr-installer cephuser]# rados -p pool-A ls
  o b j e c t-c  
[root@ceph-bharath-1622003345629-node1-mon-mgr-installer cephuser]# rados rm  "  o b j e c t-c  " -p pool-A
[root@ceph-bharath-1622003345629-node1-mon-mgr-installer cephuser]# rados -p pool-A ls

[root@ceph-bharath-1622003345629-node1-mon-mgr-installer cephuser]#

Scenario 6:
  [root@ceph-bharath-1622003345629-node1-mon-mgr-installer cephuser]# rados -p pool-A put "o b j e c t-c  "  object-A
[root@ceph-bharath-1622003345629-node1-mon-mgr-installer cephuser]# rados -p pool-A ls
o b j e c t-c  
  
[root@ceph-bharath-1622003345629-node1-mon-mgr-installer cephuser]# rados rm  "o b j e c t-c  " -p pool-A
[root@ceph-bharath-1622003345629-node1-mon-mgr-installer cephuser]# rados -p pool-A ls
 
[root@ceph-bharath-1622003345629-node1-mon-mgr-installer cephuser]#

Comment 11 errata-xmlrpc 2021-06-15 17:14:17 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Important: Red Hat Ceph Storage 4.2 Security and Bug Fix Update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2021:2445


Note You need to log in before you can comment on or make changes to this bug.