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

Unable to define empty containers init_opts in site configuration #131

Closed
rezib opened this issue Jul 26, 2023 · 0 comments
Closed

Unable to define empty containers init_opts in site configuration #131

rezib opened this issue Jul 26, 2023 · 0 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@rezib
Copy link
Contributor

rezib commented Jul 26, 2023

Defining empty containers init_opts in site configuration file:

# cat /etc/fatbuildr/fatbuildr.ini 
[containers]
init_opts =
opts = --resolv-conf=replace-host --quiet --register=no --keep-unit

Results in the following error in fatbuildrd logs:

systemd[1]: Started fatbuildrd.service - Fatbuildr build daemon.
fatbuildrd[15165]: server: [INFO] Saving queue state on disk
fatbuildrd[15165]: worker-devs: [INFO] Picking up task da3214ca-5fa6-4532-ba4c-eb2b233e6018 from queue
fatbuildrd[15165]: worker-devs: [INFO] Task da3214ca-5fa6-4532-ba4c-eb2b233e6018 removed from queue
fatbuildrd[15165]: worker-devs: [INFO] Running task da3214ca-5fa6-4532-ba4c-eb2b233e6018
fatbuildrd[15165]: worker-devs: [INFO] Creating task directory /var/lib/fatbuildr/workspaces/devs/da3214ca-5fa6-4532-ba4c-eb2b233e6018
fatbuildrd[15165]: server: [INFO] Image build environment creation task da3214ca-5fa6-4532-ba4c-eb2b233e6018 submitted in queue
fatbuildrd[15165]: worker-devs: [INFO] Running image build environment creation task da3214ca-5fa6-4532-ba4c-eb2b233e6018
fatbuildrd[15165]: worker-devs: [INFO] Creating build environment bullseye for architecture x86_64 in deb image
fatbuildrd[15165]: Exception in thread worker-devs:
fatbuildrd[15165]: Traceback (most recent call last):
fatbuildrd[15165]:   File "/usr/lib/python3.11/threading.py", line 1038, in _bootstrap_inner
fatbuildrd[15165]:     self.run()
fatbuildrd[15165]:   File "/usr/lib/python3.11/threading.py", line 975, in run
fatbuildrd[15165]:     self._target(*self._args, **self._kwargs)
fatbuildrd[15165]:   File "/usr/lib/python3/dist-packages/fatbuildr/cli/fatbuildrd.py", line 133, in _worker
fatbuildrd[15165]:     instance.tasks_mgr.run(task)
fatbuildrd[15165]:   File "/usr/lib/python3/dist-packages/fatbuildr/tasks/manager.py", line 178, in run
fatbuildrd[15165]:     task.run()
fatbuildrd[15165]:   File "/usr/lib/python3/dist-packages/fatbuildr/tasks/images.py", line 118, in run
fatbuildrd[15165]:     build_env.create(self)
fatbuildrd[15165]:   File "/usr/lib/python3/dist-packages/fatbuildr/images.py", line 232, in create
fatbuildrd[15165]:     task.cruncmd(self.image, cmd, init=True, asroot=asroot)
fatbuildrd[15165]:   File "/usr/lib/python3/dist-packages/fatbuildr/tasks/__init__.py", line 340, in cruncmd
fatbuildrd[15165]:     self.instance.crun(image, cmd, init=init, io=self.io, **kwargs)
fatbuildrd[15165]:   File "/usr/lib/python3/dist-packages/fatbuildr/containers.py", line 78, in __call__
fatbuildrd[15165]:     _cmd.extend(self.conf.containers.init_opts)
fatbuildrd[15165]: TypeError: 'NoneType' object is not iterable
fatbuildrd[15165]: dispatch-da3214ca-5fa6-4532-ba4c-eb2b233e6018: [INFO] Replaying journal for new incoming connection
@rezib rezib added the bug Something isn't working label Jul 26, 2023
@rezib rezib added this to the v2.1.0 milestone Jul 26, 2023
@rezib rezib self-assigned this Jul 26, 2023
@rezib rezib closed this as completed in d8dff2d Jul 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant