Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Auto Deploy script path : https://github.com/jangaraj/zenoss5-core-autodeploy
- Auto Deploy script Output :./core-autodeploy.sh
- Autodeploy script 2015-04-13 for Control Center master host and Zenoss Core 5/Zenoss Resource Manager 5
- Install guide: http://wiki.zenoss.org/download/core/docs/Zenoss_Core_Installation_Guide_r5.0.0_latest.pdf
- Requirements:
- Min number of available CPUs: 4
- Min size of available RAM: 20GB
- These filesystems must be mounted with correct type and size:
- Filesystem Type Min size
- / xfs 30GB
- /var/lib/docker btrfs 30GB
- /opt/serviced/var xfs 30GB
- /opt/serviced/var/volumes btrfs 1GB
- /opt/serviced/var/backups xfs 1GB
- 1 Checks - (Tue, 21 Apr 2015 01:23:28 -0400)
- 1.1 Root permission check
- Done
- 1.2 Architecture check
- Done
- 1.3 OS version check
- Done
- 1.4 CPU check
- Only 1 CPUs have been detected, but at least 4 are required. Do you want to continue (y/n)?
- y
- ... continuing
- 1.5 RAM check
- Only 15 GB of RAM has been detected, but at least 20GB is recommended. Do you want to continue (y/N)?
- y
- ... continuing
- 1.6 / filesystem check
- / filesystem size is less than required 30GB. Do you want to continue (y/N)?
- y
- ... continuing
- 1.7 /var/lib/docker filesystem check
- Done
- 1.8 /opt/serviced/var filesystem check
- Done
- 1.9 /opt/serviced/var/volumes filesystem check
- Done
- 1.10 /opt/serviced/var/backups filesystem check
- /opt/serviced/var/backups filesystem was not detected
- Do you want to continue (y/n)?
- y
- ... continuing
- 2 Preparing the host - (Tue, 21 Apr 2015 01:24:03 -0400)
- 2.1 IP configurations
- Detected interface: ens160
- Hostname: hostname
- X.X.X.X hostname
- Public IPv4: X.X.X.X
- Private IPv4: X.X.X.X
- Done
- 2.2 Disable the firewall
- systemctl stop firewalld && systemctl disable firewalld
- Done
- 2.3 Enable persistent storage for log files
- mkdir -p /var/log/journal && systemctl restart systemd-journald
- Done
- 2.4 Disable selinux
- Done - disabled already
- 2.5 Download and install the Zenoss repository package
- rpm -ivh http://get.zenoss.io/yum/zenoss-repo-1-1.x86_64.rpm
- Retrieving http://get.zenoss.io/yum/zenoss-repo-1-1.x86_64.rpm
- Preparing... ########################################
- package zenoss-repo-1-1.x86_64 is already installed
- Done
- 2.6 Install and start the dnsmasq package
- yum install -y dnsmasq && systemctl enable dnsmasq && systemctl start dnsmasq
- Loaded plugins: fastestmirror, langpacks
- base | 3.6 kB 00:00:00
- extras | 3.4 kB 00:00:00
- updates | 3.4 kB 00:00:00
- (1/4): extras/7/x86_64/primary_db | 41 kB 00:00:01
- (2/4): base/7/x86_64/group_gz | 154 kB 00:00:01
- (3/4): updates/7/x86_64/primary_db | 957 kB 00:00:02
- (4/4): base/7/x86_64/primary_db | 5.1 MB 00:00:03
- Determining fastest mirrors
- * base: mirror-fpt-telecom.fpt.net
- * extras: mirrors.vhost.vn
- * updates: mirrors.vhost.vn
- Package dnsmasq-2.66-13.el7_1.x86_64 already installed and latest version
- Nothing to do
- Done
- 2.7 Install and start the ntp package
- yum install -y ntp && systemctl enable ntpd
- Loaded plugins: fastestmirror, langpacks
- Loading mirror speeds from cached hostfile
- * base: mirror-fpt-telecom.fpt.net
- * extras: mirrors.vhost.vn
- * updates: mirrors.vhost.vn
- Package ntp-4.2.6p5-19.el7.centos.x86_64 already installed and latest version
- Nothing to do
- Done
- 2.8 ntpd autostart workaround
- echo "systemctl start ntpd" >> /etc/rc.d/rc.local && chmod +x /etc/rc.d/rc.local
- Done
- 2.9 ntpd start
- systemctl start ntpd
- Done
- 3 Installing on the master host - (Tue, 21 Apr 2015 01:24:24 -0400)
- 3.1 Install Control Center, Zenoss Core, and Docker
- yum --enablerepo=zenoss-stable install -y zenoss-core-service
- Loaded plugins: fastestmirror, langpacks
- zenoss-stable | 2.9 kB 00:00:00
- zenoss-stable/primary_db | 8.1 kB 00:00:00
- Loading mirror speeds from cached hostfile
- * base: mirror-fpt-telecom.fpt.net
- * extras: mirrors.vhost.vn
- * updates: mirrors.vhost.vn
- Resolving Dependencies
- --> Running transaction check
- ---> Package zenoss-core-service.noarch 0:5.0.1-6 will be updated
- ---> Package zenoss-core-service.noarch 0:5.0.2-2 will be an update
- --> Finished Dependency Resolution
- Dependencies Resolved
- ========================================================================================================================================================================
- Package Arch Version Repository Size
- ========================================================================================================================================================================
- Updating:
- zenoss-core-service noarch 5.0.2-2 zenoss-stable 74 k
- Transaction Summary
- ========================================================================================================================================================================
- Upgrade 1 Package
- Total download size: 74 k
- Downloading packages:
- Delta RPMs disabled because /usr/bin/applydeltarpm not installed.
- zenoss-core-service-5.0.2-2.noarch.rpm | 74 kB 00:00:01
- Running transaction check
- Running transaction test
- Transaction test succeeded
- Running transaction
- Updating : zenoss-core-service-5.0.2-2.noarch 1/2
- Cleanup : zenoss-core-service-5.0.1-6.noarch 2/2
- Verifying : zenoss-core-service-5.0.2-2.noarch 1/2
- Verifying : zenoss-core-service-5.0.1-6.noarch 2/2
- Updated:
- zenoss-core-service.noarch 0:5.0.2-2
- Complete!
- Done
- 3.2 Start Docker
- systemctl enable docker && systemctl start docker
- Done
- 3.3 Identify the IPv4 address and subnet of Docker
- ip addr | grep -A 2 'docker0:' | grep inet | awk '{print $2}' | awk -F'/' '{print $1}'
- Done
- 3.4 Add the Btrfs and DNS flags to the Docker startup options
- sed -i -e "\|^DOCKER_OPTS=\"-s btrfs --dns=|d" /etc/sysconfig/docker
- echo "DOCKER_OPTS=\"-s btrfs --dns=$docker_ip\"" >> /etc/sysconfig/docker
- Done
- 3.5 Creating user ccuser for Control Center (serviced) management
- id -u ccuser
- 1002
- User already exists
- Done
- 3.6 Stop and restart Docker
- systemctl stop docker && systemctl start docker
- Done
- Editing /etc/default/serviced on CC master
- 3.7 Change the volume type for application data
- sed -i."111-012432" -e 's|^#[^S]*\(SERVICED_FS_TYPE=\).*$|\1btrfs|' /etc/default/serviced
- Done
- 3.8 rpcbind workaround
- systemctl status rpcbind &>/dev/null
- 3.9 Start the Control Center service
- systemctl enable serviced && systemctl start serviced
- Done
- 4 Zenoss Core 5 deployement - (Tue, 21 Apr 2015 01:24:34 -0400)
- 4.1 Adding current host to the default resource pool
- Please be patient, because docker image zenoss/serviced-isvcs must be downloaded before first start.
- You can check progress in new console: journalctl -u serviced -f -a
- Script is trying to check status every 10s. Timeout for this step is 15 minutes.
- serviced host list 2>&1
- could not create a client to the master: dial tcp X.X.X.X:4979: connection refused
- #1: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
- rpc: can't find service Master.GetHosts
- #2: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
- rpc: can't find service Master.GetHosts
- #3: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
- rpc: can't find service Master.GetHosts
- #4: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
- rpc: can't find service Master.GetHosts
- #5: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
- rpc: can't find service Master.GetHosts
- #6: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
- rpc: can't find service Master.GetHosts
- #7: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
- rpc: can't find service Master.GetHosts
- #8: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
- rpc: can't find service Master.GetHosts
- #9: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
- rpc: can't find service Master.GetHosts
- #10: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
- rpc: can't find service Master.GetHosts
- #11: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
- rpc: can't find service Master.GetHosts
- #12: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
- rpc: can't find service Master.GetHosts
- #13: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
- rpc: can't find service Master.GetHosts
- #14: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
- rpc: can't find service Master.GetHosts
- #15: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
- rpc: can't find service Master.GetHosts
- #16: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
- rpc: can't find service Master.GetHosts
- #17: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
- rpc: can't find service Master.GetHosts
- #18: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
- rpc: can't find service Master.GetHosts
- #19: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
- rpc: can't find service Master.GetHosts
- #20: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
- rpc: can't find service Master.GetHosts
- #21: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
- rpc: can't find service Master.GetHosts
- #22: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
- rpc: can't find service Master.GetHosts
- #23: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
- rpc: can't find service Master.GetHosts
- #24: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
- rpc: can't find service Master.GetHosts
- #25: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
- rpc: can't find service Master.GetHosts
- #26: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
- rpc: can't find service Master.GetHosts
- #27: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
- rpc: can't find service Master.GetHosts
- #28: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
- rpc: can't find service Master.GetHosts
- #29: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
- rpc: can't find service Master.GetHosts
- #30: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
- rpc: can't find service Master.GetHosts
- #31: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
- rpc: can't find service Master.GetHosts
- #32: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
- rpc: can't find service Master.GetHosts
- #33: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
- rpc: can't find service Master.GetHosts
- #34: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
- rpc: can't find service Master.GetHosts
- #35: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
- rpc: can't find service Master.GetHosts
- #36: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
- rpc: can't find service Master.GetHosts
- #37: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
- rpc: can't find service Master.GetHosts
- #38: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
- rpc: can't find service Master.GetHosts
- #39: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
- rpc: can't find service Master.GetHosts
- #40: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
- rpc: can't find service Master.GetHosts
- #41: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
- rpc: can't find service Master.GetHosts
- #42: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
- rpc: can't find service Master.GetHosts
- #43: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
- rpc: can't find service Master.GetHosts
- #44: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
- rpc: can't find service Master.GetHosts
- #45: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
- rpc: can't find service Master.GetHosts
- #46: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
- rpc: can't find service Master.GetHosts
- #47: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
- rpc: can't find service Master.GetHosts
- #48: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
- rpc: can't find service Master.GetHosts
- #49: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
- rpc: can't find service Master.GetHosts
- #50: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
- rpc: can't find service Master.GetHosts
- #51: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
- rpc: can't find service Master.GetHosts
- #52: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
- rpc: can't find service Master.GetHosts
- #53: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
- rpc: can't find service Master.GetHosts
- #54: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
- rpc: can't find service Master.GetHosts
- #55: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
- rpc: can't find service Master.GetHosts
- #56: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
- rpc: can't find service Master.GetHosts
- #57: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
- rpc: can't find service Master.GetHosts
- #58: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
- rpc: can't find service Master.GetHosts
- #59: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
- rpc: can't find service Master.GetHosts
- #60: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
- rpc: can't find service Master.GetHosts
- #61: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
- rpc: can't find service Master.GetHosts
- #62: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
- rpc: can't find service Master.GetHosts
- #63: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
- rpc: can't find service Master.GetHosts
- #64: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
- rpc: can't find service Master.GetHosts
- #65: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
- rpc: can't find service Master.GetHosts
- #66: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
- could not create a client to the master: dial tcp X.X.X.X:4979: connection refused
- #67: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
- could not create a client to the master: dial tcp X.X.X.X:4979: connection refused
- #68: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
- could not create a client to the master: dial tcp X.X.X.X:4979: connection refused
- #69: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
- could not create a client to the master: dial tcp X.X.X.X:4979: connection refused
- #70: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
- could not create a client to the master: dial tcp X.X.X.X:4979: connection refused
- #71: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
- could not create a client to the master: dial tcp X.X.X.X:4979: connection refused
- #72: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
- could not create a client to the master: dial tcp X.X.X.X:4979: connection refused
- #73: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
- could not create a client to the master: dial tcp X.X.X.X:4979: connection refused
- #74: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
- could not create a client to the master: dial tcp X.X.X.X:4979: connection refused
- #75: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
- could not create a client to the master: dial tcp X.X.X.X:4979: connection refused
- #76: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
- could not create a client to the master: dial tcp X.X.X.X:4979: connection refused
- #77: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
- could not create a client to the master: dial tcp X.X.X.X:4979: connection refused
- #78: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
- could not create a client to the master: dial tcp X.X.X.X:4979: connection refused
- #79: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
- could not create a client to the master: dial tcp X.X.X.X:4979: connection refused
- #80: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
- could not create a client to the master: dial tcp X.X.X.X:4979: connection refused
- #81: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
- could not create a client to the master: dial tcp X.X.X.X:4979: connection refused
- #82: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
- could not create a client to the master: dial tcp X.X.X.X:4979: connection refused
- #83: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
- could not create a client to the master: dial tcp X.X.X.X:4979: connection refused
- #84: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
- could not create a client to the master: dial tcp X.X.X.X:4979: connection refused
- #85: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
- could not create a client to the master: dial tcp X.X.X.X:4979: connection refused
- #86: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
- could not create a client to the master: dial tcp X.X.X.X:4979: connection refused
- #87: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
- could not create a client to the master: dial tcp X.X.X.X:4979: connection refused
- #88: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
- could not create a client to the master: dial tcp X.X.X.X:4979: connection refused
- #89: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
- echo "could not create a client to the master: dial tcp X.X.X.X:4979: connection refused" | wc -l
- 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