501 |
501 |
|
502 |
502 |
.. code-block:: console
|
503 |
503 |
|
504 |
|
# apt-get install snf-astakos-app snf-quotaholder-app snf-pithos-backend
|
|
504 |
# apt-get install snf-astakos-app snf-pithos-backend
|
505 |
505 |
|
506 |
506 |
After successful installation of snf-astakos-app, make sure that also
|
507 |
507 |
snf-webproject has been installed (marked as "Recommended" package). By default
|
... | ... | |
710 |
710 |
.. code-block:: console
|
711 |
711 |
|
712 |
712 |
# snf-manage migrate im
|
|
713 |
# snf-manage migrate quotaholder_app
|
713 |
714 |
|
714 |
715 |
Then, we load the pre-defined user groups
|
715 |
716 |
|
... | ... | |
722 |
723 |
Services Registration
|
723 |
724 |
---------------------
|
724 |
725 |
|
725 |
|
When the database is ready, we configure the elements of the Astakos cloudbar,
|
726 |
|
to point to our future services:
|
|
726 |
When the database is ready, we need to register the services. The following
|
|
727 |
command will ask you to register the standard Synnefo services (astakos,
|
|
728 |
cyclades, and pithos). Note that you have to register at least astakos in
|
|
729 |
order to have a usable authentication system. For each service, you will be
|
|
730 |
asked to provide the service URL (to appear in the Cloudbar) as well as its
|
|
731 |
API URL. Moreover, the command will automatically register the resource
|
|
732 |
definitions offered by the respective service.
|
727 |
733 |
|
728 |
734 |
.. code-block:: console
|
729 |
735 |
|
730 |
|
# snf-manage service-add "~okeanos home" https://node1.example.com/im/ home-icon.png
|
731 |
|
# snf-manage service-add "cyclades" https://node1.example.com/ui/
|
732 |
|
# snf-manage service-add "pithos" https://node2.example.com/ui/
|
|
736 |
# snf-register-services
|
|
737 |
|
|
738 |
Setting Default Base Quota for Resources
|
|
739 |
----------------------------------------
|
|
740 |
|
|
741 |
We now have to specify the limit on resources that each user can employ
|
|
742 |
(exempting resources offered by projects).
|
|
743 |
|
|
744 |
.. code-block:: console
|
|
745 |
|
|
746 |
# snf-manage resource-modify --limit-interactive
|
|
747 |
|
733 |
748 |
|
734 |
749 |
Servers Initialization
|
735 |
750 |
----------------------
|
... | ... | |
1694 |
1709 |
they should all have identical ``ASTAKOS_BASE_URL`` setting
|
1695 |
1710 |
(see also, :ref:`previously <conf-pithos>`).
|
1696 |
1711 |
|
1697 |
|
.. warning::
|
1698 |
|
|
1699 |
|
All services must match the quotaholder token and url configured for
|
1700 |
|
quotaholder.
|
1701 |
|
|
1702 |
1712 |
TODO: Document the Network Options here
|
1703 |
1713 |
|
1704 |
1714 |
Edit ``/etc/synnefo/20-snf-cyclades-app-cloudbar.conf``:
|
... | ... | |
1980 |
1990 |
|
1981 |
1991 |
.. warning:: Make sure you start ``snf-ganeti-eventd`` *ONLY* on GANETI MASTER
|
1982 |
1992 |
|
1983 |
|
Apply Quotas
|
1984 |
|
------------
|
|
1993 |
Apply Quota
|
|
1994 |
-----------
|
|
1995 |
|
|
1996 |
The following commands will check and fix the integrity of user quota.
|
|
1997 |
In a freshly installed system, these commands have no effect and can be
|
|
1998 |
skipped.
|
1985 |
1999 |
|
1986 |
2000 |
.. code-block:: console
|
1987 |
2001 |
|
1988 |
|
node1 # snf-manage astakos-init --load-service-resources
|
1989 |
|
node1 # snf-manage quota --verify
|
1990 |
2002 |
node1 # snf-manage quota --sync
|
1991 |
|
node2 # snf-manage pithos-reset-usage
|
|
2003 |
node1 # snf-manage reconcile-resources-astakos --fix
|
|
2004 |
node2 # snf-manage reconcile-resources-pithos --fix
|
1992 |
2005 |
node1 # snf-manage reconcile-resources-cyclades --fix
|
1993 |
2006 |
|
1994 |
2007 |
If all the above return successfully, then you have finished with the Cyclades
|