Page tree
Skip to end of metadata
Go to start of metadata
 This section is the part of the OnApp installation procedure.
Install Control Panel Server  >  Install Compute Resources > Install Data Stores > Install Backup Server > Configure Cloud



  • Review the Preparation Guide to ensure that you have a suitable environment before starting the installation.
  • We strongly recommend that the Control Panel server is a bare metal installation. Its best to avoid visualization for this server if possible, although VMWare or KVM servers that comply with the recommended specifications are suitable.
  • Use corresponding option of the Control Panel installer in case MySQL is already installed and configured.
  • To use an external MySQL server/cluster, the server/cluster should be version 5.1 - 5.6.
  • Installer output is redirected to ./onapp-cp-install.log
  • All installer critical errors are in /var/log/messages 
  • If you're replacing an existing Control Panel with a new install, refer to Control Panel Migration Guide for instructions.
  • If you need to install other components (OnApp Database Server, RabbitMQ Server, Redis Server) refer to the OnApp Installation Components for instructions. Also you can migrate existing OnApp database from MySQL to MariaDB, Percona Servers or Percona Cluster.

See also:

Technical Details

Preparation Guide

vCloud Setup and Upgrade - OnApp and vCloud Director Configuration Guide

To install Control Panel server, perform the following procedure:

  1. Update your server:

    bash# yum update
  2. Download OnApp YUM repository file:

    # rpm -Uvh http://rpm.repo.onapp.com/repo/onapp-repo-4.3.noarch.rpm
  3. Install OnApp Control Panel installer package:

    bash#> yum install onapp-cp-install
  4.  Set the custom Control Panel configuration. It is important to set the custom values before the installer script runs.

     Edit the /onapp/onapp-cp.conf file to set Control Panel custom values

    Template server URL

    TEMPLATE_SERVER_URL='http://templates-manager.onapp.com';

    # IPs (separated with coma) list for the snmp to trap

    SNMP_TRAP_IPS=

    # OnApp Control Panel custom version

    ONAPP_VERSION=""

    # OnApp MySQL/MariaDB connection data (database.yml)

    ONAPP_CONN_WAIT_TIMEOUT=15
    ONAPP_CONN_POOL=30
    ONAPP_CONN_RECONNECT='true'
    ONAPP_CONN_ENCODING='utf8'
    ONAPP_CONN_SOCKET='/var/lib/mysql/mysql.sock'

    # MySQL/MariaDB server configuration data (in case of local server)

    MYSQL_WAIT_TIMEOUT=604800
    MYSQL_MAX_CONNECTIONS=500
    MYSQL_PORT=3306

    # Use MariaDB instead of MySQL as OnApp database server (Deprecated parameter. If you set any values for this parameter, they will not take effect)

    WITH_MARIADB=0

    # Configure the database server relative amount of available RAM (Deprecated parameter. If you set any values for this parameter, they will not take effect)

    TUNE_DB_SERVER=0

    # The number of C data structures that can be allocated before triggering the garbage collector. It defaults to 8 million

    RUBY_GC_MALLOC_LIMIT=16000000

    # sysctl.conf net.core.somaxconn value

    NET_CORE_SOMAXCONN=2048

    # The root of OnApp database dump directory (on the Control Panel box)

    ONAPP_DB_DUMP_ROOT=""

    # Remote server's (to store database dumps) IP, user, path, openssh connection options ans number of dumps to keep

    DB_DUMP_SERVER=""
    DB_DUMP_USER="root"
    DB_DUMP_SERVER_ROOT="/onapp/backups"
    DB_DUMP_SERVER_SSH_OPT="-o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o PasswordAuthentication=no"
    KEEP_DUMPS=168
    DB_DUMP_CRON='40 * * * *'

    # Enable monit - tool for managing and monitoring Unix systems

    ENABLE_MONIT=1

    # If enabled (the 1 value is set) - install (if local box) and configures RabbitMQ Server (messaging system) for the vCloud support. (Deprecated parameter. If you set any values for this parameter, they will not take effect)


    ENABLE_RABBITMQ=1


    # Rotate transactions' log files created more than TRANS_LOGS_ROTATE_TIME day(s) ago


    TRANS_LOGS_ROTATE_TIME=30


    # Maximum allowed for uploading file size in bytes, from 0 (meaning unlimited) to 2147483647 (2GB). Default is 1GB


    MAX_UPLOAD_SIZE=1073741824


    # Timeout before ping Redis Server to check if it is started. Default is 5 sec.

    REDIS_PING_TIMEOUT=5


    # OnApp Control Panel SSL certificates (please do not change if you aren't familar with SSL certificates)
    # * The data below to generate self-signed PEM-encoded X.509 certificate

    SSL_CERT_COUNTRY_NAME=UK
    SSL_CERT_ORGANIZATION_NAME='OnApp Limited'
    SSL_CERT_ORGANIZATION_ALUNITNAME='OnApp Cloud'
    SSL_CERT_COMMON_NAME=`hostname --fqdn 2>/dev/null`


    #   SSLCertificateFile, SSLCertificateKeyFile Apache directives' values
    #   ssl_certificate, ssl_certificate_key Nginx directives' values

    SSLCERTIFICATEFILE=/etc/pki/tls/certs/ca.crt
    SSLCERTIFICATECSRFILE=/etc/pki/tls/private/ca.csr
    SSLCERTIFICATEKEYFILE=/etc/pki/tls/private/ca.key


    # * PEM-encoded CA Certificate (if custom one exists)
    #   SSLCACertificateFile, SSLCertificateChainFile Apache directives' values
    #   ssl_client_certificate Nginx directives' values

    SSLCACERTIFICATEFILE=
    SSLCERTIFICATECHAINFILE=


     

    #   SSLCipherSuite, SSLProtocol Apache directives' values
    #   ssl_ciphers, ssl_protocols Nginx directives' values

    SSLCIPHERSUITE=
    SSLPROTOCOL=


     

    bash# vi /onapp/onapp-cp.conf


  5. Run the Control Panel installer:

    bash#> /onapp/onapp-cp-install/onapp-cp-install.sh -i SNMP_TRAP_IPS

    Set the OPENSSL_ENABLE_MD5_VERIFY=1 environment variable if installing on CentOS 6.x with self-signed certificates. So the installer command should look like:

    # export OPENSSL_ENABLE_MD5_VERIFY=1 && /onapp/onapp-cp-install/onapp-cp-install.sh -i SNMP_TRAP_IPS
     The full list of Control Panel installer options:



    Usage:

    /onapp/onapp-cp-install/onapp-cp-install.sh [-c CONFIG_FILE] [--mariadb | --community | --percona | --percona-cluster] [-m MYSQL_HOST] [--mysql-port=MYSQL_PORT] [--mysql-sock[=MYSQL_SOCK] [-p MYSQL_PASSWD] [-d MYSQL_DB] [-u MYSQL_USER] [-U ADMIN_LOGIN] [-P ADMIN_PASSWD] [-F ADMIN_FIRSTNAME] [-L ADMIN_LASTNAME] [-E ADMIN_EMAIL] [-v ONAPP_VERSION] [-i SNMP_TRAP_IPS] [--redis-host=REDIS_HOST] [--redis-bind[=REDIS_BIND] [--redis-passwd[=REDIS_PASSWD] [--redis-port=REDIS_PORT] [--redis-sock[=REDIS_SOCK] [--rbthost RBT_HOST] [--vcdlogin VCD_LOGIN] [--vcdpasswd VCD_PASSWD] [--vcdvhost VCD_VHOST] [--rbtlogin RBT_LOGIN] [--rbtpasswd RBT_PASSWD] [-a] [-y] [-D] [-t] [--noservices] [--ha-install] [--rake=RAKE_TASKS] [-h]


    Where:


     Database server options:Default database SQL server is MySQL Server. Please use one of the following option to install LOCALLY.
    --mariadbMariaDB Server

    --community

    MySQL Community Server
    --perconaPercona Server
    --percona-clusterPercona Cluster


    MYSQL_*Options are useful if MySQL is already installed and configured.
    -m MYSQL_HOSTMySQL host. Default is 'localhost'

    --mysql-port=MYSQL_PORT

    TCP port where MySQL Server serves connections.

    Default values is 3306 for the local installation.

    --mysql-sock[=MYSQL_SOCK]

    Unix socket on which MySQL Server serves connections.

    Default values is /var/lib/mysql/mysql.sock. Used if local server only. The socket is unset if the option's argument isn't specified.

    -p MYSQL_PASSWDMySQL password. Random is generated if is not set or specified.
    -d MYSQL_DBOnApp MySQL database name. Default is 'onapp'
    -u MYSQL_USERMySQL user. Default is 'root'


    REDIS_*Options are useful if Redis Server is already installed and configured.
    --redis-host=REDIS_HOST


    IP address/FQDN where Redis Server runs. It is used by Control Panel to connect to Redis Server.
    The Redis Server will be installed and configured on the current box if localhost/127.0.0.1 or box's public IP address (listed in SNMP_TRAP_IPS) is specified. Default value is 127.0.0.1.

    If local Redis, it will serve as well on the unix socket 'PORT' (if --redis-sock without argument isn't specified)

    --redis-bind[=REDIS_BIND]

    The IP address for Redis Server to serve connections (to listen). The option isn't mandatory.

    --redis-port=REDIS_PORTRedis Server listen port.
    Defaults are:
    0 - if local server
    6379 - if remote server
    --redis-passwd[=REDIS_PASSWD]Redis Server password to authentificate.
    Random password is generated if the option's argument isn't specified.
    By default no password is used for local Redis.
    --redis-sock=REDIS_PATH :Path to the Redis Server's socket. Used if local server only.
    Default is /tmp/redis.sock

    The socket is unset if the option's argument isn't specified.



    ADMIN_*Options are used to configure OnApp Control Panel administrator data.
    Please note, that these options are for NEW INSTALL only and not for upgrade
    -P ADMIN_PASSWD CP administrator password
    -F ADMIN_FIRSTNAMECP administrator first name
    -L ADMIN_LASTNAMECP administrator last name
    -E ADMIN_EMAILCP administrator e-mail


      --rbthost   RBT_HOST  IP address/FQDN where RabbitMQ Server runs. The RabbitMQ will be installed and configured on the current box if localhost/127.0.0.1 or box's public IP address (enlisted in SNMP_TRAP_IPS). Default values are 127.0.0.1.
    VCD_*Options are usefull if vCloud/RabbitMQ are already installed and configured.
    --vcdlogin  VCD_LOGINRabbitMQ/vCloud user. Default value is 'rbtvcd'.
    --vcdpasswd VCD_PASSWDRabbitMQ/vCloud user password. The random password is generated if isn't specified.
    --vcdvhost  VCD_VHOSTRabbitMQ/vCloud vhost. Default value is '/'
    RBT_*  Options are used to configure RabbitMQ manager account. If local RabbitMQ server.
    --rbtlogin  RBT_LOGIN RabbitMQ manager login. The default value is 'rbtmgr'.
    --rbtpasswd RBT_PASSWDRabbitMQ manager password. The random password is generated if isn't specified.


    --rake RAKE_TASKS

    List of OnApp Control Panel rake tasks (separated with space) to run at the very end of install or upgrade

    -v ONAPP_VERSIONInstall custom OnApp CP version
    -i SNMP_TRAP_IPSIP addresses separated with coma for snmp to trap
    -yupdate OS packages (except of OnApp provided) on the box with 'yum update'.
    -aDo not be interactive. Process with automatic installation. Please note, this will continue OnApp Control Panel install/upgrade even if there is transaction currently running.
    -tAdd to the database and download Base Templates. For new installs only.
    --noservices

    Do not start OnApp services: monit, onapp and httpd
    Please note, crond and all OnApp's cron tasks remain running. They could be disabled by stopping crond service manually for your own risk.

    -Ddo not make database dump, and make sure it is disabled in the cron and not running at the moment

    -c CONFIG_FILE

    Custom installer configuration file. Otherwise, preinstalled one is used.

    -hprint this info
  6. Install Cloudboot dependencies:

    This step is optional: if you have Integrated Storage, take this step, otherwise skip it.

    bash#> yum install onapp-store-install
    bash#> /onapp/onapp-store-install/onapp-store-install.sh
  7. Install OnApp license to activate the Control Panel. Enter a valid license key via the Web UI (you'll be prompted to do so). Your default OnApp login is admin/changeme. The password can be changed via the Control Panel's Users and Groups menu in the Control Panel.


    Once you have entered a license it can take up to 15 minutes to activate.
  8. Restart the OnApp service:

    bash#> service onapp restart
  9. After you have installed the Control Panel server, configure your Cloud Settings. See Configure Cloud for details. 


    Perform the following steps if you plan to deploy Accelerator. Otherwise skip.


  10. Specify user name and password for rabbitmq-server:

    rabbitmqctl add_user username 'userpass'
  11. Set permissions for this user:

    rabbitmqctl set_permissions -p '/' username ".*" ".*" ".*"


  12. Restart OnApp service:

    service onapp restart

    Compute Resources and Control Panel must use the same rabbitmq-server.




 This section is the part of the OnApp installation procedure.
Install Control Panel Server  >  Install Compute Resources > Install Data Stores > Install Backup Server > Configure Cloud



  • No labels