I try to deploy memsql 5.5 offline in LXC container environment. Install of memsql-ops succeeded. When I ran following command to add memsql offline media "memsqlbin_amd64.tar.gz", the command failed with error message about "out of space".
Here is the full error message:
# memsql-ops file-add -t memsql memsqlbin_amd64.tar.gz
Traceback (most recent call last):
File "/usr/local/updated-openssl/lib/python3.4/site-packages/cx_Freeze/initscripts/Console.py", line 27, in <module>
File "/memsql_platform/bin/memsql-ops", line 18, in <module>
File "/memsql_platform/memsql_platform/agent/cli/client.py", line 210, in parse
File "/memsql_platform/memsql_platform/agent/cli/command_file_add.py", line 27, in run
File "/memsql_platform/memsql_platform/agent/cli/file_add_mixin.py", line 61, in add_file
File "/memsql_platform/memsql_platform/network/api_client.py", line 126, in call
File "/memsql_platform/memsql_platform/network/api_client.py", line 92, in _call
memsql_platform.api.exceptions.DeviceOutOfDisk: The API is currently disabled because the disk that MemSQL Ops is installed on is out of space.
Running df -h can see disk space is not a problem from both host side or inside container.
# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sdc 559G 3.2G 554G 1% /
none 492K 0 492K 0% /dev
/dev/sdc 559G 3.2G 554G 1% /software
cgroup_root 10M 0 10M 0% /sys/fs/cgroup
tmpfs 63G 0 63G 0% /dev/shm
tmpfs 63G 8.1M 63G 1% /run
tmpfs 13G 0 13G 0% /run/user/0
I suspected that LXC container may inherit some system directories from host side and prevent application writes into those directories. But search around Internet let me believe there is no such limitation from LXC containers.
Search the same error messages on Google gives me nothing. I hope this issue can be worked around, but I also want to know why this can happen in container. As far as I know, memsql is successfully deployed into docker officially. I am eager to know how this can be achieved.