Uploaded image for project: 'CentOS Stream Pipeline'
  1. CentOS Stream Pipeline
  2. CS-1702

mock-build fails on all CentOS packages

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Blocker Blocker
    • None
    • None
    • None
    • False
    • None
    • False
    • Testable

      Currently mock-build job fails on all CentOS Stream 8 and 9 packages.

      The last passed job:

      https://centos.softwarefactory-project.io/zuul/t/centos/build/49b4c069ad56442a95f073792d9e5ba5/console

       

      The failed job:

      https://centos.softwarefactory-project.io/zuul/t/centos/build/956a2711f59543cca3a5fe5fac12b020

       

      Error

      DEBUG: ensuring that dir exists: /var/lib/mock/centos-stream-9-x86_64/result
      DEBUG: creating dir: /var/lib/mock/centos-stream-9-x86_64/result
      ERROR: Could not create dir /var/lib/mock/centos-stream-9-x86_64/result. Error: [Errno 13] Permission denied: '/var/lib/mock/centos-stream-9-x86_64'
      Traceback (most recent call last):
        File "/usr/lib/python3.11/site-packages/mockbuild/file_util.py", line 22, in mkdirIfAbsent
          os.makedirs(dirName)
        File "<frozen os>", line 215, in makedirs
        File "<frozen os>", line 225, in makedirs
      PermissionError: [Errno 13] Permission denied: '/var/lib/mock/centos-stream-9-x86_64'
      DEBUG: ensuring that dir exists: /var/lib/mock/centos-stream-9-x86_64-bootstrap
      DEBUG: kill orphans in chroot /var/lib/mock/centos-stream-9-x86_64-bootstrap/root
      ERROR: 
      Could not create output directory for built rpms. The directory specified was:
          /var/lib/mock/centos-stream-9-x86_64/result
      
      Try using the --resultdir= option to select another location. Recommended location is --resultdir=~/mock/. 

       

      The cause seems to be the update of mock package from version 4.11 to version 

      mock-5.0-1.fc37

      on the base Fedora 37 system used by Zuul CI.

              afedorov@redhat.com Aleksandra Fedorova
              afedorov@redhat.com Aleksandra Fedorova
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: