From 0f4c5a5e0e93a6f917b2df876fdc522c0996ed4b Mon Sep 17 00:00:00 2001 From: Manuel Buil Date: Tue, 10 Apr 2018 16:53:36 +0200 Subject: [PATCH] Fix problem in openstack gates 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 --- tasks/install_odl_via_deb_repo.yml | 1 + vars/main.yml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/tasks/install_odl_via_deb_repo.yml b/tasks/install_odl_via_deb_repo.yml index 0e01f01..1c6ecfc 100755 --- a/tasks/install_odl_via_deb_repo.yml +++ b/tasks/install_odl_via_deb_repo.yml @@ -5,3 +5,4 @@ apt: name: opendaylight state: present + allow_unauthenticated: yes diff --git a/vars/main.yml b/vars/main.yml index addd49f..086337b 100755 --- a/vars/main.yml +++ b/vars/main.yml @@ -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." -- 2.36.6