Guest User

Untitled

a guest
Apr 21st, 2015
544
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 22.68 KB | None | 0 0
  1. Auto Deploy script path : https://github.com/jangaraj/zenoss5-core-autodeploy
  2. Auto Deploy script Output :./core-autodeploy.sh
  3. Autodeploy script 2015-04-13 for Control Center master host and Zenoss Core 5/Zenoss Resource Manager 5
  4. Install guide: http://wiki.zenoss.org/download/core/docs/Zenoss_Core_Installation_Guide_r5.0.0_latest.pdf
  5. Requirements:
  6. Min number of available CPUs: 4
  7. Min size of available RAM: 20GB
  8. These filesystems must be mounted with correct type and size:
  9. Filesystem Type Min size
  10. / xfs 30GB
  11. /var/lib/docker btrfs 30GB
  12. /opt/serviced/var xfs 30GB
  13. /opt/serviced/var/volumes btrfs 1GB
  14. /opt/serviced/var/backups xfs 1GB
  15. 1 Checks - (Tue, 21 Apr 2015 01:23:28 -0400)
  16. 1.1 Root permission check
  17. Done
  18. 1.2 Architecture check
  19. Done
  20. 1.3 OS version check
  21. Done
  22. 1.4 CPU check
  23. Only 1 CPUs have been detected, but at least 4 are required. Do you want to continue (y/n)?
  24. y
  25. ... continuing
  26. 1.5 RAM check
  27. Only 15 GB of RAM has been detected, but at least 20GB is recommended. Do you want to continue (y/N)?
  28. y
  29. ... continuing
  30. 1.6 / filesystem check
  31. / filesystem size is less than required 30GB. Do you want to continue (y/N)?
  32. y
  33. ... continuing
  34. 1.7 /var/lib/docker filesystem check
  35. Done
  36. 1.8 /opt/serviced/var filesystem check
  37. Done
  38. 1.9 /opt/serviced/var/volumes filesystem check
  39. Done
  40. 1.10 /opt/serviced/var/backups filesystem check
  41. /opt/serviced/var/backups filesystem was not detected
  42. Do you want to continue (y/n)?
  43. y
  44. ... continuing
  45. 2 Preparing the host - (Tue, 21 Apr 2015 01:24:03 -0400)
  46. 2.1 IP configurations
  47. Detected interface: ens160
  48. Hostname: hostname
  49. X.X.X.X hostname
  50. Public IPv4: X.X.X.X
  51. Private IPv4: X.X.X.X
  52. Done
  53. 2.2 Disable the firewall
  54. systemctl stop firewalld && systemctl disable firewalld
  55. Done
  56. 2.3 Enable persistent storage for log files
  57. mkdir -p /var/log/journal && systemctl restart systemd-journald
  58. Done
  59. 2.4 Disable selinux
  60. Done - disabled already
  61. 2.5 Download and install the Zenoss repository package
  62. rpm -ivh http://get.zenoss.io/yum/zenoss-repo-1-1.x86_64.rpm
  63. Retrieving http://get.zenoss.io/yum/zenoss-repo-1-1.x86_64.rpm
  64. Preparing... ########################################
  65. package zenoss-repo-1-1.x86_64 is already installed
  66. Done
  67. 2.6 Install and start the dnsmasq package
  68. yum install -y dnsmasq && systemctl enable dnsmasq && systemctl start dnsmasq
  69. Loaded plugins: fastestmirror, langpacks
  70. base | 3.6 kB 00:00:00
  71. extras | 3.4 kB 00:00:00
  72. updates | 3.4 kB 00:00:00
  73. (1/4): extras/7/x86_64/primary_db | 41 kB 00:00:01
  74. (2/4): base/7/x86_64/group_gz | 154 kB 00:00:01
  75. (3/4): updates/7/x86_64/primary_db | 957 kB 00:00:02
  76. (4/4): base/7/x86_64/primary_db | 5.1 MB 00:00:03
  77. Determining fastest mirrors
  78. * base: mirror-fpt-telecom.fpt.net
  79. * extras: mirrors.vhost.vn
  80. * updates: mirrors.vhost.vn
  81. Package dnsmasq-2.66-13.el7_1.x86_64 already installed and latest version
  82. Nothing to do
  83. Done
  84. 2.7 Install and start the ntp package
  85. yum install -y ntp && systemctl enable ntpd
  86. Loaded plugins: fastestmirror, langpacks
  87. Loading mirror speeds from cached hostfile
  88. * base: mirror-fpt-telecom.fpt.net
  89. * extras: mirrors.vhost.vn
  90. * updates: mirrors.vhost.vn
  91. Package ntp-4.2.6p5-19.el7.centos.x86_64 already installed and latest version
  92. Nothing to do
  93. Done
  94. 2.8 ntpd autostart workaround
  95. echo "systemctl start ntpd" >> /etc/rc.d/rc.local && chmod +x /etc/rc.d/rc.local
  96. Done
  97. 2.9 ntpd start
  98. systemctl start ntpd
  99. Done
  100. 3 Installing on the master host - (Tue, 21 Apr 2015 01:24:24 -0400)
  101. 3.1 Install Control Center, Zenoss Core, and Docker
  102. yum --enablerepo=zenoss-stable install -y zenoss-core-service
  103. Loaded plugins: fastestmirror, langpacks
  104. zenoss-stable | 2.9 kB 00:00:00
  105. zenoss-stable/primary_db | 8.1 kB 00:00:00
  106. Loading mirror speeds from cached hostfile
  107. * base: mirror-fpt-telecom.fpt.net
  108. * extras: mirrors.vhost.vn
  109. * updates: mirrors.vhost.vn
  110. Resolving Dependencies
  111. --> Running transaction check
  112. ---> Package zenoss-core-service.noarch 0:5.0.1-6 will be updated
  113. ---> Package zenoss-core-service.noarch 0:5.0.2-2 will be an update
  114. --> Finished Dependency Resolution
  115.  
  116. Dependencies Resolved
  117.  
  118. ========================================================================================================================================================================
  119. Package Arch Version Repository Size
  120. ========================================================================================================================================================================
  121. Updating:
  122. zenoss-core-service noarch 5.0.2-2 zenoss-stable 74 k
  123.  
  124. Transaction Summary
  125. ========================================================================================================================================================================
  126. Upgrade 1 Package
  127.  
  128. Total download size: 74 k
  129. Downloading packages:
  130. Delta RPMs disabled because /usr/bin/applydeltarpm not installed.
  131. zenoss-core-service-5.0.2-2.noarch.rpm | 74 kB 00:00:01
  132. Running transaction check
  133. Running transaction test
  134. Transaction test succeeded
  135. Running transaction
  136. Updating : zenoss-core-service-5.0.2-2.noarch 1/2
  137. Cleanup : zenoss-core-service-5.0.1-6.noarch 2/2
  138. Verifying : zenoss-core-service-5.0.2-2.noarch 1/2
  139. Verifying : zenoss-core-service-5.0.1-6.noarch 2/2
  140.  
  141. Updated:
  142. zenoss-core-service.noarch 0:5.0.2-2
  143.  
  144. Complete!
  145. Done
  146. 3.2 Start Docker
  147. systemctl enable docker && systemctl start docker
  148. Done
  149. 3.3 Identify the IPv4 address and subnet of Docker
  150. ip addr | grep -A 2 'docker0:' | grep inet | awk '{print $2}' | awk -F'/' '{print $1}'
  151. Done
  152. 3.4 Add the Btrfs and DNS flags to the Docker startup options
  153. sed -i -e "\|^DOCKER_OPTS=\"-s btrfs --dns=|d" /etc/sysconfig/docker
  154. echo "DOCKER_OPTS=\"-s btrfs --dns=$docker_ip\"" >> /etc/sysconfig/docker
  155. Done
  156. 3.5 Creating user ccuser for Control Center (serviced) management
  157. id -u ccuser
  158. 1002
  159. User already exists
  160. Done
  161. 3.6 Stop and restart Docker
  162. systemctl stop docker && systemctl start docker
  163. Done
  164. Editing /etc/default/serviced on CC master
  165. 3.7 Change the volume type for application data
  166. sed -i."111-012432" -e 's|^#[^S]*\(SERVICED_FS_TYPE=\).*$|\1btrfs|' /etc/default/serviced
  167. Done
  168. 3.8 rpcbind workaround
  169. systemctl status rpcbind &>/dev/null
  170. 3.9 Start the Control Center service
  171. systemctl enable serviced && systemctl start serviced
  172. Done
  173. 4 Zenoss Core 5 deployement - (Tue, 21 Apr 2015 01:24:34 -0400)
  174. 4.1 Adding current host to the default resource pool
  175. Please be patient, because docker image zenoss/serviced-isvcs must be downloaded before first start.
  176. You can check progress in new console: journalctl -u serviced -f -a
  177. Script is trying to check status every 10s. Timeout for this step is 15 minutes.
  178. serviced host list 2>&1
  179. could not create a client to the master: dial tcp X.X.X.X:4979: connection refused
  180. #1: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
  181. rpc: can't find service Master.GetHosts
  182. #2: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
  183. rpc: can't find service Master.GetHosts
  184. #3: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
  185. rpc: can't find service Master.GetHosts
  186. #4: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
  187. rpc: can't find service Master.GetHosts
  188. #5: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
  189. rpc: can't find service Master.GetHosts
  190. #6: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
  191. rpc: can't find service Master.GetHosts
  192. #7: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
  193. rpc: can't find service Master.GetHosts
  194. #8: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
  195. rpc: can't find service Master.GetHosts
  196. #9: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
  197. rpc: can't find service Master.GetHosts
  198. #10: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
  199. rpc: can't find service Master.GetHosts
  200. #11: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
  201. rpc: can't find service Master.GetHosts
  202. #12: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
  203. rpc: can't find service Master.GetHosts
  204. #13: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
  205. rpc: can't find service Master.GetHosts
  206. #14: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
  207. rpc: can't find service Master.GetHosts
  208. #15: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
  209. rpc: can't find service Master.GetHosts
  210. #16: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
  211. rpc: can't find service Master.GetHosts
  212. #17: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
  213. rpc: can't find service Master.GetHosts
  214. #18: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
  215. rpc: can't find service Master.GetHosts
  216. #19: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
  217. rpc: can't find service Master.GetHosts
  218. #20: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
  219. rpc: can't find service Master.GetHosts
  220. #21: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
  221. rpc: can't find service Master.GetHosts
  222. #22: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
  223. rpc: can't find service Master.GetHosts
  224. #23: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
  225. rpc: can't find service Master.GetHosts
  226. #24: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
  227. rpc: can't find service Master.GetHosts
  228. #25: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
  229. rpc: can't find service Master.GetHosts
  230. #26: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
  231. rpc: can't find service Master.GetHosts
  232. #27: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
  233. rpc: can't find service Master.GetHosts
  234. #28: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
  235. rpc: can't find service Master.GetHosts
  236. #29: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
  237. rpc: can't find service Master.GetHosts
  238. #30: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
  239. rpc: can't find service Master.GetHosts
  240. #31: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
  241. rpc: can't find service Master.GetHosts
  242. #32: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
  243. rpc: can't find service Master.GetHosts
  244. #33: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
  245. rpc: can't find service Master.GetHosts
  246. #34: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
  247. rpc: can't find service Master.GetHosts
  248. #35: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
  249. rpc: can't find service Master.GetHosts
  250. #36: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
  251. rpc: can't find service Master.GetHosts
  252. #37: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
  253. rpc: can't find service Master.GetHosts
  254. #38: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
  255. rpc: can't find service Master.GetHosts
  256. #39: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
  257. rpc: can't find service Master.GetHosts
  258. #40: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
  259. rpc: can't find service Master.GetHosts
  260. #41: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
  261. rpc: can't find service Master.GetHosts
  262. #42: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
  263. rpc: can't find service Master.GetHosts
  264. #43: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
  265. rpc: can't find service Master.GetHosts
  266. #44: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
  267. rpc: can't find service Master.GetHosts
  268. #45: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
  269. rpc: can't find service Master.GetHosts
  270. #46: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
  271. rpc: can't find service Master.GetHosts
  272. #47: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
  273. rpc: can't find service Master.GetHosts
  274. #48: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
  275. rpc: can't find service Master.GetHosts
  276. #49: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
  277. rpc: can't find service Master.GetHosts
  278. #50: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
  279. rpc: can't find service Master.GetHosts
  280. #51: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
  281. rpc: can't find service Master.GetHosts
  282. #52: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
  283. rpc: can't find service Master.GetHosts
  284. #53: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
  285. rpc: can't find service Master.GetHosts
  286. #54: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
  287. rpc: can't find service Master.GetHosts
  288. #55: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
  289. rpc: can't find service Master.GetHosts
  290. #56: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
  291. rpc: can't find service Master.GetHosts
  292. #57: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
  293. rpc: can't find service Master.GetHosts
  294. #58: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
  295. rpc: can't find service Master.GetHosts
  296. #59: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
  297. rpc: can't find service Master.GetHosts
  298. #60: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
  299. rpc: can't find service Master.GetHosts
  300. #61: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
  301. rpc: can't find service Master.GetHosts
  302. #62: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
  303. rpc: can't find service Master.GetHosts
  304. #63: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
  305. rpc: can't find service Master.GetHosts
  306. #64: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
  307. rpc: can't find service Master.GetHosts
  308. #65: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
  309. rpc: can't find service Master.GetHosts
  310. #66: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
  311. could not create a client to the master: dial tcp X.X.X.X:4979: connection refused
  312. #67: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
  313. could not create a client to the master: dial tcp X.X.X.X:4979: connection refused
  314. #68: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
  315. could not create a client to the master: dial tcp X.X.X.X:4979: connection refused
  316. #69: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
  317. could not create a client to the master: dial tcp X.X.X.X:4979: connection refused
  318. #70: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
  319. could not create a client to the master: dial tcp X.X.X.X:4979: connection refused
  320. #71: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
  321. could not create a client to the master: dial tcp X.X.X.X:4979: connection refused
  322. #72: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
  323. could not create a client to the master: dial tcp X.X.X.X:4979: connection refused
  324. #73: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
  325. could not create a client to the master: dial tcp X.X.X.X:4979: connection refused
  326. #74: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
  327. could not create a client to the master: dial tcp X.X.X.X:4979: connection refused
  328. #75: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
  329. could not create a client to the master: dial tcp X.X.X.X:4979: connection refused
  330. #76: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
  331. could not create a client to the master: dial tcp X.X.X.X:4979: connection refused
  332. #77: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
  333. could not create a client to the master: dial tcp X.X.X.X:4979: connection refused
  334. #78: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
  335. could not create a client to the master: dial tcp X.X.X.X:4979: connection refused
  336. #79: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
  337. could not create a client to the master: dial tcp X.X.X.X:4979: connection refused
  338. #80: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
  339. could not create a client to the master: dial tcp X.X.X.X:4979: connection refused
  340. #81: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
  341. could not create a client to the master: dial tcp X.X.X.X:4979: connection refused
  342. #82: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
  343. could not create a client to the master: dial tcp X.X.X.X:4979: connection refused
  344. #83: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
  345. could not create a client to the master: dial tcp X.X.X.X:4979: connection refused
  346. #84: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
  347. could not create a client to the master: dial tcp X.X.X.X:4979: connection refused
  348. #85: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
  349. could not create a client to the master: dial tcp X.X.X.X:4979: connection refused
  350. #86: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
  351. could not create a client to the master: dial tcp X.X.X.X:4979: connection refused
  352. #87: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
  353. could not create a client to the master: dial tcp X.X.X.X:4979: connection refused
  354. #88: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
  355. could not create a client to the master: dial tcp X.X.X.X:4979: connection refused
  356. #89: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
  357. echo "could not create a client to the master: dial tcp X.X.X.X:4979: connection refused" | wc -l
  358. Problem with adding a host - check output from test: could not create a client to the master: dial tcp X.X.X.X:4979: connection refused
Advertisement
Add Comment
Please, Sign In to add comment