version: tests fail on arm64 14.04

Bug #1481133 reported by Dave Cheney
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
juju-core
Fix Released
Medium
Unassigned

Bug Description

FAIL: supportedseries_linux_test.go:17: supportedSeriesSuite.TestSeriesVersion

supportedseries_linux_test.go:26:
    c.Assert(err, jc.ErrorIsNil)
... value *errors.Err = &errors.Err{message:"", cause:"precise", previous:"precise", file:"github.com/juju/juju/version
/supportedseries.go", line:195} ("unknown version for series: \"precise\"")
... error stack:
        unknown version for series: "precise"
        github.com/juju/juju/version/supportedseries.go:195:

OOPS: 23 passed, 1 FAILED
--- FAIL: Test (0.34s)
FAIL
FAIL github.com/juju/juju/version 0.540s

How is this even possible???

Revision history for this message
Dave Cheney (dave-cheney) wrote :

This is caused by this helpful footgun

// updateDistroInfo updates seriesVersions from /usr/share/distro-info/ubuntu.csv if possible..
func updateDistroInfo() error {
        // We need to find the series version eg 12.04 from the series eg precise. Use the information found in
        // /usr/share/distro-info/ubuntu.csv provided by distro-info-data package.
        f, err := os.Open(distroInfo)
        if err != nil {
                // On non-Ubuntu systems this file won't exist but that's expected.
                return nil
        }
        defer f.Close()
        bufRdr := bufio.NewReader(f)

If /usr/share/distro-info/ubuntu.csv is missing, then we quietly pretend like there are NO UBUNTU SERIES EVER!!!

Revision history for this message
Ian Booth (wallyworld) wrote :

The above comment is not true - the updateDistroInfo() is used to update a pre-populated map of series->version. It augments what is known by Juju at the time the code was compiled with any more recent data.

Curtis Hovey (sinzui)
Changed in juju-core:
status: New → Triaged
importance: Undecided → Medium
tags: added: armhf unit-tests
Curtis Hovey (sinzui)
tags: added: arm64
removed: armhf
Changed in juju-core:
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.