Add knowledge of openstack releases Pike and Queens

Bug #1670385 reported by Scott Moser on 2017-03-06
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
software-properties (Ubuntu)
Medium
Unassigned
Xenial
Medium
Unassigned
Yakkety
Medium
Unassigned
Zesty
Medium
Unassigned

Bug Description

=== Begin SRU Information ===
[Impact]
Software-properties knows about openstack releases so that the user can do
  $ add-apt-repository cloud-archive/ocata

The next 2 openstack releases are known already, so we might as well add
them to software-properties.

[Test case]
sudo add-apt-repository cloud-archive:queens
sudo add-apt-repository cloud-archive:queens-proposed
sudo add-apt-repository cloud-archive:pike
sudo add-apt-repository cloud-archive:pike-proposed

There are no repositories on the other side of those commands at the
moment, so an 'apt-get update' will not succeed, but when they are populated
it will.

[Regression Potential]
As mentioned above, the repositories are not yet populated.
So, the failure case is a bit different than it was before when
add-apt-repositiry would just fail. However, it could not have been expected
to succeed in either case.

[Other Info]
This was originally requested by xnox in bug 1645827.
But the SRU and upload to zesty went through, so I made another bug
for this.
=== End SRU Information ===

O

Scott Moser (smoser) on 2017-03-06
Changed in software-properties (Ubuntu Xenial):
status: New → Confirmed
Changed in software-properties (Ubuntu Yakkety):
status: New → Confirmed
Changed in software-properties (Ubuntu Zesty):
status: New → Confirmed
Changed in software-properties (Ubuntu Xenial):
importance: Undecided → Medium
Changed in software-properties (Ubuntu Yakkety):
importance: Undecided → Medium
Changed in software-properties (Ubuntu Zesty):
importance: Undecided → Medium
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package software-properties - 0.96.24.11

---------------
software-properties (0.96.24.11) zesty; urgency=medium

  [Scott Moser]
  * debian/tests/run-tests: use gpg rather than gpg1, and show errors
    (LP: #1670399)
  * debian/tests/control: add gnupg to list of dependencies.

  [Iain Lane]
  * softwareproperties/shortcuts.py: Make add_key() return True. Since r988,
    the return value of add_key() is now used to raise an exception.
    ShortcutHandler.add_key() always succeeds, so should return True. This
    (LP: #1670399)

 -- Scott Moser <email address hidden> Mon, 06 Mar 2017 12:22:03 -0500

Changed in software-properties (Ubuntu Zesty):
status: Confirmed → Fix Released

Hello Scott, or anyone else affected,

Accepted software-properties into xenial-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/software-properties/0.96.20.6 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, and change the tag from verification-needed to verification-done. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed. In either case, details of your testing will help us make a better decision.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance!

Changed in software-properties (Ubuntu Xenial):
status: Confirmed → Fix Committed
tags: added: verification-needed
Changed in software-properties (Ubuntu Yakkety):
status: Confirmed → Fix Committed
Chris J Arges (arges) wrote :

Hello Scott, or anyone else affected,

Accepted software-properties into yakkety-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/software-properties/0.96.24.7.1 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, and change the tag from verification-needed to verification-done. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed. In either case, details of your testing will help us make a better decision.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance!

Scott Moser (smoser) wrote :

## set up a container with software-properties installed from -proposed
$ rel=xenial
$ name=xenial-1
$ lxc launch ubuntu-daily:$rel $name
$ lxc exec $name -- sh -c 'while ! [ -e /run/cloud-init/result.json ]; do echo .; sleep 1; done' </dev/null
$ lxc exec $name -- sh -e <<"EOF"
rel=$(lsb_release -sc)
line=$(awk '$1 == "deb" && $2 ~ /ubuntu.com/ {
  printf("%s %s %s-proposed main universe\n", $1, $2, rel); exit(0) };
  ' "rel=$rel" /etc/apt/sources.list)
echo "$line" | sudo tee /etc/apt/sources.list.d/proposed.list
apt-get update -qq
apt-get install -qy software-properties-common </dev/null
EOF
...

$ lxc exec $name -- dpkg-query --show software-properties-common </dev/null
software-properties-common 0.96.20.6

$ for n in queens pike queens-proposed pike-proposed; do
   lxc exec $name -- sh <<EOF
echo == $n ==
add-apt-repository -y cloud-archive:$n
EOF
done
== queens ==
Reading package lists...
Building dependency tree...
Reading state information...
The following NEW packages will be installed:
  ubuntu-cloud-keyring
0 upgraded, 1 newly installed, 0 to remove and 23 not upgraded.
Need to get 5086 B of archives.
After this operation, 34.8 kB of additional disk space will be used.
Get:1 http://us.archive.ubuntu.com/ubuntu xenial/universe amd64 ubuntu-cloud-keyring all 2012.08.14 [5086 B]
Fetched 5086 B in 0s (15.1 kB/s)
Selecting previously unselected package ubuntu-cloud-keyring.
(Reading database ... 25470 files and directories currently installed.)
Preparing to unpack .../ubuntu-cloud-keyring_2012.08.14_all.deb ...
Unpacking ubuntu-cloud-keyring (2012.08.14) ...
Setting up ubuntu-cloud-keyring (2012.08.14) ...
Importing ubuntu-cloud.archive.canonical.com keyring
OK
Processing ubuntu-cloud.archive.canonical.com removal keyring
gpg: /etc/apt/trustdb.gpg: trustdb created
OK
== pike ==
Reading package lists...
Building dependency tree...
Reading state information...
ubuntu-cloud-keyring is already the newest version (2012.08.14).
0 upgraded, 0 newly installed, 0 to remove and 23 not upgraded.
== queens-proposed ==
Reading package lists...
Building dependency tree...
Reading state information...
ubuntu-cloud-keyring is already the newest version (2012.08.14).
0 upgraded, 0 newly installed, 0 to remove and 23 not upgraded.
== pike-proposed ==
Reading package lists...
Building dependency tree...
Reading state information...
ubuntu-cloud-keyring is already the newest version (2012.08.14).
0 upgraded, 0 newly installed, 0 to remove and 23 not upgraded.

$ lxc exec $name -- find /etc/apt/sources.list.d
/etc/apt/sources.list.d
/etc/apt/sources.list.d/launchpad-ubuntu-buildd-staging-xenial.list.save
/etc/apt/sources.list.d/launchpad-ubuntu-buildd-staging-xenial.list
/etc/apt/sources.list.d/cloudarchive-pike.list
/etc/apt/sources.list.d/cloudarchive-queens.list.save
/etc/apt/sources.list.d/cloudarchive-pike.list.save
/etc/apt/sources.list.d/proposed.list
/etc/apt/sources.list.d/proposed.list.save
/etc/apt/sources.list.d/cloudarchive-queens-proposed.list.save
/etc/apt/sources.list.d/cloudarchive-queens.list
/etc/apt/sources.list.d/cloudarchive-pike-proposed.list
/etc/apt/sources.list.d/cloudarchive-queens-proposed.list

Scott Moser (smoser) wrote :

## set up a container with software-properties installed from -proposed
$ rel=yakkety
$ name=yakkety-1
$ lxc launch ubuntu-daily:$rel $name
$ lxc exec $name -- sh -c 'while ! [ -e /run/cloud-init/result.json ]; do echo .; sleep 1; done' </dev/null
$ lxc exec $name -- sh -e <<"EOF"
rel=$(lsb_release -sc)
line=$(awk '$1 == "deb" && $2 ~ /ubuntu.com/ {
  printf("%s %s %s-proposed main universe\n", $1, $2, rel); exit(0) };
  ' "rel=$rel" /etc/apt/sources.list)
echo "$line" | sudo tee /etc/apt/sources.list.d/proposed.list
apt-get update -qq
apt-get install -qy software-properties-common </dev/null
EOF

$ lxc exec $name -- dpkg-query --show software-properties-common </dev/null
software-properties-common 0.96.24.7.1

$ for n in queens pike queens-proposed pike-proposed; do
   lxc exec $name -- sh <<EOF
echo == $n ==
add-apt-repository -y cloud-archive:$n
EOF
done
== queens ==
cloud-archive for Queens only supported on xenial
== pike ==
cloud-archive for Pike only supported on xenial
== queens-proposed ==
cloud-archive for Queens-proposed only supported on xenial
== pike-proposed ==
cloud-archive for Pike-proposed only supported on xenial

$ lxc exec $name -- find /etc/apt/sources.list.d
/etc/apt/sources.list.d
/etc/apt/sources.list.d/proposed.list.save
/etc/apt/sources.list.d/proposed.list
/etc/apt/sources.list.d/launchpad-ubuntu-buildd-staging-yakkety.list

Scott Moser (smoser) on 2017-04-20
tags: added: verification-done-xenial verification-done-yakkety
removed: verification-needed
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package software-properties - 0.96.24.7.1

---------------
software-properties (0.96.24.7.1) yakkety-proposed; urgency=medium

  * Add knowledge of OpenStack releases Ocata, Pike and Queens. (LP: #1670385)

  [ Scott Moser & Dimitri John Ledkov ]
  * When failing to retrieve a GPG key, raise an exception such that
    e.g. add-apt-repository can fail when it did not manage to retrieve a
    GPG key for the shortcut repository. LP: #1532855

 -- Scott Moser <email address hidden> Mon, 06 Mar 2017 17:15:20 -0500

Changed in software-properties (Ubuntu Yakkety):
status: Fix Committed → Fix Released

The verification of the Stable Release Update for software-properties has completed successfully and the package has now been released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers