inkscope手册

官方结构图:1)

1.1 配置本地repo

yum install -y createrepo
createrepo /root/inkscope-packaging/RPMS
 
cat > /etc/yum.repos.d/inkscope.repo <<'EOF'
[local]
name=My inkScope Repo  
baseurl=file:///root/inkscope-packaging/RPMS
enabled=1 
gpgcheck=0
EOF

1.2 安装依赖

yum install --nogpgcheck python-devel python-pip python-ceph
# 单独安装一个主机的话还需要安装的包
yum install ceph ceph-radosgw
# sysprobe依赖
pip install psutil

2.1 安装inkscope

# inkscope-cephrestapi 不安装,因为api采用wsgi方式
yum install -y inkscope-admviz inkscope-cephprobe inkscope-sysprobe inkscope-common python-flask-login flake8 pep8 pyflakes

2.2 安装mongodb

# install mongodb
yum install -y mongodb mongodb-server
sed -i 's/bind_ip = 127.0.0.1/bind_ip = 0.0.0.0/g' /etc/mongod.conf
systemctl start mongod.service
systemctl enable mongod.service
# check
netstat -tunlp|grep mongod

2.3 创建rest-api用户

ceph auth get-or-create client.restapi mds 'allow' osd 'allow *' mon 'allow *' > /etc/ceph/ceph.client.restapi.keyring
# 把这个keyring复制到inkscope系统节点,MON节点安装就不需要额外操作了
chmod 644 /etc/ceph/ceph.client.admin.keyring
chmod 644 /etc/ceph/ceph.client.restapi.keyring
 
cat>> /etc/ceph/ceph.conf <<'EOF'
[client.restapi]
    log_file = /dev/null
    keyring = /etc/ceph/ceph.client.restapi.keyring
EOF
 
# 重启ceph节点生效
systemctl restart ceph.target

2.4 配置ceph-rest-api

2.4.1 配置/etc/httpd/conf/httpd.conf

# 中间添加一条,因为inkscope的web 默认采用虚拟主机的方式使用了8080端口
Listen 8080

2.4.2 配置/etc/httpd/conf.d/inkScope.conf

修改ceph-rest-api的地址,这个地方是写的这台管理节点的地址和端口,因为本机实现了wsgi的方式的rest-api的接口,不是用的集群的5000的端口,而是直接使用web配置的8080的端口.

修改为:

ProxyPass /ceph-rest-api/ http://172.17.2.111:8080/ceph_rest_api/api/v0.1/

2.4.3 修改statusApp.js

# 修改一个文件,不然dashboard不出图.
vim /var/www/inkscope/inkscopeViz/scripts/statusApp.js
# 注释167行
167    //$scope.mdsmap.up_standby = data.output.mdsmap["up:standby"];

2.4.4 启动httpd服务

systemctl restart httpd
systemctl enable httpd

2.5 配置inkscope.conf

vim /opt/inkscope/etc/inkscope.conf
 
"ceph_rest_api": "172.17.2.111:8080",
"ceph_rest_api_subfolder": "ceph_rest_api",
"mongodb_host" : "172.17.2.111:",
"platform": "some_text_of_description",

/etc/init.d/cephprobe start
/etc/init.d/sysprobe start
ps aux|grep probe

安装相关包:

# 其他一般节点,复制RPM目录到本机,直接安装RPM包即可,就不通过本地repo了
yum install -y inkscope-sysprobe-1.4.0-2.CentOS-7.noarch.rpm inkscope-common-1.4.0-2.CentOS-7.noarch.rpm
# 将inkscope节点的inkscope.conf复制到其他节点
scp /opt/inkscope/etc/inkscope.conf 172.17.2.112:/opt/inkscope/etc/inkscope.conf
# 启动其他节点的sysprobe
/etc/init.d/sysprobe start
ps aux|grep probe

至此,通过以下URL进行inkscope的访问: http://172.17.2.111:8080/inkscopeViz/index.html


至此,除了radosgw的配置缺少外,其他的都配置好了… 官方截图

chrome不能显示inkscope的dashboard


1)
添加了httpd的功能解释.
  • storage/ceph/inkscope安装手册.txt
  • 最后更改: 2019/04/16 18:31
  • (外部编辑)