stmuraka / OpenStackSwift-OpenWhisk

Example of how to create AWS S3+Lambda functionality with OpenStack Swift Webhook middleware and OpenWhisk Actions
Other
4 stars 5 forks source link

Container of OpenStack Swift is stopping unexpectly after running docker run #1

Open Nivekiba opened 4 years ago

Nivekiba commented 4 years ago

Hello @stmuraka , i'm using your tutorial to install and setup openstack swift in my project. i had already installed. but i'm facing an error

when coming to test the storage service using curl -v -H 'X-Storage-User: test:tester' -H 'X-Storage-Pass: testing' http://127.0.0.1:8080/auth/v1.0

i'm getting this error

image

And after many hours of investigation, i realised that the docker container of the openstack swift stopped unexpectly

the ouput of the docker logs -f saio command gives me this:

image

PS: I'm using VM Ware

stmuraka commented 4 years ago

@Nivekiba what OS (image) are you using? Make sure XFS is installed then try again.

Nivekiba commented 4 years ago

I used Ubuntu for the OS system but in a virtual machine (VMware) and XFS is already installed But it's not working

stmuraka commented 4 years ago

@Nivekiba I think I've had problems in the past running this locally in the past (e.g. my laptop). I think it had to do with how the filesystem & loopback mounts were handled at the host. You may want to make sure that you can do a loop mount before proceeding.

Nivekiba commented 4 years ago

how am i suppose to test if i can do a loop mount ?

do you have any command to suggest to me ?

stmuraka commented 4 years ago

if you can add another volume to your host, try...

mkfs.xfs  -L D1 /dev/sdx1
mkdir /my/mount/dir
mount -t xfs -o loop,noatime,nodiratime -L D1 /dev/sdx1 /my/mount/dir

check your syslog for errors

Nivekiba commented 4 years ago

the loop mount is working well.. but i'm getting the same error as before when starting the openstack swift container

stmuraka commented 4 years ago

Are you using the same Swift version in the image? you can also try removing nobarrier from the fstab config to just: loop,noatime,nodiratime,logbufs=8 0 0

Nivekiba commented 4 years ago

I could resolve this error

is there any evolution ?

stmuraka commented 4 years ago

hi @Nivekiba sorry, there have been many versions of Docker and Swift since this project was created. I am no longer doing any development or support of the solution.

Are there any other errors in your system logs? dmesg?

you might want to clean up and also try re-deploying