juju 2.1 packaging / binaries needs some polish

Bug #1646223 reported by David Britton
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Landscape Server
Invalid
Medium
Unassigned
OpenStack Charm Test Infra
Invalid
High
Ryan Beisner
juju-release-tools
Fix Released
Critical
Nicholas Skaggs

Bug Description

dpb@helo:~[0]$ juju-2.0
The program 'juju-2.0' is currently not installed. You can install it by typing:
sudo apt install juju-2.0

dpb@helo:~[0]$ sudo apt-get install juju-2.0
Reading package lists... Done
Building dependency tree
Reading state information... Done
juju-2.0 is already the newest version (1:2.1~beta1-0ubuntu1~16.04.1~juju1).
0 upgraded, 0 newly installed, 0 to remove and 11 not upgraded.

dpb@helo:~[0]$ dpkg -l |grep juju-2
ii juju-2.0 1:2.1~beta1-0ubuntu1~16.04.1~juju1 amd64 Juju is devops distilled - client

dpb@helo:~[0]$ dpkg -L juju-2.0 |grep /usr/bin/juju-2
/usr/bin/juju-2.1

dpb@helo:~[0]$ ll /usr/bin/juju-[0-9]*
lrwxrwxrwx 1 root root 9 Aug 16 14:04 /usr/bin/juju-1 -> juju-1.25*
-rwxr-xr-x 1 root root 68 Aug 16 14:04 /usr/bin/juju-1.25*
-rwxr-xr-x 1 root root 67 Nov 17 09:40 /usr/bin/juju-2.1*

1) package is 'juju-2.0' yet binary is not there anymore. One of these should change.

2) command-not-found needs updating?

3) Maybe introdce a 'juju-2' link?

no longer affects: juju
Changed in juju-release-tools:
status: New → Triaged
importance: Undecided → High
Revision history for this message
Nicholas Skaggs (nskaggs) wrote :

So we have to make a decision on how we're going to treat 2.x releases. We can swap all of these things to ensure juju 2.1 works in this scenarios. We can also ensure you either can or cannot install them alongside either other. Do we need a generic juju-2 symlink?

Either way, the work here is to improve debian/rules to respect $VERSION.

Changed in juju-release-tools:
importance: High → Critical
Revision history for this message
David Britton (dpb) wrote :

For backward compatability reasons, please at least keep the juju-2.0 symlink working. It's in xenial already.

Changed in landscape:
milestone: none → 16.12
Revision history for this message
Nicholas Skaggs (nskaggs) wrote :

Our packaging is currently "juju-2.0_2.1~beta3-0ubuntu1~12.04.1~juju1_amd64.deb"...

Ryan Beisner (1chb1n)
tags: added: uosci
Changed in charm-test-infra:
assignee: nobody → Ryan Beisner (1chb1n)
importance: Undecided → High
no longer affects: juju
Revision history for this message
Nicholas Skaggs (nskaggs) wrote :
Changed in landscape:
status: New → Triaged
importance: Undecided → Medium
Changed in landscape:
milestone: 16.12 → 17.01
Revision history for this message
Nicholas Skaggs (nskaggs) wrote :

I think we agree now we'd like to see this:

dpb@helo:~[0]$ ll /usr/bin/juju-[0-9]*
lrwxrwxrwx 1 root root 9 Aug 16 14:04 /usr/bin/juju-1 -> juju-1.25*
-rwxr-xr-x 1 root root 68 Aug 16 14:04 /usr/bin/juju-1.25*
lrwxrwxrwx 1 root root 9 Aug 16 14:04 /usr/bin/juju-2 -> juju-2.1*
-rwxr-xr-x 1 root root 67 Nov 17 09:40 /usr/bin/juju-2.1*

Revision history for this message
Nicholas Skaggs (nskaggs) wrote :

The symlink for juju-2 will be maintained. Try 2.1-beta5 packaging and see if this squashes these issues.

Changed in juju-release-tools:
status: Triaged → Fix Committed
assignee: nobody → Nicholas Skaggs (nskaggs)
Chad Smith (chad.smith)
Changed in landscape:
milestone: 17.01 → 17.02
Revision history for this message
Chad Smith (chad.smith) wrote :

No changes to the overall package name so nothing to fix for landscape. Txjuju already searches the path for juju-2 juju-2.0 juju-2.1 in that order to we are insulated from 2.X minor releases.

Changed in landscape:
status: Triaged → Invalid
Changed in charm-test-infra:
status: New → Triaged
Ryan Beisner (1chb1n)
Changed in charm-test-infra:
status: Triaged → Invalid
Changed in juju-release-tools:
status: Fix Committed → 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.