fuel2 node list --format csv output comma inside "role"

Bug #1662143 reported by Sergey Galkin
6
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)","ready","ubuntu","[u'compute', u'ceph-osd']","10.21.0.144","3c:fd:fe:9c:b5:dc",2,"ThinkServer RD550",True

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

Tags: scale
Sergey Galkin (sgalkin)
tags: added: scale
Revision history for this message
Dmitry Pyzhov (dpyzhov) wrote :

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.

Changed in fuel:
status: New → Invalid
assignee: nobody → Fuel Sustaining (fuel-sustaining-team)
importance: Undecided → Medium
milestone: none → 10.1
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.