ubuntu devel macos win: panic: osVersion reported an error: Could not determine series
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| | juju |
High
|
Unassigned | ||
| | juju-core |
Undecided
|
Unassigned | ||
| | 1.24 |
Undecided
|
Unassigned | ||
| | 1.25 |
Undecided
|
Unassigned | ||
| | juju-release-tools |
Critical
|
Curtis Hovey | ||
Bug Description
The wily build in Lp failed when the script that creates the help docs which in turn call the new juju.
HOME=debian/home /build/
panic: osVersion reported an error: Could not determine series
This issue was fixed in the past for 1.20 and 1.21. This might be a new manifestation.
This issue blocked 1.22.5 from building in Ubuntu.
This issue relates to bug 1316593
| Curtis Hovey (sinzui) wrote : | #1 |
| Curtis Hovey (sinzui) wrote : | #2 |
Ubuntu is concerned about the future rebuild case. When Ubuntu need to rebuild an old juju for a series, They expect it to work, a code change to juju is indicative of bad design.
Martin and I believe adding distro-info as a build-depends requirement in the package control-file will address this concern.
| Curtis Hovey (sinzui) wrote : | #3 |
I updated build-depends to include distro-info and we see Lp builds now succeed. This issue is addressed for Ubuntu. Other Oses are be affected, such as OS X which are require native builsd.
| Changed in juju-release-tools: | |
| assignee: | nobody → Curtis Hovey (sinzui) |
| status: | New → In Progress |
| importance: | Undecided → Critical |
| Changed in juju-release-tools: | |
| status: | In Progress → Fix Released |
| Curtis Hovey (sinzui) wrote : | #4 |
I think the "high" priority of this bug is addressed for now, Ubuntu package building rules will always supply a series. Juju will fail when OS X El Capitan is released and the version is not hard coded into juju versions.
| no longer affects: | juju-core/1.24 |
| no longer affects: | juju-core/1.22 |
| Changed in juju-core: | |
| milestone: | 1.25.0 → none |
| importance: | High → Medium |
MacBook-Pro:~ fenris$ brew uninstall juju
Uninstalling /usr/local/
juju 1.16.5, 1.16.6, 1.18.3, 1.20.1, 1.20.10, 1.20.11, 1.20.13, 1.20.14, 1.20.7, 1.20.8, 1.21.1, 1.21.3, 1.22.0, 1.22.1, 1.23.3, 1.24.0 are still installed.
Remove them all with `brew uninstall --force juju`.
MacBook-Pro:~ fenris$ brew uninstall --force juju
Uninstalling juju... (59 files, 752M)
MacBook-Pro:~ fenris$ juju
-bash: /usr/local/
MacBook-Pro:~ fenris$ brew install juju
Warning: You are using OS X 10.11.
We do not provide support for this pre-release version.
You may encounter build failures or other breakage.
==> Downloading https:/
Already downloaded: /Library/
==> go build github.
==> go build github.
==> Caveats
Bash completion has been installed to:
/usr/
==> Summary
🍺 /usr/local/
MacBook-Pro:~ fenris$ juju
panic: osVersion reported an error: unknown series ""
goroutine 1 [running]:
github.
/private/
github.
/private/
github.
/private/
main.init()
/private/
MacBook-Pro:~ fenris$ uname -a
Darwin MacBook-Pro.local 15.0.0 Darwin Kernel Version 15.0.0: Tue Jul 21 21:47:25 PDT 2015; root:xnu-
| Changed in juju-core: | |
| importance: | Medium → High |
| milestone: | none → 1.25.0 |
| tags: | added: osx |
| Jorge Castro (jorge) wrote : | #6 |
This breaks us on Windows 10 too:
C:\ProgramData\
panic: osVersion reported an error: unknown series "Windows 10 Home"
goroutine 1 [running]:
runtime.
github.
on.go:26 +0x9a
github.
.go:36 +0x38d
github.
20 +0x4d
main.init()
ejuju.go:417 +0x43
| tags: | added: windows |
| description: | updated |
| summary: |
- Wily builds fail: panic: osVersion reported an error: Could not - determine series + Wily osx win: panic: osVersion reported an error: Could not determine + series |
| Changed in juju-core: | |
| milestone: | 1.25-alpha1 → 1.25-beta1 |
| Khairul Aizat Kamarudzzaman (fenris) wrote : Re: Wily osx win: panic: osVersion reported an error: Could not determine series | #7 |
juju for windows 10 already working in 1.25-alpha1
| Curtis Hovey (sinzui) wrote : | #8 |
This bug is not about enabling a specific version on an OS. We know this bug is fixed when a user can install juju, upgrade to a beta version of an OS and juju keeps working. Since Juju is (no jujud) is a client, it does not matter what version of OS the host is.
| Changed in juju-core: | |
| milestone: | 1.25-beta1 → 1.26-alpha1 |
| Changed in juju-core: | |
| status: | Triaged → In Progress |
| assignee: | nobody → Dave Cheney (dave-cheney) |
| Curtis Hovey (sinzui) wrote : | #9 |
Homebrew will not accept Juju 1.24.6 because it fails on El Capitan
https:/
| Cheryl Jennings (cherylj) wrote : | #10 |
Dave, is this currently being worked? I see that it's been In Progress for a while and was set by thumper.
| Changed in juju-core: | |
| milestone: | 1.26-alpha1 → 1.26-alpha2 |
| Changed in juju-core: | |
| status: | In Progress → Triaged |
| assignee: | Dave Cheney (dave-cheney) → nobody |
| milestone: | 1.26-alpha2 → 1.26-beta1 |
| Changed in juju-core: | |
| milestone: | 1.26-beta1 → 2.0-alpha2 |
| Adam Israel (aisrael) wrote : | #11 |
As far as El Capitan goes, support was merged in August (see https:/
| Dave Cheney (dave-cheney) wrote : | #12 |
AFIAC this bug is fixed, although fixing it may have moved the problem elsewhere.
juju/juju/version no longer needs to know the series or the architecture of the host, only the version number.
With that said, os parsing was moved to juju/utils/os. On linux, that now returned os.Unknown if the operating system is not known, ie some linux variant we haven't encountered before. OSX and Windows just return their respective constants.
The last element is juju/utils/series, which currently panics if the series of the machine cannot be determined. The solution to that would be to add some kind of Unknown value to that package. This is probably reasonably safe to do as it would permit the client to "work", ie, not panic on startup, although anything that used the series from that client would fail. This would probably mean that the client couldn't bootstrap environments without passing flags to say "make this a linux/centos environment" from a OSX machine -- but that is probably necessary now.
| Changed in juju-core: | |
| milestone: | 2.0-alpha2 → 2.0-alpha3 |
| Changed in juju-core: | |
| milestone: | 2.0-alpha3 → 2.0-beta4 |
| Changed in juju-core: | |
| milestone: | 2.0-beta4 → 2.0.0 |
| Mark Ramm (mark-ramm) wrote : | #13 |
Dave,
Would it make sense to use 16.04 to bootstrap if the series in juju/utils/series is "unknown"
This could be updated in a later version of juju.
| Dave Cheney (dave-cheney) wrote : Re: [Bug 1465317] Re: Wily osx win: panic: osVersion reported an error: Could not determine series | #14 |
Seems reasonable.
On Fri, Jun 3, 2016 at 10:36 AM, Mark Ramm
<email address hidden> wrote:
> Dave,
>
> Would it make sense to use 16.04 to bootstrap if the series in
> juju/utils/series is "unknown"
>
> This could be updated in a later version of juju.
>
> --
> You received this bug notification because you are a bug assignee.
> https:/
>
> Title:
> Wily osx win: panic: osVersion reported an error: Could not determine
> series
>
> Status in juju-core:
> Triaged
> Status in juju-core 1.24 series:
> Won't Fix
> Status in juju-core 1.25 series:
> Triaged
> Status in juju-release-tools:
> Fix Released
>
> Bug description:
> The wily build in Lp failed when the script that creates the help docs
> which in turn call the new juju.
>
> HOME=debian/home /build/
> panic: osVersion reported an error: Could not determine series
>
> This issue was fixed in the past for 1.20 and 1.21. This might be a
> new manifestation.
>
> This issue blocked 1.22.5 from building in Ubuntu.
>
> This issue relates to bug 1316593
>
> To manage notifications about this bug go to:
> https:/
| Anastasia (anastasia-macmood) wrote : Re: Wily osx win: panic: osVersion reported an error: Could not determine series | #15 |
@Curtis
We have done a lot of work in the area. Does CI still experience this failure?
| Changed in juju-core: | |
| status: | Triaged → Incomplete |
| affects: | juju-core → juju |
| Changed in juju: | |
| milestone: | 2.0.0 → none |
| milestone: | none → 2.0.0 |
| Changed in juju-core: | |
| status: | New → Won't Fix |
| Menno Finlay-Smits (menno.smits) wrote : | #16 |
This should be fixed by the work done for bug 1616531.
Marking as Fix Released. Please reopen if there's still a problem.
| Changed in juju: | |
| status: | Incomplete → Fix Released |
| Curtis Hovey (sinzui) wrote : | #17 |
Users who upgrade to MacOS Sierra are reporting this bug. I will ask them to retest with rc2
| Changed in juju: | |
| status: | Fix Released → Triaged |
| importance: | High → Critical |
| status: | Triaged → Fix Released |
| Curtis Hovey (sinzui) wrote : | #18 |
This is not fixed, users upgrading to MacOS Sierra have broken jujus. rc1 and rc2 fail. This is the failure from The homebrew I just built for rc2 (We cannot submit this to homebrew, they want a fix).
panic: unable to determine host series: unknown series ""
goroutine 1 [running]:
panic(0x12fd540, 0xc4201c1570)
/usr/local/
github.
/private/
sync.(*
/usr/local/
github.
/private/
github.
/private/
github.
/private/
github.
/private/
github.
/private/
main.init()
/private/
| Changed in juju: | |
| status: | Fix Released → In Progress |
| status: | In Progress → Triaged |
| Michael Hudson-Doyle (mwhudson) wrote : | #19 |
Oh, I know this one. Only binaries built with Go 1.7.1 work on macOS sierra.
| Jay R. Wren (evarlast) wrote : Re: [Bug 1465317] Re: Wily osx win: panic: osVersion reported an error: Could not determine series | #20 |
It really is:
$ git diff
diff --git a/series/series.go b/series/series.go
index 35202ca..1ff651a 100644
--- a/series/series.go
+++ b/series/series.go
@@ -80,6 +80,7 @@ func macOSXSeriesFro
func() (string, error)) (str
// macOSXSeries maps from the Darwin Kernel Major Version to the Mac OSX
// series.
var macOSXSeries = map[int]string{
+ 16: "sierra",
15: "elcapitan",
14: "yosemite",
13: "mavericks",
As the comment says:
// TODO(jam): 2014-05-06 https:/
// we should have a system file that we can read so this can be updated
without
// recompiling Juju. For now, this is a lot easier, and also solves the fact
// that we want to populate HostSeries during init() time, before
// we've potentially read that information from anywhere else
// macOSXSeries maps from the Darwin Kernel Major Version to the Mac OSX
// series.
On Sun, Oct 2, 2016 at 6:39 PM, Michael Hudson-Doyle <
<email address hidden>> wrote:
> Oh, I know this one. Only binaries built with Go 1.7.1 work on macOS
> sierra.
>
> --
> You received this bug notification because you are subscribed to a
> duplicate bug report (1483889).
> https:/
>
> Title:
> Wily osx win: panic: osVersion reported an error: Could not determine
> series
>
> To manage notifications about this bug go to:
> https:/
>
| Jay R. Wren (evarlast) wrote : | #21 |
https:/
On Mon, Oct 3, 2016 at 10:38 AM, Jay Wren <email address hidden> wrote:
> It really is:
>
> $ git diff
> diff --git a/series/series.go b/series/series.go
> index 35202ca..1ff651a 100644
> --- a/series/series.go
> +++ b/series/series.go
> @@ -80,6 +80,7 @@ func macOSXSeriesFro
> func() (string, error)) (str
> // macOSXSeries maps from the Darwin Kernel Major Version to the Mac OSX
> // series.
> var macOSXSeries = map[int]string{
> + 16: "sierra",
> 15: "elcapitan",
> 14: "yosemite",
> 13: "mavericks",
>
> As the comment says:
>
> // TODO(jam): 2014-05-06 https:/
> // we should have a system file that we can read so this can be updated
> without
> // recompiling Juju. For now, this is a lot easier, and also solves the
> fact
> // that we want to populate HostSeries during init() time, before
> // we've potentially read that information from anywhere else
> // macOSXSeries maps from the Darwin Kernel Major Version to the Mac OSX
> // series.
>
>
> On Sun, Oct 2, 2016 at 6:39 PM, Michael Hudson-Doyle <
> <email address hidden>> wrote:
>
>> Oh, I know this one. Only binaries built with Go 1.7.1 work on macOS
>> sierra.
>>
>> --
>> You received this bug notification because you are subscribed to a
>> duplicate bug report (1483889).
>> https:/
>>
>> Title:
>> Wily osx win: panic: osVersion reported an error: Could not determine
>> series
>>
>> To manage notifications about this bug go to:
>> https:/
>>
>
>
| Alexis Bruemmer (alexis-bruemmer) wrote : Re: Wily osx win: panic: osVersion reported an error: Could not determine series | #22 |
https:/
merged PR, thanks to James Beedy!
| Changed in juju: | |
| status: | Triaged → Fix Committed |
| Changed in juju: | |
| status: | Fix Committed → Fix Released |
| Filip Dabrowski (filipdabrowski) wrote : | #23 |
For MacOS Sierra this issue still exists.
Juju installed by Homebrew.
Juju version: juju-1.25.6
Error: "panic: osVersion reported an error: unknown series"
Any chance for fix?
| Filip Dabrowski (filipdabrowski) wrote : | #24 |
Just a sec ago installed homebrew/
brew install --devel homebrew/
Have same error as with juju-1.25.6
| Changed in juju: | |
| status: | Fix Released → Triaged |
| milestone: | 2.0-rc3 → 2.0.1 |
| Anastasia (anastasia-macmood) wrote : | #25 |
MacOs Sierra has been fixed by this bug https:/
| Changed in juju: | |
| status: | Triaged → Fix Committed |
| assignee: | nobody → Katherine Cox-Buday (cox-katherine-e) |
| Curtis Hovey (sinzui) wrote : | #26 |
This bug will be fixed when we don't require a code change to support the next Windows or MacOS version. the specific issue is users will upgrade their OS and the client stops working. There is no justifiable reason for the client to break.
| Changed in juju: | |
| status: | Fix Committed → Triaged |
| Richard Harding (rharding) wrote : Re: [Bug 1465317] Re: Wily osx win: panic: osVersion reported an error: Could not determine series | #27 |
The fix for that is in progress. Katherine is making sure that a new OSX
release can go out without requiring a new Juju to be built and shipped.
On Tue, Oct 18, 2016 at 11:16 AM Curtis Hovey <email address hidden> wrote:
> This bug will be fixed when we don't require a code change to support
> the next Windows or MacOS version. the specific issue is users will
> upgrade their OS and the client stops working. There is no justifiable
> reason for the client to break.
>
> ** Changed in: juju
> Status: Fix Committed => Triaged
>
> --
> You received this bug notification because you are subscribed to juju-
> core.
> https:/
>
> Title:
> Wily osx win: panic: osVersion reported an error: Could not determine
> series
>
> To manage notifications about this bug go to:
> https:/
>
| Changed in juju: | |
| status: | Triaged → In Progress |
| Changed in juju: | |
| milestone: | 2.0.1 → none |
| summary: |
- Wily osx win: panic: osVersion reported an error: Could not determine - series + ubutu devel macos win: panic: osVersion reported an error: Could not + determine series |
| Changed in juju: | |
| assignee: | Katherine Cox-Buday (cox-katherine-e) → nobody |
| status: | In Progress → Triaged |
| Curtis Hovey (sinzui) wrote : Re: ubutu devel macos win: panic: osVersion reported an error: Could not determine series | #28 |
As we delivered patches for homebrew, I think we can say the issue is now high. We know the clients will break with the next releases of macos and windows, so we need 2.1 to be support unknown versions.
| Changed in juju: | |
| milestone: | none → 2.1-rc1 |
| importance: | Critical → High |
| Anastasia (anastasia-macmood) wrote : | #29 |
As it impact adoption, raising it back to Critical.
| Changed in juju: | |
| importance: | High → Critical |
| Ian Booth (wallyworld) wrote : | #30 |
Moving to 2.2 as 2.1 binaries work with release win and macos versions.
| Changed in juju: | |
| milestone: | 2.1-rc1 → 2.2.0-alpha1 |
| Changed in juju: | |
| importance: | Critical → High |
| importance: | High → Critical |
| Changed in juju: | |
| assignee: | nobody → Reed O'Brien (reedobrien) |
| status: | Triaged → In Progress |
| Changed in juju: | |
| assignee: | Reed O'Brien (reedobrien) → nobody |
| Reed O'Brien (reedobrien) wrote : | #31 |
Started on this, but priorities shifted:
| Reed O'Brien (reedobrien) wrote : | #32 |
Think those changes might work for osx and windows, but haven't tested.
| Changed in juju: | |
| status: | In Progress → Triaged |
| Curtis Hovey (sinzui) wrote : | #33 |
I am lowering this to High because there is no commitment to work on this. We still know that Juju clients will break with the next release of Windows and MacOS.
| Changed in juju: | |
| importance: | Critical → High |
| summary: |
- ubutu devel macos win: panic: osVersion reported an error: Could not + ubuntu devel macos win: panic: osVersion reported an error: Could not determine series |
| Changed in juju: | |
| milestone: | 2.2-alpha1 → none |


the build log is at /launchpadlibra rian.net/ 209048799/ buildlog_ ubuntu- wily-amd64. juju-core_ 1.22.5- 0ubuntu1_ BUILDING. txt.gz
https:/