Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some patches for pithos, deploy, and burnin (resend) #377

Open
wants to merge 11 commits into
base: develop
Choose a base branch
from

Conversation

dimara
Copy link
Contributor

@dimara dimara commented May 9, 2016

Hi,
This patch-set is actually a resend against current develop branch and includes the following changes:

  1. Purge mapfiles when deleting the corresponding versions in pithos
  2. Some minor fixes in deploy
  3. Support for out of tree test suites in burnin
  4. Add another gunicorn example hook related to stderr logging
    Thanks,
    dimara

dimara added 11 commits May 9, 2016 12:37
Signed-off-by: Dimitris Aragiorgis <dimitris.aragiorgis@gmail.com>
Versions in database have a Merkle hash of a given content
address-able object and a backend-specific mapfile that indexes the
corresponding block hashes that the object consists of. When purging
a node, deleting a container, or explicitly removing a version we
call the corresponding store method (i.e. map_delete()) for
deleting the version's mapfile.

Signed-off-by: Dimitris Aragiorgis <dimitris.aragiorgis@gmail.com>
If PITHOS_BACKEND_PURGE_MAPFILES is true, delete the associated
mapfile when deleting a version. This is unsafe for old setups
(prior Synnefo version 0.16rc1/commit 13d49ad), which may still include
Markle hashes instead of Archipelago mapfile names in Pithos DB.

Signed-off-by: Dimitris Aragiorgis <dimitris.aragiorgis@gmail.com>
By default when gunicorn is invoked with --daemon, it redirects 0, 1, 2
file descriptors to /dev/null and as a result the logs printed on
stdout/stderr are lost. This commit adds a gunicorn hook that uses the
already opened file of the first registered logging FileHandler, i.e.
the file from the '--log-file' Gunicorn configuration option.
To enable this hook use
--config=/etc/synnefo/gunicorn-hooks/gunicorn-stderr-logging.py option.

Signed-off-by: Dimitris Aragiorgis <dimitris.aragiorgis@gmail.com>
Signed-off-by: Dimitris Aragiorgis <dimitris.aragiorgis@gmail.com>
Signed-off-by: Dimitris Aragiorgis <dimitris.aragiorgis@gmail.com>
Use extra --file-storage-dir and --shared-file-storage-dir options
in gnt-cluster init since the default ones (/srv/ganeti/..) might
not exist if one changes shared_dir configuration option.

Signed-off-by: Dimitris Aragiorgis <dimitris.aragiorgis@gmail.com>
We might have an internal DNS server that probably was in the original
/etc/resolv.conf that gets overwritten. Here we add another option
in nodes.conf that each node can define; nameserver. These
nameservers will end up in named.conf.options.

Signed-off-by: Dimitris Aragiorgis <dimitris.aragiorgis@gmail.com>
Until now the snapshot test was looking for a snapshot-able flavor.
Synnefo assumes that snapshot-able flavors are the ones with
disk_template property ext_archipelago. This commit lifts this
constrain and uses one of the flavors passed in the command line
hoping that the Admin knows what is doing.

Signed-off-by: Dimitris Aragiorgis <dimitris.aragiorgis@gmail.com>
Signed-off-by: Dimitris Aragiorgis <dimitris.aragiorgis@gmail.com>
Refactor the initialization phase regarding test suites and
let the user pass any custom tests via --set-tests.

Signed-off-by: Dimitris Aragiorgis <dimitris.aragiorgis@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant