owncloud / product

ownCloud Product Backlog
GNU Lesser General Public License v3.0
0 stars 1 forks source link

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

Open felixboehm opened 4 years ago

felixboehm commented 4 years ago

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

jnweiger commented 4 years ago

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

individual-it commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

@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 commented 4 years ago

new script make_ocis_eos_docker_test.sh