Advertisement
haryono94

history-install-cc

Sep 24th, 2018
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 15.64 KB | None | 0 0
  1. [myindo@GCMONDRC1 ~]$ chmod +x install-cc
  2. [myindo@GCMONDRC1 ~]$ sudo ./install-cc
  3. !!
  4. 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
  5. Severalnines would like your help improving our installation process.
  6. Information such as OS, memory and install success helps us improve how we onboard our users.
  7. None of the collected information identifies you personally.
  8. !!
  9. => Would you like to help us by sending diagnostics data for the installation? (Y/n): n
  10.  
  11. This script will add Severalnines repository server for deb and rpm packages and
  12. install the ClusterControl Web Applicaiton and Controller.
  13. An Apache and MySQL server will also be installed. An existing MySQL Server on this host can be used.
  14.  
  15. => Repo file /etc/yum.repos.d/s9s-tools.repo already exists
  16. => Repo file /etc/yum.repos.d/s9s-repo.repo already exists
  17. => Installing the ClusterControl package ...
  18. Loaded plugins: fastestmirror
  19. Loading mirror speeds from cached hostfile
  20.  * base: centos.mirror.angkasa.id
  21.  * extras: centos.mirror.angkasa.id
  22.  * updates: centos.mirror.angkasa.id
  23. Package wget-1.14-15.el7_4.1.x86_64 already installed and latest version
  24. Resolving Dependencies
  25. --> Running transaction check
  26. ---> Package clustercontrol.x86_64 0:1.6.2-5195 will be installed
  27. --> Processing Dependency: clustercontrol-cmonapi for package: clustercontrol-1.6.2-5195.x86_64
  28. --> Processing Dependency: clustercontrol-notifications for package: clustercontrol-1.6.2-5195.x86_64
  29. --> Processing Dependency: clustercontrol-clud for package: clustercontrol-1.6.2-5195.x86_64
  30. --> Processing Dependency: clustercontrol-cloud for package: clustercontrol-1.6.2-5195.x86_64
  31. --> Processing Dependency: clustercontrol-ssh for package: clustercontrol-1.6.2-5195.x86_64
  32. --> Running transaction check
  33. ---> Package clustercontrol-cloud.x86_64 0:1.6.2-141 will be installed
  34. ---> Package clustercontrol-clud.x86_64 0:1.6.2-141 will be installed
  35. ---> Package clustercontrol-cmonapi.x86_64 0:1.6.2-330 will be installed
  36. ---> Package clustercontrol-notifications.x86_64 0:1.6.2-136 will be installed
  37. ---> Package clustercontrol-ssh.x86_64 0:1.6.2-59 will be installed
  38. --> Finished Dependency Resolution
  39.  
  40. Dependencies Resolved
  41.  
  42. ======================================================================================================================================================
  43.  Package                                           Arch                        Version                            Repository                     Size
  44. ======================================================================================================================================================
  45. Installing:
  46.  clustercontrol                                    x86_64                      1.6.2-5195                         s9s-repo                       15 M
  47. Installing for dependencies:
  48.  clustercontrol-cloud                              x86_64                      1.6.2-141                          s9s-repo                      9.5 M
  49.  clustercontrol-clud                               x86_64                      1.6.2-141                          s9s-repo                      7.8 M
  50.  clustercontrol-cmonapi                            x86_64                      1.6.2-330                          s9s-repo                      2.4 M
  51.  clustercontrol-notifications                      x86_64                      1.6.2-136                          s9s-repo                      2.4 M
  52.  clustercontrol-ssh                                x86_64                      1.6.2-59                           s9s-repo                      2.6 M
  53.  
  54. Transaction Summary
  55. ======================================================================================================================================================
  56. Install  1 Package (+5 Dependent packages)
  57.  
  58. Total download size: 40 M
  59. Installed size: 162 M
  60. Downloading packages:
  61. (1/6): clustercontrol-cloud-1.6.2-141-x86_64.rpm                                                                               | 9.5 MB  00:01:03    
  62. (2/6): clustercontrol-1.6.2-5195-x86_64.rpm                                                                                    |  15 MB  00:01:26    
  63. (3/6): clustercontrol-cmonapi-1.6.2-330-x86_64.rpm                                                                             | 2.4 MB  00:00:16    
  64. (4/6): clustercontrol-clud-1.6.2-141-x86_64.rpm                                                                                | 7.8 MB  00:00:51    
  65. (5/6): clustercontrol-notifications-1.6.2-136-x86_64.rpm                                                                       | 2.4 MB  00:00:16    
  66. (6/6): clustercontrol-ssh-1.6.2-59-x86_64.rpm                                                                                  | 2.6 MB  00:00:13    
  67. ------------------------------------------------------------------------------------------------------------------------------------------------------
  68. Total                                                                                                                 317 kB/s |  40 MB  00:02:09    
  69. Running transaction check
  70. Running transaction test
  71. Transaction test succeeded
  72. Running transaction
  73.   Installing : clustercontrol-clud-1.6.2-141.x86_64                                                                                               1/6
  74.   Installing : clustercontrol-notifications-1.6.2-136.x86_64                                                                                      2/6
  75.   Installing : clustercontrol-ssh-1.6.2-59.x86_64                                                                                                 3/6
  76.   Installing : clustercontrol-cmonapi-1.6.2-330.x86_64                                                                                            4/6
  77.   Installing : clustercontrol-cloud-1.6.2-141.x86_64                                                                                              5/6
  78.   Installing : clustercontrol-1.6.2-5195.x86_64                                                                                                   6/6
  79. *** Automatically updating the dcps schema ...
  80. *** Trying: mysql -ucmon -p < /var/www/html/clustercontrol/sql/dc-schema.sql
  81. mysql: [Warning] Using a password on the command line interface can be insecure.
  82. ERROR 1045 (28000): Access denied for user 'cmon'@'localhost' (using password: YES)
  83. *** Trying: mysql -ucmon -p -h127.0.0.1 < /var/www/html/clustercontrol/sql/dc-schema.sql
  84. mysql: [Warning] Using a password on the command line interface can be insecure.
  85. ERROR 1045 (28000): Access denied for user 'cmon'@'localhost' (using password: YES)
  86. *** Automaticaly updating the dcps schema failed. Please update it manually by following below instructions.
  87. *** If you are upgrading from v1.2.12 or an older version to v1.3.1 then you must also upgrade the DB schema!
  88. *** Do: mysql -uroot -p < /var/www/html/clustercontrol/sql/dc-schema.sql
  89. ***
  90. *** See also, http://support.severalnines.com/entries/21095371-CMON-1-3-2-released-upgrade-instructions
  91.   Verifying  : clustercontrol-cloud-1.6.2-141.x86_64                                                                                              1/6
  92.   Verifying  : clustercontrol-cmonapi-1.6.2-330.x86_64                                                                                            2/6
  93.   Verifying  : clustercontrol-ssh-1.6.2-59.x86_64                                                                                                 3/6
  94.   Verifying  : clustercontrol-1.6.2-5195.x86_64                                                                                                   4/6
  95.   Verifying  : clustercontrol-notifications-1.6.2-136.x86_64                                                                                      5/6
  96.   Verifying  : clustercontrol-clud-1.6.2-141.x86_64                                                                                               6/6
  97.  
  98. Installed:
  99.   clustercontrol.x86_64 0:1.6.2-5195                                                                                                                  
  100.  
  101. Dependency Installed:
  102.   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      
  103.   clustercontrol-notifications.x86_64 0:1.6.2-136       clustercontrol-ssh.x86_64 0:1.6.2-59        
  104.  
  105. Complete!
  106. Finalizing the ClusterControl Web Application and Controller (CMON process) installation.
  107.  
  108.  
  109. => The Controller hostname will be set to 172.25.10.8. Do you want to change it? (y/N): n
  110. => Creating temporary staging dir s9s_tmp
  111.  
  112. => Setting up the ClusterControl Web Application ...
  113. => Using web document root /var/www/html
  114. => Detected a running MySQL server. Should I use your existing MySQL server? (Y/n): y
  115. => Assuming default MySQL port is 3306. Do you want to change it? (y/N): n
  116. Loaded plugins: fastestmirror
  117. Loading mirror speeds from cached hostfile
  118.  * base: centos.mirror.angkasa.id
  119.  * extras: centos.mirror.angkasa.id
  120.  * updates: centos.mirror.angkasa.id
  121. Package httpd-2.4.6-80.el7.centos.1.x86_64 already installed and latest version
  122. Package php-5.4.16-45.el7.x86_64 already installed and latest version
  123. Package php-mysql-5.4.16-45.el7.x86_64 already installed and latest version
  124. Package php-gd-5.4.16-45.el7.x86_64 already installed and latest version
  125. Package 1:mod_ssl-2.4.6-80.el7.centos.1.x86_64 already installed and latest version
  126. Package php-common-5.4.16-45.el7.x86_64 already installed and latest version
  127. Package php-ldap-5.4.16-45.el7.x86_64 already installed and latest version
  128. Package php-xml-5.4.16-45.el7.x86_64 already installed and latest version
  129. Package wget-1.14-15.el7_4.1.x86_64 already installed and latest version
  130. Nothing to do
  131. Note: Forwarding request to 'systemctl enable httpd.service'.
  132. Redirecting to /bin/systemctl restart httpd.service
  133. Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details.
  134. Redirecting to /bin/systemctl restart httpd.service
  135. => NOTE: Stopping and disabling firewall...manually re-enable and add rules if required.
  136. Required ports to be opened, http://support.severalnines.com/entries/22654676-Firewall-ports-
  137.  
  138. => Importing the Web Application DB schema and creating the cmon user.
  139. => Enter your MySQL root user's password:
  140. => Importing /var/www/html/clustercontrol/sql/dc-schema.sql
  141. mysql: [Warning] Using a password on the command line interface can be insecure.
  142. => Set a password for ClusterControl's MySQL user (cmon) [cmon]
  143. => Supported special characters: ~!@#$%^&*()_+{}<>?
  144. => Enter a CMON user password:
  145. => Enter the CMON user password again: => Creating the MySQL cmon user ...
  146. => Creating UI configuration ...
  147. => Creating API configuration ...
  148. => ClusterControl Web Application setup completed!
  149. => Installing ClusterControl Controller ...
  150. Loaded plugins: fastestmirror
  151. Loading mirror speeds from cached hostfile
  152.  * base: centos.mirror.angkasa.id
  153.  * extras: centos.mirror.angkasa.id
  154.  * updates: centos.mirror.angkasa.id
  155. Package s9s-tools-1.6-44.1.x86_64 already installed and latest version
  156. Nothing to do
  157. Loaded plugins: fastestmirror
  158. Loading mirror speeds from cached hostfile
  159.  * base: centos.mirror.angkasa.id
  160.  * extras: centos.mirror.angkasa.id
  161.  * updates: centos.mirror.angkasa.id
  162. Resolving Dependencies
  163. --> Running transaction check
  164. ---> Package clustercontrol-controller.x86_64 0:1.6.2-2769 will be installed
  165. --> Finished Dependency Resolution
  166.  
  167. Dependencies Resolved
  168.  
  169. ======================================================================================================================================================
  170.  Package                                         Arch                         Version                            Repository                      Size
  171. ======================================================================================================================================================
  172. Installing:
  173.  clustercontrol-controller                       x86_64                       1.6.2-2769                         s9s-repo                       9.7 M
  174.  
  175. Transaction Summary
  176. ======================================================================================================================================================
  177. Install  1 Package
  178.  
  179. Total download size: 9.7 M
  180. Installed size: 25 M
  181. Downloading packages:
  182. clustercontrol-controller-1.6.2-2769-x86_64.rpm                                                                                | 9.7 MB  00:00:49    
  183. Running transaction check
  184. Running transaction test
  185. Transaction test succeeded
  186. Running transaction
  187.   Installing : clustercontrol-controller-1.6.2-2769.x86_64                                                                                        1/1
  188. *** If you are upgrading from an older version to v1.2.12,
  189. *** you must also upgrade the DB schema manually.
  190. ***
  191. *** Starting from version 1.2.12, cmon will attempt to auto-upgrade the schema
  192. *** so if you upgrading from 1.2.12 or later then you need to only do
  193. *** sudo /etc/init.d/cmon restart
  194. *** and you can check the cmon logs for the results / to make sure
  195. ***
  196. *** From version 1.6.2 please put your modified template files
  197. *** into /etc/cmon/templates/
  198. ***
  199. *** See also, http://severalnines.com/docs/administration.html#upgrading-clustercontrol
  200.  
  201. *** /etc/cmon.cnf not configured yet.
  202.   Verifying  : clustercontrol-controller-1.6.2-2769.x86_64                                                                                        1/1
  203.  
  204. Installed:
  205.   clustercontrol-controller.x86_64 0:1.6.2-2769                                                                                                      
  206.  
  207. Complete!
  208. Generating cmon configuration...
  209. -----------%<-------------
  210. # Auto-generated configuration file
  211. mysql_hostname=127.0.0.1
  212. mysql_password='cmonMySQL2018*'
  213. mysql_port=3306
  214. hostname=172.25.10.8
  215. cmon_user=cmon
  216. cmon_db=cmon
  217. controller_id=clustercontrol
  218. rpc_key=a4556728e05d88e8258cf7c54716d3de3edef201
  219. -----------%<-------------
  220. Verifying the MySQL connection...
  221. Ensuring database schema is exist and up-to-date...
  222. Schema creation succeed (version 107001).
  223. Verifying connection...
  224. Writing out the configuration file.
  225. => Starting the Controller process.
  226. Stopping cmon :  failed
  227. Schema : Schema auto-upgrade succeed (version 107001).
  228. Going to daemonize.. - cmon will write a log in /var/log/cmon.log from now
  229. Starting cmon  --rpc-port=9500 --events-client='http://127.0.0.1:9510' --cloud-service='http://127.0.0.1:9518' : ok
  230. Note: Forwarding request to 'systemctl enable ntpd.service'.
  231. 24 Sep 15:01:07 ntpdate[27791]: the NTP socket is in use, exiting
  232. Redirecting to /bin/systemctl start ntpd.service
  233. => ClusterControl installation completed!
  234. Open your web browser to http://172.25.10.8/clustercontrol and
  235. enter an email address and new password for the default Admin User.
  236.  
  237.  
  238. Determining network interfaces. This may take a couple of minutes. Do NOT press any key.
  239. Public/external IP => http://;; connection timed out; no servers could be reached/clustercontrol
  240. Installation successful. If you want to uninstall ClusterControl then run install-cc --uninstall.
  241. [myindo@GCMONDRC1 ~]$ mysql -h localhost -u cmon -pcmonMySQL2018*
  242. mysql: [Warning] Using a password on the command line interface can be insecure.
  243. Welcome to the MySQL monitor.  Commands end with ; or \g.
  244. Your MySQL connection id is 22
  245. Server version: 5.7.23 MySQL Community Server (GPL)
  246.  
  247. Copyright (c) 2000, 2018, Oracle and/or its affiliates. All rights reserved.
  248.  
  249. Oracle is a registered trademark of Oracle Corporation and/or its
  250. affiliates. Other names may be trademarks of their respective
  251. owners.
  252.  
  253. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
  254.  
  255. mysql>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement