When I choose to get the output as a json the end of the print stuck with the shell line.
for example:
stack@qa-cloud-openstack6-controller1:~/devstack$ openstack server show 1f963466-d7b2-4e58-8ab6-9f9bbbe3a702 -f json { "OS-EXT-STS:task_state": null, "addresses": "test_networking_network=192.168.2.4, 10.209.86.57", "image": "mellanox-rhel-7.2-OFED-last_release (6df27f81-8f57-4303-b0c1-5736bf735dfc)", "OS-EXT-STS:vm_state": "active", "OS-EXT-SRV-ATTR:instance_name": "instance-00000028", "OS-SRV-USG:launched_at": "2017-03-19T13:22:44.000000", "flavor": "m1.small (2)", "id": "1f963466-d7b2-4e58-8ab6-9f9bbbe3a702", "security_groups": "name='default'", "volumes_attached": "", "user_id": "b970d8f569bc4ef1896c491aaf816a23", "OS-DCF:diskConfig": "MANUAL", "accessIPv4": "", "accessIPv6": "", "progress": 0, "OS-EXT-STS:power_state": "Running", "OS-EXT-AZ:availability_zone": "nova", "config_drive": "", "status": "ACTIVE", "updated": "2017-03-19T13:22:45Z", "hostId": "b54d2d9522e70e7de788f578787dfa7bba5dd1e5caf7c479dcbc43b8", "OS-EXT-SRV-ATTR:host": "qa-cloud-openstack6-compute1", "OS-SRV-USG:terminated_at": null, "key_name": "test_networking_key", "properties": "", "project_id": "88fe1414d4704cdca464e521b104339e", "OS-EXT-SRV-ATTR:hypervisor_hostname": "qa-cloud-openstack6-compute1", "name": "test_networking_vm_2", "created": "2017-03-19T13:22:38Z" }stack@qa-cloud-openstack6-controller1:~/devstack$
you can see above that json closing bracket is in same line as shell. this happen to all commands I use.
openstack --version openstack 3.9.0 OS Ubuntu 16.04.2 LTS
When I choose to get the output as a json the end of the print stuck with the shell line.
for example:
stack@qa- cloud-openstack 6-controller1: ~/devstack$ openstack server show 1f963466- d7b2-4e58- 8ab6-9f9bbbe3a7 02 -f json STS:task_ state": null, g_network= 192.168. 2.4, 10.209.86.57", rhel-7. 2-OFED- last_release (6df27f81- 8f57-4303- b0c1-5736bf735d fc)", STS:vm_ state": "active", SRV-ATTR: instance_ name": "instance- 00000028" , USG:launched_ at": "2017-03- 19T13:22: 44.000000" , d7b2-4e58- 8ab6-9f9bbbe3a7 02", groups" : "name='default'", attached" : "", f1896c491aaf816 a23", diskConfig" : "MANUAL", STS:power_ state": "Running", AZ:availability _zone": "nova", 19T13:22: 45Z", 7de788f578787df a7bba5dd1e5caf7 c479dcbc43b8" , SRV-ATTR: host": "qa-cloud- openstack6- compute1" , USG:terminated_ at": null, g_key", dca464e521b1043 39e", SRV-ATTR: hypervisor_ hostname" : "qa-cloud- openstack6- compute1" , g_vm_2" , 19T13:22: 38Z" qa-cloud- openstack6- controller1: ~/devstack$
{
"OS-EXT-
"addresses": "test_networkin
"image": "mellanox-
"OS-EXT-
"OS-EXT-
"OS-SRV-
"flavor": "m1.small (2)",
"id": "1f963466-
"security_
"volumes_
"user_id": "b970d8f569bc4e
"OS-DCF:
"accessIPv4": "",
"accessIPv6": "",
"progress": 0,
"OS-EXT-
"OS-EXT-
"config_drive": "",
"status": "ACTIVE",
"updated": "2017-03-
"hostId": "b54d2d9522e70e
"OS-EXT-
"OS-SRV-
"key_name": "test_networkin
"properties": "",
"project_id": "88fe1414d4704c
"OS-EXT-
"name": "test_networkin
"created": "2017-03-
}stack@
you can see above that json closing bracket is in same line as shell.
this happen to all commands I use.
openstack --version
openstack 3.9.0
OS Ubuntu 16.04.2 LTS