Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [myindo@GCMONDRC1 ~]$ chmod +x install-cc
- [myindo@GCMONDRC1 ~]$ sudo ./install-cc
- !!
- Only RHEL/Centos 6.x|7.x, Debian 7.x|8.x|9.x, Ubuntu 14.04.x|16.04.x LTS versions are supported
- Severalnines would like your help improving our installation process.
- Information such as OS, memory and install success helps us improve how we onboard our users.
- None of the collected information identifies you personally.
- !!
- => Would you like to help us by sending diagnostics data for the installation? (Y/n): n
- This script will add Severalnines repository server for deb and rpm packages and
- install the ClusterControl Web Applicaiton and Controller.
- An Apache and MySQL server will also be installed. An existing MySQL Server on this host can be used.
- => Repo file /etc/yum.repos.d/s9s-tools.repo already exists
- => Repo file /etc/yum.repos.d/s9s-repo.repo already exists
- => Installing the ClusterControl package ...
- Loaded plugins: fastestmirror
- Loading mirror speeds from cached hostfile
- * base: centos.mirror.angkasa.id
- * extras: centos.mirror.angkasa.id
- * updates: centos.mirror.angkasa.id
- Package wget-1.14-15.el7_4.1.x86_64 already installed and latest version
- Resolving Dependencies
- --> Running transaction check
- ---> Package clustercontrol.x86_64 0:1.6.2-5195 will be installed
- --> Processing Dependency: clustercontrol-cmonapi for package: clustercontrol-1.6.2-5195.x86_64
- --> Processing Dependency: clustercontrol-notifications for package: clustercontrol-1.6.2-5195.x86_64
- --> Processing Dependency: clustercontrol-clud for package: clustercontrol-1.6.2-5195.x86_64
- --> Processing Dependency: clustercontrol-cloud for package: clustercontrol-1.6.2-5195.x86_64
- --> Processing Dependency: clustercontrol-ssh for package: clustercontrol-1.6.2-5195.x86_64
- --> Running transaction check
- ---> Package clustercontrol-cloud.x86_64 0:1.6.2-141 will be installed
- ---> Package clustercontrol-clud.x86_64 0:1.6.2-141 will be installed
- ---> Package clustercontrol-cmonapi.x86_64 0:1.6.2-330 will be installed
- ---> Package clustercontrol-notifications.x86_64 0:1.6.2-136 will be installed
- ---> Package clustercontrol-ssh.x86_64 0:1.6.2-59 will be installed
- --> Finished Dependency Resolution
- Dependencies Resolved
- ======================================================================================================================================================
- Package Arch Version Repository Size
- ======================================================================================================================================================
- Installing:
- clustercontrol x86_64 1.6.2-5195 s9s-repo 15 M
- Installing for dependencies:
- clustercontrol-cloud x86_64 1.6.2-141 s9s-repo 9.5 M
- clustercontrol-clud x86_64 1.6.2-141 s9s-repo 7.8 M
- clustercontrol-cmonapi x86_64 1.6.2-330 s9s-repo 2.4 M
- clustercontrol-notifications x86_64 1.6.2-136 s9s-repo 2.4 M
- clustercontrol-ssh x86_64 1.6.2-59 s9s-repo 2.6 M
- Transaction Summary
- ======================================================================================================================================================
- Install 1 Package (+5 Dependent packages)
- Total download size: 40 M
- Installed size: 162 M
- Downloading packages:
- (1/6): clustercontrol-cloud-1.6.2-141-x86_64.rpm | 9.5 MB 00:01:03
- (2/6): clustercontrol-1.6.2-5195-x86_64.rpm | 15 MB 00:01:26
- (3/6): clustercontrol-cmonapi-1.6.2-330-x86_64.rpm | 2.4 MB 00:00:16
- (4/6): clustercontrol-clud-1.6.2-141-x86_64.rpm | 7.8 MB 00:00:51
- (5/6): clustercontrol-notifications-1.6.2-136-x86_64.rpm | 2.4 MB 00:00:16
- (6/6): clustercontrol-ssh-1.6.2-59-x86_64.rpm | 2.6 MB 00:00:13
- ------------------------------------------------------------------------------------------------------------------------------------------------------
- Total 317 kB/s | 40 MB 00:02:09
- Running transaction check
- Running transaction test
- Transaction test succeeded
- Running transaction
- Installing : clustercontrol-clud-1.6.2-141.x86_64 1/6
- Installing : clustercontrol-notifications-1.6.2-136.x86_64 2/6
- Installing : clustercontrol-ssh-1.6.2-59.x86_64 3/6
- Installing : clustercontrol-cmonapi-1.6.2-330.x86_64 4/6
- Installing : clustercontrol-cloud-1.6.2-141.x86_64 5/6
- Installing : clustercontrol-1.6.2-5195.x86_64 6/6
- *** Automatically updating the dcps schema ...
- *** Trying: mysql -ucmon -p < /var/www/html/clustercontrol/sql/dc-schema.sql
- mysql: [Warning] Using a password on the command line interface can be insecure.
- ERROR 1045 (28000): Access denied for user 'cmon'@'localhost' (using password: YES)
- *** Trying: mysql -ucmon -p -h127.0.0.1 < /var/www/html/clustercontrol/sql/dc-schema.sql
- mysql: [Warning] Using a password on the command line interface can be insecure.
- ERROR 1045 (28000): Access denied for user 'cmon'@'localhost' (using password: YES)
- *** Automaticaly updating the dcps schema failed. Please update it manually by following below instructions.
- *** If you are upgrading from v1.2.12 or an older version to v1.3.1 then you must also upgrade the DB schema!
- *** Do: mysql -uroot -p < /var/www/html/clustercontrol/sql/dc-schema.sql
- ***
- *** See also, http://support.severalnines.com/entries/21095371-CMON-1-3-2-released-upgrade-instructions
- Verifying : clustercontrol-cloud-1.6.2-141.x86_64 1/6
- Verifying : clustercontrol-cmonapi-1.6.2-330.x86_64 2/6
- Verifying : clustercontrol-ssh-1.6.2-59.x86_64 3/6
- Verifying : clustercontrol-1.6.2-5195.x86_64 4/6
- Verifying : clustercontrol-notifications-1.6.2-136.x86_64 5/6
- Verifying : clustercontrol-clud-1.6.2-141.x86_64 6/6
- Installed:
- clustercontrol.x86_64 0:1.6.2-5195
- Dependency Installed:
- clustercontrol-cloud.x86_64 0:1.6.2-141 clustercontrol-clud.x86_64 0:1.6.2-141 clustercontrol-cmonapi.x86_64 0:1.6.2-330
- clustercontrol-notifications.x86_64 0:1.6.2-136 clustercontrol-ssh.x86_64 0:1.6.2-59
- Complete!
- Finalizing the ClusterControl Web Application and Controller (CMON process) installation.
- => The Controller hostname will be set to 172.25.10.8. Do you want to change it? (y/N): n
- => Creating temporary staging dir s9s_tmp
- => Setting up the ClusterControl Web Application ...
- => Using web document root /var/www/html
- => Detected a running MySQL server. Should I use your existing MySQL server? (Y/n): y
- => Assuming default MySQL port is 3306. Do you want to change it? (y/N): n
- Loaded plugins: fastestmirror
- Loading mirror speeds from cached hostfile
- * base: centos.mirror.angkasa.id
- * extras: centos.mirror.angkasa.id
- * updates: centos.mirror.angkasa.id
- Package httpd-2.4.6-80.el7.centos.1.x86_64 already installed and latest version
- Package php-5.4.16-45.el7.x86_64 already installed and latest version
- Package php-mysql-5.4.16-45.el7.x86_64 already installed and latest version
- Package php-gd-5.4.16-45.el7.x86_64 already installed and latest version
- Package 1:mod_ssl-2.4.6-80.el7.centos.1.x86_64 already installed and latest version
- Package php-common-5.4.16-45.el7.x86_64 already installed and latest version
- Package php-ldap-5.4.16-45.el7.x86_64 already installed and latest version
- Package php-xml-5.4.16-45.el7.x86_64 already installed and latest version
- Package wget-1.14-15.el7_4.1.x86_64 already installed and latest version
- Nothing to do
- Note: Forwarding request to 'systemctl enable httpd.service'.
- Redirecting to /bin/systemctl restart httpd.service
- Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details.
- Redirecting to /bin/systemctl restart httpd.service
- => NOTE: Stopping and disabling firewall...manually re-enable and add rules if required.
- Required ports to be opened, http://support.severalnines.com/entries/22654676-Firewall-ports-
- => Importing the Web Application DB schema and creating the cmon user.
- => Enter your MySQL root user's password:
- => Importing /var/www/html/clustercontrol/sql/dc-schema.sql
- mysql: [Warning] Using a password on the command line interface can be insecure.
- => Set a password for ClusterControl's MySQL user (cmon) [cmon]
- => Supported special characters: ~!@#$%^&*()_+{}<>?
- => Enter a CMON user password:
- => Enter the CMON user password again: => Creating the MySQL cmon user ...
- => Creating UI configuration ...
- => Creating API configuration ...
- => ClusterControl Web Application setup completed!
- => Installing ClusterControl Controller ...
- Loaded plugins: fastestmirror
- Loading mirror speeds from cached hostfile
- * base: centos.mirror.angkasa.id
- * extras: centos.mirror.angkasa.id
- * updates: centos.mirror.angkasa.id
- Package s9s-tools-1.6-44.1.x86_64 already installed and latest version
- Nothing to do
- Loaded plugins: fastestmirror
- Loading mirror speeds from cached hostfile
- * base: centos.mirror.angkasa.id
- * extras: centos.mirror.angkasa.id
- * updates: centos.mirror.angkasa.id
- Resolving Dependencies
- --> Running transaction check
- ---> Package clustercontrol-controller.x86_64 0:1.6.2-2769 will be installed
- --> Finished Dependency Resolution
- Dependencies Resolved
- ======================================================================================================================================================
- Package Arch Version Repository Size
- ======================================================================================================================================================
- Installing:
- clustercontrol-controller x86_64 1.6.2-2769 s9s-repo 9.7 M
- Transaction Summary
- ======================================================================================================================================================
- Install 1 Package
- Total download size: 9.7 M
- Installed size: 25 M
- Downloading packages:
- clustercontrol-controller-1.6.2-2769-x86_64.rpm | 9.7 MB 00:00:49
- Running transaction check
- Running transaction test
- Transaction test succeeded
- Running transaction
- Installing : clustercontrol-controller-1.6.2-2769.x86_64 1/1
- *** If you are upgrading from an older version to v1.2.12,
- *** you must also upgrade the DB schema manually.
- ***
- *** Starting from version 1.2.12, cmon will attempt to auto-upgrade the schema
- *** so if you upgrading from 1.2.12 or later then you need to only do
- *** sudo /etc/init.d/cmon restart
- *** and you can check the cmon logs for the results / to make sure
- ***
- *** From version 1.6.2 please put your modified template files
- *** into /etc/cmon/templates/
- ***
- *** See also, http://severalnines.com/docs/administration.html#upgrading-clustercontrol
- *** /etc/cmon.cnf not configured yet.
- Verifying : clustercontrol-controller-1.6.2-2769.x86_64 1/1
- Installed:
- clustercontrol-controller.x86_64 0:1.6.2-2769
- Complete!
- Generating cmon configuration...
- -----------%<-------------
- # Auto-generated configuration file
- mysql_hostname=127.0.0.1
- mysql_password='cmonMySQL2018*'
- mysql_port=3306
- hostname=172.25.10.8
- cmon_user=cmon
- cmon_db=cmon
- controller_id=clustercontrol
- rpc_key=a4556728e05d88e8258cf7c54716d3de3edef201
- -----------%<-------------
- Verifying the MySQL connection...
- Ensuring database schema is exist and up-to-date...
- Schema creation succeed (version 107001).
- Verifying connection...
- Writing out the configuration file.
- => Starting the Controller process.
- Stopping cmon : failed
- Schema : Schema auto-upgrade succeed (version 107001).
- Going to daemonize.. - cmon will write a log in /var/log/cmon.log from now
- Starting cmon --rpc-port=9500 --events-client='http://127.0.0.1:9510' --cloud-service='http://127.0.0.1:9518' : ok
- Note: Forwarding request to 'systemctl enable ntpd.service'.
- 24 Sep 15:01:07 ntpdate[27791]: the NTP socket is in use, exiting
- Redirecting to /bin/systemctl start ntpd.service
- => ClusterControl installation completed!
- Open your web browser to http://172.25.10.8/clustercontrol and
- enter an email address and new password for the default Admin User.
- Determining network interfaces. This may take a couple of minutes. Do NOT press any key.
- Public/external IP => http://;; connection timed out; no servers could be reached/clustercontrol
- Installation successful. If you want to uninstall ClusterControl then run install-cc --uninstall.
- [myindo@GCMONDRC1 ~]$ mysql -h localhost -u cmon -pcmonMySQL2018*
- mysql: [Warning] Using a password on the command line interface can be insecure.
- Welcome to the MySQL monitor. Commands end with ; or \g.
- Your MySQL connection id is 22
- Server version: 5.7.23 MySQL Community Server (GPL)
- Copyright (c) 2000, 2018, Oracle and/or its affiliates. All rights reserved.
- Oracle is a registered trademark of Oracle Corporation and/or its
- affiliates. Other names may be trademarks of their respective
- owners.
- Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
- mysql>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement