Fix problem in openstack gates 20/70720/3
authorManuel Buil <mbuil@suse.com>
Tue, 10 Apr 2018 14:53:36 +0000 (16:53 +0200)
committerManuel Buil <mbuil@suse.com>
Tue, 10 Apr 2018 16:02:12 +0000 (18:02 +0200)
For unkown reasons, when using the plain ppa, apt sets the Ubuntu
version wrongly in the openstack gates. The result is that all
gates using Ubuntu and ODL fail, for example in this patch:

https://review.openstack.org/#/c/553333/

Using this syntax instead, we force apt to get the correct Ubuntu
version and works, as tested here:

https://review.openstack.org/#/c/559065/

This syntax is valid from the point of view of ansible as it is shown
as an example in their documentation:

docs.ansible.com/ansible/latest/modules/apt_repository_module.html

Change-Id: I8440fa9714137f22e43aa8cf9291a0e82a3a02e1
Signed-off-by: Manuel Buil <mbuil@suse.com>
tasks/install_odl_via_deb_repo.yml
vars/main.yml

index 0e01f01d2a5f516e27b454b3bb8cbb543148fe8b..1c6ecfc2e6318c7d551ab7cd2f7ee1da88489474 100755 (executable)
@@ -5,3 +5,4 @@
   apt:
     name: opendaylight
     state: present
+    allow_unauthenticated: yes
index addd49f59634f3c342d35421477d9ede05366c14..086337b159e4f438b42efafc29e426f4ff282d29 100755 (executable)
@@ -75,7 +75,7 @@ suse_rpm_repo_url: "{% if odl_version is defined %}https://git.opendaylight.org/
 # URL of the deb repository to use when installing ODL from a repo
 # NB: This will only take effect when `install_method` is "deb_repo"
 # TODO: When deb snaps are built, point to a repo like rpm
-deb_repo_url: "ppa:odl-team/oxygen"
+deb_repo_url: "deb http://ppa.launchpad.net/odl-team/oxygen/ubuntu {{ ansible_lsb.codename }} main"
 
 # This will be passed as the `name` param to the Ansible `yum` module.
 # `name` param docs: "You can also pass a url or a local path to a rpm file."