tklx / tracker

TKLX tracker
2 stars 0 forks source link

Missing tests for rabbitmq, celery (Not working in CircleCI) #5

Open a3s7p opened 8 years ago

a3s7p commented 8 years ago

Something is different in the CircleCI build environment that causes the rabbitmq appliance (and as a consequence, the tests requiring it) to fail.

Docker version used by CircleCI (1.10.0 in our config currently) and their use of btrfs as the backend for Docker images may be relevant.

IMAGE=tklx/$appname:latest bats --tap tests/basics.bats
init: running tklx/rabbitmq:latest
init: waiting for tklx/rabbitmq:latest to accept connections.........tklx/rabbitmq:latest failed to accept connections in wait window!
++ docker logs f741b6b71797f62e0cf926c8e348b405c11896d1347e1c7cc5603be60806040e
/usr/sbin/rabbitmq-server: 33: /usr/sbin/rabbitmq-server: cannot create /var/log/rabbitmq/startup_log: Permission denied

IMAGE=tklx/$appname:latest bats --tap tests/basics.bats returned exit code 1
+ apt-clean --aggressive
+ echo [ { rabbit, [ { loopback_users, [ ] } ] } ].
+ chown -R rabbitmq:rabbitmq /var/lib/rabbitmq /var/log/rabbitmq /etc/rabbitmq
---> d768212c8bde
Error removing intermediate container 095eb08a18d1: nosuchcontainer: No such container: 095eb08a18d11a3b1b6645abe7f4f967771cdb27f26d63585dd662a6b2e93a1d
Step 11 : USER rabbitmq
---> Running in e52ecb963cc6
---> c3ea8510e1dd
Error removing intermediate container 69bf2b94e42e: nosuchcontainer: No such container: 69bf2b94e42e9b3da6fbe7ff289b9624906fd25a06b1b967f5a4576259f06879
Step 12 : VOLUME /var/lib/rabbitmq
---> Running in 51863a70aaab
---> dccafc1bedbb
Error removing intermediate container 095eb08a18d1: nosuchcontainer: No such container: 095eb08a18d11a3b1b6645abe7f4f967771cdb27f26d63585dd662a6b2e93a1d
Step 13 : WORKDIR /var/lib/rabbitmq
---> Running in cd7f2c894fe0
---> e07e27f3e931
Error removing intermediate container 095eb08a18d1: nosuchcontainer: No such container: 095eb08a18d11a3b1b6645abe7f4f967771cdb27f26d63585dd662a6b2e93a1d
Step 14 : COPY entrypoint /
---> 3841d5f8c20c
Error removing intermediate container 095eb08a18d1: nosuchcontainer: No such container: 095eb08a18d11a3b1b6645abe7f4f967771cdb27f26d63585dd662a6b2e93a1d
Step 15 : ENTRYPOINT /tini -- /entrypoint
---> Running in 126c5da46641
---> 165984662db5
Error removing intermediate container c78f4afd5185: rmdriverfs: Driver btrfs failed to remove root filesystem c78f4afd51858376d11a190d74a02d1a39b952e64412a72204878ea4de515e05: Failed to destroy btrfs snapshot /var/lib/docker/btrfs/subvolumes for 65a355d717d3ac251dcee0704abb62e7328214321173fa77ab5eafd02fbeaa62: operation not permitted
Step 16 : EXPOSE 4369 5671 5672 15671 15672 25672
---> Running in 128f54f00e9f
---> c091c821609a
Error removing intermediate container c78f4afd5185: nosuchcontainer: No such container: c78f4afd51858376d11a190d74a02d1a39b952e64412a72204878ea4de515e05
Step 17 : CMD rabbitmq-server
---> Running in 9eb83eff63b2
---> a28f920937ee
Error removing intermediate container 88026c737bb1: rmdriverfs: Driver btrfs failed to remove root filesystem 88026c737bb17f0a085925b5efbcb409bab6c37cf2b9e976a6beff4fe5b6f739: Failed to destroy btrfs snapshot /var/lib/docker/btrfs/subvolumes for fdc635fb9caa2cc3f388eee3e3fad09b5b55af307fb68711d337c6fdd3899cb0: operation not permitted
Successfully built a28f920937ee