您的位置:首页 > 运维架构

Ceph Calamari监控配置

2018-03-19 08:37 316 查看
操作系统版本Centos6.5-mini搭建本地yum环境,省略。。。。。。
搭建Ceph Yum源环境:[root@calamari ~]# cd /etc/yum.repos.d/[root@calamari yum.repos.d]# cat ceph-deploy.repo [ceph-noarch]name=Ceph noarch packagesbaseurl=http://download.ceph.com/rpm-hammer/el6/noarch/enabled=1gpgcheck=1type=rpm-mdgpgkey=https://download.ceph.com/keys/release.asc
修改host配置文件:[root@node01 ~]# vim /etc/host192.168.60.11 mm1
安装ceph-deploy:[root@node01 ~]# yum install ceph-deploy
开始安装:1、安装http:[root@node01 httpd]# yum install unzip wget[root@node01 httpd]# rpm -ivh apr-*.*Preparing... ########################################### [100%] 1:apr ##################################
4000
######### [ 33%] 2:apr-util ########################################### [ 67%] 3:apr-util-ldap ########################################### [100%][root@node01 httpd]# rpm -ivh httpd-tools-2.2.15-45.el6.centos.x86_64.rpm Preparing... ########################################### [100%] 1:httpd-tools ########################################### [100%][root@node01 httpd]# yum install mailcap[root@calamari httpd]# rpm -ivh httpd-2.2.15-45.el6.centos.x86_64.rpm Preparing... ########################################### [100%] 1:httpd ########################################### [100%][root@calamari httpd]# rpm -ivh mod_wsgi-3.2-7.el6.x86_64.rpm Preparing... ########################################### [100%] 1:mod_wsgi ########################################### [100%][root@calamari httpd]# cd ..
2、安装postgresql:[root@calamari calamariserver]# cd postgresql/[root@calamari postgresql]# rpm -ivh postgresql-*.*Preparing... ########################################### [100%] 1:postgresql-libs ########################################### [ 33%] 2:postgresql ########################################### [ 67%] 3:postgresql-server ########################################### [100%][root@calamari postgresql]# cd ..
3、安装supervisor:[root@calamari calamariserver]# cd supervisor/[root@calamari supervisor]# rpm -ivh python-meld3-0.6.7-1.el6.x86_64.rpm warning: python-meld3-0.6.7-1.el6.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID 0608b895: NOKEYPreparing... ########################################### [100%] 1:python-meld3 ########################################### [100%][root@calamari supervisor]# yum install python-setuptools[root@calamari supervisor]# rpm -ivh supervisor-3.0-13.1.noarch.rpm warning: supervisor-3.0-13.1.noarch.rpm: Header V3 DSA/SHA1 Signature, key ID 95f553b2: NOKEYPreparing... ########################################### [100%] 1:supervisor ########################################### [100%][root@calamari supervisor]# cd ..
4、安装salt-master[root@calamari calamariserver]# cd salt-master/[root@calamari salt-master]# yum install python-ordereddict[root@calamari salt-master]# rpm -ivh libyaml-0.1.3-4.el6.x86_64.rpm warning: libyaml-0.1.3-4.el6.x86_64.rpm: Header V4 RSA/SHA1 Signature, key ID de57bfbe: NOKEYPreparing... ########################################### [100%] 1:libyaml ########################################### [100%][root@calamari salt-master]# rpm -ivh python-babel-0.9.4-5.1.el6.noarch.rpm Preparing... ########################################### [100%] 1:python-babel ########################################### [100%][root@calamari salt-master]# rpm -ivh python-backports-1.0-5.el6.x86_64.rpm warning: python-backports-1.0-5.el6.x86_64.rpm: Header V4 RSA/SHA1 Signature, key ID de57bfbe: NOKEYPreparing... ########################################### [100%] 1:python-backports ########################################### [100%][root@calamari salt-master]# rpm -ivh python-backports-ssl_match_hostname-3.4.0.2-2.el6.noarch.rpm warning: python-backports-ssl_match_hostname-3.4.0.2-2.el6.noarch.rpm: Header V4 RSA/SHA1 Signature, key ID de57bfbe: NOKEYPreparing... ########################################### [100%] 1:python-backports-ssl_ma########################################### [100%][root@calamari salt-master]# rpm -ivh python-chardet-2.2.1-1.el6.noarch.rpm Preparing... ########################################### [100%] 1:python-chardet ########################################### [100%][root@calamari salt-master]# rpm -ivh python-crypto-2.6.1-2.el6.x86_64.rpmwarning: python-crypto-2.6.1-2.el6.x86_64.rpm: Header V4 RSA/SHA1 Signature, key ID de57bfbe: NOKEYPreparing... ########################################### [100%] 1:python-crypto ########################################### [100%][root@calamari salt-master]# rpm -ivh python-futures-3.0.3-1.el6.noarch.rpm warning: python-futures-3.0.3-1.el6.noarch.rpm: Header V4 RSA/SHA1 Signature, key ID de57bfbe: NOKEYPreparing... ########################################### [100%] 1:python-futures ########################################### [100%][root@calamari salt-master]# rpm -ivh python-jinja2-2.2.1-2.el6_5.x86_64.rpm Preparing... ########################################### [100%] 1:python-jinja2 ########################################### [100%][root@calamari salt-master]# rpm -ivh python-markupsafe-0.11-10.el6.x86_64.rpm warning: python-markupsafe-0.11-10.el6.x86_64.rpm: Header V4 RSA/SHA1 Signature, key ID de57bfbe: NOKEYPreparing... ########################################### [100%] 1:python-markupsafe ########################################### [100%][root@calamari salt-master]# rpm -ivh python-msgpack-0.4.6-1.el6.x86_64.rpm warning: python-msgpack-0.4.6-1.el6.x86_64.rpm: Header V4 RSA/SHA1 Signature, key ID de57bfbe: NOKEYPreparing... ########################################### [100%] 1:python-msgpack ########################################### [100%][root@calamari salt-master]# yum install python-urllib3[root@calamari salt-master]# rpm -ivh python-requests-1.1.0-3.el6.noarch.rpm warning: python-requests-1.1.0-3.el6.noarch.rpm: Header V4 RSA/SHA1 Signature, key ID de57bfbe: NOKEYPreparing... ########################################### [100%] 1:python-requests ########################################### [100%][root@calamari salt-master]# rpm -ivh PyYAML-3.11-1.el6.x86_64.rpm warning: PyYAML-3.11-1.el6.x86_64.rpm: Header V4 RSA/SHA1 Signature, key ID de57bfbe: NOKEYPreparing... ########################################### [100%] 1:PyYAML ########################################### [100%][root@calamari salt-master]# rpm -ivh python-tornado-4.2.1-1.el6.x86_64.rpm warning: python-tornado-4.2.1-1.el6.x86_64.rpm: Header V4 RSA/SHA1 Signature, key ID de57bfbe: NOKEYPreparing... ########################################### [100%] 1:python-tornado ########################################### [100%][root@calamari salt-master]# rpm -ivh zeromq-4.0.5-4.el6.x86_64.rpm warning: zeromq-4.0.5-4.el6.x86_64.rpm: Header V4 RSA/SHA1 Signature, key ID de57bfbe: NOKEYPreparing...
ec8a
########################################### [100%] 1:zeromq ########################################### [100%][root@calamari salt-master]# rpm -ivh python-zmq-14.5.0-2.el6.x86_64.rpm warning: python-zmq-14.5.0-2.el6.x86_64.rpm: Header V4 RSA/SHA1 Signature, key ID de57bfbe: NOKEYPreparing... ########################################### [100%] 1:python-zmq ########################################### [100%][root@calamari salt-master]# yum install pciutils[root@calamari salt-master]# yum install yum-utils[root@calamari salt-master]# rpm -ivh salt-2015.8.3-1.el6.noarch.rpm warning: salt-2015.8.3-1.el6.noarch.rpm: Header V4 RSA/SHA1 Signature, key ID de57bfbe: NOKEYPreparing... ########################################### [100%] 1:salt ########################################### [100%][root@calamari salt-master]# rpm -ivh salt-master-2015.8.3-1.el6.noarch.rpm warning: salt-master-2015.8.3-1.el6.noarch.rpm: Header V4 RSA/SHA1 Signature, key ID de57bfbe: NOKEYPreparing... ########################################### [100%] 1:salt-master ########################################### [100%][root@calamari salt-master]# cd ..
5、安装salt-minion:[root@calamari calamariserver]# cd salt-minion/[root@calamari salt-minion]# rpm -ivh salt-minion-2015.8.3-1.el6.noarch.rpm warning: salt-minion-2015.8.3-1.el6.noarch.rpm: Header V4 RSA/SHA1 Signature, key ID de57bfbe: NOKEYPreparing... ########################################### [100%] 1:salt-minion ########################################### [100%]
6、安装calamari-server:[root@calamari calamariserver]# yum install cairo[root@calamari calamariserver]# yum install pycairo[root@calamari calamariserver]# yum install redhat-lsb-core[root@calamari calamariserver]# rpm -ivh calamari-server-1.3.1.1-105_g79c8df2.el6.x86_64.rpm Preparing... ########################################### [100%] 1:calamari-server ########################################### [100%]setsebool: SELinux is disabled.setsebool: SELinux is disabled.Stopping salt-master daemon: [FAILED]Starting salt-master daemon: [ OK ]Stopping supervisord: ERROR: unix:///var/tmp/supervisor.sock no such file (already shut down?)Waiting roughly 60 seconds for /var/run/supervisord.pid to be removed after child processes exitSupervisord exited as expected in under secondsStarting supervisord: carbon-cache STARTING cthulhu STARTING Stopping httpd: [FAILED]Starting httpd: [Mon May 08 09:33:36 2017] [warn] module wsgi_module is already loaded, skippinghttpd: apr_sockaddr_info_get() failed for node01httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName[ OK ]Thank you for installing Calamari.
Please run 'calamari-ctl initialize' as root to complete the installation.[root@calamari calamariserver]# rpm -ivh romana-1.2.2-36_gc62bb5b.el6.x86_64.rpm Preparing... ########################################### [100%] 1:romana ########################################### [100%][root@calamari calamariserver]# chmod 777 -R /var/log/calamari/[root@calamari calamariserver]# chmod 777 -R /opt/calamari
7、启动:[root@calamari calamariserver]# calamari-ctl initialize[INFO] Loading configuration..[INFO] Starting/enabling salt...[INFO] Starting/enabling postgres...[INFO] Initializing database...[INFO] You will now be prompted for login details for the administrative user account. This is the account you will use to log into the web interface once setup is complete.Username (leave blank to use 'root'): root 标注:登录帐号Email address: surdocError: Enter a valid email address.Email address: 274558016@qq.com 标注:邮箱地址Password: surdoc 标注:登录密码Password (again): surdoc 标注:确认登录密码Superuser created successfully.[INFO] Initializing web interface...[INFO] Starting/enabling services...[INFO] Restarting services...[INFO] Complete.
重新启动httpd:[root@calamari calamariserver]# /etc/init.d/httpd stopStopping httpd: [ OK ][root@calamari calamariserver]# /etc/init.d/httpd startStarting httpd: [Mon May 08 09:45:30 2017] [warn] module wsgi_module is already loaded, skippinghttpd: apr_sockaddr_info_get() failed for node01httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName [ OK ]验证登录ceph监控平台:
8、calamari管理平台汉化:[root@calamari calamariserver]# vim /opt/calamari/webapp/content/login/index.html 25 <h3>Calamari Console</h3>替换 25 <h3>Calamari 管理平台</h3>验证结果:
9、修改配置文件:[root@calamari ~]# vim /etc/salt/masterinterface: 192.168.60.15auto_accept: True
[root@calamari calamariserver]# ceph-deploy calamari connect mm1[ceph_deploy.conf][DEBUG ] found configuration file at: /root/.cephdeploy.conf[ceph_deploy.cli][INFO ] Invoked (1.5.37): /usr/bin/ceph-deploy calamari connect mm1[ceph_deploy.cli][INFO ] ceph-deploy options:[ceph_deploy.cli][INFO ] username : None[ceph_deploy.cli][INFO ] verbose : False[ceph_deploy.cli][INFO ] overwrite_conf : False[ceph_deploy.cli][INFO ] subcommand : connect[ceph_deploy.cli][INFO ] quiet : False[ceph_deploy.cli][INFO ] cd_conf : <ceph_deploy.conf.cephdeploy.Conf instance at 0x7f56bd9b50e0>[ceph_deploy.cli][INFO ] cluster : ceph[ceph_deploy.cli][INFO ] master : None[ceph_deploy.cli][INFO ] func : <function calamari at 0x7f56bd99a398>[ceph_deploy.cli][INFO ] ceph_conf : None[ceph_deploy.cli][INFO ] hosts : ['mm1'][ceph_deploy.cli][INFO ] default_release : Falseroot@mm1's password: root@mm1's password: [mm1][DEBUG ] connected to host: mm1 [mm1][DEBUG ] detect platform information from remote host[mm1][DEBUG ] detect machine type[ceph_deploy.calamari][INFO ] Distro info: CentOS 6.9 Final[ceph_deploy.calamari][INFO ] assuming that a repository with Calamari packages is already configured.[ceph_deploy.calamari][INFO ] Refer to the docs for examples (http://ceph.com/ceph-deploy/docs/conf.html)[mm1][DEBUG ] creating config dir: /etc/salt/minion.d[mm1][DEBUG ] creating the calamari salt config: /etc/salt/minion.d/calamari.conf[mm1][INFO ] Running command: yum -y install salt-minion[mm1][DEBUG ] Loaded plugins: fastestmirror, priorities[mm1][DEBUG ] Setting up Install Process[mm1][DEBUG ] Loading mirror speeds from cached hostfile[mm1][DEBUG ] * base: mirrors.btte.net[mm1][DEBUG ] * epel: ftp.cuhk.edu.hk[mm1][DEBUG ] * extras: mirrors.btte.net[mm1][DEBUG ] * updates: mirrors.btte.net[mm1][DEBUG ] Package matching salt-minion-2015.5.10-2.el6.noarch already installed. Checking for update.[mm1][DEBUG ] Nothing to do[mm1][INFO ] Running command: yum -y install diamond[mm1][DEBUG ] Loaded plugins: fastestmirror, priorities[mm1][DEBUG ] Setting up Install Process[mm1][DEBUG ] Loading mirror speeds from cached hostfile[mm1][DEBUG ] * base: mirrors.btte.net[mm1][DEBUG ] * epel: ftp.cuhk.edu.hk[mm1][DEBUG ] * extras: mirrors.btte.net[mm1][DEBUG ] * updates: mirrors.btte.net[mm1][DEBUG ] Nothing to do[mm1][INFO ] Running command: chkconfig salt-minion on[mm1][INFO ] Running command: service salt-minion start[mm1][DEBUG ] Starting salt-minion daemon: already runningError in sys.exitfunc:

配置认证服务:[root@calamari calamariserver]# salt-key -LAccepted Keys:node01Denied Keys:Unaccepted Keys:Rejected Keys:[root@calamari calamariserver]# salt-key -AThe key glob '*' does not match any unaccepted keys.
[root@calamari calamariserver]# /etc/init.d/salt-master restartStopping salt-master daemon: [ OK ]Starting salt-master daemon: [ OK ][root@calamari calamariserver]# /etc/init.d/salt-minion restartStopping salt-minion daemon: [ OK ]Starting salt-minion daemon: [ OK ]
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: