Plain create with various options specified via usual cli arguments
===================================================================
$ rbd create -s 1 test
- $ rbd info test --format json | python -mjson.tool | sed 's/,$/, /'
+ $ rbd info test --format json | python3 -mjson.tool | sed 's/,$/, /'
{
"block_name_prefix": "rb.0.*", (glob)
"format": 1,
}
$ rbd rm test --no-progress
$ rbd create -s 1 --object-size 1M test
- $ rbd info test --format json | python -mjson.tool | sed 's/,$/, /'
+ $ rbd info test --format json | python3 -mjson.tool | sed 's/,$/, /'
{
"block_name_prefix": "rb.0.*", (glob)
"format": 1,
}
$ rbd rm test --no-progress
$ rbd create -s 1G --object-size 4K test
- $ rbd info test --format json | python -mjson.tool | sed 's/,$/, /'
+ $ rbd info test --format json | python3 -mjson.tool | sed 's/,$/, /'
{
"block_name_prefix": "rb.0.*", (glob)
"format": 1,
}
$ rbd rm test --no-progress
$ rbd create -s 1 test --image-format 2
- $ rbd info test --format json | python -mjson.tool | sed 's/,$/, /'
+ $ rbd info test --format json | python3 -mjson.tool | sed 's/,$/, /'
{
"block_name_prefix": "rbd_data.*", (glob)
"features": [
}
$ rbd rm test --no-progress
$ rbd create -s 1G test --image-format 2
- $ rbd info test --format json | python -mjson.tool | sed 's/,$/, /'
+ $ rbd info test --format json | python3 -mjson.tool | sed 's/,$/, /'
{
"block_name_prefix": "rbd_data.*", (glob)
"features": [
}
$ rbd rm test --no-progress
$ rbd create -s 1 test --image-format 2 --object-size 1M
- $ rbd info test --format json | python -mjson.tool | sed 's/,$/, /'
+ $ rbd info test --format json | python3 -mjson.tool | sed 's/,$/, /'
{
"block_name_prefix": "rbd_data.*", (glob)
"features": [
}
$ rbd rm test --no-progress
$ rbd create -s 1 test --image-format 2 --stripe-unit 1048576 --stripe-count 8
- $ rbd info test --format json | python -mjson.tool | sed 's/,$/, /'
+ $ rbd info test --format json | python3 -mjson.tool | sed 's/,$/, /'
{
"block_name_prefix": "rbd_data.*", (glob)
"features": [
}
$ rbd rm test --no-progress
$ rbd create -s 1 test --image-format 2 --stripe-unit 1048576B --stripe-count 8
- $ rbd info test --format json | python -mjson.tool | sed 's/,$/, /'
+ $ rbd info test --format json | python3 -mjson.tool | sed 's/,$/, /'
{
"block_name_prefix": "rbd_data.*", (glob)
"features": [
}
$ rbd rm test --no-progress
$ rbd create -s 1G test --image-format 2 --stripe-unit 4K --stripe-count 8
- $ rbd info test --format json | python -mjson.tool | sed 's/,$/, /'
+ $ rbd info test --format json | python3 -mjson.tool | sed 's/,$/, /'
{
"block_name_prefix": "rbd_data.*", (glob)
"features": [
}
$ rbd rm test --no-progress
$ rbd create -s 1G test --image-format 2 --stripe-unit 1M --stripe-count 8
- $ rbd info test --format json | python -mjson.tool | sed 's/,$/, /'
+ $ rbd info test --format json | python3 -mjson.tool | sed 's/,$/, /'
{
"block_name_prefix": "rbd_data.*", (glob)
"features": [
Format 2 Usual arguments with custom rbd_default_* params
=========================================================
$ rbd create -s 1 test --image-format 2 --stripe-unit 1048576 --stripe-count 8 --rbd-default-order 21
- $ rbd info test --format json | python -mjson.tool | sed 's/,$/, /'
+ $ rbd info test --format json | python3 -mjson.tool | sed 's/,$/, /'
{
"block_name_prefix": "rbd_data.*", (glob)
"features": [
}
$ rbd rm test --no-progress
$ rbd create -s 1 test --image-format 2 --stripe-unit 1048576 --stripe-count 8 --object-size 8M --rbd-default-order 20
- $ rbd info test --format json | python -mjson.tool | sed 's/,$/, /'
+ $ rbd info test --format json | python3 -mjson.tool | sed 's/,$/, /'
{
"block_name_prefix": "rbd_data.*", (glob)
"features": [
}
$ rbd rm test --no-progress
$ rbd create -s 1 test --image-format 2 --rbd-default-stripe-unit 1048576 --rbd-default-stripe-count 8
- $ rbd info test --format json | python -mjson.tool | sed 's/,$/, /'
+ $ rbd info test --format json | python3 -mjson.tool | sed 's/,$/, /'
{
"block_name_prefix": "rbd_data.*", (glob)
"features": [
Format 1 Usual arguments with custom rbd_default_* params
=========================================================
$ rbd create -s 1 test --rbd-default-order 20
- $ rbd info test --format json | python -mjson.tool | sed 's/,$/, /'
+ $ rbd info test --format json | python3 -mjson.tool | sed 's/,$/, /'
{
"block_name_prefix": "rb.0.*", (glob)
"format": 1,
}
$ rbd rm test --no-progress
$ rbd create -s 1 test --rbd-default-format 2
- $ rbd info test --format json | python -mjson.tool | sed 's/,$/, /'
+ $ rbd info test --format json | python3 -mjson.tool | sed 's/,$/, /'
{
"block_name_prefix": "rbd_data.*", (glob)
"features": [
}
$ rbd rm test --no-progress
$ rbd create -s 1 test --rbd-default-format 2 --rbd-default-order 20
- $ rbd info test --format json | python -mjson.tool | sed 's/,$/, /'
+ $ rbd info test --format json | python3 -mjson.tool | sed 's/,$/, /'
{
"block_name_prefix": "rbd_data.*", (glob)
"features": [
}
$ rbd rm test --no-progress
$ rbd create -s 1 test --rbd-default-format 2 --rbd-default-order 20 --rbd-default-features 1
- $ rbd info test --format json | python -mjson.tool | sed 's/,$/, /'
+ $ rbd info test --format json | python3 -mjson.tool | sed 's/,$/, /'
{
"block_name_prefix": "rbd_data.*", (glob)
"features": [
}
$ rbd rm test --no-progress
$ rbd create -s 1 test --rbd-default-format 2 --stripe-unit 1048576 --stripe-count 8
- $ rbd info test --format json | python -mjson.tool | sed 's/,$/, /'
+ $ rbd info test --format json | python3 -mjson.tool | sed 's/,$/, /'
{
"block_name_prefix": "rbd_data.*", (glob)
"features": [
\tsnapshot_count: 1 (esc)
[^^]+ (re)
\tformat: 1 (esc)
- $ rbd info foo --format json | python -mjson.tool | sed 's/,$/, /'
+ $ rbd info foo --format json | python3 -mjson.tool | sed 's/,$/, /'
{
"block_name_prefix": "rb.0.*", (glob)
"format": 1,
[^^]+ (re)
\tformat: 1 (esc)
\tprotected: False (esc)
- $ rbd info foo@snap --format json | python -mjson.tool | sed 's/,$/, /'
+ $ rbd info foo@snap --format json | python3 -mjson.tool | sed 's/,$/, /'
{
"block_name_prefix": "rb.0.*", (glob)
"format": 1,
\tcreate_timestamp:* (glob)
\taccess_timestamp:* (glob)
\tmodify_timestamp:* (glob)
- $ rbd info bar --format json | python -mjson.tool | sed 's/,$/, /'
+ $ rbd info bar --format json | python3 -mjson.tool | sed 's/,$/, /'
{
"access_timestamp": "*", (glob)
"block_name_prefix": "rbd_data.*", (glob)
\taccess_timestamp:* (glob)
\tmodify_timestamp:* (glob)
\tprotected: True (esc)
- $ rbd info bar@snap --format json | python -mjson.tool | sed 's/,$/, /'
+ $ rbd info bar@snap --format json | python3 -mjson.tool | sed 's/,$/, /'
{
"access_timestamp": "*", (glob)
"block_name_prefix": "rbd_data.*", (glob)
\taccess_timestamp:* (glob)
\tmodify_timestamp:* (glob)
\tprotected: False (esc)
- $ rbd info bar@snap2 --format json | python -mjson.tool | sed 's/,$/, /'
+ $ rbd info bar@snap2 --format json | python3 -mjson.tool | sed 's/,$/, /'
{
"access_timestamp": "*", (glob)
"block_name_prefix": "rbd_data.*", (glob)
\tcreate_timestamp:* (glob)
\taccess_timestamp:* (glob)
\tmodify_timestamp:* (glob)
- $ rbd info baz --format json | python -mjson.tool | sed 's/,$/, /'
+ $ rbd info baz --format json | python3 -mjson.tool | sed 's/,$/, /'
{
"access_timestamp": "*", (glob)
"block_name_prefix": "rbd_data.*", (glob)
\tsnapshot_count: 0 (esc)
[^^]+ (re)
\tformat: 1 (esc)
- $ rbd info quux --format json | python -mjson.tool | sed 's/,$/, /'
+ $ rbd info quux --format json | python3 -mjson.tool | sed 's/,$/, /'
{
"block_name_prefix": "rb.0.*", (glob)
"format": 1,
\tcreate_timestamp:* (glob)
\taccess_timestamp:* (glob)
\tmodify_timestamp:* (glob)
- $ rbd info rbd_other/child --format json | python -mjson.tool | sed 's/,$/, /'
+ $ rbd info rbd_other/child --format json | python3 -mjson.tool | sed 's/,$/, /'
{
"access_timestamp": "*", (glob)
"block_name_prefix": "rbd_data.*", (glob)
\tprotected: False (esc)
\tparent: rbd/bar@snap (esc)
\toverlap: 512 MiB (esc)
- $ rbd info rbd_other/child@snap --format json | python -mjson.tool | sed 's/,$/, /'
+ $ rbd info rbd_other/child@snap --format json | python3 -mjson.tool | sed 's/,$/, /'
{
"access_timestamp": "*", (glob)
"block_name_prefix": "rbd_data.*", (glob)
\tcreate_timestamp:* (glob)
\taccess_timestamp:* (glob)
\tmodify_timestamp:* (glob)
- $ rbd info rbd_other/deep-flatten-child --format json | python -mjson.tool | sed 's/,$/, /'
+ $ rbd info rbd_other/deep-flatten-child --format json | python3 -mjson.tool | sed 's/,$/, /'
{
"access_timestamp": "*", (glob)
"block_name_prefix": "rbd_data.*", (glob)
\taccess_timestamp:* (glob)
\tmodify_timestamp:* (glob)
\tprotected: False (esc)
- $ rbd info rbd_other/deep-flatten-child@snap --format json | python -mjson.tool | sed 's/,$/, /'
+ $ rbd info rbd_other/deep-flatten-child@snap --format json | python3 -mjson.tool | sed 's/,$/, /'
{
"access_timestamp": "*", (glob)
"block_name_prefix": "rbd_data.*", (glob)
bar
baz
quuy
- $ rbd list --format json | python -mjson.tool | sed 's/,$/, /'
+ $ rbd list --format json | python3 -mjson.tool | sed 's/,$/, /'
[
"foo",
"quux",
bar@snap2 1 GiB 2
baz 2 GiB 2 shr
quuy 2 GiB 2
- $ rbd list -l --format json | python -mjson.tool | sed 's/,$/, /'
+ $ rbd list -l --format json | python3 -mjson.tool | sed 's/,$/, /'
[
{
"format": 1,
$ rbd list rbd_other
child
deep-flatten-child
- $ rbd list rbd_other --format json | python -mjson.tool | sed 's/,$/, /'
+ $ rbd list rbd_other --format json | python3 -mjson.tool | sed 's/,$/, /'
[
"child",
"deep-flatten-child"
child@snap 512 MiB rbd/bar@snap 2
deep-flatten-child 512 MiB 2
deep-flatten-child@snap 512 MiB 2
- $ rbd list rbd_other -l --format json | python -mjson.tool | sed 's/,$/, /'
+ $ rbd list rbd_other -l --format json | python3 -mjson.tool | sed 's/,$/, /'
[
{
"format": 2,
</snapshot>
</images>
$ rbd lock list foo
- $ rbd lock list foo --format json | python -mjson.tool | sed 's/,$/, /'
+ $ rbd lock list foo --format json | python3 -mjson.tool | sed 's/,$/, /'
[]
$ rbd lock list foo --format xml | xml_pp 2>&1 | grep -v '^new version at /usr/bin/xml_pp'
<locks></locks>
There is 1 exclusive lock on this image.
Locker*ID*Address* (glob)
client.* id * (glob)
- $ rbd lock list quux --format json | python -mjson.tool | sed 's/,$/, /'
+ $ rbd lock list quux --format json | python3 -mjson.tool | sed 's/,$/, /'
[
{
"address": "*", (glob)
client.*id[123].* (re)
client.*id[123].* (re)
client.*id[123].* (re)
- $ rbd lock list baz --format json | python -mjson.tool | sed 's/,$/, /'
+ $ rbd lock list baz --format json | python3 -mjson.tool | sed 's/,$/, /'
[
{
"address": "*", (glob)
$ rbd snap list foo
SNAPID*NAME*SIZE*PROTECTED*TIMESTAMP* (glob)
*snap*1 GiB* (glob)
- $ rbd snap list foo --format json | python -mjson.tool | sed 's/,$/, /'
+ $ rbd snap list foo --format json | python3 -mjson.tool | sed 's/,$/, /'
[
{
"id": *, (glob)
SNAPID*NAME*SIZE*PROTECTED*TIMESTAMP* (glob)
*snap*512 MiB*yes* (glob)
*snap2*1 GiB* (glob)
- $ rbd snap list bar --format json | python -mjson.tool | sed 's/,$/, /'
+ $ rbd snap list bar --format json | python3 -mjson.tool | sed 's/,$/, /'
[
{
"id": *, (glob)
</snapshot>
</snapshots>
$ rbd snap list baz
- $ rbd snap list baz --format json | python -mjson.tool | sed 's/,$/, /'
+ $ rbd snap list baz --format json | python3 -mjson.tool | sed 's/,$/, /'
[]
$ rbd snap list baz --format xml | xml_pp 2>&1 | grep -v '^new version at /usr/bin/xml_pp'
<snapshots></snapshots>
$ rbd snap list rbd_other/child
SNAPID*NAME*SIZE*PROTECTED*TIMESTAMP* (glob)
*snap*512 MiB* (glob)
- $ rbd snap list rbd_other/child --format json | python -mjson.tool | sed 's/,$/, /'
+ $ rbd snap list rbd_other/child --format json | python3 -mjson.tool | sed 's/,$/, /'
[
{
"id": *, (glob)
deep-flatten-child@snap 512 MiB 0 B
deep-flatten-child 512 MiB 0 B
<TOTAL> 1 GiB 4 MiB
- $ rbd disk-usage --pool rbd_other --format json | python -mjson.tool | sed 's/,$/, /'
+ $ rbd disk-usage --pool rbd_other --format json | python3 -mjson.tool | sed 's/,$/, /'
{
"images": [
{