Render long output in cli gracefully

Bug #1509338 reported by Maciej Kwiek
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Confirmed
Low
Fuel Sustaining
Mitaka
Won't Fix
Low
Fuel Python (Deprecated)
Newton
Confirmed
Low
Fuel Sustaining

Bug Description

This bug was fixed by removing 'changes' from cli output: https://bugs.launchpad.net/fuel/+bug/1373471 but when some fields in cli listings are very long, you can end up with malformed output.

You can reproduce it by assigning an absurdly long label to nodes:

fuel2 node label set -l <label-longer-than-your-screen-is-wide> --nodes-all
fuel2 node label list

+---------+-----------------------------------------------------------------------------------------------------------------+---------
----+
| node_id | label_name | label_va
lue |
+---------+-----------------------------------------------------------------------------------------------------------------+---------
----+
| 4 | trololofffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff | None
    |
| 4 | trololo | None
    |
| 4 | t1234567890qwertyuiopasdfghjklzxcvbnm1234567890qwertyuiopasdfghjklzxxcvbhnm1234567890qwertyuiopasdfghjklzxcvbnm | None
    |
| 6 | trololofffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff | None
    |
| 6 | trololo | None
    |
| 6 | t1234567890qwertyuiopasdfghjklzxcvbnm1234567890qwertyuiopasdfghjklzxxcvbhnm1234567890qwertyuiopasdfghjklzxcvbnm | None
    |
| 8 | trololofffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff | None
    |
| 8 | trololo | None
    |
| 8 | t1234567890qwertyuiopasdfghjklzxcvbnm1234567890qwertyuiopasdfghjklzxxcvbhnm1234567890qwertyuiopasdfghjklzxcvbnm | None
    |
| 9 | trololofffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff | None
    |
| 9 | trololo | None
    |
| 9 | t1234567890qwertyuiopasdfghjklzxcvbnm1234567890qwertyuiopasdfghjklzxxcvbhnm1234567890qwertyuiopasdfghjklzxcvbnm | None
    |
| 10 | trololofffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff | None
    |
| 10 | trololo | None
    |
| 10 | t1234567890qwertyuiopasdfghjklzxcvbnm1234567890qwertyuiopasdfghjklzxxcvbhnm1234567890qwertyuiopasdfghjklzxcvbnm | None
    |
| 11 | trololofffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff | None

etc.

Changed in fuel:
status: New → Confirmed
Dmitry Pyzhov (dpyzhov)
Changed in fuel:
milestone: 8.0 → 9.0
Revision history for this message
Bug Checker Bot (bug-checker) wrote : Autochecker

(This check performed automatically)
Please, make sure that bug description contains the following sections filled in with the appropriate data related to the bug you are describing:

actual result

version

expected result

steps to reproduce

For more detailed information on the contents of each of the listed sections see https://wiki.openstack.org/wiki/Fuel/How_to_contribute#Here_is_how_you_file_a_bug

tags: added: need-info
Dmitry Pyzhov (dpyzhov)
tags: added: module-client
removed: module-build
Revision history for this message
Vitalii Kulanov (vitaliy-t) wrote :

I think that this bug can be marked as Won't Fix, because now it is possible to control long output gracefully by '--max-width' and CLIFF_MAX_TERM_WIDTH envvar from cliff.
Check this: http://paste.openstack.org/show/507975/

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.