zionio/check-mk-gitlab-runner

NameError: name 'shutil' is not defined

Opened this issue · 0 comments

47k commented
Exception: Error running automation call bake-agents (exit code 2), error: 
Error creating agent for hostname: Error creating agents: Error creating 054942e876eff739/linux_deb agent for hostname: Error in bakery plugin "gitlab_runner": name 'shutil' is not defined

Traceback (most recent call last):
  File "/omd/sites/sitename/lib/python3/cmk/base/cee/bakery/agent_bakery.py", line 430, in _execute_pre_17_bakery_plugin
    bake_func(**func_args)
  File "<string>", line 21, in bake_gitlab_runner
NameError: name 'shutil' is not defined
.
.

More information can be found in ~/var/log/web.log

and

Agent baking for all hosts started...
2022-02-22 11:27:05,381 [30] [cmk.web.automations 3733675] 'check_mk --automation bake-agents' returned 'Error creating agent for hostname: Error creating agents: Error creating 054942e876eff739/linux_deb agent for hostname: Error in bakery plugin "gitlab_runner": name 'shutil' is not defined

Traceback (most recent call last):
  File "/omd/sites/sitename/lib/python3/cmk/base/cee/bakery/agent_bakery.py", line 430, in _execute_pre_17_bakery_plugin
    bake_func(**func_args)
  File "", line 21, in bake_gitlab_runner
NameError: name 'shutil' is not defined
.
.
'
2022-02-22 11:27:05,382 [40] [cmk.web.automations 3733675] Error running 'check_mk --automation bake-agents' (exit code 2)
2022-02-22 11:27:05,382 [40] [cmk.web.background-job 3733675] Exception in background function
Traceback (most recent call last):
  File "/omd/sites/sitename/lib/python3/cmk/gui/background_job.py", line 210, in _execute_function
    func_ptr(*args, **kwargs)
  File "/omd/sites/sitename/lib/python3/cmk/gui/cee/plugins/wato/agent_bakery/misc.py", line 897, in bake_agents_background_job
    watolib.check_mk_local_automation('bake-agents',
  File "/omd/sites/sitename/lib/python3/cmk/gui/watolib/automations.py", line 143, in check_mk_local_automation
    raise _local_automation_failure(command=command,
cmk.utils.exceptions.MKGeneralException: Error running automation call bake-agents (exit code 2), error: 
Error creating agent for hostname: Error creating agents: Error creating 054942e876eff739/linux_deb agent for hostname: Error in bakery plugin "gitlab_runner": name 'shutil' is not defined

Traceback (most recent call last):
  File "/omd/sites/sitename/lib/python3/cmk/base/cee/bakery/agent_bakery.py", line 430, in _execute_pre_17_bakery_plugin
    bake_func(**func_args)
  File "", line 21, in bake_gitlab_runner
NameError: name 'shutil' is not defined
.
.

Exception: Error running automation call bake-agents (exit code 2), error: 
Error creating agent for hostname: Error creating agents: Error creating 054942e876eff739/linux_deb agent for hostname: Error in bakery plugin "gitlab_runner": name 'shutil' is not defined

Traceback (most recent call last):
  File "/omd/sites/sitename/lib/python3/cmk/base/cee/bakery/agent_bakery.py", line 430, in _execute_pre_17_bakery_plugin
    bake_func(**func_args)
  File "", line 21, in bake_gitlab_runner
NameError: name 'shutil' is not defined
.
.