Advertisement
Guest User

autodeploy

a guest
Apr 22nd, 2015
337
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 24.40 KB | None | 0 0
  1. Autodeploy script output:
  2.  
  3. ./core-autodeploy.sh
  4. Autodeploy script 2015-04-13 for Control Center master host and Zenoss Core 5/Zenoss Resource Manager 5
  5. Install guide: http://wiki.zenoss.org/download/core/docs/Zenoss_Core_Installation_Guide_r5.0.0_latest.pdf
  6. Requirements:
  7. Min number of available CPUs: 4
  8. Min size of available RAM: 20GB
  9. These filesystems must be mounted with correct type and size:
  10. Filesystem Type Min size
  11. / xfs 30GB
  12. /var/lib/docker btrfs 30GB
  13. /opt/serviced/var xfs 30GB
  14. /opt/serviced/var/volumes btrfs 1GB
  15. /opt/serviced/var/backups xfs 1GB
  16. 1 Checks - (Wed, 22 Apr 2015 07:47:43 -0400)
  17. 1.1 Root permission check
  18. Done
  19. 1.2 Architecture check
  20. Done
  21. 1.3 OS version check
  22. Done
  23. 1.4 CPU check
  24. Done
  25. 1.5 RAM check
  26. Only 19 GB of RAM has been detected, but at least 20GB is recommended. Do you want to continue (y/N)?
  27. y
  28. ... continuing
  29. 1.6 / filesystem check
  30. Done
  31. 1.7 /var/lib/docker filesystem check
  32. Done
  33. 1.8 /opt/serviced/var filesystem check
  34. Done
  35. 1.9 /opt/serviced/var/volumes filesystem check
  36. Done
  37. 1.10 /opt/serviced/var/backups filesystem check
  38. Done
  39. 2 Preparing the host - (Wed, 22 Apr 2015 07:47:46 -0400)
  40. 2.1 IP configurations
  41. Network interface auto detection failed. Available interfaces in your system:
  42. ens160 virbr0
  43. Please write interface, which you want to use for deployement (see listing above), e.g. eth1 or ens160:
  44. ens160
  45. ... continuing
  46. Hostname: mypc.com
  47. 10.1.1.1mypc.com montools-zenoss5
  48. Public IPv4: 10.1.1.1
  49. Private IPv4: 10.1.1.1
  50. Done
  51. 2.2 Disable the firewall
  52. systemctl stop firewalld && systemctl disable firewalld
  53. rm '/etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service'
  54. rm '/etc/systemd/system/basic.target.wants/firewalld.service'
  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. sed -i."112-074803" -e 's/^SELINUX=.*/SELINUX=disabled/g' /etc/selinux/config && grep '^SELINUX=' /etc/selinux/config
  61. SELINUX=disabled
  62. Done
  63. 2.5 Download and install the Zenoss repository package
  64. rpm -ivh http://get.zenoss.io/yum/zenoss-repo-1-1.x86_64.rpm
  65. Retrieving http://get.zenoss.io/yum/zenoss-repo-1-1.x86_64.rpm
  66. Preparing... ########################################
  67. Updating / installing...
  68. zenoss-repo-1-1 ########################################
  69. Done
  70. 2.6 Install and start the dnsmasq package
  71. yum install -y dnsmasq && systemctl enable dnsmasq && systemctl start dnsmasq
  72. Loaded plugins: fastestmirror, langpacks
  73. base | 3.6 kB 00:00:00
  74. extras | 3.4 kB 00:00:00
  75. updates | 3.4 kB 00:00:00
  76. (1/4): extras/7/x86_64/primary_db | 41 kB 00:00:00
  77. (2/4): base/7/x86_64/group_gz | 154 kB 00:00:00
  78. (3/4): updates/7/x86_64/primary_db | 957 kB 00:00:00
  79. (4/4): base/7/x86_64/primary_db | 5.1 MB 00:00:05
  80. Determining fastest mirrors
  81. * base: mirror.dhakacom.com
  82. * extras: mirror-fpt-telecom.fpt.net
  83. * updates: mirror.dhakacom.com
  84. Package dnsmasq-2.66-13.el7_1.x86_64 already installed and latest version
  85. Nothing to do
  86. ln -s '/usr/lib/systemd/system/dnsmasq.service' '/etc/systemd/system/multi-user.target.wants/dnsmasq.service'
  87. Done
  88. 2.7 Install and start the ntp package
  89. yum install -y ntp && systemctl enable ntpd
  90. Loaded plugins: fastestmirror, langpacks
  91. Loading mirror speeds from cached hostfile
  92. * base: mirror.dhakacom.com
  93. * extras: mirror-fpt-telecom.fpt.net
  94. * updates: mirror.dhakacom.com
  95. Package ntp-4.2.6p5-19.el7.centos.x86_64 already installed and latest version
  96. Nothing to do
  97. ln -s '/usr/lib/systemd/system/ntpd.service' '/etc/systemd/system/multi-user.target.wants/ntpd.service'
  98. Done
  99. 2.8 ntpd autostart workaround
  100. echo "systemctl start ntpd" >> /etc/rc.d/rc.local && chmod +x /etc/rc.d/rc.local
  101. Done
  102. 2.9 ntpd start
  103. systemctl start ntpd
  104. Done
  105. 3 Installing on the master host - (Wed, 22 Apr 2015 07:48:19 -0400)
  106. 3.1 Install Control Center, Zenoss Core, and Docker
  107. yum --enablerepo=zenoss-stable install -y zenoss-core-service
  108. Loaded plugins: fastestmirror, langpacks
  109. zenoss-stable | 2.9 kB 00:00:00
  110. zenoss-stable/primary_db | 8.1 kB 00:00:00
  111. Loading mirror speeds from cached hostfile
  112. * base: mirror.dhakacom.com
  113. * extras: mirror-fpt-telecom.fpt.net
  114. * updates: mirror.dhakacom.com
  115. Resolving Dependencies
  116. --> Running transaction check
  117. ---> Package zenoss-core-service.noarch 0:5.0.2-2 will be installed
  118. --> Processing Dependency: serviced for package: zenoss-core-service-5.0.2-2.noarch
  119. --> Running transaction check
  120. ---> Package serviced.x86_64 0:1.0.2-1 will be installed
  121. --> Processing Dependency: zenoss-docker = 1.5.0 for package: serviced-1.0.2-1.x86_64
  122. --> Running transaction check
  123. ---> Package zenoss-docker.x86_64 0:1.5.0-2 will be installed
  124. --> Finished Dependency Resolution
  125.  
  126. Dependencies Resolved
  127.  
  128. ========================================================================================================================================================================
  129. Package Arch Version Repository Size
  130. ========================================================================================================================================================================
  131. Installing:
  132. zenoss-core-service noarch 5.0.2-2 zenoss-stable 74 k
  133. Installing for dependencies:
  134. serviced x86_64 1.0.2-1 zenoss-stable 15 M
  135. zenoss-docker x86_64 1.5.0-2 zenoss-stable 4.3 M
  136.  
  137. Transaction Summary
  138. ========================================================================================================================================================================
  139. Install 1 Package (+2 Dependent packages)
  140.  
  141. Total download size: 19 M
  142. Installed size: 74 M
  143. Downloading packages:
  144. warning: /var/cache/yum/x86_64/7/zenoss-stable/packages/zenoss-core-service-5.0.2-2.noarch.rpm: Header V4 DSA/SHA1 Signature, key ID aa5a1ad7: NOKEY 0 B --:--:-- ETA
  145. Public key for zenoss-core-service-5.0.2-2.noarch.rpm is not installed
  146. (1/3): zenoss-core-service-5.0.2-2.noarch.rpm | 74 kB 00:00:00
  147. (2/3): zenoss-docker-1.5.0-2.x86_64.rpm | 4.3 MB 00:00:03
  148. (3/3): serviced-1.0.2-1.x86_64.rpm | 15 MB 00:00:04
  149. ------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  150. Total 4.0 MB/s | 19 MB 00:00:04
  151. Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-ZENOSS
  152. Importing GPG key 0xAA5A1AD7:
  153. Userid : "Zenoss, Inc. <[email protected]>"
  154. Fingerprint: f31f fd84 6a23 b3d5 981d a728 ed0a 5fd2 aa5a 1ad7
  155. Package : zenoss-repo-1-1.x86_64 (installed)
  156. From : /etc/pki/rpm-gpg/RPM-GPG-KEY-ZENOSS
  157. Running transaction check
  158. Running transaction test
  159. Transaction test succeeded
  160. Running transaction
  161. Warning: RPMDB altered outside of yum.
  162. Installing : zenoss-docker-1.5.0-2.x86_64 1/3
  163. Installing : serviced-1.0.2-1.x86_64 2/3
  164. Installing : zenoss-core-service-5.0.2-2.noarch 3/3
  165. Verifying : zenoss-docker-1.5.0-2.x86_64 1/3
  166. Verifying : serviced-1.0.2-1.x86_64 2/3
  167. Verifying : zenoss-core-service-5.0.2-2.noarch 3/3
  168.  
  169. Installed:
  170. zenoss-core-service.noarch 0:5.0.2-2
  171.  
  172. Dependency Installed:
  173. serviced.x86_64 0:1.0.2-1 zenoss-docker.x86_64 0:1.5.0-2
  174.  
  175. Complete!
  176. Done
  177. 3.2 Start Docker
  178. systemctl enable docker && systemctl start docker
  179. Done
  180. 3.3 Identify the IPv4 address and subnet of Docker
  181. ip addr | grep -A 2 'docker0:' | grep inet | awk '{print $2}' | awk -F'/' '{print $1}'
  182. Done
  183. 3.4 Add the Btrfs and DNS flags to the Docker startup options
  184. sed -i -e "\|^DOCKER_OPTS=\"-s btrfs --dns=|d" /etc/sysconfig/docker
  185. echo "DOCKER_OPTS=\"-s btrfs --dns=$docker_ip\"" >> /etc/sysconfig/docker
  186. Done
  187. 3.5 Creating user ccuser for Control Center (serviced) management
  188. id -u ccuser
  189. id: ccuser: no such user
  190. adduser -M -c 'Management user for Control Center (serviced)' ccuser
  191. usermod -aG wheel ccuser
  192. Done
  193. 3.6 Stop and restart Docker
  194. systemctl stop docker && systemctl start docker
  195. Done
  196. Editing /etc/default/serviced on CC master
  197. 3.7 Change the volume type for application data
  198. sed -i."112-074845" -e 's|^#[^S]*\(SERVICED_FS_TYPE=\).*$|\1btrfs|' /etc/default/serviced
  199. Done
  200. 3.8 rpcbind workaround
  201. systemctl status rpcbind &>/dev/null
  202. 3.9 Start the Control Center service
  203. systemctl enable serviced && systemctl start serviced
  204. Done
  205. 4 Zenoss Core 5 deployement - (Wed, 22 Apr 2015 07:48:46 -0400)
  206. 4.1 Adding current host to the default resource pool
  207. Please be patient, because docker image zenoss/serviced-isvcs must be downloaded before first start.
  208. You can check progress in new console: journalctl -u serviced -f -a
  209. Script is trying to check status every 10s. Timeout for this step is 15 minutes.
  210. serviced host list 2>&1
  211. could not create a client to the master: dial tcp 10.1.1.1:4979: connection refused
  212. #1: 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. #2: 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. #3: 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. #4: 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. #5: 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. #6: 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. #7: 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. #8: 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. #9: 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. #10: 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. #11: 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. #12: 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. #13: 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. #14: 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. #15: 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. #16: 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. #17: 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. #18: 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. #19: 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. #20: 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. #21: 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. #22: 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. #23: 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. #24: 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. #25: 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. #26: 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. #27: 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. #28: 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. #29: 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. #30: 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. #31: 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. #32: 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. #33: 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. #34: 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. #35: 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. #36: 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. #37: 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. #38: 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. #39: 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. #40: 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. #41: 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. #42: 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. #43: 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. #44: 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. #45: 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. #46: 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. #47: 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. #48: 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. #49: 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. #50: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
  311. rpc: can't find service Master.GetHosts
  312. #51: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
  313. rpc: can't find service Master.GetHosts
  314. #52: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
  315. rpc: can't find service Master.GetHosts
  316. #53: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
  317. rpc: can't find service Master.GetHosts
  318. #54: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
  319. rpc: can't find service Master.GetHosts
  320. #55: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
  321. rpc: can't find service Master.GetHosts
  322. #56: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
  323. rpc: can't find service Master.GetHosts
  324. #57: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
  325. rpc: can't find service Master.GetHosts
  326. #58: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
  327. rpc: can't find service Master.GetHosts
  328. #59: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
  329. rpc: can't find service Master.GetHosts
  330. #60: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
  331. rpc: can't find service Master.GetHosts
  332. #61: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
  333. rpc: can't find service Master.GetHosts
  334. #62: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
  335. rpc: can't find service Master.GetHosts
  336. #63: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
  337. rpc: can't find service Master.GetHosts
  338. #64: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
  339. rpc: can't find service Master.GetHosts
  340. #65: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
  341. rpc: can't find service Master.GetHosts
  342. #66: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
  343. rpc: can't find service Master.GetHosts
  344. #67: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
  345. rpc: can't find service Master.GetHosts
  346. #68: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
  347. rpc: can't find service Master.GetHosts
  348. #69: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
  349. rpc: can't find service Master.GetHosts
  350. #70: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
  351. rpc: can't find service Master.GetHosts
  352. #71: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
  353. rpc: can't find service Master.GetHosts
  354. #72: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
  355. rpc: can't find service Master.GetHosts
  356. #73: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
  357. rpc: can't find service Master.GetHosts
  358. #74: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
  359. rpc: can't find service Master.GetHosts
  360. #75: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
  361. rpc: can't find service Master.GetHosts
  362. #76: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
  363. rpc: can't find service Master.GetHosts
  364. #77: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
  365. rpc: can't find service Master.GetHosts
  366. #78: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
  367. rpc: can't find service Master.GetHosts
  368. #79: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
  369. rpc: can't find service Master.GetHosts
  370. #80: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
  371. rpc: can't find service Master.GetHosts
  372. #81: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
  373. rpc: can't find service Master.GetHosts
  374. #82: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
  375. rpc: can't find service Master.GetHosts
  376. #83: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
  377. rpc: can't find service Master.GetHosts
  378. #84: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
  379. rpc: can't find service Master.GetHosts
  380. #85: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
  381. rpc: can't find service Master.GetHosts
  382. #86: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
  383. rpc: can't find service Master.GetHosts
  384. #87: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
  385. rpc: can't find service Master.GetHosts
  386. #88: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
  387. rpc: can't find service Master.GetHosts
  388. #89: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
  389. echo "rpc: can't find service Master.GetHosts" | wc -l
  390. Problem with adding a host - check output from test: rpc: can't find service Master.GetHosts
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement