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

add example: ocis + eos setup for dev & qa #34

Open
felixboehm opened this issue May 13, 2020 · 5 comments
Open

add example: ocis + eos setup for dev & qa #34

felixboehm opened this issue May 13, 2020 · 5 comments

Comments

@felixboehm
Copy link

on linux

git clone https://github.com/AARNet/eos-docker
cd eos-docker
rm containers/content/yum/rhel7-dev.repo
rm containers/content/yum/rhscl.repo
./build -t test
./setup -s   # starting several containers, we only need mq/mgm/qdb/fst

./setup -d  # destroys all containers

Open

@felixboehm felixboehm changed the title add eos setup for dev & qa add example: ocis + eos setup for dev & qa May 13, 2020
@felixboehm felixboehm self-assigned this May 13, 2020
@jnweiger
Copy link

Here are my hetzner deploy scripts coming: owncloud-docker/compose-playground#22
The code of above is implemented by make_aarnet_eos_test.sh

@jnweiger jnweiger self-assigned this May 13, 2020
@individual-it
Copy link
Member

not sure if it matters but at the tests at the end of the script seem to fail:

===== TESTING EOSD & EOSXD MOUNTS =====

eos: Writing a test file..
./setup: line 172: e/eos/test/hello.txt: No space left on device

Reading the test file..
cat: e/eos/test/hello.txt: No such file or directory

eosxd: Writing a test file..
echo: write error: No space left on device

Reading the test file..
cat: e/eosxd/test/hello.txt: No space left on device

..All done!

@davitol
Copy link

davitol commented May 14, 2020

I stumbled upon the same behavior commented by @individual-it

===== TESTING EOSD & EOSXD MOUNTS =====

eos: Writing a test file..
./setup: line 172: e/eos/test/hello.txt: No space left on device

Reading the test file..
cat: e/eos/test/hello.txt: No such file or directory

eosxd: Writing a test file..
echo: write error: No space left on device

Reading the test file..
cat: e/eosxd/test/hello.txt: No space left on device

..All done!

@jnweiger
Copy link

jnweiger commented May 14, 2020

@davitol @individual-it if that 'No space left on device' error happens, the setup code failed to create the filesystems. If correct the console output should says

===== CREATING FILESYSTEMS =====

success:   mapped 'eosfs1' <=> fsid=1
success:   mapped 'eosfs2' <=> fsid=2
success:   mapped 'eosfs3' <=> fsid=3
success:   mapped 'eosfs4' <=> fsid=4

.. Done!

The code would e.g. fail when there is no TTY attached. as it is run with docker exec -ti instead of a plain docker exec.
Fixed here: https://github.com/owncloud-docker/compose-playground/blob/master/examples/hetzner-deploy/make_aarnet_eos_test.sh
There might be more preconditions missing in your case, like docker not using overlayfs2, or dockerd not running with MountFlags=shared
My make_aarnet_eos_test.sh also ensures the MountFlag, but does not assert overlayfs2 yet -- not exectly sure if strictly needed.

@jnweiger
Copy link

new script make_ocis_eos_docker_test.sh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants