This bug was exposed by the SRU of distro-info-data to all series, which has added bionic to /usr/share/distro-info/ubuntu.csv as '18.04 LTS'.
This is a bug in juju, which is picking up a not-yet-released LTS from this file (note: 'distro info --lts' gets this right, juju gets it wrong). This is acknowledged, and the juju team is working on fixing juju.
However, that fix will come in the form of an updated juju-core 2.2.6 release. 2.2.4 is currently already in the SRU stream for xenial, and the plan is to push 2.2.6 to the SRU queue on top of this, rather than provide an update to juju 2.0.2 which is the current released version in xenial-updates.
As a result, while the juju bug will be fixed upstream quickly, it will take some time for the fix to reach all the affected users.
I am proposing to work around this issue in distro-info-data by temporarily removing the 'LTS' tag on 18.04 from ubuntu.csv. This should have no practical impact on other programmatic consumers of this data in stable Ubuntu releases, and will both unblock existing users of juju versions having this bug and let other tools that need to know about the current devel release work correctly.
This bug was exposed by the SRU of distro-info-data to all series, which has added bionic to /usr/share/ distro- info/ubuntu. csv as '18.04 LTS'.
This is a bug in juju, which is picking up a not-yet-released LTS from this file (note: 'distro info --lts' gets this right, juju gets it wrong). This is acknowledged, and the juju team is working on fixing juju.
However, that fix will come in the form of an updated juju-core 2.2.6 release. 2.2.4 is currently already in the SRU stream for xenial, and the plan is to push 2.2.6 to the SRU queue on top of this, rather than provide an update to juju 2.0.2 which is the current released version in xenial-updates.
As a result, while the juju bug will be fixed upstream quickly, it will take some time for the fix to reach all the affected users.
I am proposing to work around this issue in distro-info-data by temporarily removing the 'LTS' tag on 18.04 from ubuntu.csv. This should have no practical impact on other programmatic consumers of this data in stable Ubuntu releases, and will both unblock existing users of juju versions having this bug and let other tools that need to know about the current devel release work correctly.