Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
This project is now read‑only. Starting Monday, February 2, please use https://ibm-ceph.atlassian.net/ for all bug tracking management.

Bug 2325397

Summary: Namespace creation with Kb size is not supported
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Sunil Kumar Nagaraju <sunnagar>
Component: Ceph-DashboardAssignee: Afreen <afrahman>
Status: CLOSED ERRATA QA Contact: Sunil Kumar Nagaraju <sunnagar>
Severity: medium Docs Contact: Anjana Suparna Sriram <asriram>
Priority: medium    
Version: 8.0CC: acaro, afrahman, aindenba, bdavidov, bkunal, ceph-doc-bugzilla, ceph-eng-bugs, cephqe-warriors, gbregman, kjosy, lchernin, linuxkidd, mmurthy, nia, pdhange, tserlin, vumrao
Target Milestone: ---   
Target Release: 8.1   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ceph-19.2.1-75.el9cp Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 2325395 Environment:
Last Closed: 2025-06-26 12:18:59 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 2325395    
Bug Blocks:    

Description Sunil Kumar Nagaraju 2024-11-12 08:22:51 UTC
+++ This bug was initially created as a clone of Bug #2325395 +++

Description of problem:

Namespace creation with Kb size is not supported, so if it is not supported it should be taken out from help usage.

Note: Ceph dashboard also has same issue, attaching screenshot for reference.


[root@ceph-sunilkumar-00-61s1lj-node6 ~]# nm --server-address 10.0.66.43 namespace add -n nqn.2016-06.io.spdk:cnode2 --rbd-pool rbd --rbd-create-image --rbd-image sub2-image-111 --size 1 --help
usage: python3 -m control.cli namespace add [-h] --subsystem SUBSYSTEM
                                            [--uuid UUID] [--nsid NSID]
                                            --rbd-pool RBD_POOL --rbd-image
                                            RBD_IMAGE [--rbd-create-image]
                                            [--block-size BLOCK_SIZE]
                                            [--load-balancing-group LOAD_BALANCING_GROUP]
                                            [--size SIZE] [--force]

Create a namespace

optional arguments:
  -h, --help            show this help message and exit
  --subsystem SUBSYSTEM, -n SUBSYSTEM
                        Subsystem NQN
  --uuid UUID, -u UUID  UUID
  --nsid NSID           Namespace ID
  --rbd-pool RBD_POOL, -p RBD_POOL
                        RBD pool name
  --rbd-image RBD_IMAGE, -i RBD_IMAGE
                        RBD image name
  --rbd-create-image, -c
                        Create RBD image if needed
  --block-size BLOCK_SIZE, -s BLOCK_SIZE
                        Block size
  --load-balancing-group LOAD_BALANCING_GROUP, -l LOAD_BALANCING_GROUP
                        Load balancing group
  --size SIZE           Size in bytes or specified unit (K, KB, M, MB, G, GB,
                        T, TB, P, PB)
  --force               Create a namespace even its image is already used by
                        another namespace
[root@ceph-sunilkumar-00-61s1lj-node6 ~]# nm --server-address 10.0.66.43 namespace add -n nqn.2016-06.io.spdk:cnode2 --rbd-pool rbd --rbd-create-image --rbd-image sub2-image-111 --size 1K
usage: python3 -m control.cli [-h] [--format {text,json,yaml,plain,python}]
                              [--output {log,stdio}]
                              [--log-level {debug,DEBUG,info,INFO,warning,WARNING,error,ERROR,critical,CRITICAL}]
                              [--server-address SERVER_ADDRESS]
                              [--server-port SERVER_PORT]
                              [--client-key CLIENT_KEY]
                              [--client-cert CLIENT_CERT]
                              [--server-cert SERVER_CERT] [--verbose]
                              {version,gw,spdk_log_level,subsystem,listener,host,connection,namespace,ns,get_subsystems}
                              ...
error: size value must be aligned to MiBs
[root@ceph-sunilkumar-00-61s1lj-node6 ~]# nm --server-address 10.0.66.43 namespace add -n nqn.2016-06.io.spdk:cnode2 --rbd-pool rbd --rbd-create-image --rbd-image sub2-image-111 --size 1KB
usage: python3 -m control.cli [-h] [--format {text,json,yaml,plain,python}]
                              [--output {log,stdio}]
                              [--log-level {debug,DEBUG,info,INFO,warning,WARNING,error,ERROR,critical,CRITICAL}]
                              [--server-address SERVER_ADDRESS]
                              [--server-port SERVER_PORT]
                              [--client-key CLIENT_KEY]
                              [--client-cert CLIENT_CERT]
                              [--server-cert SERVER_CERT] [--verbose]
                              {version,gw,spdk_log_level,subsystem,listener,host,connection,namespace,ns,get_subsystems}
                              ...
error: size value must be aligned to MiBs


[root@ceph-sunilkumar-00-61s1lj-node6 ~]# alias nm="podman run --rm cp.stg.icr.io/cp/ibm-ceph/nvmeof-cli-rhel9:1.3.3-1"
[root@ceph-sunilkumar-00-61s1lj-node6 ~]# nm --server-address 10.0.66.43 namespace add -n nqn.2016-06.io.spdk:cnode2 --rbd-pool rbd --rbd-create-image --rbd-image sub2-image-111 --size 1KB
Trying to pull cp.stg.icr.io/cp/ibm-ceph/nvmeof-cli-rhel9:1.3.3-1...
Getting image source signatures
Checking if image destination supports signatures
Copying blob 4d5d1cbd7ece skipped: already exists
Copying blob c765b3f71f66 done   |
Copying config c1bf8f3909 done   |
Writing manifest to image destination
Storing signatures
usage: python3 -m control.cli [-h] [--format {text,json,yaml,plain,python}]
                              [--output {log,stdio}]
                              [--log-level {debug,DEBUG,info,INFO,warning,WARNING,error,ERROR,critical,CRITICAL}]
                              [--server-address SERVER_ADDRESS]
                              [--server-port SERVER_PORT]
                              [--client-key CLIENT_KEY]
                              [--client-cert CLIENT_CERT]
                              [--server-cert SERVER_CERT] [--verbose]
                              {version,gw,spdk_log_level,subsystem,listener,host,connection,namespace,ns,get_subsystems}
                              ...
error: size value must be aligned to MiBs


Version-Release number of selected component (if applicable): 19.2.0-52
8.0
Nvme 1.3.3-6
NVMe 1.3.3-1

How reproducible: always

Comment 8 errata-xmlrpc 2025-06-26 12:18:59 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 8.1 security, bug fix, and enhancement updates), 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-2025:9775