open-io / oio-sds

High Performance Software-Defined Object Storage for Big Data and AI, that supports Amazon S3 and Openstack Swift
https://www.openio.io
Other
659 stars 93 forks source link

Docker Image Version 20.04 Fails to Launch #2121

Open Johannes5000 opened 7 months ago

Johannes5000 commented 7 months ago
Bug Report
COMPONENT Latest Docker Image (version 20.04)
SUMMARY

When starting a Docker container using the latest image (version 20.04) with the command from the Docker Image Quickstart guide (https://docs.openio.io/latest/source/sandbox-guide/docker_image.html), the container terminates after a one-minute timeout.

STEPS TO REPRODUCE

Follow the instructions of the Docker Image Quickstart.

docker run --name oio-sds openio/sds:20.04
EXPECTED RESULTS

The docker container should start as described in the quickstart guide description without terminating after a minute.

ACTUAL RESULTS

The docker container terminates after roughly a minute.

# Firstboot: Setting up the OpenIO cluster
> Using 172.17.0.2 IP address for services
rsyslog startup failure, child did not respond within startup timeout (60 seconds)
# Initializing the OpenIO cluster
> Starting services
> Waiting for the services to start ...
Error: Install script did not found 1 meta1 services registered. Return: 0
cdelgehier commented 7 months ago

Hello

I can't reproduce your issue

cedricd@MacBook-Pro-de-Cedric-2 ~> docker run --name oio-sds -p 6007:6007 openio/sds:20.04
cedricd@MacBook-Pro-de-Cedric-2 ~> docker exec -it 489822c1df77 bash

[root@489822c1df77 /]# openio cluster list
+------------+-----------------+--------------------------------------+--------------------------------------+-------------+------------+------+-------+--------+
| Type       | Addr            | Service Id                           | Volume                               | Location    | Slots      | Up   | Score | Locked |
+------------+-----------------+--------------------------------------+--------------------------------------+-------------+------------+------+-------+--------+
| account    | 172.17.0.2:6009 | n/a                                  | n/a                                  | openiosds.0 | account    | True |    94 | False  |
| beanstalkd | 172.17.0.2:6014 | n/a                                  | /var/lib/oio/sds/OPENIO/beanstalkd-0 | openiosds.0 | beanstalkd | True |    57 | False  |
| meta0      | 172.17.0.2:6001 | n/a                                  | /var/lib/oio/sds/OPENIO/meta0-0      | openiosds.0 | meta0      | True |    96 | False  |
| meta1      | 172.17.0.2:6110 | n/a                                  | /var/lib/oio/sds/OPENIO/meta1-0      | openiosds.0 | meta1      | True |    58 | False  |
| meta2      | 172.17.0.2:6120 | n/a                                  | /var/lib/oio/sds/OPENIO/meta2-0      | openiosds.0 | meta2      | True |    57 | False  |
| oioproxy   | 172.17.0.2:6006 | n/a                                  | n/a                                  | openiosds.0 | oioproxy   | True |    91 | False  |
| oioswift   | 172.17.0.2:6007 | 1ab410f2-8dbe-5cf7-9052-8ec604642e36 | n/a                                  | openiosds.0 | oioswift   | True |    94 | False  |
| rawx       | 172.17.0.2:6200 | 172.17.0.2:6200                      | /var/lib/oio/sds/OPENIO/rawx-0       | openiosds.0 | rawx       | True |    57 | False  |
| rdir       | 172.17.0.2:6300 | n/a                                  | /var/lib/oio/sds/OPENIO/rdir-0       | openiosds.1 | rdir       | True |    92 | False  |
+------------+-----------------+--------------------------------------+--------------------------------------+-------------+------------+------+-------+--------+

Have you tried "docker stop " and "docker rm " before?

Johannes5000 commented 7 months ago

Yes, I did. Version 19.10 works just fine for me. (Another colleague tried running this image as well with the same result.)

cdelgehier commented 7 months ago

Can you paste your container logs ?

cedricd@MacBook-Pro-de-Cedric-2 ~> docker run  --name oio-sds -d -p 6007:6007 openio/sds:20.04
152523aa0e3a2f6d8a0f54e22a81792edf8192a7ff8e14f0e09bcbe0f8aa49c8

cedricd@MacBook-Pro-de-Cedric-2 ~> docker logs 152523 | grep meta1

cedricd@MacBook-Pro-de-Cedric-2 ~> docker exec -it 152523 bash
[root@152523aa0e3a /]# openio cluster list
Johannes5000 commented 7 months ago

The code in the initial comment represents the container logs. However, sure, here are the filtered logs :)

rsyslog startup failure, child did not respond within startup timeout (60 seconds)
Error: Install script did not found 1 meta1 services registered. Return: 0