** Description changed:

- This is a request to add 'cloud-archive:' support to the 'apt-add-
- repository' command.
+ === SRU Info ===
+ [Impact]
+ Canonical and Ubuntu support openstack releases and Juju and Maas on 12.04 
via the Cloud Archive [1].  Enabling that archive for the user requires 
installing a package and then modifying /etc/apt/sources.list by hand.  This is 
error prone, and at very least difficult to hand-type.
+ 
+ apt-add-repository is installed in many systems and many Ubuntu users are 
familiar with it.  We'd like to make documentation and enablement easier by 
allowing the user to simply type:
+  apt-add-repository cloud-archive:havana
+ 
+  --
+  [1] https://wiki.ubuntu.com/ServerTeam/CloudArchive
+ 
+ [Test Case]
+  * launch an instance or deploy Ubuntu server 12.04
+  * run: apt-add-repository -y cloud-archive:havana
+  * run: apt-get update
+  * run: apt-cache policy python-nova-client
+  * verify that the output of apt-cache above shows the cloud-archive package
+ 
+ Additionally, the attached 'precise SRU validate instructions' goes into
+ further detail on how to test this, and how to verify that the old 
functionality ('ppa:') still works..
+ 
+ [Notes]
+ I've also only patched 'apt-add-repository'.  Other front ends won't get the 
support or risk of regression.
+ 
+ softwareproperties/cloudarchive.py is a very straightforward
+ copy/backport from trunk.  The only modifcation was the addition of
+ 'ShortcutException' here rather than in
+ softwareproperties/SoftwareProperties.py
+ 
+ [Regression Potential]
+ The potential for regression in the prepared patch should be very low.
+ The code path for new code is protected with statements like
+    if shortcut.startswith('cloud-archive:')
+ 
+ The attached' test/verification shows that the old path is still
+ functional.
+ 
+ === Original Bug Report ===
+ 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.
  
  The linked branch passes tests and was reviewed by upstream maintainer.
  It was also done with the eye towards not breaking existing users of
  either the python api, the kde or gtk or cli frontends.
  
  In the comments below, I've walked through most of the function of 'apt-
  add-repository' to make sure nothing was broken.  Luckily this is a
  fairly simple command and there is not a lot of paths through the code.
  
  --
  [1] https://wiki.ubuntu.com/ServerTeam/CloudArchive

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1233486

Title:
  [FFe] add support for 'cloud-archive:' like 'ppa:' but for cloud
  archive

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/software-properties/+bug/1233486/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to