Ganeti Web Manager Documentation Release 0.10.2

Ganeti Web Manager Documentation Release 0.10.2

Ganeti Web Manager Documentation Release 0.10.2 Oregon State University Open Source Lab November 12, 2013 Contents 1 Getting Started 3 1.1 Requirements...............................................3 1.2 Installation................................................4 1.3 Configuring................................................5 1.4 Deployment...............................................9 1.5 Importing a Cluster............................................ 10 2 Features 13 2.1 Permissions................................................ 13 2.2 Object Log................................................ 15 2.3 VNC................................................... 15 2.4 SSH Keys................................................. 17 2.5 LDAP................................................... 18 2.6 Virtual Machine Templates........................................ 19 2.7 Managing Clusters............................................ 19 2.8 Cluster Read Only Mode......................................... 19 2.9 Open Registration............................................ 20 2.10 Caching.................................................. 21 2.11 Ganetiviz................................................. 22 3 Usage 25 3.1 Upgrading................................................ 25 3.2 Clusters.................................................. 26 3.3 Virtual Machines............................................. 26 3.4 Nodes................................................... 26 3.5 Templates................................................. 26 4 Project Information 27 4.1 Compatibility............................................... 27 4.2 Changelog................................................ 27 4.3 History.................................................. 33 4.4 Design.................................................. 33 4.5 Contact Information........................................... 33 4.6 Screenshots................................................ 33 i 4.7 GPL License............................................... 34 4.8 FAQ.................................................... 44 4.9 Contributors............................................... 45 5 Development 49 5.1 Installation................................................ 49 5.2 Vagrant.................................................. 51 5.3 Vagrant Test Cluster........................................... 52 5.4 Release Schedule............................................. 53 5.5 Development Process.......................................... 53 5.6 Filing Issues............................................... 53 5.7 Development Tools............................................ 54 5.8 Documentation.............................................. 54 5.9 Developers................................................ 55 5.10 Writing Tests............................................... 57 5.11 About the search system......................................... 58 5.12 Selenium test specs............................................ 59 5.13 References................................................ 61 6 Deprecated 85 6.1 Deprecated: Dependencies........................................ 85 6.2 Deprecated: Compatibility........................................ 86 6.3 Deprecated: Installation......................................... 86 6.4 Deprecated: Upgrading......................................... 88 6.5 Deprecated: Caching........................................... 92 7 Indices and tables 95 ii Ganeti Web Manager Documentation, Release 0.10.2 Ganeti Web Manager is a Django based web frontend for managing Ganeti virtualization clusters. Since Ganeti only provides a command-line interface, Ganeti Web Manager‘s goal is to provide a user friendly interface to Ganeti by being feature complete with Ganeti’s RAPI. On top of Ganeti it provides a permission system for managing access to clusters and virtual machines and an in browser VNC console. If you don’t already have a Ganeti cluster setup, these directions can help you get started. If you are looking for support, please contact us through these channels. If you are looking to deploy Ganeti Web Manager for the first time, check out our Installation guide. If you already have a Ganeti Web Manager instance running it might be time to upgrade. Ganeti Web Manager is licensed under the GPLv2. It is currently developed and maintained by the Oregon State University Open Source Lab and a handful of volunteers. If you would like to get involved in development see our development guide. Contents 1 Ganeti Web Manager Documentation, Release 0.10.2 2 Contents CHAPTER 1 Getting Started 1.1 Requirements 1.1.1 Operating system We officially support Ubuntu 11.10, Ubuntu 12.04 and CentOS 6. Ganeti Web Manager is also known to work on Debian 7 and CentOS 5. More on compatibility page. 1.1.2 Base • sudo • Python >= 2.6 • Python Virtualenv • git These dependencies are required to install Ganeti Web Manager via setup.sh installation script. Follow up to installation instructions. 1.1.3 Databases All database dependencies are installed automatically during setup.sh run. All you need is sudo priviledge. If you have any issues, please refer to Django database documentation. If you, for any reason, want to install these database dependencies on your own, here’s the list: MySQL requires MySQL-python package installed within virtual environment, which in turn requires libmysqlclient18 on Ubuntu/Debian and mysql-libs on CentOS. PostgreSQL requires psycopg2 package installed within virtual environment, which in turn requires libpq5 on Ubuntu/Debian and postgresql-libs on CentOS. 3 Ganeti Web Manager Documentation, Release 0.10.2 1.1.4 LDAP LDAP dependencies can be found on the LDAP dependencies page. 1.2 Installation Warning: Prior to version 0.11, the preferred way of installing Ganeti Web Manager was by using fabric. It is no longer a default way of installing Ganeti Web Manager. If you have older Ganeti Web Manager, look at these instructions. This instruction covers installation steps for end users. It is not intended for Ganeti Web Manager developers or people installing unstable version. If you want to play with unstable Ganeti Web Manager, please follow instructions for developers. 1.2.1 Installing Installation is now automatic. You just need to grab one Bash script and run it with proper arguments. That script detects your operating system, installs required dependencies (even for your database of choice!), creates Python virtual environment and finally installs Ganeti Web Manager with its own dependencies. 0. Make sure that all Ganeti Web Manager‘s requirements are met. 1. Download the script to your desired destination (you want to keep that script near Ganeti Web Manager instal- lation path, because you’ll use it later to update Ganeti Web Manager): $ cd /opt/ganeti_webmgr/ $ wget https://raw.github.com/pbanaszkiewicz/ganeti_webmgr-setup/develop/setup.sh 2. Run setup.sh -h to get help and see all possible usages of that script. To install everything within /opt/ganeti_webmgr/gwm directory (assuming your setup script is in /opt/ganeti_webmgr and your desired database is PostgreSQL): $ ./setup.sh -d ./gwm -D postgresql Now in /opt/ganeti_webmgr/gwm is your Python virtual environment. This means that all Python packages needed by Ganeti Web Manager exist within that directory structure, and not in your global Python packages. This separation helps keeping multiple different projects at once and specific dependencies with pinned versions. 1.2.2 Minimum Configuration When you ran setup.sh script, it downloaded for you premade configuration that now resides in /opt/ganeti_webmgr/gwm/config. Use it as a starting point. All configuration options should be well docu- mented and easy to change. Follow to the configuration page for more documentation. 1.2.3 Initializing Because your Ganeti Web Manager instance lives within virtual environment, you must get into it as well: $ source gwm/bin/activate 4 Chapter 1. Getting Started Ganeti Web Manager Documentation, Release 0.10.2 Now all the programs installed to that virtual environment are available for you (until you issue deactivate or close your terminal session). Initialize database • MySQL or SQLite: create new tables and migrate all applications using South: $ gwm-manage.py syncdb --migrate • PostgreSQL: only fresh installation supports PostgreSQL, because there are no migrations for this database within Ganeti Web Manager prior to version 0.11: $ gwm-manage.py syncdb --all $ gwm-manage.py migrate --fake Search indexes Build them with: $ gwm-manage.py rebuild_index Note: Running gwm-manage.py update_index on a regular basis ensures that the search indexes stay up-to- date when models change in Ganeti Web Manager. 1.2.4 Next Steps Congratulations! Ganeti Web Manager is now installed and initialized. Next, you’ll want to look into Configuring and Deployment, if you are going to be setting up a production instance. Otherwise, if you just want to play around with Ganeti Web Manager, or are developing, take a look at Test Server. 1.3 Configuring After you installed your Ganeti Web Manager instance with setup script it’s time for some configuration. Mentioned script downloads pre-made configuration for you to the /gwm-installation-path/config/. Look there and you’ll find a file called gwm_config.py. That’s where all the configuration takes place. Note: Ganeti Web Manager now installs into virtual environment’s Python packages, so you don’t have to modify files it uses (ie. these in /venv/lib/python2.x/site-packages/ganet-webmgr/). 1.3.1 Secrets

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    99 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us