astakos: Add command project-modify
Add a management command that directly modifies an initialized project.
astakos: Refactor resource-modify
Remove interactive operations, rename default-quota to base-default.
astakos: Modify resource project default
Add support in resource-modify for changing the project_default.
deploy: Fix snf-ganeti-eventd setup
Enable eventd during prepare() so that after restarting it, initscript will not fail.
Signed-off-by: Dimitris Aragiorgis <dimara@grnet.gr>
Merge branch 'release-0.15' into develop
Conflicts: snf-deploy/snfdeploy/__init__.py version
snf-deploy: Fix ASTAKOS_AUTH_URL for cyclades.conf
Add the '/astakos' prefix to the ASTAKOS_AUTH_URL path.
Add missing dhcp_queue option in nfdhcpd template
Since 0.12.0 nfdhcpd serves DHCPv6 requests in order to supply DNSrelated info. So we have to define a new NFQUEUE to mangle thecorresponding packets.
deploy: Fix cyclades configure()
CYCLADES_NODE_IP is needed for customizing cyclades.conftemplate for UI_MEDIA_URL.
deploy: workaround for java console Issue
Java VncViewer class has an issue with self-signed certificates.With existing deployment it does not work if UI_MEDIA_URL usesFQDN. Use the node's IP instead.
NOTE: In a linux (Debian) client add the following in...
snf-deploy: Fix ownership of snf_pithos database
deploy: add missing ganeti collectd setup
snf-deploy: Stamp pithos most recent database migration
This is necessary so that future migrations know where to start upgrading.
deploy: minor fix for vncauthproxy
/var/lib/vncauthproxy dir is created by package itself.Thus mkdir -p to avoid error.
deploy: Fix vncauthproxy
Add users files.
TODO: use vncauthproxy-passwd with correct conf settings
Fix add_rapi_user method of Master component
..which broke after applying pep8 fixes.
More pep8 fixes related to snf-deploy
Those fixes concern errors that are introduced in latestpep8 version (and not the wheezy's one).
pep8 fixes related to snf-deploy refactor
Huuuuge snf-deploy refactor
Introduce the concept of Roles and Components.
Roles are ns, mq, db, nfs, astakos, cyclades, pithos, cms, stats,ganeti, master, and client.
Each role consists of various SynnefoComponents which should define:
deploy: Factor out utils from fabfile
Setup pithos with oa2 secret of conf files
This was forgotten when we removed the hard-coded secret.
Add oa2_secret to conf files
This secret is used during registering pithos view in astakos.Make this setting configurable.
snf-deploy: Typo fixes
snf-deploy: Update kamaki register command
The --location has to be `pithos://USER_UUID/CONTAINER/PATH'or `/CONTAINER/PATH'.
docs: Update kamaki image register command
snf-deploy: Fix Ganeti specs to allow zero nics
snf_deploy: Setup oa2 app
astakos oa2: rename settings and url prefixes
Change setting and url prefixes from `oa2` to`oauth2`
snf-deploy: Add stats support
snf-deploy: Fix for vncauthproxy>1.4
snf-deploy: Support newer version of kamaki CLI
Command Line Interface of kamaki has changed the way it handlespithos containers. A new command `container' has been created.
This commit changes the command snf-deploy is using the createa new container from...
Merge branch 'master' into develop
Conflicts: ci/schemas/one_node_wheezy/wheezy.conf docs/admin-guide.rst snf-cyclades-app/synnefo/api/actions.py snf-cyclades-app/synnefo/api/servers.py snf-cyclades-app/synnefo/logic/backend.py snf-cyclades-app/synnefo/logic/callbacks.py...
snf-deploy: Default packages should be wheezy
snf-deploy: Set quota for existing users
Add new action 'set_user_quota' to set base quota for existing users.
astakos: Rename --limit to --default-quota
Use a more descriptive name for this resource-modify option. Also changeresource-list column `limit' to `default_quota'.
Get the latest ganeti packages from wheezy repo
Conflicts: ci/schemas/one_node_wheezy/wheezy.conf snf-deploy/conf/wheezy.conf
deploy: Install vncauthproxy before cyclades
Install snf-vncauthproxy beforing installing Cyclades, because Cycladesdepends on vncauthproxy.
Rename 'cpu' and 'ram' resources
Rename CPU and RAM relative resources to avoid data migrations.Specifically, the resources that are renamed are the following:
deploy: update ganeti and nfqueue packages
Use latest custom 2.8.2 ganeti which consists of ganeti-haskell,ganeti-htools, snf-ganeti.
nfqueue-bindings-python is replaced by python-nfqueue inwheezy. Use our custom package which supports an extra method...
Merge branch 'feature-cyclades-networks' into develop
Conflicts: snf-cyclades-app/synnefo/api/management/commands/server-inspect.py snf-cyclades-app/synnefo/app_settings/urls.py snf-cyclades-app/synnefo/logic/backend.py snf-cyclades-app/synnefo/logic/backend_allocator.py...
deploy: Install snf-ganeti 2.8 from unstable
snf-deploy: Enable file disk template
snf-deploy Create network as floating IP pool
snf-deploy: Fix creation of initial networks
Trim trailing slash from ASTAKOS_AUTH_URL
Endpoints no more end in slash.
snf-deploy: Use the new AstakosClient
deploy: chown root.www-data /var/log/gunicorn
snf-deploy: pep8 fixes
snf-deploy: Add fabric as a dependency
deploy: use execute() instead of fab
This way we have a unique execution environment betweensnf-deploy script and fabfile. Arguments and optionsare handled way more easily. Get rid of the twisted codethat was passing command line arguments to fabric....
deploy: just move fabfile into python module
This prepares the refactor that will take place in the following ones.
snf-deploy: Remove packages.conf
This is not needed any more because we have squeeze and wheezy ones
snf-deploy: fix snf-deploy ganeti
A typo and explicitely install drbd8-utils package for ganeti.
snf-deploy: fix strange behaviour of openssl
When used remotely via ssh it produces a strange (stdin)= beforethe real output.
snf-deploy: Fix image_dir setup
snf-deploy: fix case of local binary package
ganeti-htools is a binary package that ends with amd64.debThus we should not not search only for *all.deb
Revert "snf-deploy: Make public network a FIP pool"
This reverts commit d25a778a0d7890cefc354a1860f8996a0eb1fcaa.
snf-deploy: Make public network a FIP pool
deploy: Set default quota for floating IPs
snf-deploy: Change email backend file location
Change Django's filebased email backend locationfrom '/var/log/gunicorn/synnefo-mail/' to'/var/tmp/synnefo-mail/'. We do this due to permissionerrors.
deploy: Exit with message and not with code
snf-deploy: Exit when fab command fails
The previous approach (using the return value fromos.system for sys.exit) was false. For more information, see`how-to-bypass-the-0-255-range-limit-for-sys-exit-in-python'on stackoverflow.
deploy: Add python-django to wheezy conf files
snf-deploy: Manually install django
Manually install python-django in order to get the correct version.
deploy: python-django squeeze-backports
Merge branch 'hotfix-0.14.8' into develop
Merge hotfix-0.14.8 which ports Synnefo to wheezy and Django 1.4.5
Conflicts: ci/ci_squeeze.conf ci/ci_wheezy.conf ci/schemas/one_node_squeeze/packages.conf ci/schemas/one_node_squeeze/squeeze.conf ci/schemas/one_node_squeeze/wheezy.conf...
deploy: Fix parsing of the service token
astakos: Store base URL in component
Deployer should provide it when adding a new component. Service endpointsoriginating from a component are expected to match its base URL; otherwise,a warning is issued during service registration. Re-registration with...
snf-deploy: Return the correct exit code
snf-deploy uses os.system to execute it's fabfile. We haveto use sys.exit() for the python script to return with thesame exit code as the one returned by fabric script.
snf-deploy: Remove misplaced `raise'
snf-deploy Use symbolic debian_base_url
For debian_base_url use a link that always resolvesto the latest image.
snf-deploy: Abort has been changed to True
By default abort when a command is failed to be executed.
snf-deploy: Remove old keys before generating new
When creating new ssh keys if the key already exists,ssh-keygen prompts the user if he want to overwrite it.To avoid prompting the user, delete all the old keys,before generating new ones (the user has...
snf-deploy: Add `generated' note to resolv.conf
Add a note on top of /etc/resolv.conf file to inform usersthat this file has been changed by snf-deploy and theimmutable bit has been used.
Conflicts: snf-deploy/fabfile.py
deploy: Pep8 fixes
deploy: Modify dir for filebased email_backend
Allow user to modify the directory that willbe used for the filebased email backend by Django.
Also move the EMAIL_BACKEND option from astakos tocommon.
ci: Fix addition of Ganeti RAPI user
'openssl' 1.0.1e-2 prefixes the output with "(stdin)= ". Because of thisregistration of a new Ganeti RAPI user failed. This commit fixes this byremoving the prefix, before adding it to Ganeti RAPI users file.
deploy: Install rabbitmq from Debian repos
Now that squeeze-backports has 2.8.4-1~bpo60+1 andwheezy has 2.8.4-1 version we can install rabbitmq-serverfrom the official Debian repos.
ci: Fix database engine
deploy: For local command set capture flag to True
fabric: Changed in version 1.0: Changed the default value of capturefrom True to False.
deploy: Don't use hardcoded version of postgresql