2014-05-23 07:35:51 |
Sushil Kumar |
description |
troveclient is showing output for various commands in json format instead of earlier row-column format.
for example
The current output is
$ trove list
[
{
"status": "ACTIVE",
"name": "test_vm_2014May08091518",
"links": [
{
"href": "https://10.1.0.8:8779/v1.0/5cc7f344990e4543adf2c329120ec3c1/instances/77dd24cc-3136-4386-89b8-4f674b33d8c7",
"rel": "self"
},
{
"href": "https://10.1.0.8:8779/instances/77dd24cc-3136-4386-89b8-4f674b33d8c7",
"rel": "bookmark"
}
],
"volume": {
"size": 2
},
"flavor": {
"id": "6",
"links": [
{
"href": "https://10.1.0.8:8779/v1.0/5cc7f344990e4543adf2c329120ec3c1/flavors/6",
"rel": "self"
},
{
"href": "https://10.1.0.8:8779/flavors/6",
"rel": "bookmark"
}
]
},
"id": "77dd24cc-3136-4386-89b8-4f674b33d8c7",
"datastore": {
"version": "5.5",
"type": "mysql"
}
},
{
"status": "ACTIVE",
"name": "test_vm_2014May12080822",
"links": [
{
"href": "https://10.1.0.8:8779/v1.0/5cc7f344990e4543adf2c329120ec3c1/instances/c2dc18df-6641-4c6a-a3f4-f7cc9ca65be2",
"rel": "self"
},
{
"href": "https://10.1.0.8:8779/instances/c2dc18df-6641-4c6a-a3f4-f7cc9ca65be2",
"rel": "bookmark"
}
],
"volume": {
"size": 2
},
"flavor": {
"id": "6",
"links": [
{
"href": "https://10.1.0.8:8779/v1.0/5cc7f344990e4543adf2c329120ec3c1/flavors/6",
"rel": "self"
},
{
"href": "https://10.1.0.8:8779/flavors/6",
"rel": "bookmark"
}
]
},
"id": "c2dc18df-6641-4c6a-a3f4-f7cc9ca65be2",
"datastore": {
"version": "5.5",
"type": "mysql"
}
}
]
whereas the expected output is
$ trove list
+--------------------------------------+-------------------------+-----------+-------------------+--------+-----------+------+
| ID | Name | Datastore | Datastore Version | Status | Flavor ID | Size |
+--------------------------------------+-------------------------+-----------+-------------------+--------+-----------+------+
| 77dd24cc-3136-4386-89b8-4f674b33d8c7 | test_vm_2014May08091518 | mysql | 5.5 | ACTIVE | 6 | 2 |
| c2dc18df-6641-4c6a-a3f4-f7cc9ca65be2 | test_vm_2014May12080822 | mysql | 5.5 | ACTIVE | 6 | 2 |
+--------------------------------------+-------------------------+-----------+-------------------+--------+-----------+------+ |
troveclient is showing output for various commands in dictionary format instead of earlier row-column format.
for example
The current output is
$ trove list
[
{
"status": "ACTIVE",
"name": "test_vm_2014May08091518",
"links": [
{
"href": "https://10.1.0.8:8779/v1.0/5cc7f344990e4543adf2c329120ec3c1/instances/77dd24cc-3136-4386-89b8-4f674b33d8c7",
"rel": "self"
},
{
"href": "https://10.1.0.8:8779/instances/77dd24cc-3136-4386-89b8-4f674b33d8c7",
"rel": "bookmark"
}
],
"volume": {
"size": 2
},
"flavor": {
"id": "6",
"links": [
{
"href": "https://10.1.0.8:8779/v1.0/5cc7f344990e4543adf2c329120ec3c1/flavors/6",
"rel": "self"
},
{
"href": "https://10.1.0.8:8779/flavors/6",
"rel": "bookmark"
}
]
},
"id": "77dd24cc-3136-4386-89b8-4f674b33d8c7",
"datastore": {
"version": "5.5",
"type": "mysql"
}
},
{
"status": "ACTIVE",
"name": "test_vm_2014May12080822",
"links": [
{
"href": "https://10.1.0.8:8779/v1.0/5cc7f344990e4543adf2c329120ec3c1/instances/c2dc18df-6641-4c6a-a3f4-f7cc9ca65be2",
"rel": "self"
},
{
"href": "https://10.1.0.8:8779/instances/c2dc18df-6641-4c6a-a3f4-f7cc9ca65be2",
"rel": "bookmark"
}
],
"volume": {
"size": 2
},
"flavor": {
"id": "6",
"links": [
{
"href": "https://10.1.0.8:8779/v1.0/5cc7f344990e4543adf2c329120ec3c1/flavors/6",
"rel": "self"
},
{
"href": "https://10.1.0.8:8779/flavors/6",
"rel": "bookmark"
}
]
},
"id": "c2dc18df-6641-4c6a-a3f4-f7cc9ca65be2",
"datastore": {
"version": "5.5",
"type": "mysql"
}
}
]
whereas the expected output is
$ trove list
+--------------------------------------+-------------------------+-----------+-------------------+--------+-----------+------+
| ID | Name | Datastore | Datastore Version | Status | Flavor ID | Size |
+--------------------------------------+-------------------------+-----------+-------------------+--------+-----------+------+
| 77dd24cc-3136-4386-89b8-4f674b33d8c7 | test_vm_2014May08091518 | mysql | 5.5 | ACTIVE | 6 | 2 |
| c2dc18df-6641-4c6a-a3f4-f7cc9ca65be2 | test_vm_2014May12080822 | mysql | 5.5 | ACTIVE | 6 | 2 |
+--------------------------------------+-------------------------+-----------+-------------------+--------+-----------+------+ |
|