Bug 2325397 - Namespace creation with Kb size is not supported
Summary: Namespace creation with Kb size is not supported
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Ceph Storage
Classification: Red Hat Storage
Component: Ceph-Dashboard
Version: 8.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: 8.1
Assignee: Afreen
QA Contact: Sunil Kumar Nagaraju
Anjana Suparna Sriram
URL:
Whiteboard:
Depends On: 2325395
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-11-12 08:22 UTC by Sunil Kumar Nagaraju
Modified: 2025-06-26 12:19 UTC (History)
17 users (show)

Fixed In Version: ceph-19.2.1-75.el9cp
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 2325395
Environment:
Last Closed: 2025-06-26 12:18:59 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github ceph ceph pull 62423/commits 0 None None None 2025-03-21 01:59:32 UTC
Red Hat Issue Tracker RHCEPH-10221 0 None None None 2024-11-12 08:24:16 UTC
Red Hat Issue Tracker RHCSDASH-1807 0 None None None 2024-11-12 08:24:19 UTC
Red Hat Product Errata RHSA-2025:9775 0 None None None 2025-06-26 12:19:04 UTC

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


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