#3553 kiwi plugin include processor doesn't construct include paths correctly
Closed: Fixed a year ago by tkopecek. Opened a year ago by ngompa.

From: https://pagure.io/centos-infra/issue/696#comment-821158

New interesting error: https://cbs.centos.org/koji/taskinfo?taskID=3048455

Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/koji/daemon.py", line 1468, in runTask
    response = (handler.run(),)
  File "/usr/lib/python3.6/site-packages/koji/tasks.py", line 335, in run
    return koji.util.call_with_argcheck(self.handler, self.params, self.opts)
  File "/usr/lib/python3.6/site-packages/koji/util.py", line 271, in call_with_argcheck
    return func(*args, **kwargs)
  File "/usr/lib/koji-builder-plugins/kiwi.py", line 362, in handler
    desc, types = self.prepareDescription(path, name, version, repos, arch)
  File "/usr/lib/koji-builder-plugins/kiwi.py", line 205, in prepareDescription
    inc = xml.dom.minidom.parse(path)  # nosec
  File "/usr/lib64/python3.6/xml/dom/minidom.py", line 1958, in parse
    return expatbuilder.parse(file)
  File "/usr/lib64/python3.6/xml/dom/expatbuilder.py", line 910, in parse
    with open(file, 'rb') as fp:
NotADirectoryError: [Errno 20] Not a directory: '/var/lib/mock/hyperscale9s-spin_media-experimental-el9s-build-159345-971833/root/chroot_tmpdir/kiwi-descriptions/./CentOS-Stream-Hyperscale-Spin.kiwi/repositories/core.xml'

Command used:

$> cbs kiwi-build --scratch hyperscale9s-spin_media-experimental-el9s git+https://gitlab.com/CentOS/Hyperscale/releng/kiwi-descriptions.git#f7475459b17b75adaf3b048bf4ec166830da3218 ./CentOS-Stream-Hyperscale-Spin.kiwi --kiwi-profile=OpenStack --arch=x86_64

It looks like it doesn't correctly resolve the current working directory to manage the include paths.


Metadata Update from @tkopecek:
- Custom field Size adjusted to None
- Issue set to the milestone: 1.31
- Issue tagged with: bug

a year ago

Metadata Update from @jcupova:
- Issue tagged with: testing-ready

a year ago

Metadata Update from @mfilip:
- Issue tagged with: testing-done

a year ago

Commit b8b5288 relates to this ticket

Login to comment on this ticket.

Metadata
Related Pull Requests
  • #3555 Merged a year ago