Bug 1196203

Summary: 'tuskar role-list' outputs several blank lines
Product: Red Hat OpenStack Reporter: Udi Kalifon <ukalifon>
Component: python-tuskarclientAssignee: Lennart Regebro <lregebro>
Status: CLOSED ERRATA QA Contact: yeylon <yeylon>
Severity: low Docs Contact:
Priority: low    
Version: 6.0 (Juno)CC: akrivoka, brad, calfonso, lregebro, mburns, ohochman, rhel-osp-director-maint, srevivo
Target Milestone: gaKeywords: Triaged
Target Release: Director   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: python-tuskarclient-0.1.18-3.el7ost Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-08-05 13:50:34 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Udi Kalifon 2015-02-25 13:26:40 UTC
Description of problem:
When running 'tuskar role-list', some lines in the table are blank. You can even see it in the guide in https://openstack.redhat.com/TripleO-CLI where the role 'compute' is preceded by a blank line and followed by another blank line.


How reproducible:
100% 


Steps to Reproduce:
1. Follow the guide in https://openstack.redhat.com/TripleO-CLI


Actual results:

$ tuskar role-list
+--------------------------------------+----------------
| uuid                                 | name           
+--------------------------------------+----------------
| 5212f04b-ef84-47cb-ad47-608069586370 | cinder-storage 
| 648288aa-fa0f-422a-84d0-79fdadb1ab6d | compute        
|                                      |                
| 82114df3-e57d-4f3d-bd97-3fdcea83d76b | swift-storage  
| aa7b76ee-72e4-4f7b-b5b9-429cf20b5a7a | controller     
|                                      |                
+--------------------------------------+----------------

Comment 3 Lennart Regebro 2015-06-02 12:25:07 UTC
This is because descriptions can have newlines in them, and if the description ends with a newline, a blank line appears.

This patch attempts to fix this:

https://review.openstack.org/#/c/187548/

Comment 5 Udi Kalifon 2015-06-10 06:12:42 UTC
In which version is it fixed? Can you please fill in the field "Fixed In Version" above? Thanks.

Comment 6 Lennart Regebro 2015-06-10 11:37:48 UTC
It's not yet released.

Comment 7 Lennart Regebro 2015-06-10 11:51:57 UTC
OK, apparently the state descriptions should be ignored.

Comment 8 Lennart Regebro 2015-06-22 10:52:58 UTC
This patch is now merged.

Comment 9 Ana Krivokapic 2015-06-22 13:35:00 UTC
*** Bug 1234379 has been marked as a duplicate of this bug. ***

Comment 13 Udi Kalifon 2015-06-28 10:46:23 UTC
Verified in:
python-tuskarclient-0.1.18-3.el7ost.noarch
openstack-tuskar-0.4.18-3.el7ost.noarch

Comment 15 errata-xmlrpc 2015-08-05 13:50:34 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHEA-2015:1549