The incorrect output of "nova show" when VM has long user data

Bug #1616415 reported by Timur Nurlygayanov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-novaclient
Fix Released
Undecided
viswesuwara nathan

Bug Description

Steps To Reproduce:
1. Create VM "test" with large user data
2. Execute in CLI:
nova show test

Expected Result:
We can see the default output of nova show command

Observed Result:
All fields are too large, the output of nova show command takes several pages with many empty lines.

Revision history for this message
Timur Nurlygayanov (tnurlygayanov) wrote :
Download full text (325.4 KiB)

Example of output:

root@node-1:~# nova show 09836461-4a32-425d-a8e4-c06cfd29bfe6
+-----------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------...

Changed in python-novaclient:
assignee: nobody → viswesuwara nathan (viswesn)
status: New → In Progress
Revision history for this message
viswesuwara nathan (viswesn) wrote :

Waiting for review code review comments.
https://review.openstack.org/362303

Revision history for this message
viswesuwara nathan (viswesn) wrote :

New argument "--wrap" is added for "nova show" command to wrap the output. The default wrap length is set to 80 now.

Usage:
nova show --wrap 60 <server-id>
nova show <server-id> <---- Default to 80 now.

Revision history for this message
viswesuwara nathan (viswesn) wrote :

Due to unit testing failures the default wrap has been modified to 0 instead of 80 (specified in #3); The end user now need to specify the wrap argument, if he/she need to see the output specific to the display screen.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-novaclient (master)

Reviewed: https://review.openstack.org/362303
Committed: https://git.openstack.org/cgit/openstack/python-novaclient/commit/?id=42f217042403badf1baa1679509fd2bd0d343a17
Submitter: Jenkins
Branch: master

commit 42f217042403badf1baa1679509fd2bd0d343a17
Author: vnathan <email address hidden>
Date: Sun Sep 4 12:32:16 2016 +0530

    Fix incorrect output of "nova show" for long user data

    New argument "--wrap" is added for "nova show" command to wrap
    the output. The default wrap length is set to 0 i.e. no wrap.
    Usage: nova show --wrap 80 <server-id>

    closes-bug: 1616415

    Change-Id: I7f4869d743f7bf9ff653183a5767134c796c440a

Changed in python-novaclient:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/python-novaclient 7.0.0

This issue was fixed in the openstack/python-novaclient 7.0.0 release.

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.