#1309 Module composes are failing if the module is built for only certain arches
Closed: Fixed 4 years ago by lsedlar. Opened 4 years ago by mohanboddu.

We are trying to enable modules in epel and found that if a module is built for only certain arches the compose will fail looking for other arches.

From https://kojipkgs.stg.fedoraproject.org/compose/updates/Fedora-Epel-Modular-8-updates-testing-20191203.2/ compose

Traceback (most recent call last):
  File "/usr/bin/pungi-koji", line 478, in <module>
    main()
  File "/usr/bin/pungi-koji", line 260, in main
    run_compose(compose, create_latest_link=create_latest_link, latest_link_status=latest_link_status)
  File "/usr/bin/pungi-koji", line 380, in run_compose
    essentials_phase.stop()
  File "/usr/lib/python3.7/site-packages/pungi/phases/weaver.py", line 53, in stop
    self.pool.stop()
  File "/usr/lib/python3.7/site-packages/kobo/threads.py", line 120, in stop
    six.reraise(exc_info[0], exc_info[1], exc_info[2])
  File "/usr/lib/python3.7/site-packages/six.py", line 693, in reraise
    raise value
  File "/usr/lib/python3.7/site-packages/kobo/threads.py", line 67, in run
    self.process(item, num)
  File "/usr/lib/python3.7/site-packages/pungi/phases/weaver.py", line 69, in process
    phase.start()
  File "/usr/lib/python3.7/site-packages/pungi/phases/base.py", line 64, in start
    self.run()
  File "/usr/lib/python3.7/site-packages/pungi/phases/gather/__init__.py", line 104, in run
    self.pkgset_phase.path_prefix)
  File "/usr/lib/python3.7/site-packages/pungi/phases/gather/__init__.py", line 520, in gather_wrapper
    _gather_variants(result, compose, 'variant', package_sets)
  File "/usr/lib/python3.7/site-packages/pungi/phases/gather/__init__.py", line 478, in _gather_variants
    raise exc
  File "/usr/lib/python3.7/site-packages/pungi/phases/gather/__init__.py", line 459, in worker
    que.put((arch, gather_packages(*args, **kwargs)))
  File "/usr/lib/python3.7/site-packages/pungi/phases/gather/__init__.py", line 211, in gather_packages
    source_name, package_sets)
  File "/usr/lib/python3.7/site-packages/pungi/phases/gather/__init__.py", line 654, in get_variant_packages
    packages, groups = source(arch, variant)
  File "/usr/lib/python3.7/site-packages/pungi/phases/gather/sources/source_module.py", line 41, in __call__
    for nsvc, module_stream in variant.arch_mmds[arch].items():
KeyError: 's390x'

Its using the module build - https://koji.stg.fedoraproject.org/koji/search?terms=avocado-test2-3020191112184651.a5b0195c&type=build&match=glob


The proposed patch (PR #1310) is included in pungi-4.1.41-2.fc30

Metadata Update from @lsedlar:
- Issue set to the milestone: 4.1.42

4 years ago

Metadata Update from @lsedlar:
- Issue set to the milestone: 4.2.0 (was: 4.1.42)

4 years ago

Login to comment on this ticket.

Metadata
Related Pull Requests
  • #1310 Merged 4 years ago