[Bug 1233486] Re: add support for 'cloud-archive:' like 'ppa:' but for cloud archive
Scott Moser
smoser at ubuntu.com
Sat Oct 5 15:12:30 UTC 2013
I've just pushed to trunk, and uploaded to ubuntu saucy.
I've tested this like the following:
#fresh launch of saucy instance
sudo apt-get update --quiet
sudo apt-get install --assume-yes --quiet lxc
r=saucy
sudo lxc-create -n source-$r-amd64 -t ubuntu-cloud -- --release=$r --arch=amd64;
sudo lxc-clone --snapshot -B overlayfs -o source-$r-amd64 -n test1-$r;
done
# inside
TEST_PPA="ppa:ubuntu-server-ec2-testing-dev/testing"
# add the ppa to get new version
sudo apt-add-repository -y ppa:smoser
sudo apt-get update -qy
sudo apt-get install -qy software-properties-common
# verify you're prompted for adding a ppa
# you should see a message with info about the ppa. hit ctrl-c.
# expect it is cancelled
sudo apt-add-repository $TEST_PPA
# add again, this time saying 'yes'
sudo apt-add-repository $TEST_PPA
sudo apt-get update
sudo apt-get install smello
sudo apt-get --purge remove smello
sudo apt-add-repository --remove $TEST_PPA
sudo apt-get update
# look for 'smello' (to verify archive removed)
# this should fail with 'Unable to locate package smello'
apt-cache policy smello
## verify '-y' works.
sudo apt-add-repository -y $TEST_PPA
sudo apt-get update
## verify cloud-archive: things work
# because this is saucy, and cloud archive not supported on saucy
# this should fail. Answer 'y' and then it should fail with
# a message
sudo apt-add-repository cloud-archive:havana
# override with CA_ALLOW_CODENAME
sudo CA_ALLOW_CODENAME=$(lsb_release -sc) apt-add-repository cloud-archive:havana
## This should fail, as the pocket added would be
## saucy-updates/havana which wont exist (precise-updates/havana)
sudo apt-get update
## fix that, and make sure update works. apt-get update should succeed
## with out any problems
sudo sed -i 's,saucy,precise,g' /etc/apt/sources.list.d/cloudarchive-havana.list
sudo apt-get update
## also you should now have the ubuntu-cloud-keyring package installed
dpkg-query --show ubuntu-cloud-keyring
## cleanup outside
sudo lxc-destroy -n test1-saucy
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to software-properties in Ubuntu.
https://bugs.launchpad.net/bugs/1233486
Title:
add support for 'cloud-archive:' like 'ppa:' but for cloud archive
Status in “software-properties” package in Ubuntu:
In Progress
Bug description:
This is a request to add 'cloud-archive:' support to the 'apt-add-
repository' command.
The end goal is that we want to do something like this:
apt-add-repository cloud-archive:havana
And have that:
install the ubuntu-cloud-keyring
add the appropriate repos as described at [1]
The token after 'cloud-archive' would be either an openstack release,
OS_RELEASE-proposed, or 'tools' or 'tools-proposed.
The cloud-archive is only supported on precise, so in the end we want
this SRU'd also. The branch linked will raise exception if the user
tries to add the repo on something other than precise.
--
[1] https://wiki.ubuntu.com/ServerTeam/CloudArchive
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/software-properties/+bug/1233486/+subscriptions
More information about the foundations-bugs
mailing list