Wrongly capitalized field names in JSON output of "lxc list"

Bug #1667406 reported by Stéphane Graber
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
lxd (Ubuntu)
Fix Released
Undecided
Unassigned
Trusty
Fix Released
High
Unassigned
Xenial
Fix Released
High
Unassigned

Bug Description

This only affects LXD 2.0.9 in Ubuntu right now.

# Rationale
LXD 2.0.9 regressed JSON output of "lxc list" when compared to LXD 2.0.8 by having a few fields be now capitalized.

# Testcase
 - lxc launch ubuntu:16.04 xen
 - lxc list --format=json | grep Snapshots
 - Upgrade
 - lxc list --format=json | grep Snapshots

("Snapshots" is meant to be "snapshots")

# Regression potential
The commit only fixes the name of the two affected fields. It's unlikely that someone is already relying on the wrongly capitalized name and it's certainly worth fixing the regression for people scripting LXD.

Revision history for this message
Stéphane Graber (stgraber) wrote :

As this is a regression fix, I'll most likely be waving the -proposed testing period, just waiting for autopkgtest to confirm that everything is fine, doing a manual test and releasing.

Changed in lxd (Ubuntu):
status: New → Fix Released
Changed in lxd (Ubuntu Trusty):
status: New → Triaged
Changed in lxd (Ubuntu Xenial):
status: New → Triaged
Changed in lxd (Ubuntu Trusty):
importance: Undecided → High
Changed in lxd (Ubuntu Xenial):
importance: Undecided → High
Revision history for this message
Stéphane Graber (stgraber) wrote :
Changed in lxd (Ubuntu Xenial):
status: Triaged → In Progress
Revision history for this message
Stéphane Graber (stgraber) wrote :

Uploaded to the queue for review.

Revision history for this message
Brian Murray (brian-murray) wrote : Please test proposed package

Hello Stéphane, or anyone else affected,

Accepted lxd into xenial-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/lxd/2.0.9-0ubuntu1~16.04.2 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, and change the tag from verification-needed to verification-done. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed. In either case, details of your testing will help us make a better decision.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance!

Changed in lxd (Ubuntu Xenial):
status: In Progress → Fix Committed
tags: added: verification-needed
Revision history for this message
Stéphane Graber (stgraber) wrote :

Looks all good, releasing.

tags: added: verification-done
removed: verification-needed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package lxd - 2.0.9-0ubuntu1~16.04.2

---------------
lxd (2.0.9-0ubuntu1~16.04.2) xenial; urgency=medium

  * Cherry-pick upstream regression fix:
    - 0002-list-Fix-regression-in-json-output.patch (LP: #1667406)

 -- Stéphane Graber <email address hidden> Thu, 23 Feb 2017 12:56:02 -0500

Changed in lxd (Ubuntu Xenial):
status: Fix Committed → Fix Released
Revision history for this message
Stéphane Graber (stgraber) wrote : Update Released

The verification of the Stable Release Update for lxd has completed successfully and the package has now been released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.

Changed in lxd (Ubuntu Trusty):
status: Triaged → Fix Released
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.