devmode with GERRIT fails due to protocol field removed from git task

Bug #1684283 reported by Mike Bayer
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
Fix Released
Medium
Gael Chamoulaud

Bug Description

Using devmode with a Gerrit host fails due to the change in https://review.openstack.org/#/c/449951/. The "https://" prefix is now part of the URL that's expected by the git task in roles/build-test-packages/tasks/dlrn-build.yml, however this prefix is not provided when using the roles/build-test-packages/library/jenkins_deps.py task with GERRIT_HOST:

TASK [build-test-packages : Clone the gated change] ****************************
task path: /home/classic/.quickstart/usr/local/share/ansible/roles/build-test-packages/tasks/dlrn-build.yml:54
Wednesday 19 April 2017 16:42:24 -0400 (0:00:00.093) 0:07:24.595 *******
fatal: [hab-11.ha.lab.eng.bos.redhat.com]: FAILED! => {"changed": false, "cmd": "/usr/bin/git clone --origin origin review.openstack.org/openstack/puppet-tripleo /home/stack/DLRN/data/puppet-tripleo", "failed": true, "msg": "fatal: repository 'review.openstack.org/openstack/puppet-tripleo' does not exist", "rc": 128, "stderr": "fatal: repository 'review.openstack.org/openstack/puppet-tripleo' does not exist\n", "stdout": "", "stdout_lines": []}

There's no workaround, since adding https:// to GERRIT_HOST also fails because the get_details() function prepends https:// and also the check against ALLOWED_HOSTS assumes a plain hostname.

The gerrit at https://review.openstack.org/#/c/458153/ provides a fix for this issue.

Tags: quickstart
Changed in tripleo:
assignee: nobody → Mike Bayer (zzzeek)
status: New → In Progress
Changed in tripleo:
importance: Undecided → Medium
tags: added: quickstart
Changed in tripleo:
milestone: none → pike-2
Changed in tripleo:
assignee: Mike Bayer (zzzeek) → Gael Chamoulaud (gael-chamoulaud)
Revision history for this message
Attila Darazs (adarazs) wrote :

I missed this bug report and the consecutive fix for it, and I fixed this bug at https://bugs.launchpad.net/tripleo/+bug/1690899 where it was recently reported.

Sorry for not using your change, it was really nicely done.

Attila

Changed in tripleo:
status: In Progress → Fix Released
Revision history for this message
Mike Bayer (zzzeek) wrote :

alirghty ill abandon mine, if it's fixed it's fixed!

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on tripleo-quickstart-extras (master)

Change abandoned by Michael Bayer (<email address hidden>) on branch: master
Review: https://review.openstack.org/458153
Reason: already fixed by https://review.openstack.org/#/c/465025/

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

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.