habitissimo / myaas Goto Github PK
View Code? Open in Web Editor NEWFresh Mysql instances for your developers in seconds
License: GNU Lesser General Public License v3.0
Fresh Mysql instances for your developers in seconds
License: GNU Lesser General Public License v3.0
Last night update process failed because there was no RAM available to start the containers.
As the old template database gets deleted before importing the new one the next day there was no templates available to use.
The update process should backup the previous template until it can import a new version succesfully, if anything fails it should restore the backup and allow the service to work with outdated data.
when using myaas docker update command with sql dumps, it fails like below:
Traceback (most recent call last):
File "/usr/local/lib/python3.6/runpy.py", line 193, in _run_module_as_main
"main", mod_spec)
File "/usr/local/lib/python3.6/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/code/myaas/update.py", line 114, in
main()
File "/code/myaas/update.py", line 91, in main
db = RetryPolicy(5, delay=2)(start_db_func)
File "/code/myaas/utils/retry.py", line 23, in call
raise last_exception
File "/code/myaas/utils/retry.py", line 19, in call
return function()
File "/code/myaas/update.py", line 63, in start_template_database
db.start()
File "/code/myaas/backends/base.py", line 63, in start
subvolume = fs.find_subvolume_by_name(self.container_name)
File "/code/myaas/utils/btrfs.py", line 79, in find_subvolume_by_name
for subvolume in self.subvolumes:
File "/code/myaas/utils/btrfs.py", line 70, in subvolumes
for s in get_subvolumes(self.mountpoint)]
File "/code/myaas/utils/btrfs.py", line 19, in get_subvolumes
result = sh.btrfs.subvolume.list('-u', '-q', path)
File "/usr/local/lib/python3.6/site-packages/sh.py", line 1427, in call
return RunningCommand(cmd, call_args, stdin, stdout, stderr)
File "/usr/local/lib/python3.6/site-packages/sh.py", line 774, in init
self.wait()
File "/usr/local/lib/python3.6/site-packages/sh.py", line 792, in wait
self.handle_command_exit_code(exit_code)
File "/usr/local/lib/python3.6/site-packages/sh.py", line 815, in handle_command_exit_code
raise exc
sh.ErrorReturnCode_1:RAN: /sbin/btrfs subvolume list -u -q /myaas/data
STDOUT:
STDERR:
ERROR: can't perform the search -Inappropriate ioctl for device
ERROR: can't get rootid for '/myaas/data'
The sys version is: Docker version 1.12.6, build c4618fb/1.12.6 on CentOS 7.3 3.10.0-514.26.2.el7.x86_64.
Tried with --privleged option to run docker but not work. Any ideas?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.