Open sham-more24 opened 5 months ago
Looks like a few different issues.
python3-gobject-base
, python3-gobject-base-noarch
, python3-gobject
.pkg_resources
is deprecatedI'll be able to take a look at this more next week
@tasleson Sure I will wait for your further reply and also I wanted to ask you one more question that is can targetcli be run inside docker container of open-iscsi ?
@tasleson Sure I will wait for your further reply and also I wanted to ask you one more question that is can targetcli be run inside docker container of open-iscsi ?
I can't think of any reason at the moment why this wouldn't work, assuming you've given the container all the needed privileges and visibility to needed FS paths etc.
Hello,
I'm encountering an issue when trying to run a targetd/docker/Dockerfile. Building the container successfully creates the image, but I encounter an error when attempting to run it. Below are the logs of the error for reference.
Could you please assist me in resolving this issue?
Error Logs ===>
`# docker build -t targetd -f docker/Dockerfile .
[+] Building 0.6s (15/15) FINISHED docker:default => [internal] load build definition from Dockerfile 0.0s => => transferring dockerfile: 1.10kB 0.0s => [internal] load .dockerignore 0.0s => => transferring context: 2B 0.0s => [internal] load metadata for docker.io/library/alpine:edge 0.5s => [ 1/10] FROM docker.io/library/alpine:edge@sha256:166710df254975d4a6c4c407c315951c22753dcaa829e020a3fd5d18fff70dd2 0.0s => [internal] load build context 0.0s => => transferring context: 1.52kB 0.0s => CACHED [ 2/10] RUN apk update && apk add python3 python3-dev py3-pip py3-gobject3 libblockdev-dev py3- 0.0s => CACHED [ 3/10] RUN sed -i 's/udev_rules = 1/udev_rules = 0/g' /etc/lvm/lvm.conf && sed -i 's/udev_sync = 1/udev_sync = 0/g' /etc/lvm/lvm.conf && r 0.0s => CACHED [ 4/10] RUN python3 -m venv /opt/venv 0.0s => CACHED [ 5/10] RUN /opt/venv/bin/pip install setproctitle pyyaml six 0.0s => CACHED [ 6/10] ADD . /targetd 0.0s => CACHED [ 7/10] WORKDIR /targetd 0.0s => CACHED [ 8/10] RUN pip install --upgrade pip setuptools 0.0s => CACHED [ 9/10] RUN /opt/venv/bin/python setup.py install 0.0s => CACHED [10/10] ADD /docker/launch /usr/bin 0.0s => exporting to image 0.0s => => exporting layers 0.0s => => writing image sha256:73cfcd679af002aa10297997856f8762fde70c586047bb4d32980239bbdb4e18 0.0s => => naming to docker.io/library/targetd
0.0s
docker run --privileged -v /etc/target:/etc/target -v /sys/kernel/config:/sys/kernel/config -v /run/lvm:/run/lvm -v /lib/modules:/lib/modules -v /dev:/dev -p 18700:18700 -p 3260:3260 targetd
/usr/bin/targetd:4: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html import('pkg_resources').run_script('targetd==0.10.2', 'targetd')
(process:8): CRITICAL : 12:01:51.097: Failed to create a new connection for the system bus: Could not connect: No such file or directory
(process:8): CRITICAL : 12:01:51.097: Failed to setup DBus connection: Could not connect: No such file or directory /usr/lib/python3.12/site-packages/targetd-0.10.2-py3.12.egg/targetd/backends/zfs.py:29: SyntaxWarning: invalid escape sequence '-' /usr/lib/python3.12/site-packages/targetd-0.10.2-py3.12.egg/targetd/backends/zfs.py:29: SyntaxWarning: invalid escape sequence '-' INFO:root:started server (TLS no)
`