network-get fails to find configs on 2.3.0 that worked on 2.2.6
Bug #1737058 reported by
William Grant
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Fix Released
|
Critical
|
Eric Claude Jones | ||
2.3 |
Fix Released
|
Critical
|
Eric Claude Jones |
Bug Description
After upgrading one of my controllers from Juju 2.2.6 to 2.3.0 this morning (model still 2.2.6):
$ juju run --unit=telegraf/0 'network-get --primary-address prometheus-client'
ERROR no network config found for binding "prometheus-client"
On the production equivalent, which is still fully Juju 2.2.6:
$ juju run --unit=telegraf/0 'network-get --primary-address prometheus-client'
10.50.92.21
Changed in juju: | |
milestone: | none → 2.3.1 |
status: | New → Triaged |
importance: | Undecided → Critical |
assignee: | nobody → Witold Krecicki (wpk) |
Changed in juju: | |
milestone: | 2.3.1 → none |
Changed in juju: | |
milestone: | none → 2.3.2 |
Changed in juju: | |
assignee: | Witold Krecicki (wpk) → Eric Claude Jones (ecjones) |
Changed in juju: | |
status: | In Progress → Fix Committed |
tags: | added: sts |
tags: |
added: canonical-bootstack removed: sts |
Changed in juju: | |
status: | Fix Committed → Fix Released |
Changed in juju: | |
status: | Fix Released → Triaged |
milestone: | 2.3.2 → 2.3.5 |
Changed in juju: | |
milestone: | 2.3.5 → 2.4-beta1 |
To post a comment you must log in.
wgrant did some digging into their staging server
[13:59:11] <wgrant> Hmmh mmm
[13:59:19] <wgrant> Are subnets new in 2.3?
[13:59:53] <wgrant> Trying to debug this 2.3.0 upgrade network-get thing. New models are fine.
[14:00:08] <wgrant> But the only subnets in the DB are for the new model
[14:06:36] <wgrant> Looking at the code, it does not seem implausible that this is the problem.
[14:06:51] <wgrant> getOneNetworkConfig requires a corresponding subnet to exist to match the IP to the space.
[14:10:22] <wgrant> Oh interesting.
[14:11:26] <wgrant> I have a second model on the prod controller (now 2.2.6) that was created in 2.2.0, and it has subnets, while the controller model and main model (created in 2.0 or 2.1) don't have subnets.
[14:11:48] <wgrant> So I guess subnets were new in 2.2, and 2.3 breaks if they're not there, but no upgrade added them from 2.1 and earlier?