Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

parallel execution - beaker provisioner (mrack): name 'ProvisioningError' is not defined #3326

Open
jscotka opened this issue Oct 29, 2024 · 0 comments

Comments

@jscotka
Copy link
Collaborator

jscotka commented Oct 29, 2024

appeared inside PR: #3265
seems there is some trouble with python namespace and parallelization of plans.
There will be some trouble with imports inside the code.

As we've discussed with @happz it could be something what just parallelization highlighted. Parallelization itself does not touch these specific plugins and virt/container plugins works for Miloš.
Regards
Honza

    Cause number 1:
 
        name 'ProvisioningError' is not defined
 
            Traceback (most recent call last):
 
            File /home/jscotka/git/tmt/myenv/lib64/python3.12/site-packages/tmt/steps/provision/__init__.py, line 2284, in go
              future.result()
 
              self = ProvisionTask(id=1, logger=<Logger: name=tmt.run.provision.provision.queue verbosity=2 debug=0 quiet=False topics=set() apply_colors_output=True apply_colors_logging=True>, result=None, guest=None, exc=None, requested_exit=None, phases=[<tmt.steps.provision.mrack.ProvisionBeaker object at 0x7f0981500380>], phase=None)
              multiple_guests = False
              phase = <tmt.steps.provision.mrack.ProvisionBeaker object at 0x7f0981500380>
              new_loggers = {'default-1': <Logger: name=tmt.run.provision.provision.queue verbosity=2 debug=0 quiet=False topics=set() apply_colors_output=True apply_colors_logging=True>}
              old_loggers = {'default-1': <Logger: name=tmt.run.provision.logger3 verbosity=2 debug=0 quiet=False topics=set() apply_colors_output=True apply_colors_logging=True>}
              executor = <concurrent.futures.thread.ThreadPoolExecutor object at 0x7f0979babad0>
              futures = {<Future at 0x7f0979bab170 state=finished raised NameError>: <tmt.steps.provision.mrack.ProvisionBeaker object at 0x7f0981500380>}
              new_logger = <Logger: name=tmt.run.provision.provision.queue verbosity=2 debug=0 quiet=False topics=set() apply_colors_output=True apply_colors_logging=True>
              future = <Future at 0x7f0979bab170 state=finished raised NameError>
              old_logger = <Logger: name=tmt.run.provision.logger3 verbosity=2 debug=0 quiet=False topics=set() apply_colors_output=True apply_colors_logging=True>
 
            File /usr/lib64/python3.12/concurrent/futures/_base.py, line 449, in result
              return self.__get_result()
 
              self = None
              timeout = None
 
            File /usr/lib64/python3.12/concurrent/futures/_base.py, line 401, in __get_result
              raise self._exception
 
              self = None
 
            File /usr/lib64/python3.12/concurrent/futures/thread.py, line 58, in run
              result = self.fn(*self.args, **self.kwargs)
 
              self = None
 
            File /home/jscotka/git/tmt/myenv/lib64/python3.12/site-packages/tmt/steps/provision/mrack.py, line 1238, in go
              self._guest.start()
 
              self = <tmt.steps.provision.mrack.ProvisionBeaker object at 0x7f0981500380>
              logger = None
              data = BeakerGuestData(_OPTIONLESS_FIELDS=('primary_address', 'topology_address', 'facts'), primary_address=None, topology_address=None, role='guest', become=False, facts=GuestFacts(in_sync=False, arch=None, distro=None, kernel_release=None, package_manager=None, has_selinux=None, is_superuser=None, is_ostree=None, capabilities={}, os_release_content={}, lsb_release_content={}), hardware=None, port=None, user='root', key=[], password=None, ssh_option=[], whiteboard=None, arch='x86_64', image='RHEL-9.5.0-20241009.2', job_id=None, provision_timeout=3600, provision_tick=60, api_session_refresh_tick=3600, kickstart={}, beaker_job_owner=None)
              __class__ = <class 'tmt.steps.provision.mrack.ProvisionBeaker'>
 
            File /home/jscotka/git/tmt/myenv/lib64/python3.12/site-packages/tmt/steps/provision/mrack.py, line 1119, in start
              self._create(self._tmt_name())
 
              self = <tmt.steps.provision.mrack.GuestBeaker object at 0x7f0979bab500>
 
            File /home/jscotka/git/tmt/myenv/lib64/python3.12/site-packages/tmt/steps/provision/mrack.py, line 1036, in _create
              except ProvisioningError as exc:
 
              self = <tmt.steps.provision.mrack.GuestBeaker object at 0x7f0979bab500>
              tmt_name = 'tmt-011-mQdmNqnX'
              data = CreateJobParameters(tmt_name='tmt-011-mQdmNqnX', name='RHEL-9.5.0-20241009.2-x86_64', os='RHEL-9.5.0-20241009.2', arch='x86_64', hardware=None, kickstart={}, whiteboard='tmt-011-mQdmNqnX', beaker_job_owner=None, group='linux')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant