Bug 2277692
Summary: | nvmeof namespace resize fails while expanding image/ namespace | ||
---|---|---|---|
Product: | [Red Hat Storage] Red Hat Ceph Storage | Reporter: | Rahul Lepakshi <rlepaksh> |
Component: | NVMeOF | Assignee: | Gil Bregman <gbregman> |
Status: | CLOSED ERRATA | QA Contact: | Rahul Lepakshi <rlepaksh> |
Severity: | urgent | Docs Contact: | ceph-doc-bot <ceph-doc-bugzilla> |
Priority: | unspecified | ||
Version: | 7.1 | CC: | acaro, cephqe-warriors, ravindar.lenkala, sostapov, tserlin |
Target Milestone: | --- | Keywords: | TestBlocker |
Target Release: | 7.1 | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | ceph-18.2.1-175.el9cp | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2024-06-13 14:32:13 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Rahul Lepakshi
2024-04-29 08:14:19 UTC
If size is given as 2T, command executes successfully but if we have 2TB as size it fails as mentioned above Help command has TB, MB in in it [root@ceph-ibm-ha-v2-81ocsz-node4 cephuser]# nvmeof namespace resize -h usage: python3 -m control.cli namespace resize [-h] --subsystem SUBSYSTEM [--uuid UUID] [--nsid NSID] --size SIZE Resize 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 --size SIZE Size in bytes or specified unit (KB, KiB, MB, MiB, GB, GiB, TB, TiB) [root@ceph-ibm-ha-v2-81ocsz-node4 ~]# podman run --rm cp.stg.icr.io/cp/ibm-ceph/nvmeof-cli-rhel9:1.2.4-1 --server-address 10.0.209.20 namespace resize -n nqn.2016-06.io.spdk:cnode1 --nsid 1 --size 2T Resizing namespace 1 in nqn.2016-06.io.spdk:cnode1 to 2097152 MiB: Successful FYI - Aviv @rlepaksh was there anything else running there? As far as we can see this error comes from RBD when trying to resize an image which was closed. In 1.2.6 we allow only binary (1024) units for image creation (as supported by Ceph RBD (https://docs.ceph.com/en/quincy/man/8/rbd/). I'm still not sure this is the root cause of this issue. Please try to reproduce once you get a new build with GW 1.2.6. Rahul please retest with 1.2.6-1 downstream build. Unable to reproduce this issue at 1.2.6-1 But for shrink, it would be good if CLI gives correct output as "shrink not supported" instead of "Invalid arguement" # nvmeof namespace resize --size 4TB --nsid 1 -n nqn.2016-06.io.spdk:cnode1 Failure resizing namespace: Failure resizing bdev bdev_8e413907-e62c-498d-8983-59854d2c2112: Invalid argument [08-May-2024 07:07:42] INFO grpc.py:1536: Received request to resize namespace using NSID 1 on nqn.2016-06.io.spdk:cnode1 to 4194304 MiB, context: <grpc._server._Co> -ceph-ibm-ha-v2-msxv5d-node4-qatkoy[29025]: [08-May-2024 07:07:42] INFO grpc.py:371: Received request to resize bdev bdev_8e413907-e62c-498d-8983-59854d2c2112 to 4194304 MiB, client address: IPv4 10.88.0.35:5> -ceph-ibm-ha-v2-msxv5d-node4-qatkoy[29025]: [2024-05-08 07:07:42.505360] bdev_rbd.c:1496:bdev_rbd_resize: *ERROR*: The new bdev size must be larger than current bdev size. -ceph-ibm-ha-v2-msxv5d-node4-qatkoy[29025]: [08-May-2024 07:07:42] ERROR grpc.py:382: Failure resizing bdev bdev_8e413907-e62c-498d-8983-59854d2c2112 -ceph-ibm-ha-v2-msxv5d-node4-qatkoy[29025]: Traceback (most recent call last): -ceph-ibm-ha-v2-msxv5d-node4-qatkoy[29025]: File "/remote-source/ceph-nvmeof/app/control/grpc.py", line 374, in resize_bdev -ceph-ibm-ha-v2-msxv5d-node4-qatkoy[29025]: ret = rpc_bdev.bdev_rbd_resize( -ceph-ibm-ha-v2-msxv5d-node4-qatkoy[29025]: File "/usr/local/lib/python3.9/site-packages/spdk/rpc/bdev.py", line 1276, in bdev_rbd_resize -ceph-ibm-ha-v2-msxv5d-node4-qatkoy[29025]: return client.call('bdev_rbd_resize', params) -ceph-ibm-ha-v2-msxv5d-node4-qatkoy[29025]: File "/usr/local/lib/python3.9/site-packages/spdk/rpc/client.py", line 205, in call -ceph-ibm-ha-v2-msxv5d-node4-qatkoy[29025]: raise JSONRPCException(msg) -ceph-ibm-ha-v2-msxv5d-node4-qatkoy[29025]: spdk.rpc.client.JSONRPCException: request: -ceph-ibm-ha-v2-msxv5d-node4-qatkoy[29025]: { -ceph-ibm-ha-v2-msxv5d-node4-qatkoy[29025]: "name": "bdev_8e413907-e62c-498d-8983-59854d2c2112", -ceph-ibm-ha-v2-msxv5d-node4-qatkoy[29025]: "new_size": 4194304, -ceph-ibm-ha-v2-msxv5d-node4-qatkoy[29025]: "method": "bdev_rbd_resize", -ceph-ibm-ha-v2-msxv5d-node4-qatkoy[29025]: "req_id": 78498 -ceph-ibm-ha-v2-msxv5d-node4-qatkoy[29025]: } -ceph-ibm-ha-v2-msxv5d-node4-qatkoy[29025]: Got JSON-RPC error response -ceph-ibm-ha-v2-msxv5d-node4-qatkoy[29025]: response: -ceph-ibm-ha-v2-msxv5d-node4-qatkoy[29025]: { -ceph-ibm-ha-v2-msxv5d-node4-qatkoy[29025]: "code": -22, -ceph-ibm-ha-v2-msxv5d-node4-qatkoy[29025]: "message": "Invalid argument" -ceph-ibm-ha-v2-msxv5d-node4-qatkoy[29025]: } Issue is not seen on recent builds 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 (Critical: Red Hat Ceph Storage 7.1 security, enhancements, 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-2024:3925 The needinfo request[s] on this closed bug have been removed as they have been unresolved for 120 days |