OnApp 3.4.0-9 Update

Release notesAffects version
Increased the speed of display of CDN resources.3.3.23.4

Patch Installation

To apply this patch, follow the step by step instructions and specify the build number of this patch  3.4.0-9 either in the configuration file or in the command line of the Control Panel installer:

Installer output is redirected to ./onapp-cp-install.log

All installer critical errors are in /var/log/messages

  1. Download and install the latest OnApp YUM repository file:

    bash#> rpm -Uvh http://rpm.repo.onapp.com/repo/onapp-repo.noarch.rpm
  2. Upgrade OnApp Control Panel installer package:

    bash#> yum update onapp-cp-install

  3. Custom Control Panel configuration

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

    List of  Management network IP(s) from the CP server separated with coma for 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

    WITH_MARIADB=0

    Configure the database server relative amount of available RAM

    Set TUNE_DB_SERVER value to 1 to enable the automatic configuration of Data Base in relation to the RAM available for your Control Panel. 

    Please be advised, this option will remove your existing DB configuration!


    TUNE_DB_SERVER=0

    The number of C data structures that can be allocated before triggering the garbage collector.  The default ruby value is 8 million. The recommended value is presented below. For more information on RUBY_GC_MALLOC_LIMIT parameter, refer to Ruby’s GC Configuration and Garbage Collection articles.

    RUBY_GC_MALLOC_LIMIT=16000000

    The value of sysctl.conf net.core.somaxconn

    NET_CORE_SOMAXCONN=2048

    Root of OnApp database dump directory (on the Control Panel box)

    ONAPP_DB_DUMP_ROOT=""

    Enable monit - tool for managing and monitoring Unix systems

    ENABLE_MONIT=1
    bash# vi /onapp/onapp-cp.conf

    Custom values must be set before the installer script runs.

  4. Run Control Panel installer:

    bash#> /onapp/onapp-cp-install/onapp-cp-install.sh  -v ONAPP_VERSION

    Where replace ONAPP_VERSION with the required CP version.

    See the installer options below for details.

     Full Control Panel installer options:

    Usage:

    /onapp/onapp-cp-install/onapp-cp-install.sh [-c CONFIG_FILE] [-m MYSQL_HOST -p MYSQL_PASSWD -d MYSQL_DB -u MYSQL_USER] [-v ONAPP_VERSION] [-i SNMP_TRAP_IPS] [-a] [-y] [-h]

    Where:

    MYSQL_*  

     Options are usefull if MySQL is already installed and configured.

    -m MYSQL_HOST  

     MySQL host

    -p MYSQL_PASSWD

     MySQL password

    -d MYSQL_DB 

     OnApp MySQL database name

    -u MYSQL_USER  

     MySQL user

    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

    -U ADMIN_LOGIN 

     CP administrator login

    -P ADMIN_PASSWD

     CP administrator password

    -F ADMIN_FIRSTNAME

     CP administrator first name

    -L ADMIN_LASTNAME 

     CP administrator last name

    -E ADMIN_EMAIL 

     CP administrator e-mail

    -v ONAPP_VERSION

     Install custom OnApp CP version

    -i SNMP_TRAP_IPS

     Management network IP(s) from the CP server separated with coma for SNMP to trap

    -c CONFIG_FILE

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

    -y

     update OS packages (except of OnApp provided) on the box with 'yum update'.

    -a

    do NOT be interactive. Process with automatic installation.

    -D

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

    -h

    print this info

  5. In the OnApp UI navigate to Settings > Configuration and click Save to complete the process.