juju metadata OSX versionpanic: osVersion reported an error: unknown series

Bug #1398943 reported by Jay R. Wren
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
juju-core
Fix Released
Critical
Unassigned

Bug Description

A master branch build of juju panics running juju metadata on OSX

$ ./juju metadata help
panic: osVersion reported an error: unknown series ""

goroutine 16 [running]:
runtime.panic(0x7c6ba0, 0xc208039590)
 /usr/local/Cellar/go/1.3/libexec/src/pkg/runtime/panic.c:279 +0xf5
github.com/juju/juju/version.mustOSVersion(0x0, 0x0)
 /Users/jrwren/go/src/github.com/juju/juju/version/osversion.go:26 +0xea
github.com/juju/juju/version.init()
 /Users/jrwren/go/src/github.com/juju/juju/version/version.go:36 +0x2df
main.init()
 /Users/jrwren/go/src/github.com/juju/juju/cmd/plugins/juju-metadata/validatetoolsmetadata.go:241 +0x4e

goroutine 17 [runnable]:
runtime.MHeap_Scavenger()
 /usr/local/Cellar/go/1.3/libexec/src/pkg/runtime/mheap.c:507
runtime.goexit()
 /usr/local/Cellar/go/1.3/libexec/src/pkg/runtime/proc.c:1445

goroutine 18 [runnable]:
bgsweep()
 /usr/local/Cellar/go/1.3/libexec/src/pkg/runtime/mgc0.c:1976
runtime.goexit()
 /usr/local/Cellar/go/1.3/libexec/src/pkg/runtime/proc.c:1445

goroutine 19 [runnable]:
runfinq()
 /usr/local/Cellar/go/1.3/libexec/src/pkg/runtime/mgc0.c:2606
runtime.goexit()
 /usr/local/Cellar/go/1.3/libexec/src/pkg/runtime/proc.c:1445
ERROR subprocess encountered error code 2

Revision history for this message
Curtis Hovey (sinzui) wrote :

This worked for me when I was on Mavericks. Are you on Yosemite? I think Juju needs to know about the new OS.

tags: added: metadata osx
Changed in juju-core:
status: New → Triaged
importance: Undecided → High
milestone: none → 1.22
Revision history for this message
Jay R. Wren (evarlast) wrote : Re: [Bug 1398943] Re: juju metadata on OSX panics

Yes, I am on Yosemite.

Juju knows a bit about Yosemite: https://github.com/juju/juju/pull/966

Something is different about the metadata command.

On Thu, Dec 4, 2014 at 12:09 PM, Curtis Hovey <email address hidden> wrote:

> This worked for me when I was on Mavericks. Are you on Yosemite? I think
> Juju needs to know about the new OS.
>
> ** Tags added: metadata osx
>
> ** Changed in: juju-core
> Status: New => Triaged
>
> ** Changed in: juju-core
> Importance: Undecided => High
>
> ** Changed in: juju-core
> Milestone: None => 1.22
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1398943
>
> Title:
> juju metadata on OSX panics
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/juju-core/+bug/1398943/+subscriptions
>

Curtis Hovey (sinzui)
Changed in juju-core:
milestone: 1.22 → 1.23
Revision history for this message
Curtis Hovey (sinzui) wrote : Re: OSX versionpanic: osVersion reported an error: unknown series

Juju 1.21.0 compiled with either 1.2.1 or 1.4.1 on mavericks cannot run juju status or juju version because of unknown series.

juju --version

panic: osVersion reported an error: unknown series ""

goroutine 1 [running]:
github.com/juju/juju/version.mustOSVersion(0x0, 0x0)
 /private/tmp/juju-ybb2TT/juju-core_1.21.0/src/github.com/juju/juju/version/osversion.go:26 +0xed
github.com/juju/juju/version.init()
 /private/tmp/juju-ybb2TT/juju-core_1.21.0/src/github.com/juju/juju/version/version.go:36 +0x340
github.com/juju/juju/tools.init()
 /private/tmp/juju-ybb2TT/juju-core_1.21.0/src/github.com/juju/juju/tools/tools.go:20 +0x54
main.init()
 /private/tmp/juju-ybb2TT/juju-core_1.21.0/src/github.com/juju/juju/cmd/juju/upgradejuju.go:416 +0x4f

juju versionpanic: osVersion reported an error: unknown series ""

no longer affects: juju-core/1.21
summary: - juju metadata on OSX panics
+ juju on OSX panics
summary: - juju on OSX panics
+ OSX versionpanic: osVersion reported an error: unknown series
Changed in juju-core:
importance: High → Critical
tags: added: panic status version
tags: added: regression
Revision history for this message
Curtis Hovey (sinzui) wrote :

I separated the 1.21 version issue because tha tjuju is completely broken on yosemite. This issue is about the metadata plugin only.

summary: - OSX versionpanic: osVersion reported an error: unknown series
+ juju metadata OSX versionpanic: osVersion reported an error: unknown
+ series
no longer affects: juju-core/1.21
Revision history for this message
Curtis Hovey (sinzui) wrote :

This was fixed in trunk some time ago. metadata in 1.21, 1.22, and 1.23 are working today.

no longer affects: juju-core/1.22
Changed in juju-core:
milestone: 1.23 → none
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.