Guest User

Untitled

a guest
May 25th, 2018
226
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 30.77 KB | None | 0 0
  1. (~deplyr.6)[bharsh@vellerosbuild ~deplyr.6]$ fab -u velleros deploy:configFile=./config.cspire
  2. [192.168.16.125] Performing tests on this host...
  3. [192.168.16.125] sudo: cat /etc/sudoers > /dev/null
  4. [192.168.16.125] Login password:
  5. [192.168.16.125] out:
  6. [192.168.16.125] out: We trust you have received the usual lecture from the local System
  7. [192.168.16.125] out: Administrator. It usually boils down to these three things:
  8.  
  9. [192.168.16.125] out: #1) Respect the privacy of others.
  10. [192.168.16.125] out: #2) Think before you type.
  11. [192.168.16.125] out: #3) With great power comes great responsibility.
  12.  
  13. [192.168.16.125] out: sudo password:
  14.  
  15. [192.168.16.125] Checking installations
  16. [192.168.16.125] sudo: [ -d /var/lib/mysql ]
  17. [192.168.16.125] sudo: [ -d /var/lib/heartbeat/crm ]
  18. [192.168.16.125] sudo: [ -d /usr/lib/ocf/resource.d/velleros ]
  19. [192.168.16.125] sudo: [ -f /etc/init.d/pacemaker ]
  20. [192.168.16.125] sudo: [ -f /etc/init.d/corosync ]
  21. [192.168.16.125] sudo: [ -f /etc/init.d/mysqld ]
  22. [192.168.16.125] Making sure relevant services are shut down
  23. [192.168.16.125] sudo: /etc/init.d/pacemaker stop
  24. [192.168.16.125] out: sudo password:[192.168.16.125] sudo: /etc/init.d/corosync stop
  25. [192.168.16.125] sudo: /etc/init.d/mysqld stop
  26. [192.168.16.125] out: Stopping mysqld: [ OK ]
  27.  
  28. If everything looks okay for this host, hit enter and I'll move on to the next. Otherwise C-c
  29. [192.168.16.126] Performing tests on this host...
  30. [192.168.16.126] sudo: cat /etc/sudoers > /dev/null
  31. [192.168.16.126] out:
  32. [192.168.16.126] out: We trust you have received the usual lecture from the local System
  33. [192.168.16.126] out: Administrator. It usually boils down to these three things:
  34.  
  35. [192.168.16.126] out: #1) Respect the privacy of others.
  36. [192.168.16.126] out: #2) Think before you type.
  37. [192.168.16.126] out: #3) With great power comes great responsibility.
  38.  
  39. [192.168.16.126] out: sudo password:
  40.  
  41. [192.168.16.126] Checking installations
  42. [192.168.16.126] sudo: [ -d /var/lib/mysql ]
  43. [192.168.16.126] sudo: [ -d /var/lib/heartbeat/crm ]
  44. [192.168.16.126] sudo: [ -d /usr/lib/ocf/resource.d/velleros ]
  45. [192.168.16.126] sudo: [ -f /etc/init.d/pacemaker ]
  46. [192.168.16.126] sudo: [ -f /etc/init.d/corosync ]
  47. [192.168.16.126] sudo: [ -f /etc/init.d/mysqld ]
  48. [192.168.16.126] Making sure relevant services are shut down
  49. [192.168.16.126] sudo: /etc/init.d/pacemaker stop
  50. [192.168.16.126] out: sudo password:[192.168.16.126] sudo: /etc/init.d/corosync stop
  51. [192.168.16.126] sudo: /etc/init.d/mysqld stop
  52. [192.168.16.126] out: Stopping mysqld: [ OK ]
  53.  
  54. If everything looks okay for this host, hit enter and I'll move on to the next. Otherwise C-c
  55. [localhost] local: mkdir -p hosts/192.168.16.125
  56. [192.168.16.125] sudo: /usr/sbin/corosync-keygen
  57. [192.168.16.125] out: Corosync Cluster Engine Authentication key generator.
  58. [192.168.16.125] out: Gathering 1024 bits for key from /dev/random.
  59. [192.168.16.125] out: Press keys on your keyboard to generate entropy.
  60. [192.168.16.125] out: Writing corosync key to /etc/corosync/authkey.
  61.  
  62. [192.168.16.125] sudo: chmod go+r /etc/corosync/authkey
  63. [192.168.16.125] download: /home/bharsh/deployer/~deplyr.6/hosts/authkey <- /etc/corosync/authkey
  64.  
  65. Warning: Local file /home/bharsh/deployer/~deplyr.6/hosts/authkey already exists and is being overwritten.
  66.  
  67. [192.168.16.125] sudo: chmod go-r /etc/corosync/authkey
  68. [192.168.16.125] sudo: /etc/init.d/pacemaker status
  69. [192.168.16.125] out: pacemakerd is stopped
  70.  
  71.  
  72. Warning: sudo() encountered an error (return code 3) while executing '/etc/init.d/pacemaker status'
  73.  
  74. [192.168.16.125] sudo: /etc/init.d/corosync status
  75. [192.168.16.125] out: corosync is stopped
  76.  
  77.  
  78. Warning: sudo() encountered an error (return code 3) while executing '/etc/init.d/corosync status'
  79.  
  80. [192.168.16.125] Applying configuration to hosts/192.168.16.125/corosync.conf and uploading to /etc/corosync/corosync.conf
  81. [localhost] local: mkdir -p hosts/192.168.16.125
  82. [localhost] local: cp conf/pcmk.template hosts/192.168.16.125/pcmk
  83. [localhost] local: cp conf/corosync.template.conf hosts/192.168.16.125/corosync.conf
  84. [localhost] local: sed -i "s/|bindnetaddr|/192.168.16.0/g" hosts/192.168.16.125/corosync.conf
  85. [localhost] local: sed -i "s/|members|/\tmember {\n\tmemberaddr: 192.168.16.125\n\t}\n\tmember {\n\tmemberaddr: 192.168.16.126\n\t}\n/g" hosts/192.168.16.125/corosync.conf
  86. [192.168.16.125] put: hosts/192.168.16.125/pcmk -> /etc/corosync/service.d/pcmk
  87. [192.168.16.125] put: hosts/192.168.16.125/corosync.conf -> /etc/corosync/corosync.conf
  88. [192.168.16.125] sudo: /etc/init.d/corosync start
  89. [192.168.16.125] out: Starting Corosync Cluster Engine (corosync): [ OK ]
  90.  
  91. [192.168.16.125] sudo: /etc/init.d/pacemaker start
  92. [192.168.16.125] out: Starting Pacemaker Cluster Manager: [ OK ]
  93.  
  94. [192.168.16.125] Applying configuration to hosts/192.168.16.125/cvne.ini and uploading to /etc/velleros/cvned.ini
  95. [localhost] local: mkdir -p hosts/192.168.16.125
  96. [localhost] local: cp conf/cvne.template.ini hosts/192.168.16.125/cvne.ini
  97. [localhost] local: sed -i "s@|db|@/var/db/cvne.sqlite3@g" hosts/192.168.16.125/cvne.ini
  98. [localhost] local: sed -i "s/|listen-port|/4442/g" hosts/192.168.16.125/cvne.ini
  99. [localhost] local: sed -i "s/|listen-addr|/0.0.0.0/g" hosts/192.168.16.125/cvne.ini
  100. [localhost] local: sed -i "s/|vne-peer|/192.168.16.126:4442/g" hosts/192.168.16.125/cvne.ini
  101. [192.168.16.125] put: hosts/192.168.16.125/cvne.ini -> /etc/velleros/cvned.ini
  102. [192.168.16.125] Applying configuration to hosts/192.168.16.125/avne.ini and uploading to /etc/velleros/avned.ini
  103. [localhost] local: mkdir -p hosts/192.168.16.125
  104. [localhost] local: cp conf/avne.template.ini hosts/192.168.16.125/avne.ini
  105. [localhost] local: sed -i "s@|db|@/var/db/avne.sqlite3@g" hosts/192.168.16.125/avne.ini
  106. [localhost] local: sed -i "s/|listen-port|/4443/g" hosts/192.168.16.125/avne.ini
  107. [localhost] local: sed -i "s/|listen-addr|/0.0.0.0/g" hosts/192.168.16.125/avne.ini
  108. [localhost] local: sed -i "s/|vne-peer|/192.168.16.126:4443/g" hosts/192.168.16.125/avne.ini
  109. [192.168.16.125] put: hosts/192.168.16.125/avne.ini -> /etc/velleros/avned.ini
  110. [192.168.16.125] Applying configuration to hosts/192.168.16.125/cmspgw.ini and uploading to /etc/velleros/cmspgw.ini
  111. [localhost] local: mkdir -p hosts/192.168.16.125
  112. [localhost] local: cp conf/cmspgw.template.ini hosts/192.168.16.125/cmspgw.ini
  113. [localhost] local: sed -i "s/|cvne-host|/localhost/g" hosts/192.168.16.125/cmspgw.ini
  114. [localhost] local: sed -i "s/|cvne-port|/4442/g" hosts/192.168.16.125/cmspgw.ini
  115. [localhost] local: sed -i "s/|femagateway|/192.168.16.81/g" hosts/192.168.16.125/cmspgw.ini
  116. [192.168.16.125] put: hosts/192.168.16.125/cmspgw.ini -> /etc/velleros/cmspgw.ini
  117. [192.168.16.125] sudo: /etc/init.d/mysqld status
  118. [192.168.16.125] out: mysqld is stopped
  119.  
  120.  
  121. Warning: sudo() encountered an error (return code 3) while executing '/etc/init.d/mysqld status'
  122.  
  123. [192.168.16.125] Performing initial mysql setup
  124. [192.168.16.125] Applying configuration to hosts/192.168.16.125/my.cnf and uploading to /etc/my.cnf
  125. [localhost] local: mkdir -p hosts/192.168.16.125
  126. [localhost] local: cp conf/my.template.cnf hosts/192.168.16.125/my.cnf
  127. [localhost] local: sed -i "s/|repldb|/gis/g" hosts/192.168.16.125/my.cnf
  128. [localhost] local: sed -i "s/|servid|/1/g" hosts/192.168.16.125/my.cnf
  129. [192.168.16.125] put: hosts/192.168.16.125/my.cnf -> /etc/my.cnf
  130. [192.168.16.125] sudo: /etc/init.d/mysqld start
  131. [192.168.16.125] out: Initializing MySQL database: WARNING: The host 'cspire-cmsp1' could not be looked up with resolveip.
  132. [192.168.16.125] out: This probably means that your libc libraries are not 100 % compatible
  133. [192.168.16.125] out: with this binary MySQL version. The MySQL daemon, mysqld, should work
  134. [192.168.16.125] out: normally with the exception that host name resolving will not work.
  135. [192.168.16.125] out: This means that you should use IP addresses instead of hostnames
  136. [192.168.16.125] out: when specifying MySQL privileges !
  137. [192.168.16.125] out: Installing MySQL system tables...
  138. [192.168.16.125] out: OK
  139. [192.168.16.125] out: Filling help tables...
  140. [192.168.16.125] out: OK
  141.  
  142. [192.168.16.125] out: To start mysqld at boot time you have to copy
  143. [192.168.16.125] out: support-files/mysql.server to the right place for your system
  144.  
  145. [192.168.16.125] out: PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
  146. [192.168.16.125] out: To do so, start the server, then issue the following commands:
  147.  
  148. [192.168.16.125] out: /usr/bin/mysqladmin -u root password 'new-password'
  149. [192.168.16.125] out: /usr/bin/mysqladmin -u root -h cspire-cmsp1 password 'new-password'
  150.  
  151. [192.168.16.125] out: Alternatively you can run:
  152. [192.168.16.125] out: /usr/bin/mysql_secure_installation
  153.  
  154. [192.168.16.125] out: which will also give you the option of removing the test
  155. [192.168.16.125] out: databases and anonymous user created by default. This is
  156. [192.168.16.125] out: strongly recommended for production servers.
  157.  
  158. [192.168.16.125] out: See the manual for more instructions.
  159.  
  160. [192.168.16.125] out: You can start the MySQL daemon with:
  161. [192.168.16.125] out: cd /usr ; /usr/bin/mysqld_safe &
  162.  
  163. [192.168.16.125] out: You can test the MySQL daemon with mysql-test-run.pl
  164. [192.168.16.125] out: cd /usr/mysql-test ; perl mysql-test-run.pl
  165.  
  166. [192.168.16.125] out: Please report any problems with the /usr/bin/mysqlbug script!
  167.  
  168. [192.168.16.125] out: [ OK ]
  169. [192.168.16.125] out: Starting mysqld: [ OK ]
  170.  
  171. [192.168.16.125] sudo: /usr/bin/mysqladmin -u root password 'pa22wd'
  172. [192.168.16.125] sudo: echo "CREATE USER 'repluser'@'192.168.16.126' identified by 'R3pl1cat3';"|mysql --batch --user=root --password=pa22wd
  173. [192.168.16.125] sudo: echo "GRANT REPLICATION SLAVE ON *.* to repluser@192.168.16.126 identified by 'R3pl1cat3';"|mysql --batch --user=root --password=pa22wd
  174. [192.168.16.125] sudo: echo "CHANGE MASTER TO MASTER_HOST='192.168.16.126', MASTER_USER='repluser', MASTER_PASSWORD='R3pl1cat3';"|mysql --batch --user=root --password=pa22wd
  175. [192.168.16.125] sudo: echo "START SLAVE;"|mysql --batch --user=root --password=pa22wd
  176. [192.168.16.125] sudo: /etc/init.d/mysqld stop
  177. [192.168.16.125] out: Stopping mysqld: [ OK ]
  178.  
  179. [192.168.16.125] Applying configuration to hosts/192.168.16.125/gisd.ini and uploading to /etc/velleros/gisd.ini
  180. [localhost] local: mkdir -p hosts/192.168.16.125
  181. [localhost] local: cp conf/gisd.template.ini hosts/192.168.16.125/gisd.ini
  182. [localhost] local: sed -i "s/|mysql-host|/localhost/g" hosts/192.168.16.125/gisd.ini
  183. [localhost] local: sed -i "s/|mysql-user|/gis/g" hosts/192.168.16.125/gisd.ini
  184. [localhost] local: sed -i "s/|mysql-pass|/gis/g" hosts/192.168.16.125/gisd.ini
  185. [localhost] local: sed -i "s/|mysql-database|/gis/g" hosts/192.168.16.125/gisd.ini
  186. [localhost] local: sed -i "s/|gisd-host|/0.0.0.0/g" hosts/192.168.16.125/gisd.ini
  187. [localhost] local: sed -i "s/|gisd-port|/3477/g" hosts/192.168.16.125/gisd.ini
  188. [192.168.16.125] put: hosts/192.168.16.125/gisd.ini -> /etc/velleros/gisd.ini
  189. [192.168.16.125] Examining broadcaster configuration
  190. [192.168.16.125] Applying configuration to hosts/192.168.16.125/cmspgw-cdma-cbc-broadcaster.ini and uploading to /etc/velleros/cmspgw-cdma-cbc-broadcaster.ini
  191. [localhost] local: cp conf/cmspgw-cdma-cbc-broadcaster.template.ini hosts/192.168.16.125/cmspgw-cdma-cbc-broadcaster.ini
  192. [localhost] local: sed -i "s/|cbc-host|/127.0.0.1/g" hosts/192.168.16.125/cmspgw-cdma-cbc-broadcaster.ini
  193. [localhost] local: sed -i "s/|cbc-port|/7888/g" hosts/192.168.16.125/cmspgw-cdma-cbc-broadcaster.ini
  194. [localhost] local: sed -i "s/|cvne-host|/127.0.0.1/g" hosts/192.168.16.125/cmspgw-cdma-cbc-broadcaster.ini
  195. [localhost] local: sed -i "s/|cvne-port|/4442/g" hosts/192.168.16.125/cmspgw-cdma-cbc-broadcaster.ini
  196. [localhost] local: sed -i "s/|listen-host|/0.0.0.0/g" hosts/192.168.16.125/cmspgw-cdma-cbc-broadcaster.ini
  197. [localhost] local: sed -i "s/|listen-port|/6080/g" hosts/192.168.16.125/cmspgw-cdma-cbc-broadcaster.ini
  198. [192.168.16.125] put: hosts/192.168.16.125/cmspgw-cdma-cbc-broadcaster.ini -> /etc/velleros/cmspgw-cdma-cbc-broadcaster.ini
  199. [192.168.16.125] Applying configuration to hosts/192.168.16.125/cmspgw-avne-broadcaster.ini and uploading to /etc/velleros/cmspgw-avne-broadcaster.ini
  200. [localhost] local: cp conf/cmspgw-avne-broadcaster.template.ini hosts/192.168.16.125/cmspgw-avne-broadcaster.ini
  201. [localhost] local: sed -i "s/|avne-host|/127.0.0.1/g" hosts/192.168.16.125/cmspgw-avne-broadcaster.ini
  202. [localhost] local: sed -i "s/|avne-port|/4443/g" hosts/192.168.16.125/cmspgw-avne-broadcaster.ini
  203. [localhost] local: sed -i "s/|cvne-host|/127.0.0.1/g" hosts/192.168.16.125/cmspgw-avne-broadcaster.ini
  204. [localhost] local: sed -i "s/|cvne-port|/4442/g" hosts/192.168.16.125/cmspgw-avne-broadcaster.ini
  205. [192.168.16.125] put: hosts/192.168.16.125/cmspgw-avne-broadcaster.ini -> /etc/velleros/cmspgw-avne-broadcaster.ini
  206. [192.168.16.126] put: hosts/authkey -> /etc/corosync/authkey
  207. [192.168.16.126] sudo: chmod go-r /etc/corosync/authkey
  208. [192.168.16.126] sudo: /etc/init.d/pacemaker status
  209. [192.168.16.126] out: pacemakerd is stopped
  210.  
  211.  
  212. Warning: sudo() encountered an error (return code 3) while executing '/etc/init.d/pacemaker status'
  213.  
  214. [192.168.16.126] sudo: /etc/init.d/corosync status
  215. [192.168.16.126] out: corosync is stopped
  216.  
  217.  
  218. Warning: sudo() encountered an error (return code 3) while executing '/etc/init.d/corosync status'
  219.  
  220. [192.168.16.126] Applying configuration to hosts/192.168.16.126/corosync.conf and uploading to /etc/corosync/corosync.conf
  221. [localhost] local: mkdir -p hosts/192.168.16.126
  222. [localhost] local: cp conf/pcmk.template hosts/192.168.16.126/pcmk
  223. [localhost] local: cp conf/corosync.template.conf hosts/192.168.16.126/corosync.conf
  224. [localhost] local: sed -i "s/|bindnetaddr|/192.168.16.0/g" hosts/192.168.16.126/corosync.conf
  225. [localhost] local: sed -i "s/|members|/\tmember {\n\tmemberaddr: 192.168.16.125\n\t}\n\tmember {\n\tmemberaddr: 192.168.16.126\n\t}\n/g" hosts/192.168.16.126/corosync.conf
  226. [192.168.16.126] put: hosts/192.168.16.126/pcmk -> /etc/corosync/service.d/pcmk
  227. [192.168.16.126] put: hosts/192.168.16.126/corosync.conf -> /etc/corosync/corosync.conf
  228. [192.168.16.126] sudo: /etc/init.d/corosync start
  229. [192.168.16.126] out: Starting Corosync Cluster Engine (corosync): [ OK ]
  230.  
  231. [192.168.16.126] sudo: /etc/init.d/pacemaker start
  232. [192.168.16.126] out: Starting Pacemaker Cluster Manager: [ OK ]
  233.  
  234. [192.168.16.126] Applying configuration to hosts/192.168.16.126/cvne.ini and uploading to /etc/velleros/cvned.ini
  235. [localhost] local: mkdir -p hosts/192.168.16.126
  236. [localhost] local: cp conf/cvne.template.ini hosts/192.168.16.126/cvne.ini
  237. [localhost] local: sed -i "s@|db|@/var/db/cvne.sqlite3@g" hosts/192.168.16.126/cvne.ini
  238. [localhost] local: sed -i "s/|listen-port|/4442/g" hosts/192.168.16.126/cvne.ini
  239. [localhost] local: sed -i "s/|listen-addr|/0.0.0.0/g" hosts/192.168.16.126/cvne.ini
  240. [localhost] local: sed -i "s/|vne-peer|/192.168.16.125:4442/g" hosts/192.168.16.126/cvne.ini
  241. [192.168.16.126] put: hosts/192.168.16.126/cvne.ini -> /etc/velleros/cvned.ini
  242. [192.168.16.126] Applying configuration to hosts/192.168.16.126/avne.ini and uploading to /etc/velleros/avned.ini
  243. [localhost] local: mkdir -p hosts/192.168.16.126
  244. [localhost] local: cp conf/avne.template.ini hosts/192.168.16.126/avne.ini
  245. [localhost] local: sed -i "s@|db|@/var/db/avne.sqlite3@g" hosts/192.168.16.126/avne.ini
  246. [localhost] local: sed -i "s/|listen-port|/4443/g" hosts/192.168.16.126/avne.ini
  247. [localhost] local: sed -i "s/|listen-addr|/0.0.0.0/g" hosts/192.168.16.126/avne.ini
  248. [localhost] local: sed -i "s/|vne-peer|/192.168.16.125:4443/g" hosts/192.168.16.126/avne.ini
  249. [192.168.16.126] put: hosts/192.168.16.126/avne.ini -> /etc/velleros/avned.ini
  250. [192.168.16.126] Applying configuration to hosts/192.168.16.126/cmspgw.ini and uploading to /etc/velleros/cmspgw.ini
  251. [localhost] local: mkdir -p hosts/192.168.16.126
  252. [localhost] local: cp conf/cmspgw.template.ini hosts/192.168.16.126/cmspgw.ini
  253. [localhost] local: sed -i "s/|cvne-host|/localhost/g" hosts/192.168.16.126/cmspgw.ini
  254. [localhost] local: sed -i "s/|cvne-port|/4442/g" hosts/192.168.16.126/cmspgw.ini
  255. [localhost] local: sed -i "s/|femagateway|/192.168.16.81/g" hosts/192.168.16.126/cmspgw.ini
  256. [192.168.16.126] put: hosts/192.168.16.126/cmspgw.ini -> /etc/velleros/cmspgw.ini
  257. [192.168.16.126] sudo: /etc/init.d/mysqld status
  258. [192.168.16.126] out: mysqld is stopped
  259.  
  260.  
  261. Warning: sudo() encountered an error (return code 3) while executing '/etc/init.d/mysqld status'
  262.  
  263. [192.168.16.126] Performing initial mysql setup
  264. [192.168.16.126] Applying configuration to hosts/192.168.16.126/my.cnf and uploading to /etc/my.cnf
  265. [localhost] local: mkdir -p hosts/192.168.16.126
  266. [localhost] local: cp conf/my.template.cnf hosts/192.168.16.126/my.cnf
  267. [localhost] local: sed -i "s/|repldb|/gis/g" hosts/192.168.16.126/my.cnf
  268. [localhost] local: sed -i "s/|servid|/2/g" hosts/192.168.16.126/my.cnf
  269. [192.168.16.126] put: hosts/192.168.16.126/my.cnf -> /etc/my.cnf
  270. [192.168.16.126] sudo: /etc/init.d/mysqld start
  271. [192.168.16.126] out: Initializing MySQL database: WARNING: The host 'cspire-cmsp2' could not be looked up with resolveip.
  272. [192.168.16.126] out: This probably means that your libc libraries are not 100 % compatible
  273. [192.168.16.126] out: with this binary MySQL version. The MySQL daemon, mysqld, should work
  274. [192.168.16.126] out: normally with the exception that host name resolving will not work.
  275. [192.168.16.126] out: This means that you should use IP addresses instead of hostnames
  276. [192.168.16.126] out: when specifying MySQL privileges !
  277. [192.168.16.126] out: Installing MySQL system tables...
  278. [192.168.16.126] out: OK
  279. [192.168.16.126] out: Filling help tables...
  280. [192.168.16.126] out: OK
  281.  
  282. [192.168.16.126] out: To start mysqld at boot time you have to copy
  283. [192.168.16.126] out: support-files/mysql.server to the right place for your system
  284.  
  285. [192.168.16.126] out: PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
  286. [192.168.16.126] out: To do so, start the server, then issue the following commands:
  287.  
  288. [192.168.16.126] out: /usr/bin/mysqladmin -u root password 'new-password'
  289. [192.168.16.126] out: /usr/bin/mysqladmin -u root -h cspire-cmsp2 password 'new-password'
  290.  
  291. [192.168.16.126] out: Alternatively you can run:
  292. [192.168.16.126] out: /usr/bin/mysql_secure_installation
  293.  
  294. [192.168.16.126] out: which will also give you the option of removing the test
  295. [192.168.16.126] out: databases and anonymous user created by default. This is
  296. [192.168.16.126] out: strongly recommended for production servers.
  297.  
  298. [192.168.16.126] out: See the manual for more instructions.
  299.  
  300. [192.168.16.126] out: You can start the MySQL daemon with:
  301. [192.168.16.126] out: cd /usr ; /usr/bin/mysqld_safe &
  302.  
  303. [192.168.16.126] out: You can test the MySQL daemon with mysql-test-run.pl
  304. [192.168.16.126] out: cd /usr/mysql-test ; perl mysql-test-run.pl
  305.  
  306. [192.168.16.126] out: Please report any problems with the /usr/bin/mysqlbug script!
  307.  
  308. [192.168.16.126] out: [ OK ]
  309. [192.168.16.126] out: Starting mysqld: [ OK ]
  310.  
  311. [192.168.16.126] sudo: /usr/bin/mysqladmin -u root password 'pa22wd'
  312. [192.168.16.126] sudo: echo "CREATE USER 'repluser'@'192.168.16.125' identified by 'R3pl1cat3';"|mysql --batch --user=root --password=pa22wd
  313. [192.168.16.126] sudo: echo "GRANT REPLICATION SLAVE ON *.* to repluser@192.168.16.125 identified by 'R3pl1cat3';"|mysql --batch --user=root --password=pa22wd
  314. [192.168.16.126] sudo: echo "CHANGE MASTER TO MASTER_HOST='192.168.16.125', MASTER_USER='repluser', MASTER_PASSWORD='R3pl1cat3';"|mysql --batch --user=root --password=pa22wd
  315. [192.168.16.126] sudo: echo "START SLAVE;"|mysql --batch --user=root --password=pa22wd
  316. [192.168.16.126] sudo: /etc/init.d/mysqld stop
  317. [192.168.16.126] out: Stopping mysqld: [ OK ]
  318.  
  319. [192.168.16.126] Applying configuration to hosts/192.168.16.126/gisd.ini and uploading to /etc/velleros/gisd.ini
  320. [localhost] local: mkdir -p hosts/192.168.16.126
  321. [localhost] local: cp conf/gisd.template.ini hosts/192.168.16.126/gisd.ini
  322. [localhost] local: sed -i "s/|mysql-host|/localhost/g" hosts/192.168.16.126/gisd.ini
  323. [localhost] local: sed -i "s/|mysql-user|/gis/g" hosts/192.168.16.126/gisd.ini
  324. [localhost] local: sed -i "s/|mysql-pass|/gis/g" hosts/192.168.16.126/gisd.ini
  325. [localhost] local: sed -i "s/|mysql-database|/gis/g" hosts/192.168.16.126/gisd.ini
  326. [localhost] local: sed -i "s/|gisd-host|/0.0.0.0/g" hosts/192.168.16.126/gisd.ini
  327. [localhost] local: sed -i "s/|gisd-port|/3477/g" hosts/192.168.16.126/gisd.ini
  328. [192.168.16.126] put: hosts/192.168.16.126/gisd.ini -> /etc/velleros/gisd.ini
  329. [192.168.16.126] Examining broadcaster configuration
  330. [192.168.16.126] Applying configuration to hosts/192.168.16.126/cmspgw-cdma-cbc-broadcaster.ini and uploading to /etc/velleros/cmspgw-cdma-cbc-broadcaster.ini
  331. [localhost] local: cp conf/cmspgw-cdma-cbc-broadcaster.template.ini hosts/192.168.16.126/cmspgw-cdma-cbc-broadcaster.ini
  332. [localhost] local: sed -i "s/|cbc-host|/127.0.0.1/g" hosts/192.168.16.126/cmspgw-cdma-cbc-broadcaster.ini
  333. [localhost] local: sed -i "s/|cbc-port|/7888/g" hosts/192.168.16.126/cmspgw-cdma-cbc-broadcaster.ini
  334. [localhost] local: sed -i "s/|cvne-host|/127.0.0.1/g" hosts/192.168.16.126/cmspgw-cdma-cbc-broadcaster.ini
  335. [localhost] local: sed -i "s/|cvne-port|/4442/g" hosts/192.168.16.126/cmspgw-cdma-cbc-broadcaster.ini
  336. [localhost] local: sed -i "s/|listen-host|/0.0.0.0/g" hosts/192.168.16.126/cmspgw-cdma-cbc-broadcaster.ini
  337. [localhost] local: sed -i "s/|listen-port|/6080/g" hosts/192.168.16.126/cmspgw-cdma-cbc-broadcaster.ini
  338. [192.168.16.126] put: hosts/192.168.16.126/cmspgw-cdma-cbc-broadcaster.ini -> /etc/velleros/cmspgw-cdma-cbc-broadcaster.ini
  339. [192.168.16.126] Applying configuration to hosts/192.168.16.126/cmspgw-avne-broadcaster.ini and uploading to /etc/velleros/cmspgw-avne-broadcaster.ini
  340. [localhost] local: cp conf/cmspgw-avne-broadcaster.template.ini hosts/192.168.16.126/cmspgw-avne-broadcaster.ini
  341. [localhost] local: sed -i "s/|avne-host|/127.0.0.1/g" hosts/192.168.16.126/cmspgw-avne-broadcaster.ini
  342. [localhost] local: sed -i "s/|avne-port|/4443/g" hosts/192.168.16.126/cmspgw-avne-broadcaster.ini
  343. [localhost] local: sed -i "s/|cvne-host|/127.0.0.1/g" hosts/192.168.16.126/cmspgw-avne-broadcaster.ini
  344. [localhost] local: sed -i "s/|cvne-port|/4442/g" hosts/192.168.16.126/cmspgw-avne-broadcaster.ini
  345. [192.168.16.126] put: hosts/192.168.16.126/cmspgw-avne-broadcaster.ini -> /etc/velleros/cmspgw-avne-broadcaster.ini
  346. [192.168.16.125] sudo: /etc/init.d/pacemaker status
  347. [192.168.16.125] out: pacemakerd (pid 4194) is running...
  348.  
  349. [192.168.16.125] sudo: /etc/init.d/corosync status
  350. [192.168.16.125] out: corosync (pid 4133) is running...
  351.  
  352. [192.168.16.125] sudo: /usr/sbin/crm configure property stonith-enabled=false
  353. [192.168.16.125] sudo: /usr/sbin/crm configure primitive FloatingIP ocf:heartbeat:IPaddr2 params ip=192.168.16.127 cidr_netmask=32 op monitor interval=10s
  354. [192.168.16.125] sudo: /usr/sbin/crm configure primitive cvne ocf:velleros:vne params pidfile=/var/run/cvne.pid config=/etc/velleros/cvned.ini op monitor interval=10s
  355. [192.168.16.125] sudo: /usr/sbin/crm configure clone cluster_cvne cvne meta globally-unique="true" clone-max="2" clone-node-max="1" interleave="true"
  356. [192.168.16.125] sudo: /usr/sbin/crm configure primitive avne ocf:velleros:vne params pidfile=/var/run/avne.pid config=/etc/velleros/avned.ini op monitor interval=10s
  357. [192.168.16.125] sudo: /usr/sbin/crm configure clone cluster_avne avne meta globally-unique="true" clone-max="2" clone-node-max="1" interleave="true"
  358. [192.168.16.125] sudo: /usr/sbin/crm configure primitive cmspgw ocf:velleros:cmspgw params pidfile=/var/run/cmspgw.pid config=/etc/velleros/cmspgw.ini op monitor interval=10s
  359. [192.168.16.125] 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
  360. [192.168.16.125] out: WARNING: vmysqld: default timeout 20s for start is smaller than the advised 120
  361. [192.168.16.125] out: WARNING: vmysqld: default timeout 20s for stop is smaller than the advised 120
  362. [192.168.16.125] out: WARNING: vmysqld: default timeout 20s for monitor is smaller than the advised 30
  363.  
  364. [192.168.16.125] sudo: crm configure clone cluster_vmysqld vmysqld meta globally-unique="true" clone-max="2" clone-node-max="1" interleave="true"
  365. [192.168.16.125] Waiting 15 seconds for Cluster to settle before proceeding...
  366. [192.168.16.125] sudo: echo "CREATE DATABASE gis;"|mysql --batch --user=root --password=pa22wd
  367. [192.168.16.125] out: sudo password:
  368. [192.168.16.125] out: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
  369.  
  370.  
  371. Warning: sudo() encountered an error (return code 1) while executing 'echo "CREATE DATABASE gis;"|mysql --batch --user=root --password=pa22wd '
  372.  
  373. [192.168.16.125] sudo: mysql --batch --user=root --password=pa22wd gis < /etc/velleros/schema/gis_objects.sql
  374. [192.168.16.125] out: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
  375.  
  376.  
  377. Warning: sudo() encountered an error (return code 1) while executing 'mysql --batch --user=root --password=pa22wd gis < /etc/velleros/schema/gis_objects.sql'
  378.  
  379. [192.168.16.125] Waiting 60 seconds for MySQL replication to occur
  380. [192.168.16.125] sudo: echo "CREATE USER 'gis'@'localhost' identified by 'gis';"|mysql --batch --user=root --password=pa22wd
  381. [192.168.16.125] sudo: echo "GRANT ALL PRIVILEGES ON *.* to gis@localhost identified by 'gis';"|mysql --batch --user=root --password=pa22wd
  382. [192.168.16.125] sudo: /usr/sbin/crm configure primitive gisd ocf:velleros:gisd params pidfile=/var/run/gisd.pid config=/etc/velleros/gisd.ini op monitor interval=10s
  383. [192.168.16.125] sudo: /usr/sbin/crm configure clone cluster_gisd gisd meta globally-unique="true" clone-max="2" clone-node-max="1" interleave="true"
  384. [192.168.16.125] sudo: /usr/sbin/crm configure primitive cmspgw-cdma-cbc ocf:velleros:cmspgw-broadcaster params pidfile=/var/run/cmspgw-cdma-cbc.pid config=/etc/velleros/cmspgw-cdma-cbc-broadcaster.ini broadcaster_type=cdma-cbc op monitor interval=10s
  385. [192.168.16.125] sudo: /usr/sbin/crm configure primitive cmspgw-avne ocf:velleros:cmspgw-broadcaster params pidfile=/var/run/cmspgw-avne.pid config=/etc/velleros/cmspgw-avne-broadcaster.ini broadcaster_type=avne op monitor interval=10s
  386. [192.168.16.125] sudo: /usr/sbin/crm configure group actsby FloatingIP cmspgw cmspgw-cdma-cbc cmspgw-avne
  387. [192.168.16.126] sudo: echo "CREATE USER 'gis'@'localhost' identified by 'gis';"|mysql --batch --user=root --password=pa22wd
  388. [192.168.16.126] sudo: echo "GRANT ALL PRIVILEGES ON *.* to gis@localhost identified by 'gis';"|mysql --batch --user=root --password=pa22wd
  389.  
  390. Done.
  391. Disconnecting from 192.168.16.126... done.
  392. Disconnecting from 192.168.16.125... done.
  393. (~deplyr.6)[bharsh@vellerosbuild ~deplyr.6]$ exit
  394.  
  395.  
  396. [bharsh@vellerosbuild ~deplyr.6]$ cat config.cspire
  397. [192.168.16.125]
  398. role=primary
  399. ip=192.168.16.125
  400. cluster_bind_addr=192.168.16.0
  401. cluster_floating_addr=192.168.16.127
  402. cvne_enable=True
  403. cvne_remote_config=/etc/velleros/cvned.ini
  404. cvne_port=4442
  405. cvne_listen=0.0.0.0
  406. cvne_peers=192.168.16.126:4442
  407. cvne_db=/var/db/cvne.sqlite3
  408. avne_enable=True
  409. avne_remote_config=/etc/velleros/avned.ini
  410. avne_port=4443
  411. avne_listen=0.0.0.0
  412. avne_peers=192.168.16.126:4443
  413. avne_db=/var/db/avne.sqlite3
  414. cmspgw_enable=True
  415. cmspgw_remote_config=/etc/velleros/cmspgw.ini
  416. cmspgw_cvne_host=localhost
  417. cmspgw_cvne_port=4442
  418. cmspgw_femagateway=192.168.16.81
  419. mysql_repl_rootpass=pa22wd
  420. mysql_repl_enable=True
  421. mysql_repl_master=192.168.16.126
  422. mysql_repl_user=repluser
  423. mysql_repl_pass=R3pl1cat3
  424. mysql_repl_dbs=gis
  425. gisd_enable=True
  426. gisd_remote_config=/etc/velleros/gisd.ini
  427. gisd_mysql_host=localhost
  428. gisd_mysql_user=gis
  429. gisd_mysql_pass=gis
  430. gisd_mysql_database=gis
  431. gisd_port=3477
  432. gisd_host=0.0.0.0
  433.  
  434. #Broadcasters
  435. cdma_cbc_broadcaster_enable=True
  436. cdma_cbc_remote_config=/etc/velleros/cmspgw-cdma-cbc-broadcaster.ini
  437. cdma_cbc_host=127.0.0.1
  438. cdma_cbc_port=7888
  439. cdma_cbc_cvne_host=127.0.0.1
  440. cdma_cbc_cvne_port=4442
  441. cdma_cbc_listen_host=0.0.0.0
  442. cdma_cbc_listen_port=6080
  443.  
  444. gsm_cbc_broadcaster_enable=False
  445. gsm_cbc_remote_config=/etc/velleros/cmspgw-gsm-cbc-broadcaster.ini
  446. gsm_cbc_host=127.0.0.1
  447. gsm_cbc_port=7888
  448. gsm_cbc_cvne_host=127.0.0.1
  449. gsm_cbc_cvne_port=4442
  450. gsm_cbc_listen_host=0.0.0.0
  451. gsm_cbc_listen_port=6080
  452.  
  453. gis_broadcaster_enable=False
  454. gis_broadcaster_remote_config=/etc/velleros/cmspgw-gis-broadcaster.ini
  455. gis_broadcaster_gis_host=127.0.0.1
  456. gis_broadcaster_gis_port=3477
  457. gis_broadcaster_cvne_host=127.0.0.1
  458. gis_broadcaster_cvne_port=4442
  459. gis_broadcaster_listen_host=0.0.0.0
  460. gis_broadcaster_listen_port=6080
  461.  
  462. avne_broadcaster_enable=True
  463. avne_broadcaster_remote_config=/etc/velleros/cmspgw-avne-broadcaster.ini
  464. avne_broadcaster_cvne_host=127.0.0.1
  465. avne_broadcaster_cvne_port=4442
  466. avne_broadcaster_avne_host=127.0.0.1
  467. avne_broadcaster_avne_port=4443
  468.  
  469. [192.168.16.126]
  470. role=secondary
  471. ip=192.168.16.126
  472. cluster_bind_addr=192.168.16.0
  473. cvne_enable=True
  474. cvne_remote_config=/etc/velleros/cvned.ini
  475. cvne_port=4442
  476. cvne_listen=0.0.0.0
  477. cvne_peers=192.168.16.125:4442
  478. cvne_db=/var/db/cvne.sqlite3
  479. avne_enable=True
  480. avne_remote_config=/etc/velleros/avned.ini
  481. avne_port=4443
  482. avne_listen=0.0.0.0
  483. avne_peers=192.168.16.125:4443
  484. avne_db=/var/db/avne.sqlite3
  485. cmspgw_enable=True
  486. cmspgw_remote_config=/etc/velleros/cmspgw.ini
  487. cmspgw_cvne_host=localhost
  488. cmspgw_cvne_port=4442
  489. cmspgw_femagateway=192.168.16.81
  490. mysql_repl_rootpass=pa22wd
  491. mysql_repl_enable=True
  492. mysql_repl_master=192.168.16.125
  493. mysql_repl_user=repluser
  494. mysql_repl_pass=R3pl1cat3
  495. mysql_repl_dbs=gis
  496. gisd_enable=True
  497. gisd_remote_config=/etc/velleros/gisd.ini
  498. gisd_mysql_host=localhost
  499. gisd_mysql_user=gis
  500. gisd_mysql_pass=gis
  501. gisd_mysql_database=gis
  502. gisd_port=3477
  503. gisd_host=0.0.0.0
  504.  
  505. #Broadcasters
  506. cdma_cbc_broadcaster_enable=True
  507. cdma_cbc_remote_config=/etc/velleros/cmspgw-cdma-cbc-broadcaster.ini
  508. cdma_cbc_host=127.0.0.1
  509. cdma_cbc_port=7888
  510. cdma_cbc_cvne_host=127.0.0.1
  511. cdma_cbc_cvne_port=4442
  512. cdma_cbc_listen_host=0.0.0.0
  513. cdma_cbc_listen_port=6080
  514.  
  515. gsm_cbc_broadcaster_enable=False
  516. gsm_cbc_remote_config=/etc/velleros/cmspgw-gsm-cbc-broadcaster.ini
  517. gsm_cbc_host=127.0.0.1
  518. gsm_cbc_port=7888
  519. gsm_cbc_cvne_host=127.0.0.1
  520. gsm_cbc_cvne_port=4442
  521. gsm_cbc_listen_host=0.0.0.0
  522. gsm_cbc_listen_port=6080
  523.  
  524. gis_broadcaster_enable=False
  525. gis_broadcaster_remote_config=/etc/velleros/cmspgw-gis-broadcaster.ini
  526. gis_broadcaster_gis_host=127.0.0.1
  527. gis_broadcaster_gis_port=3477
  528. gis_broadcaster_cvne_host=127.0.0.1
  529. gis_broadcaster_cvne_port=4442
  530. gis_broadcaster_listen_host=0.0.0.0
  531. gis_broadcaster_listen_port=6080
  532.  
  533. avne_broadcaster_enable=True
  534. avne_broadcaster_remote_config=/etc/velleros/cmspgw-avne-broadcaster.ini
  535. avne_broadcaster_cvne_host=127.0.0.1
  536. avne_broadcaster_cvne_port=4442
  537. avne_broadcaster_avne_host=127.0.0.1
  538. avne_broadcaster_avne_port=4443
  539. [bharsh@vellerosbuild ~deplyr.6]$
Add Comment
Please, Sign In to add comment