deploy: fix typo
Signed-off-by: Dimitris Aragiorgis <dimara@grnet.gr>
deploy: Add Achipelago support (WIP)
Add a new nfs mount point /srv/archip and define new componentsArchip, ArchipGaneti to include in pithos, cyclades, ganeti andmaster roles.
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
deploy: Do not import services twice
Commit 65c656c resulted in double importing services, since thiswas already fixed in commmit 3c62626.
Revert "deploy: Fix --dhcp option of network-create cmd"
This reverts commit 73607c335593146f3f4bf31960c9a7042598d510.
deploy: Support both wheezy and squeeze packages
snf-deploy: some minor fixes and typos
snf-deploy: Fix pithos_url in register
New version of kamaki accepts the location ofimages to register as container:file instead of the oldone "pithos://uuid/location".
deploy: Fix importing services to astakos
Use snf-manage service-export and service-import management commands toimport services and corresponding resources to astakos. Also, remove oldtemporary files that were used for this procedure.
deploy: By default use only file disk template
By default snf-deploy will not enable lvm and drbd storage. So, thedefault setting for flavors should include only 'file' disk template.
snf-deploy: Use filebased email_backend
Change the email backend from dummy to a filebased one.
snf-deploy: Remove ssh keys
Remove ssh keys from snf-deploy package.We can now generate new keys running `snf-deploy keygen'.
deploy: Automate service registration
Use script snf-service-export to assist registering service definitionsin astakos. Remove call to resource-import; its usage is covered byservice-import.
deploy: minor updates
Hard code latest kamaki version that does not break deploy.snf-manage network-create --dhcp
Add os per node
This is needed for heterogeneous setups.Depending on os the corresponding sources file is addedand the proper synnefo packages are installed (~wheezy or ~squeeze)
deploy: Refactor nfs
Switch to nfs v3.Explicitly use IP in /etc/exports and not subnet.
Subnet and gateway are only used by vlcuster and thusmove them from nodes.conf to vcluster.conf.
deploy: some fixes
kamaki register imagetmp wheezy sources for ganeti htools (not used any more)import_service