Giter Club home page Giter Club logo

myaas's People

Contributors

hugochinchilla avatar jaumebecks avatar joanfont avatar mangeld avatar tpizah avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

myaas's Issues

If update process fails databases become unusable

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.

myaas docker update command fail

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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.