WARNING juju.juju.series supportedseries.go:692 failed to update distro info: open /usr/share/distro-info/ubuntu.csv: no such file or directory on Trusty

Bug #1868322 reported by David Ames
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical Juju
Fix Released
Critical
Simon Richardson

Bug Description

Juju 2.7.5

snap info juju:

snap-id: e2CPHpB1fUxcKtCyJTsm5t3hN9axJ0yj
tracking: 2.7/candidate
  2.7/candidate: 2.7.5+2.7-8a81b98 2020-03-19 (10983) 82MB classic

The Trusty cloud images do not have distro-info installed by default leading juju commands to spew the following Warning to stderr.

root@juju-7db4d7-zaza-6013949e4099-3:/var/lib/juju/agents/unit-keystone-0/charm# network-get --primary-address public
2020-03-20 20:39:54 WARNING juju.juju.series supportedseries.go:692 failed to update distro info: open /usr/share/distro-info/ubuntu.csv: no such file or directory
172.20.0.15

The problem with this is there are a number of charm-helpers which mistakenly send stderr to stdout. This effectively breaks important helpers like charmhelpers.core.network_get and others.

The problem does not exist on juju 2.7.4

Revision history for this message
Richard Harding (rharding) wrote :

Thanks, this might be due to some of the series changes made in 2.7.5. Simon can you look into this for 2.7.5 in your morning please?

Changed in juju:
status: New → Triaged
importance: Undecided → Critical
milestone: none → 2.7.5
assignee: nobody → Simon Richardson (simonrichardson)
Revision history for this message
Simon Richardson (simonrichardson) wrote :

This is the PR[1] in os/series package to ensure we handle missing distro csv
Once this has been approved I'll bring this into juju/juju

 1. https://github.com/juju/os/pull/20

Changed in juju:
status: Triaged → In Progress
Changed in juju:
status: In Progress → Fix Committed
Tim Penhey (thumper)
Changed in juju:
status: Fix Committed → Fix Released
Revision history for this message
Alex Kavanagh (ajkavanagh) wrote :

Is it possible to get this released to the candidate channel, please? It's currently holding up our CI tests as we can't complete gate on the charms as we have trusty-* targets. Thanks.

Revision history for this message
Richard Harding (rharding) wrote :

This is in the 2.7 candidate channel currently. Are you still seeing the issue with that snap?

Revision history for this message
Alex Kavanagh (ajkavanagh) wrote :

Hi Rick, sorry I didn't spot that as I was looking at just the "candidate" channel. I will test with 2.7/candidate and report back. Thanks!

Revision history for this message
Alex Kavanagh (ajkavanagh) wrote :

Can confirm, that in my bastion, 2.7/candidate has solved the issue on trusty. Thanks.

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.