#138 mbs-manager build_module_locally fails by trying to get module from network
Opened 2 months ago by csoriano. Modified 2 months ago

We build a module locally and then try to build another module locally that depends on the former. That fails when mbs-manager tries to access the network to fetch the first module.

Here's the full backtrace:

[csoriano@localhost test-dummy]$ mbs-manager build_module_locally --file /home/csoriano/Projects/fedora-flatpaks/test-dummy/test-dummy.yaml --stream master --add-local-build test-dummy-dep:master
2019-05-10 13:13:15,054 - MainThread - urllib3.util.retry - DEBUG - Converted retries value: 3 -> Retry(total=3, connect=None, read=None, redirect=None, status=None)
2019-05-10 13:13:15,220 - MainThread - moksha.hub - WARNING - Cannot find qpid python module. Make sure you have python-qpid installed.
2019-05-10 13:13:15,429 - MainThread - MBS.models - ERROR - Module #None buildrequires "{'koji_tag': 'module-f29-build', 'version': '5', 'context': '00000000', 'filtered_rpms': [], 'ref': 'f29', 'stream': 'f29'}" but it wasn't found in the database
2019-05-10 13:13:15,450 - MainThread - MBS.utils.submit - INFO - Loaded local module build <ModuleBuild test-dummy-dep, id=1, stream=master, version=2920190510065603, scratch=False, state 'ready', batch 0, state_reason None>
2019-05-10 13:13:15,451 - MainThread - MBS.utils.submit - DEBUG - Submitted normal module build for test-dummy:master:20190510111315
2019-05-10 13:13:15,455 - MainThread - urllib3.connectionpool - DEBUG - Starting new HTTPS connection (1): mbs.fedoraproject.org:443
2019-05-10 13:13:16,319 - MainThread - urllib3.connectionpool - DEBUG - https://mbs.fedoraproject.org:443 "GET /module-build-service/1/module-builds/?name=platform&stream=f29&state=ready&verbose=True&order_desc_by=version&page=1&per_page=10 HTTP/1.1" 200 4329
2019-05-10 13:13:18,368 - MainThread - urllib3.connectionpool - DEBUG - https://mbs.fedoraproject.org:443 "GET /module-build-service/1/module-builds/?name=flatpak-runtime&stream=f29&state=ready&verbose=True&order_desc_by=version&page=1&per_page=10&base_module_br=platform%3Af29%3A5%3A00000000 HTTP/1.1" 200 678643
2019-05-10 13:13:21,093 - MainThread - urllib3.connectionpool - DEBUG - https://mbs.fedoraproject.org:443 "GET /module-build-service/1/module-builds/?name=flatpak-runtime&stream=f29&state=ready&verbose=True&order_desc_by=version&page=2&per_page=10&base_module_br=platform%3Af29%3A5%3A00000000 HTTP/1.1" 200 670295
2019-05-10 13:13:23,143 - MainThread - urllib3.connectionpool - DEBUG - https://mbs.fedoraproject.org:443 "GET /module-build-service/1/module-builds/?name=flatpak-runtime&stream=f29&state=ready&verbose=True&order_desc_by=version&page=3&per_page=10&base_module_br=platform%3Af29%3A5%3A00000000 HTTP/1.1" 200 325009
2019-05-10 13:13:23,919 - MainThread - urllib3.connectionpool - DEBUG - https://mbs.fedoraproject.org:443 "GET /module-build-service/1/module-builds/?name=test-dummy-dep&stream=master&state=ready&verbose=True&order_desc_by=version&page=1&per_page=10&base_module_br=platform%3Af29%3A5%3A00000000 HTTP/1.1" 200 600
Traceback (most recent call last):
  File "/usr/bin/mbs-manager", line 11, in <module>
    load_entry_point('module-build-service==2.19.1', 'console_scripts', 'mbs-manager')()
  File "/usr/lib/python3.7/site-packages/module_build_service/manage.py", line 251, in manager_wrapper
    manager.run()
  File "/usr/lib/python3.7/site-packages/flask_script/__init__.py", line 417, in run
    result = self.handle(argv[0], argv[1:])
  File "/usr/lib/python3.7/site-packages/flask_script/__init__.py", line 386, in handle
    res = handle(*args, **config)
  File "/usr/lib/python3.7/site-packages/flask_script/commands.py", line 216, in __call__
    return self.run(*args, **kwargs)
  File "/usr/lib/python3.7/site-packages/module_build_service/manage.py", line 167, in build_module_locally
    username, handle, params, stream=str(stream), skiptests=skiptests)
  File "/usr/lib/python3.7/site-packages/module_build_service/utils/submit.py", line 503, in submit_module_build_from_yaml
    return submit_module_build(username, mmd, params)
  File "/usr/lib/python3.7/site-packages/module_build_service/utils/submit.py", line 633, in submit_module_build
    mmds = generate_expanded_mmds(db.session, mmd, raise_if_stream_ambigous, default_streams)
  File "/usr/lib/python3.7/site-packages/module_build_service/utils/mse.py", line 429, in generate_expanded_mmds
    current_mmd, default_streams, raise_if_stream_ambigous)
  File "/usr/lib/python3.7/site-packages/module_build_service/utils/mse.py", line 387, in get_mmds_required_by_module_recursively
    "Cannot find any module builds for %s" % (ns))
module_build_service.errors.UnprocessableEntity: Cannot find any module builds for test-dummy-dep:master

Login to comment on this ticket.

Metadata