Advertisement
Guest User

Untitled

a guest
May 29th, 2018
217
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 24.96 KB | None | 0 0
  1. (deployomc)[steve@fedora6 deployomc]$ fab -u slinthicum deploy:configFile=./config.omc
  2. [192.168.16.251] Performing tests on this host...
  3. [192.168.16.251] sudo: cat /etc/sudoers > /dev/null
  4. [192.168.16.251] Login password:
  5. [192.168.16.251] out: sudo password:
  6. [192.168.16.251] Checking installations
  7. [192.168.16.251] sudo: [ -d /var/lib/mysql ]
  8. [192.168.16.251] sudo: [ -d /var/lib/heartbeat/crm ]
  9. [192.168.16.251] sudo: [ -d /usr/lib/ocf/resource.d/velleros ]
  10. [192.168.16.251] sudo: [ -f /etc/init.d/pacemaker ]
  11. [192.168.16.251] sudo: [ -f /etc/init.d/corosync ]
  12. [192.168.16.251] sudo: [ -f /etc/init.d/mysqld ]
  13. [192.168.16.251] sudo: [ -d /var/www ]
  14. [192.168.16.251] sudo: [ -d /etc/httpd/conf ]
  15. [192.168.16.251] sudo: [ -f /etc/php.ini ]
  16. [192.168.16.251] Making sure relevant services are shut down
  17. [192.168.16.251] sudo: /etc/init.d/pacemaker stop
  18. [192.168.16.251] out: sudo password:The12doors
  19. [192.168.16.251] sudo: /etc/init.d/corosync stop
  20. [192.168.16.251] sudo: /etc/init.d/mysqld stop
  21. [192.168.16.251] out: Stopping mysqld: [ OK ]
  22.  
  23. [192.168.16.251] sudo: /etc/init.d/httpd stop
  24. [192.168.16.251] out: Stopping httpd: [FAILED]
  25.  
  26. If everything looks okay for this host, hit enter and I'll move on to the next. Otherwise C-c
  27. [192.168.16.250] Performing tests on this host...
  28. [192.168.16.250] sudo: cat /etc/sudoers > /dev/null
  29. [192.168.16.250] out: sudo password:
  30. [192.168.16.250] Checking installations
  31. [192.168.16.250] sudo: [ -d /var/lib/mysql ]
  32. [192.168.16.250] sudo: [ -d /var/lib/heartbeat/crm ]
  33. [192.168.16.250] sudo: [ -d /usr/lib/ocf/resource.d/velleros ]
  34. [192.168.16.250] sudo: [ -f /etc/init.d/pacemaker ]
  35. [192.168.16.250] sudo: [ -f /etc/init.d/corosync ]
  36. [192.168.16.250] sudo: [ -f /etc/init.d/mysqld ]
  37. [192.168.16.250] sudo: [ -d /var/www ]
  38. [192.168.16.250] sudo: [ -d /etc/httpd/conf ]
  39. [192.168.16.250] sudo: [ -f /etc/php.ini ]
  40. [192.168.16.250] Making sure relevant services are shut down
  41. [192.168.16.250] sudo: /etc/init.d/pacemaker stop
  42. [192.168.16.250] out: sudo password:The12doors
  43. [192.168.16.250] sudo: /etc/init.d/corosync stop
  44. [192.168.16.250] sudo: /etc/init.d/mysqld stop
  45. [192.168.16.250] out: Stopping mysqld: [ OK ]
  46.  
  47. [192.168.16.250] sudo: /etc/init.d/httpd stop
  48. [192.168.16.250] out: Stopping httpd: [FAILED]
  49.  
  50. If everything looks okay for this host, hit enter and I'll move on to the next. Otherwise C-c
  51. [localhost] local: mkdir -p hosts/192.168.16.251
  52. [192.168.16.251] sudo: /usr/sbin/corosync-keygen
  53. [192.168.16.251] out: Corosync Cluster Engine Authentication key generator.
  54. [192.168.16.251] out: Gathering 1024 bits for key from /dev/random.
  55. [192.168.16.251] out: Press keys on your keyboard to generate entropy.
  56. [192.168.16.251] out: Writing corosync key to /etc/corosync/authkey.
  57.  
  58. [192.168.16.251] sudo: chmod go+r /etc/corosync/authkey
  59. [192.168.16.251] download: /home/steve/deployomc/hosts/authkey <- /etc/corosync/authkey
  60.  
  61. Warning: Local file /home/steve/deployomc/hosts/authkey already exists and is being overwritten.
  62.  
  63. [192.168.16.251] sudo: chmod go-r /etc/corosync/authkey
  64. [192.168.16.251] sudo: /etc/init.d/pacemaker status
  65. [192.168.16.251] out: pacemakerd is stopped
  66.  
  67.  
  68. Warning: sudo() encountered an error (return code 3) while executing '/etc/init.d/pacemaker status'
  69.  
  70. [192.168.16.251] sudo: /etc/init.d/corosync status
  71. [192.168.16.251] out: corosync is stopped
  72.  
  73.  
  74. Warning: sudo() encountered an error (return code 3) while executing '/etc/init.d/corosync status'
  75.  
  76. [192.168.16.251] Applying configuration to hosts/192.168.16.251/corosync.conf and uploading to /etc/corosync/corosync.conf
  77. [localhost] local: mkdir -p hosts/192.168.16.251
  78. [localhost] local: cp conf/pcmk.template hosts/192.168.16.251/pcmk
  79. [localhost] local: cp conf/corosync.template.conf hosts/192.168.16.251/corosync.conf
  80. [localhost] local: sed -i "s/|bindnetaddr|/192.168.16.0/g" hosts/192.168.16.251/corosync.conf
  81. [localhost] local: sed -i "s/|members|/\tmember {\n\tmemberaddr: 192.168.16.251\n\t}\n\tmember {\n\tmemberaddr: 192.168.16.250\n\t}\n/g" hosts/192.168.16.251/corosync.conf
  82. [192.168.16.251] put: hosts/192.168.16.251/pcmk -> /etc/corosync/service.d/pcmk
  83. [192.168.16.251] put: hosts/192.168.16.251/corosync.conf -> /etc/corosync/corosync.conf
  84. [192.168.16.251] sudo: /etc/init.d/corosync start
  85. [192.168.16.251] out: Starting Corosync Cluster Engine (corosync): [ OK ]
  86.  
  87. [192.168.16.251] sudo: /etc/init.d/pacemaker start
  88. [192.168.16.251] out: Starting Pacemaker Cluster Manager: [ OK ]
  89.  
  90. [192.168.16.251] Applying configuration to hosts/192.168.16.251/httpd.conf and uploading to /etc/httpd/conf/httpd.conf
  91. [localhost] local: mkdir -p hosts/192.168.16.251
  92. [localhost] local: cp conf/http.template.conf hosts/192.168.16.251/httpd.conf
  93. [localhost] local: sed -i "s@|omcdocroot|@/var/www/html/zend/public@g" hosts/192.168.16.251/httpd.conf
  94. [192.168.16.251] put: hosts/192.168.16.251/httpd.conf -> /etc/httpd/conf/httpd.conf
  95. [192.168.16.251] Applying configuration to hosts/192.168.16.251/php.ini and uploading to /etc/php.ini
  96. [localhost] local: cp conf/php.template.ini hosts/192.168.16.251/php.ini
  97. [192.168.16.251] put: hosts/192.168.16.251/php.ini -> /etc/php.ini
  98. [192.168.16.251] Applying configuration to hosts/192.168.16.251/cmspgw-logger.ini and uploading to /etc/velleros/cmspgw-logger.ini
  99. [localhost] local: mkdir -p hosts/192.168.16.251
  100. [localhost] local: cp conf/cmspgw-logger.template.ini hosts/192.168.16.251/cmspgw-logger.ini
  101. [localhost] local: sed -i "s/|dbhost|/localhost/g" hosts/192.168.16.251/cmspgw-logger.ini
  102. [localhost] local: sed -i "s/|dbuser|/omc/g" hosts/192.168.16.251/cmspgw-logger.ini
  103. [localhost] local: sed -i "s/|dbpass|/omc/g" hosts/192.168.16.251/cmspgw-logger.ini
  104. [localhost] local: sed -i "s/|dbname|/omc/g" hosts/192.168.16.251/cmspgw-logger.ini
  105. [localhost] local: sed -i "s/|cvne-host|/192.168.16.207/g" hosts/192.168.16.251/cmspgw-logger.ini
  106. [localhost] local: sed -i "s/|cvne-port|/4442/g" hosts/192.168.16.251/cmspgw-logger.ini
  107. [192.168.16.251] put: hosts/192.168.16.251/cmspgw-logger.ini -> /etc/velleros/cmspgw-logger.ini
  108. [192.168.16.251] sudo: /etc/init.d/mysqld status
  109. [192.168.16.251] out: mysqld (pid 15873) is running...
  110.  
  111. [192.168.16.251] MySQL appears to already be running... skipping replica setup
  112. [192.168.16.250] put: hosts/authkey -> /etc/corosync/authkey
  113. [192.168.16.250] sudo: chmod go-r /etc/corosync/authkey
  114. [192.168.16.250] sudo: /etc/init.d/pacemaker status
  115. [192.168.16.250] out: pacemakerd is stopped
  116.  
  117.  
  118. Warning: sudo() encountered an error (return code 3) while executing '/etc/init.d/pacemaker status'
  119.  
  120. [192.168.16.250] sudo: /etc/init.d/corosync status
  121. [192.168.16.250] out: corosync is stopped
  122.  
  123.  
  124. Warning: sudo() encountered an error (return code 3) while executing '/etc/init.d/corosync status'
  125.  
  126. [192.168.16.250] Applying configuration to hosts/192.168.16.250/corosync.conf and uploading to /etc/corosync/corosync.conf
  127. [localhost] local: mkdir -p hosts/192.168.16.250
  128. [localhost] local: cp conf/pcmk.template hosts/192.168.16.250/pcmk
  129. [localhost] local: cp conf/corosync.template.conf hosts/192.168.16.250/corosync.conf
  130. [localhost] local: sed -i "s/|bindnetaddr|/192.168.16.0/g" hosts/192.168.16.250/corosync.conf
  131. [localhost] local: sed -i "s/|members|/\tmember {\n\tmemberaddr: 192.168.16.251\n\t}\n\tmember {\n\tmemberaddr: 192.168.16.250\n\t}\n/g" hosts/192.168.16.250/corosync.conf
  132. [192.168.16.250] put: hosts/192.168.16.250/pcmk -> /etc/corosync/service.d/pcmk
  133. [192.168.16.250] put: hosts/192.168.16.250/corosync.conf -> /etc/corosync/corosync.conf
  134. [192.168.16.250] sudo: /etc/init.d/corosync start
  135. [192.168.16.250] out: Starting Corosync Cluster Engine (corosync): [ OK ]
  136.  
  137. [192.168.16.250] sudo: /etc/init.d/pacemaker start
  138. [192.168.16.250] out: Starting Pacemaker Cluster Manager: [ OK ]
  139.  
  140. [192.168.16.250] Applying configuration to hosts/192.168.16.250/httpd.conf and uploading to /etc/httpd/conf/httpd.conf
  141. [localhost] local: mkdir -p hosts/192.168.16.250
  142. [localhost] local: cp conf/http.template.conf hosts/192.168.16.250/httpd.conf
  143. [localhost] local: sed -i "s@|omcdocroot|@/var/www/html/zend/public@g" hosts/192.168.16.250/httpd.conf
  144. [192.168.16.250] put: hosts/192.168.16.250/httpd.conf -> /etc/httpd/conf/httpd.conf
  145. [192.168.16.250] Applying configuration to hosts/192.168.16.250/php.ini and uploading to /etc/php.ini
  146. [localhost] local: cp conf/php.template.ini hosts/192.168.16.250/php.ini
  147. [192.168.16.250] put: hosts/192.168.16.250/php.ini -> /etc/php.ini
  148. [192.168.16.250] Applying configuration to hosts/192.168.16.250/cmspgw-logger.ini and uploading to /etc/velleros/cmspgw-logger.ini
  149. [localhost] local: mkdir -p hosts/192.168.16.250
  150. [localhost] local: cp conf/cmspgw-logger.template.ini hosts/192.168.16.250/cmspgw-logger.ini
  151. [localhost] local: sed -i "s/|dbhost|/localhost/g" hosts/192.168.16.250/cmspgw-logger.ini
  152. [localhost] local: sed -i "s/|dbuser|/omc/g" hosts/192.168.16.250/cmspgw-logger.ini
  153. [localhost] local: sed -i "s/|dbpass|/omc/g" hosts/192.168.16.250/cmspgw-logger.ini
  154. [localhost] local: sed -i "s/|dbname|/omc/g" hosts/192.168.16.250/cmspgw-logger.ini
  155. [localhost] local: sed -i "s/|cvne-host|/192.168.16.207/g" hosts/192.168.16.250/cmspgw-logger.ini
  156. [localhost] local: sed -i "s/|cvne-port|/4442/g" hosts/192.168.16.250/cmspgw-logger.ini
  157. [192.168.16.250] put: hosts/192.168.16.250/cmspgw-logger.ini -> /etc/velleros/cmspgw-logger.ini
  158. [192.168.16.250] sudo: /etc/init.d/mysqld status
  159. [192.168.16.250] out: mysqld is stopped
  160.  
  161.  
  162. Warning: sudo() encountered an error (return code 3) while executing '/etc/init.d/mysqld status'
  163.  
  164. [192.168.16.250] Performing initial mysql setup
  165. [192.168.16.250] Applying configuration to hosts/192.168.16.250/my.cnf and uploading to /etc/my.cnf
  166. [localhost] local: mkdir -p hosts/192.168.16.250
  167. [localhost] local: cp conf/my.template.cnf hosts/192.168.16.250/my.cnf
  168. [localhost] local: sed -i "s/|repldb|/omc/g" hosts/192.168.16.250/my.cnf
  169. [localhost] local: sed -i "s/|autoincrincr|/10/g" hosts/192.168.16.250/my.cnf
  170. [localhost] local: sed -i "s/|autoincroffset|/2/g" hosts/192.168.16.250/my.cnf
  171. [localhost] local: sed -i "s/|servid|/2/g" hosts/192.168.16.250/my.cnf
  172. [192.168.16.250] put: hosts/192.168.16.250/my.cnf -> /etc/my.cnf
  173. [192.168.16.250] sudo: /etc/init.d/mysqld start
  174. [192.168.16.250] out: Initializing MySQL database: WARNING: The host 'steve-omc2' could not be looked up with resolveip.
  175. [192.168.16.250] out: This probably means that your libc libraries are not 100 % compatible
  176. [192.168.16.250] out: with this binary MySQL version. The MySQL daemon, mysqld, should work
  177. [192.168.16.250] out: normally with the exception that host name resolving will not work.
  178. [192.168.16.250] out: This means that you should use IP addresses instead of hostnames
  179. [192.168.16.250] out: when specifying MySQL privileges !
  180. [192.168.16.250] out: Installing MySQL system tables...
  181. [192.168.16.250] out: OK
  182. [192.168.16.250] out: Filling help tables...
  183. [192.168.16.250] out: OK
  184.  
  185. [192.168.16.250] out: To start mysqld at boot time you have to copy
  186. [192.168.16.250] out: support-files/mysql.server to the right place for your system
  187.  
  188. [192.168.16.250] out: PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
  189. [192.168.16.250] out: To do so, start the server, then issue the following commands:
  190.  
  191. [192.168.16.250] out: /usr/bin/mysqladmin -u root password 'new-password'
  192. [192.168.16.250] out: /usr/bin/mysqladmin -u root -h steve-omc2 password 'new-password'
  193.  
  194. [192.168.16.250] out: Alternatively you can run:
  195. [192.168.16.250] out: /usr/bin/mysql_secure_installation
  196.  
  197. [192.168.16.250] out: which will also give you the option of removing the test
  198. [192.168.16.250] out: databases and anonymous user created by default. This is
  199. [192.168.16.250] out: strongly recommended for production servers.
  200.  
  201. [192.168.16.250] out: See the manual for more instructions.
  202.  
  203. [192.168.16.250] out: You can start the MySQL daemon with:
  204. [192.168.16.250] out: cd /usr ; /usr/bin/mysqld_safe &
  205.  
  206. [192.168.16.250] out: You can test the MySQL daemon with mysql-test-run.pl
  207. [192.168.16.250] out: cd /usr/mysql-test ; perl mysql-test-run.pl
  208.  
  209. [192.168.16.250] out: Please report any problems with the /usr/bin/mysqlbug script!
  210.  
  211. [192.168.16.250] out: [ OK ]
  212. [192.168.16.250] out: Starting mysqld: [ OK ]
  213.  
  214. [192.168.16.250] sudo: /usr/bin/mysqladmin -u root password 'pa22wd'
  215. [192.168.16.250] sudo: echo "CREATE USER 'repluser'@'192.168.16.251' identified by 'R3pl1cat3';"|mysql --batch --user=root --password=pa22wd
  216. [192.168.16.250] sudo: echo "GRANT REPLICATION SLAVE ON *.* to repluser@192.168.16.251 identified by 'R3pl1cat3';"|mysql --batch --user=root --password=pa22wd
  217. [192.168.16.250] sudo: echo "CHANGE MASTER TO MASTER_HOST='192.168.16.251', MASTER_USER='repluser', MASTER_PASSWORD='R3pl1cat3';"|mysql --batch --user=root --password=pa22wd
  218. [192.168.16.250] sudo: echo "START SLAVE;"|mysql --batch --user=root --password=pa22wd
  219. [192.168.16.250] sudo: /etc/init.d/mysqld stop
  220. [192.168.16.250] out: Stopping mysqld: [ OK ]
  221.  
  222. [192.168.16.251] sudo: /etc/init.d/pacemaker status
  223. [192.168.16.251] out: pacemakerd (pid 28130) is running...
  224.  
  225. [192.168.16.251] sudo: /etc/init.d/corosync status
  226. [192.168.16.251] out: corosync (pid 28070) is running...
  227.  
  228. [192.168.16.251] sudo: /usr/sbin/crm configure property stonith-enabled=false
  229. [192.168.16.251] sudo: /usr/sbin/crm configure primitive FloatingIP ocf:heartbeat:IPaddr2 params ip=192.168.16.207 cidr_netmask=32 op monitor interval=10s
  230. [192.168.16.251] sudo: /usr/sbin/crm configure primitive vmysqld ocf:heartbeat:mysql params binary="/usr/bin/mysqld_safe" config="/etc/my.cnf" socket="/var/lib/mysql/mysql.sock" datadir="/var/lib/mysql" user="mysql" op monitor interval=10s
  231. [192.168.16.251] out: WARNING: vmysqld: default timeout 20s for start is smaller than the advised 120
  232. [192.168.16.251] out: WARNING: vmysqld: default timeout 20s for stop is smaller than the advised 120
  233. [192.168.16.251] out: WARNING: vmysqld: default timeout 20s for monitor is smaller than the advised 30
  234.  
  235. [192.168.16.251] sudo: crm configure clone cluster_vmysqld vmysqld meta globally-unique="true" clone-max="2" clone-node-max="1" interleave="true"
  236. [192.168.16.251] Waiting 60 seconds for Cluster to settle before proceeding...
  237. [192.168.16.251] sudo: cp /var/www/html/zend/public/.htaccess.example /var/www/html/zend/public/.htaccess
  238. [192.168.16.251] sudo: sed -i "s/development/production/g" /var/www/html/zend/public/.htaccess
  239. [192.168.16.251] sudo: sed -i "0,/resources\.db\.params\.host.*/s//resources\.db\.params\.host = localhost/" /var/www/html/zend/public/../application/configs/application.ini
  240. [192.168.16.251] sudo: sed -i "0,/resources\.db\.params\.username.*/s//resources\.db\.params\.username = omc/" /var/www/html/zend/public/../application/configs/application.ini
  241. [192.168.16.251] sudo: sed -i "0,/resources\.db\.params\.password.*/s//resources\.db\.params\.password = omc/" /var/www/html/zend/public/../application/configs/application.ini
  242. [192.168.16.251] sudo: sed -i "0,/resources\.db\.params\.dbname.*/s//resources\.db\.params\.dbname = omc/" /var/www/html/zend/public/../application/configs/application.ini
  243. [192.168.16.251] sudo: sed -i "0,/cmspgwlogdb\.host.*/s//cmspgwlogdb\.host = localhost/" /var/www/html/zend/public/../application/configs/application.ini
  244. [192.168.16.251] sudo: sed -i "0,/cmspgwlogdb\.username.*/s//cmspgwlogdb\.username = omc/" /var/www/html/zend/public/../application/configs/application.ini
  245. [192.168.16.251] sudo: sed -i "0,/cmspgwlogdb\.password.*/s//cmspgwlogdb\.password = omc/" /var/www/html/zend/public/../application/configs/application.ini
  246. [192.168.16.251] sudo: sed -i "0,/cmspgwlogdb\.dbname.*/s//cmspgwlogdb\.dbname = omc/" /var/www/html/zend/public/../application/configs/application.ini
  247. [192.168.16.251] sudo: echo "CREATE DATABASE omc;"|mysql --batch --user=root --password=pa22wd
  248. [192.168.16.251] out: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
  249.  
  250.  
  251. Warning: sudo() encountered an error (return code 1) while executing 'echo "CREATE DATABASE omc;"|mysql --batch --user=root --password=pa22wd '
  252.  
  253. [192.168.16.251] Applying OMC schema
  254. [192.168.16.251] sudo: mysql --batch --user=root --password=pa22wd omc < /etc/velleros/schema/cmspgw_cmac_log.sql
  255. [192.168.16.251] out: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
  256.  
  257.  
  258. Warning: sudo() encountered an error (return code 1) while executing 'mysql --batch --user=root --password=pa22wd omc < /etc/velleros/schema/cmspgw_cmac_log.sql'
  259.  
  260. [192.168.16.251] sudo: mysql --batch --user=root --password=pa22wd omc < /etc/velleros/schema/omc/config.sql
  261. [192.168.16.251] out: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
  262.  
  263.  
  264. Warning: sudo() encountered an error (return code 1) while executing 'mysql --batch --user=root --password=pa22wd omc < /etc/velleros/schema/omc/config.sql'
  265.  
  266. [192.168.16.251] sudo: mysql --batch --user=root --password=pa22wd omc < /etc/velleros/schema/omc/cmspgw_broadcasters.sql
  267. [192.168.16.251] out: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
  268.  
  269.  
  270. Warning: sudo() encountered an error (return code 1) while executing 'mysql --batch --user=root --password=pa22wd omc < /etc/velleros/schema/omc/cmspgw_broadcasters.sql'
  271.  
  272. [192.168.16.251] sudo: mysql --batch --user=root --password=pa22wd omc < /etc/velleros/schema/omc/cmspgw_fema_gateways.sql
  273. [192.168.16.251] out: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
  274.  
  275.  
  276. Warning: sudo() encountered an error (return code 1) while executing 'mysql --batch --user=root --password=pa22wd omc < /etc/velleros/schema/omc/cmspgw_fema_gateways.sql'
  277.  
  278. [192.168.16.251] sudo: mysql --batch --user=root --password=pa22wd omc < /etc/velleros/schema/omc/cmspgw_servers.sql
  279. [192.168.16.251] out: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
  280.  
  281.  
  282. Warning: sudo() encountered an error (return code 1) while executing 'mysql --batch --user=root --password=pa22wd omc < /etc/velleros/schema/omc/cmspgw_servers.sql'
  283.  
  284. [192.168.16.251] sudo: mysql --batch --user=root --password=pa22wd omc < /etc/velleros/schema/omc/organizations.sql
  285. [192.168.16.251] out: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
  286.  
  287.  
  288. Warning: sudo() encountered an error (return code 1) while executing 'mysql --batch --user=root --password=pa22wd omc < /etc/velleros/schema/omc/organizations.sql'
  289.  
  290. [192.168.16.251] sudo: mysql --batch --user=root --password=pa22wd omc < /etc/velleros/schema/omc/users.sql
  291. [192.168.16.251] out: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
  292.  
  293.  
  294. Warning: sudo() encountered an error (return code 1) while executing 'mysql --batch --user=root --password=pa22wd omc < /etc/velleros/schema/omc/users.sql'
  295.  
  296. [192.168.16.251] sudo: mysql --batch --user=root --password=pa22wd omc < /etc/velleros/schema/omc/permissions.sql
  297. [192.168.16.251] out: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
  298.  
  299.  
  300. Warning: sudo() encountered an error (return code 1) while executing 'mysql --batch --user=root --password=pa22wd omc < /etc/velleros/schema/omc/permissions.sql'
  301.  
  302. [192.168.16.251] sudo: mysql --batch --user=root --password=pa22wd omc < /etc/velleros/schema/omc/roles.sql
  303. [192.168.16.251] out: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
  304.  
  305.  
  306. Warning: sudo() encountered an error (return code 1) while executing 'mysql --batch --user=root --password=pa22wd omc < /etc/velleros/schema/omc/roles.sql'
  307.  
  308. [192.168.16.251] sudo: mysql --batch --user=root --password=pa22wd omc < /etc/velleros/schema/omc/user_roles.sql
  309. [192.168.16.251] out: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
  310.  
  311.  
  312. Warning: sudo() encountered an error (return code 1) while executing 'mysql --batch --user=root --password=pa22wd omc < /etc/velleros/schema/omc/user_roles.sql'
  313.  
  314. [192.168.16.251] sudo: mysql --batch --user=root --password=pa22wd omc < /etc/velleros/schema/omc/user_permissions.sql
  315. [192.168.16.251] out: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
  316.  
  317.  
  318. Warning: sudo() encountered an error (return code 1) while executing 'mysql --batch --user=root --password=pa22wd omc < /etc/velleros/schema/omc/user_permissions.sql'
  319.  
  320. [192.168.16.251] sudo: mysql --batch --user=root --password=pa22wd omc < /etc/velleros/schema/omc/role_permissions.sql
  321. [192.168.16.251] out: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
  322.  
  323.  
  324. Warning: sudo() encountered an error (return code 1) while executing 'mysql --batch --user=root --password=pa22wd omc < /etc/velleros/schema/omc/role_permissions.sql'
  325.  
  326. [192.168.16.251] sudo: mysql --batch --user=root --password=pa22wd omc < /etc/velleros/schema/omc/initial_data.sql
  327. [192.168.16.251] out: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
  328.  
  329.  
  330. Warning: sudo() encountered an error (return code 1) while executing 'mysql --batch --user=root --password=pa22wd omc < /etc/velleros/schema/omc/initial_data.sql'
  331.  
  332. [192.168.16.251] Waiting 60 seconds for MySQL replication to occur
  333. [192.168.16.251] sudo: echo "CREATE USER 'omc'@'localhost' identified by 'omc';"|mysql --batch --user=root --password=pa22wd
  334. [192.168.16.251] out: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
  335.  
  336.  
  337. Warning: sudo() encountered an error (return code 1) while executing 'echo "CREATE USER 'omc'@'localhost' identified by 'omc';"|mysql --batch --user=root --password=pa22wd '
  338.  
  339. [192.168.16.251] sudo: echo "GRANT ALL PRIVILEGES ON *.* to omc@localhost identified by 'omc';"|mysql --batch --user=root --password=pa22wd
  340. [192.168.16.251] out: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
  341.  
  342.  
  343. Warning: sudo() encountered an error (return code 1) while executing 'echo "GRANT ALL PRIVILEGES ON *.* to omc@localhost identified by 'omc';"|mysql --batch --user=root --password=pa22wd '
  344.  
  345. [192.168.16.251] sudo: /usr/sbin/crm configure primitive omchttp ocf:heartbeat:apache params configfile=/etc/httpd/conf/httpd.conf op monitor interval=60
  346. [192.168.16.251] out: WARNING: omchttp: default timeout 20s for start is smaller than the advised 40s
  347. [192.168.16.251] out: WARNING: omchttp: default timeout 20s for stop is smaller than the advised 60s
  348.  
  349. [192.168.16.251] sudo: /usr/sbin/crm configure primitive cmspgw-logger ocf:velleros:cmspgw-logger params pidfile=/var/run/cmspgw-logger.pid config=/etc/velleros/cmspgw-logger.ini op monitor interval=10s
  350. [192.168.16.251] sudo: /usr/sbin/crm configure group actsby FloatingIP cmspgw-logger omchttp
  351. [192.168.16.251] sudo: /sbin/chkconfig corosync on
  352. [192.168.16.251] sudo: /sbin/chkconfig pacemaker on
  353. [192.168.16.250] sudo: cp /var/www/html/zend/public/.htaccess.example /var/www/html/zend/public/.htaccess
  354. [192.168.16.250] sudo: sed -i "s/development/production/g" /var/www/html/zend/public/.htaccess
  355. [192.168.16.250] sudo: sed -i "0,/resources\.db\.params\.host.*/s//resources\.db\.params\.host = localhost/" /var/www/html/zend/public/../application/configs/application.ini
  356. [192.168.16.250] sudo: sed -i "0,/resources\.db\.params\.username.*/s//resources\.db\.params\.username = omc/" /var/www/html/zend/public/../application/configs/application.ini
  357. [192.168.16.250] sudo: sed -i "0,/resources\.db\.params\.password.*/s//resources\.db\.params\.password = omc/" /var/www/html/zend/public/../application/configs/application.ini
  358. [192.168.16.250] sudo: sed -i "0,/resources\.db\.params\.dbname.*/s//resources\.db\.params\.dbname = omc/" /var/www/html/zend/public/../application/configs/application.ini
  359. [192.168.16.250] sudo: sed -i "0,/cmspgwlogdb\.host.*/s//cmspgwlogdb\.host = localhost/" /var/www/html/zend/public/../application/configs/application.ini
  360. [192.168.16.250] sudo: sed -i "0,/cmspgwlogdb\.username.*/s//cmspgwlogdb\.username = omc/" /var/www/html/zend/public/../application/configs/application.ini
  361. [192.168.16.250] sudo: sed -i "0,/cmspgwlogdb\.password.*/s//cmspgwlogdb\.password = omc/" /var/www/html/zend/public/../application/configs/application.ini
  362. [192.168.16.250] sudo: sed -i "0,/cmspgwlogdb\.dbname.*/s//cmspgwlogdb\.dbname = omc/" /var/www/html/zend/public/../application/configs/application.ini
  363. [192.168.16.250] sudo: echo "CREATE USER 'omc'@'localhost' identified by 'omc';"|mysql --batch --user=root --password=pa22wd
  364. [192.168.16.250] sudo: echo "GRANT ALL PRIVILEGES ON *.* to omc@localhost identified by 'omc';"|mysql --batch --user=root --password=pa22wd
  365. [192.168.16.250] sudo: /sbin/chkconfig corosync on
  366. [192.168.16.250] sudo: /sbin/chkconfig pacemaker on
  367.  
  368. Done.
  369. Disconnecting from 192.168.16.250... done.
  370. Disconnecting from 192.168.16.251... done.
  371. (deployomc)[steve@fedora6 deployomc]$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement