build-pkgs fail when mock >= 2.7

Bug #1916275 reported by Scott Little
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
StarlingX
Fix Released
Critical
Scott Little

Bug Description

Brief Description
-----------------
build-pkgs fail when mock >= 2.7

Severity
--------
Critical: System/Feature is not usable due to the defect

Steps to Reproduce
------------------
build-pkgs

Expected Behavior
------------------
builds

Actual Behavior
----------------
build fails

Reproducibility
---------------
100%

System Configuration
--------------------
Centos 7, mock 2.9

Branch/Pull Time/Commit
-----------------------
Feb 2021

Last Pass
---------
mock 2.6

Timestamp/Logs
--------------
12:16:46 Traceback (most recent call last):
12:16:46 File "build-tools/mockchain-parallel-2.6", line 1221, in <module>
12:16:46 sys.exit(main(sys.argv))
12:16:46 File "build-tools/mockchain-parallel-2.6", line 989, in main
12:16:46 config_opts = mockbuild.util.load_config(mockconfig_path, cfg, None, __VERSION__, PKGPYTHONDIR)
12:16:46 AttributeError: module 'mockbuild.util' has no attribute 'load_config'

Test Activity
-------------
Build

Workaround
----------
revert to mock 2.6

Revision history for this message
Ghada Khalil (gkhalil) wrote :

stx.5.0 / critical - build failures

Changed in starlingx:
assignee: nobody → Scott Little (slittle1)
importance: Undecided → Critical
description: updated
description: updated
tags: added: stx.5.0 stx.build
Changed in starlingx:
status: New → Triaged
Revision history for this message
Scott Little (slittle1) wrote :
Changed in starlingx:
status: Triaged → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to root (f/centos8)

Fix proposed to branch: f/centos8
Review: https://review.opendev.org/c/starlingx/root/+/786138

Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

Fix proposed to branch: f/centos8
Review: https://review.opendev.org/c/starlingx/root/+/786139

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to root (f/centos8)

Reviewed: https://review.opendev.org/c/starlingx/root/+/786138
Committed: https://opendev.org/starlingx/root/commit/c5b5cd74404ffd84b41f3745c388ffb745eb2524
Submitter: "Zuul (22348)"
Branch: f/centos8

commit c5b5cd74404ffd84b41f3745c388ffb745eb2524
Author: Scott Little <email address hidden>
Date: Fri Feb 19 11:40:12 2021 -0500

    Support mock >= 2.7

    Starting in Mock 2.7, mock's util.py was split,
    and a function we need was moved to the new config.py.

    Closes-Bug: 1916275
    Signed-off-by: Scott Little <email address hidden>
    (cherry picked from commit 1d669071f928d5d1a63df4636176ea4ba71667f9)
    Change-Id: I5fe9d7922496ad820fffd059a751e34c2f85ef89

tags: added: in-f-centos8
Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

Reviewed: https://review.opendev.org/c/starlingx/root/+/786139
Committed: https://opendev.org/starlingx/root/commit/30f5b3e35649b69b16433599c66e09102c8a5d78
Submitter: "Zuul (22348)"
Branch: f/centos8

commit 30f5b3e35649b69b16433599c66e09102c8a5d78
Author: Scott Little <email address hidden>
Date: Fri Feb 19 11:40:12 2021 -0500

    mock 2.7 requires additional config options

    Mock 2.7 defaults to using dnf.

    The centos 7 mock config must provide additional
    arguements to ensure a sane yum environment. With
    out them it will try to use dnf.

    Closes-Bug: 1916275
    Signed-off-by: Scott Little <email address hidden>
    (cherry picked from commit 0972ffe2464293657b717ae84bc1fef890f7ffc1)
    Change-Id: I92b32d6e849c4a325e2b25cd58104e23c5259f49

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to root (f/centos8)

Fix proposed to branch: f/centos8
Review: https://review.opendev.org/c/starlingx/root/+/792232

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to root (f/centos8)
Download full text (24.5 KiB)

Reviewed: https://review.opendev.org/c/starlingx/root/+/792232
Committed: https://opendev.org/starlingx/root/commit/7cb55d28111dbf7458ed3f01a5eda5c4dfdb124b
Submitter: "Zuul (22348)"
Branch: f/centos8

commit f457bd15b9ce0be512ec96abcb9b858b0bab2ea8
Author: Scott Little <email address hidden>
Date: Fri Apr 16 01:39:17 2021 -0400

    Improved branching tools

    create_branches_and_tags.sh:
    - Update the .gitreview files in branched git repos.
    - When updating a manifest, add the ability to update and
      use the default revision field.
    - Create two levels of manifest lockdown, soft and hard.
      Soft lockdown only sets sha revisions on unbranched projects
      that lack a revision, or set the revision to master.
      Hard lockdown applies to all unbranched projects.

    push_branches_tags.sh:
    - opendev no longer accepts 'git push' for the delivery of
      new branches with updates. Instead we must now
      use separate commands to deliver the tag, the branch,
      and any updates.

    Closes-Bug: 1924762
    Signed-off-by: Scott Little <email address hidden>
    Change-Id: I6d669ddc80cc9b3cb9e72d65a64589dbccf43ae3

commit 0babd33b6d851dd11492c26e92c8a6ac2c2557de
Author: Rafael Jardim <email address hidden>
Date: Wed May 12 11:25:54 2021 -0300

    Update stx-platformclients tag to stx.5.0-v1.4.3

    This commit updates the image with the updated clients.

    Test:
    Some normal commands
    Commands related with https dcmanager that wasn't working
    System application-upload that wasn't working when executed
    from remote cli

    Closes-Bug: 1928233
    Closes-Bug: 1928231
    Signed-off-by: Rafael Jardim <email address hidden>
    Change-Id: I8a0d12f699336a4412be5ff3c73cfb8d59038780

commit a163d7723e659e89c37ec933d1b0f9aa638a6a73
Author: Cole Walker <email address hidden>
Date: Wed May 5 09:39:17 2021 -0400

    Update image tag for notificationservice-base

    Update image tag to stx.5.0-v1.0.4 for notificationservice-base

    Closes-Bug: 1924201
    Closes-Bug: 1924197

    Signed-off-by: Cole Walker <email address hidden>
    Change-Id: Id863c4f154cc0b39e30ee8986fc07f9856a22826

commit 84c45f5e3a241237887af9db89d8c0aa1f8923e0
Author: Charles Short <email address hidden>
Date: Sun May 2 12:04:04 2021 -0400

    Fix wheels tarball generation

    In d7c5a54ab94bce6635b83d91a807d28f97836a81, django was dropped in favor
    of rfc3986. However the wheel was not added to the build-wheels
    generation which breaks the docker images. Also add the migrate wheel
    since it was mising as well. Add the required wheels in order to
    build the docker image properly.

    Test:
    - Build new centos-stable-wheels tarball
    - Build stx-keystone-api-proxy container

    Closes-Bug: 1926795

    Signed-off-by: Charles Short <email address hidden>
    Change-Id: Ib6f0abfdcc82ca14f92ebc5b45fe8df961e804ee

commit 062353b6de7d4b0e017203c3e6086891bd6b9213
Author: Cole Walker <email address hidden>
Date: Mon May 3 09:48:54 2021 -0400

    Update image tag for notificationclient-base...

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.