This repository has been archived by the owner on Mar 26, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 83
--size parameter in volume create CLI isn't accepting MB format #1398
Labels
GCS/0.5
GCS 0.5 release
Comments
@atinmu Yes, I guess we missed out on MB, we have added for other formats https://github.com/gluster/glusterd2/blob/master/glustercli/cmd/utils.go#L32 |
rishubhjain
added a commit
to rishubhjain/glusterd2
that referenced
this issue
Dec 13, 2018
This was referenced Dec 13, 2018
PR #1386 is merged which contains the fix |
reopening this issues, as we need to handle
|
Madhu-1
added a commit
to Madhu-1/glusterd2
that referenced
this issue
Dec 17, 2018
we should be able to create volume size with different formats like KB, Kib, Mb, MiB etc Fixes: gluster#1398 ``` [root@dhcp43-209 build]# ./glustercli volume create size1 --size=20MB --replica=3 -v size1 Volume created successfully Volume ID: b2693574-8489-4d4b-94ab-3564776d1cce [root@dhcp43-209 build]# ./glustercli volume create size2 --size=20MiB --replica=3 -v size2 Volume created successfully Volume ID: b1153478-4912-4481-a047-8d67258ab08c [root@dhcp43-209 build]# ./glustercli volume create size3 --size=20M --replica=3 -v size3 Volume created successfully Volume ID: 8ac1c9a5-cc84-45ec-b382-eff17369d024 ``` Signed-off-by: Madhu Rajanna <mrajanna@redhat.com>
@Madhu-1 check https://github.com/gluster/glusterd2/blob/master/glustercli/cmd/utils.go#L58, I am not sure why it is not accepting MiB and MB |
@rishubhjain PTAL #1416 |
Madhu-1
added a commit
to Madhu-1/glusterd2
that referenced
this issue
Dec 17, 2018
we should be able to create volume size with different formats like KB, Kib, Mb, MiB etc Fixes: gluster#1398 ``` [root@dhcp43-209 build]# ./glustercli volume create size1 --size=20MB --replica=3 -v size1 Volume created successfully Volume ID: b2693574-8489-4d4b-94ab-3564776d1cce [root@dhcp43-209 build]# ./glustercli volume create size2 --size=20MiB --replica=3 -v size2 Volume created successfully Volume ID: b1153478-4912-4481-a047-8d67258ab08c [root@dhcp43-209 build]# ./glustercli volume create size3 --size=20M --replica=3 -v size3 Volume created successfully Volume ID: 8ac1c9a5-cc84-45ec-b382-eff17369d024 [root@dhcp43-209 build]# ./glustercli volume create size35 --size=20 --replica=3 -v size35 Volume created successfully Volume ID: 560da74f-b7cf-466c-994c-0f03ba07bb24 ``` Signed-off-by: Madhu Rajanna <mrajanna@redhat.com>
Madhu-1
added a commit
to Madhu-1/glusterd2
that referenced
this issue
Dec 17, 2018
we should be able to create volume size with different formats like KB, Kib, Mb, MiB etc Fixes: gluster#1398 ``` [root@dhcp43-209 build]# ./glustercli volume create size1 --size=20MB --replica=3 -v size1 Volume created successfully Volume ID: b2693574-8489-4d4b-94ab-3564776d1cce [root@dhcp43-209 build]# ./glustercli volume create size2 --size=20MiB --replica=3 -v size2 Volume created successfully Volume ID: b1153478-4912-4481-a047-8d67258ab08c [root@dhcp43-209 build]# ./glustercli volume create size3 --size=20M --replica=3 -v size3 Volume created successfully Volume ID: 8ac1c9a5-cc84-45ec-b382-eff17369d024 [root@dhcp43-209 build]# ./glustercli volume create size35 --size=20 --replica=3 -v size35 Volume created successfully Volume ID: 560da74f-b7cf-466c-994c-0f03ba07bb24 [root@dhcp43-209 build]# ./glustercli volume create size --size=21mb --replica=3 -v 7size Volume created successfully Volume ID: 638d4108-bf2e-48e9-9d1d-982a34882586 [root@dhcp43-209 build]# ./glustercli volume create sizes6 --size=20971520 --replica=3 -v sizes6 Volume created successfully Volume ID: c4de7f7e-e4b4-46e6-80d1-92a9e060c4c0 [root@dhcp43-209 build]# ./glustercli volume create size6 --size=20971520sadf --replica=3 -v Invalid Volume Size specified ``` Signed-off-by: Madhu Rajanna <mrajanna@redhat.com>
atinmu
pushed a commit
that referenced
this issue
Dec 17, 2018
we should be able to create volume size with different formats like KB, Kib, Mb, MiB etc Fixes: #1398 ``` [root@dhcp43-209 build]# ./glustercli volume create size1 --size=20MB --replica=3 -v size1 Volume created successfully Volume ID: b2693574-8489-4d4b-94ab-3564776d1cce [root@dhcp43-209 build]# ./glustercli volume create size2 --size=20MiB --replica=3 -v size2 Volume created successfully Volume ID: b1153478-4912-4481-a047-8d67258ab08c [root@dhcp43-209 build]# ./glustercli volume create size3 --size=20M --replica=3 -v size3 Volume created successfully Volume ID: 8ac1c9a5-cc84-45ec-b382-eff17369d024 [root@dhcp43-209 build]# ./glustercli volume create size35 --size=20 --replica=3 -v size35 Volume created successfully Volume ID: 560da74f-b7cf-466c-994c-0f03ba07bb24 [root@dhcp43-209 build]# ./glustercli volume create size --size=21mb --replica=3 -v 7size Volume created successfully Volume ID: 638d4108-bf2e-48e9-9d1d-982a34882586 [root@dhcp43-209 build]# ./glustercli volume create sizes6 --size=20971520 --replica=3 -v sizes6 Volume created successfully Volume ID: c4de7f7e-e4b4-46e6-80d1-92a9e060c4c0 [root@dhcp43-209 build]# ./glustercli volume create size6 --size=20971520sadf --replica=3 -v Invalid Volume Size specified ``` Signed-off-by: Madhu Rajanna <mrajanna@redhat.com>
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Observed behavior
root@b9bad6008a5e:/home/go/src/github.com/gluster/glusterd2/build# ./glustercli volume create ivp-vol1 --size=100M
Volume creation failed
Response headers:
X-Request-Id: a2c102fb-9957-4def-86dd-6e15123661f8
X-Gluster-Cluster-Id: 8d9dae2d-b422-476a-aa5d-5f7e6cb5eb1d
X-Gluster-Peer-Id: 75a41e07-8722-427c-bd8c-89e5cb694447
Response body:
invalid Volume Size, Minimum size required is 20971520
It seems the MB format in the size input isn't entertained.
Expected/desired behavior
Details on how to reproduce (minimal and precise)
As explained in the description
Information about the environment:
Other useful information
uuid.toml
from all nodes (default /var/lib/glusterd2/uuid.toml)statedump
from any one of the nodeUseful commands
The text was updated successfully, but these errors were encountered: