rpm DLRN builds failing due to ctlplane entry missing from /etc/hosts

Bug #1848275 reported by wes hayutin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
Fix Released
Critical
Harald Jensås

Bug Description

Checking for jobs other than python-tripleoclient ( train )

https://storage.bhs1.cloud.ovh.net/v1/AUTH_dcaab5e32b234d56b626f72581e3644c/zuul_opendev_logs_10a/688748/1/check/tripleo-ci-centos-7-containers-multinode/10a84c0/logs/delorean_logs/5e/27/5e274776fc919cfda121582b81908159dee1aa26_dev/build.log.txt.gz

Failed 8 tests - output below:
==============================
tripleoclient.tests.v1.test_container_image.TestContainerImageList.test_take_action
-----------------------------------------------------------------------------------
Captured traceback:
~~~~~~~~~~~~~~~~~~~
    Traceback (most recent call last):
      File "/usr/lib/python2.7/site-packages/mock/mock.py", line 1330, in patched
        return func(*args, **keywargs)
      File "tripleoclient/tests/v1/test_container_image.py", line 398, in test_take_action
        parsed_args = self.check_parser(self.cmd, arglist, verifylist)
      File "tripleoclient/tests/base.py", line 69, in check_parser
        cmd_parser = cmd.get_parser('check_parser')
      File "tripleoclient/v1/container_image.py", line 731, in get_parser
        default=image_uploader.get_undercloud_registry(),
      File "/usr/lib/python2.7/site-packages/tripleo_common/image/image_uploader.py", line 109, in get_undercloud_registry
        % ctlplane_hostname)
    tripleo_common.image.exception.ImageUploaderException: No entry for centos-7-rax-dfw-0012323069.ctlplane in /etc/hosts

it is in fact true:

127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
23.253.73.153 centos-7-rax-dfw-0012323069
23.253.73.153 centos-7-rax-dfw-0012323069
127.0.0.1 localhost
127.0.0.1 localhost
10.208.33.21 primary
10.208.33.21 centos-7-rax-dfw-0012323069
10.209.36.34 secondary
10.209.36.34 centos-7-rax-dfw-0012323173

http://storage.bhs1.cloud.ovh.net/v1/AUTH_dcaab5e32b234d56b626f72581e3644c/zuul_opendev_logs_10a/688748/1/check/tripleo-ci-centos-7-containers-multinode/10a84c0/logs/undercloud/etc/hosts.txt.gz

2019-10-15 17:58:10.829873 | primary | TASK [build-test-packages : Run DLRN] ******************************************

Revision history for this message
Marios Andreou (marios-b) wrote :

not sure what this was (happened later after I left looks like) but it seems to be resolved now e.g i see green runs in http://zuul.openstack.org/builds?job_name=tripleo-ci-centos-7-containers-multinode

Revision history for this message
Harald Jensås (harald-jensas) wrote :

Looks like I broke unit tests in python-tripleoclient landing https://review.opendev.org/687305. Let's land https://review.opendev.org/687388 soon which adds the mocks required.

Changed in tripleo:
status: Triaged → In Progress
Revision history for this message
Marios Andreou (marios-b) wrote :

nope... not resolved apparently... per irc just now with hjensas and rfolco that is related too https://review.opendev.org/#/c/687388/ - hjensas will comment here with more info

Revision history for this message
Marios Andreou (marios-b) wrote :

(sorry didn't refresh for Harald's comment #2 before adding my comment #3)

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-tripleoclient (master)

Fix proposed to branch: master
Review: https://review.opendev.org/688890

Changed in tripleo:
assignee: nobody → Harald Jensås (harald-jensas)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-tripleoclient (stable/train)

Fix proposed to branch: stable/train
Review: https://review.opendev.org/688964

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-tripleoclient (master)

Reviewed: https://review.opendev.org/688890
Committed: https://git.openstack.org/cgit/openstack/python-tripleoclient/commit/?id=0b21efc53df8352d63c3f07582c0efe3c6179373
Submitter: Zuul
Branch: master

commit 0b21efc53df8352d63c3f07582c0efe3c6179373
Author: Harald Jensås <email address hidden>
Date: Wed Oct 16 11:42:17 2019 +0200

    Add mocks to fix unit tests

    Change: https://review.opendev.org/687305 broke
    the unit tests. We need to mock the method:
      get_undercloud_registry()

    Change-Id: I2488a8bdda1eab8f46d5dfda027633174f52e342
    Closes-Bug: #1848275

Changed in tripleo:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-tripleoclient (stable/train)

Reviewed: https://review.opendev.org/688964
Committed: https://git.openstack.org/cgit/openstack/python-tripleoclient/commit/?id=e7132d47ea9b90c70fa2414d79c86c9a1dfc73a3
Submitter: Zuul
Branch: stable/train

commit e7132d47ea9b90c70fa2414d79c86c9a1dfc73a3
Author: OpenStack Release Bot <email address hidden>
Date: Tue Oct 15 16:18:59 2019 +0000

    Prepare stable/train

    Update .gitreview for stable/train

    Change-Id: Ifae2ec26e9ccf125ba84d3b20795b3912d756811

    Add mocks to fix unit tests

    Change: https://review.opendev.org/687305 broke
    the unit tests. We need to mock the method:
      get_undercloud_registry()

    Change-Id: I2488a8bdda1eab8f46d5dfda027633174f52e342
    Closes-Bug: #1848275
    (cherry picked from commit 0b21efc53df8352d63c3f07582c0efe3c6179373)

tags: added: in-stable-train
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/python-tripleoclient 13.0.0

This issue was fixed in the openstack/python-tripleoclient 13.0.0 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/python-tripleoclient 12.3.1

This issue was fixed in the openstack/python-tripleoclient 12.3.1 release.

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.