Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Autodeploy 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 - (Wed, 22 Apr 2015 07:47:43 -0400)
- 1.1 Root permission check
- Done
- 1.2 Architecture check
- Done
- 1.3 OS version check
- Done
- 1.4 CPU check
- Done
- 1.5 RAM check
- Only 19 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
- Done
- 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
- Done
- 2 Preparing the host - (Wed, 22 Apr 2015 07:47:46 -0400)
- 2.1 IP configurations
- Network interface auto detection failed. Available interfaces in your system:
- ens160 virbr0
- Please write interface, which you want to use for deployement (see listing above), e.g. eth1 or ens160:
- ens160
- ... continuing
- Hostname: mypc.com
- 10.1.1.1mypc.com montools-zenoss5
- Public IPv4: 10.1.1.1
- Private IPv4: 10.1.1.1
- Done
- 2.2 Disable the firewall
- systemctl stop firewalld && systemctl disable firewalld
- rm '/etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service'
- rm '/etc/systemd/system/basic.target.wants/firewalld.service'
- Done
- 2.3 Enable persistent storage for log files
- mkdir -p /var/log/journal && systemctl restart systemd-journald
- Done
- 2.4 Disable selinux
- sed -i."112-074803" -e 's/^SELINUX=.*/SELINUX=disabled/g' /etc/selinux/config && grep '^SELINUX=' /etc/selinux/config
- SELINUX=disabled
- Done
- 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... ########################################
- Updating / installing...
- zenoss-repo-1-1 ########################################
- 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:00
- (2/4): base/7/x86_64/group_gz | 154 kB 00:00:00
- (3/4): updates/7/x86_64/primary_db | 957 kB 00:00:00
- (4/4): base/7/x86_64/primary_db | 5.1 MB 00:00:05
- Determining fastest mirrors
- * base: mirror.dhakacom.com
- * extras: mirror-fpt-telecom.fpt.net
- * updates: mirror.dhakacom.com
- Package dnsmasq-2.66-13.el7_1.x86_64 already installed and latest version
- Nothing to do
- ln -s '/usr/lib/systemd/system/dnsmasq.service' '/etc/systemd/system/multi-user.target.wants/dnsmasq.service'
- 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.dhakacom.com
- * extras: mirror-fpt-telecom.fpt.net
- * updates: mirror.dhakacom.com
- Package ntp-4.2.6p5-19.el7.centos.x86_64 already installed and latest version
- Nothing to do
- ln -s '/usr/lib/systemd/system/ntpd.service' '/etc/systemd/system/multi-user.target.wants/ntpd.service'
- 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 - (Wed, 22 Apr 2015 07:48:19 -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.dhakacom.com
- * extras: mirror-fpt-telecom.fpt.net
- * updates: mirror.dhakacom.com
- Resolving Dependencies
- --> Running transaction check
- ---> Package zenoss-core-service.noarch 0:5.0.2-2 will be installed
- --> Processing Dependency: serviced for package: zenoss-core-service-5.0.2-2.noarch
- --> Running transaction check
- ---> Package serviced.x86_64 0:1.0.2-1 will be installed
- --> Processing Dependency: zenoss-docker = 1.5.0 for package: serviced-1.0.2-1.x86_64
- --> Running transaction check
- ---> Package zenoss-docker.x86_64 0:1.5.0-2 will be installed
- --> Finished Dependency Resolution
- Dependencies Resolved
- ========================================================================================================================================================================
- Package Arch Version Repository Size
- ========================================================================================================================================================================
- Installing:
- zenoss-core-service noarch 5.0.2-2 zenoss-stable 74 k
- Installing for dependencies:
- serviced x86_64 1.0.2-1 zenoss-stable 15 M
- zenoss-docker x86_64 1.5.0-2 zenoss-stable 4.3 M
- Transaction Summary
- ========================================================================================================================================================================
- Install 1 Package (+2 Dependent packages)
- Total download size: 19 M
- Installed size: 74 M
- Downloading packages:
- 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
- Public key for zenoss-core-service-5.0.2-2.noarch.rpm is not installed
- (1/3): zenoss-core-service-5.0.2-2.noarch.rpm | 74 kB 00:00:00
- (2/3): zenoss-docker-1.5.0-2.x86_64.rpm | 4.3 MB 00:00:03
- (3/3): serviced-1.0.2-1.x86_64.rpm | 15 MB 00:00:04
- ------------------------------------------------------------------------------------------------------------------------------------------------------------------------
- Total 4.0 MB/s | 19 MB 00:00:04
- Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-ZENOSS
- Importing GPG key 0xAA5A1AD7:
- Userid : "Zenoss, Inc. <[email protected]>"
- Fingerprint: f31f fd84 6a23 b3d5 981d a728 ed0a 5fd2 aa5a 1ad7
- Package : zenoss-repo-1-1.x86_64 (installed)
- From : /etc/pki/rpm-gpg/RPM-GPG-KEY-ZENOSS
- Running transaction check
- Running transaction test
- Transaction test succeeded
- Running transaction
- Warning: RPMDB altered outside of yum.
- Installing : zenoss-docker-1.5.0-2.x86_64 1/3
- Installing : serviced-1.0.2-1.x86_64 2/3
- Installing : zenoss-core-service-5.0.2-2.noarch 3/3
- Verifying : zenoss-docker-1.5.0-2.x86_64 1/3
- Verifying : serviced-1.0.2-1.x86_64 2/3
- Verifying : zenoss-core-service-5.0.2-2.noarch 3/3
- Installed:
- zenoss-core-service.noarch 0:5.0.2-2
- Dependency Installed:
- serviced.x86_64 0:1.0.2-1 zenoss-docker.x86_64 0:1.5.0-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
- id: ccuser: no such user
- adduser -M -c 'Management user for Control Center (serviced)' ccuser
- usermod -aG wheel ccuser
- 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."112-074845" -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 - (Wed, 22 Apr 2015 07:48:46 -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 10.1.1.1: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
- rpc: can't find service Master.GetHosts
- #67: 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
- #68: 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
- #69: 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
- #70: 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
- #71: 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
- #72: 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
- #73: 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
- #74: 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
- #75: 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
- #76: 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
- #77: 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
- #78: 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
- #79: 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
- #80: 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
- #81: 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
- #82: 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
- #83: 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
- #84: 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
- #85: 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
- #86: 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
- #87: 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
- #88: 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
- #89: This is not a problem, because Control Centre service is not fully started, I'm trying in 10 seconds
- echo "rpc: can't find service Master.GetHosts" | wc -l
- 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