fuel2 node list --format csv output comma inside "role"
Bug #1662143 reported by
Sergey Galkin
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Fuel for OpenStack |
Invalid
|
Medium
|
Fuel Sustaining |
Bug Description
In the Fuel 9.2 fuel2 node list --format csv can output comma inside field
On example
#fuel2 node list --format csv | grep 10.21.0.144
160,"Untitled (b5:fc)
roles is ,"[u'compute', u'ceph-osd']",
And command
fuel2 node list --format csv | awk -F ',' '{print $7}'
can output IP address instead of the expected mac for nodes with 2 roles
Commas in quotes are part of the field in csv. awk cannot handle it so you need to use some other tool and/or output format.