Ceph集群文档 集群架构: 环境: 10.200.51.4 admin、osd、mon作为管理和监控节点 10.200.51.9 osd、mds 10.200.51.10 osd、mds 10.200.51.113~client节点 ceph1作为管理,osd.mon节点。前三台新增硬盘 [root@ceph1 ~]# mkfs.xfs /dev/sdb meta-data=/dev/sdb isize=512 agcount=4, agsize=1310720 blks = sectsz=512 attr=2, projid32bit=1 = crc=1 finobt=0, sparse=0 data = bsize=4096 blocks=5242880, imaxpct=25 = sunit=0 swidth=0 blks naming =version 2 bsize=4096 ascii-ci=0 ftype=1 log =internal log bsize=4096 blocks=2560, version=2 = sectsz=512 sunit=0 blks.... ceph集群搭建 Linux
近来几天发现访问博客端文章间歇性报出502,一开始以为是solo博客端的配置问题,纠正排查后发现不是博客后台设置的问题。后来查看nginx的日志。发现如下报错: 2019/10/20 20:05:09 [error] 8539#0: *67 no live upstreams while connecting to upstream, client: 111.194.50.93, server: cjzshilong.cn, request: "GET /sw.js HTTP/1.1", upstream: "http://localhost/sw.js", host: "www.cjzshilong.cn", referrer: "www.cjzshilong.cn/sw.js" 2019/10/20 20:08:53 [notice] 8638#0: signal process started 2019/10/20 20:09:11 [error] 8659#0: *2 upstream sent too big header while reading resp.... 修复nginx报错:"upstream sent too big header while reading response header from upstream" Linux
horizon节点安装 yum install openstack-dashboard 编辑/etc/openstack-dashboard/local_settings文件 将仪表板配置为在控制器节点上使用OpenStack服务: OPENSTACK_HOST = "10.200.51.100" 允许主机访问仪表板: ALLOWED_HOSTS = ['*', 'localhost'] 配置memcached会话存储服务 SESSION_ENGINE = 'django.contrib.sessions.backends.cache' CACHES = { 'default': { 'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache', 'LOCATION': '10.200.51.100:11211', }, } 启用标识API版本3: OPENSTACK_KEYSTONE_URL = "http://%s:5000/v3" % OPENSTACK_HOST 启用对域的支持 OPENS.... openstack系列-dashboard部署 Linux
neutron 部署 mysql 库创建 CREATE DATABASE neutron; GRANT ALL PRIVILEGES ON neutron.* TO 'neutron'@'localhost' \ IDENTIFIED BY 'neutron'; GRANT ALL PRIVILEGES ON neutron.* TO 'neutron'@'%' \ IDENTIFIED BY 'neutron'; 创建服务凭据 创建 neutron 用户 [root@linux-node1 ~]# . admin-openrc [root@linux-node1 ~]# openstack user create --domain default --password-prompt neutron User Password: Repeat User Password: +---------------------+----------------------------------+ | Field | Value | +---------------------+---.... openstack系列-neutron系列安装部署 Linux
controller node nova节点 数据库部署 MariaDB [(none)]> CREATE DATABASE nova_api; MariaDB [(none)]> CREATE DATABASE nova; MariaDB [(none)]> CREATE DATABASE nova_cell0; MariaDB [(none)]> CREATE DATABASE placement; GRANT ALL PRIVILEGES ON nova_api.* TO 'nova'@'localhost' \ IDENTIFIED BY 'nova'; GRANT ALL PRIVILEGES ON nova_api.* TO 'nova'@'%' \ IDENTIFIED BY 'nova'; GRANT ALL PRIVILEGES ON nova.* TO 'nova'@'localhost' \ IDENTIFIED BY 'nova'; GRANT ALL PRIVILEGES ON nova.* TO 'nova'@'%' \ ID.... openstack系列-nova节点部署 Linux
glance 服务安装 glance库的创建 CREATE DATABASE glance; GRANT ALL PRIVILEGES ON glance.* TO 'glance'@'localhost' \ IDENTIFIED BY 'glance'; GRANT ALL PRIVILEGES ON glance.* TO 'glance'@'%' \ IDENTIFIED BY 'glance'; 注意注意:每一条配置要新建到文件中,尽量不要打开注释在原有的基础上修改 创建本地存储 1.一定要在opesntack-glance-api.service服务启动之前部署好存储设备,因为该服务在启动时会加载存储驱动检索存储设备,如果事先不存在,就意味着该服务没有识别到任何可用的存储设备,即便是后来你又新增了存储,仍然是无效的,最终导致你上传镜像失败; 2.一定要赋予opesntack-glance-api.service服务对存储设备的可写权限。 source管理凭据以获得对仅限管理的CLI命令的访问权限 创建glance用户 [root@linux-node1 ~]# . .... openstack系列- glance 服务部署 Linux
一、环境 基础环境设置 主机名修改: hostnamectl set-hostname linux-node1 修改host文件 10.200.51.100 linux-node1 linux-node1.limi.com 10.200.51.31 linux-node2 linux-node2.limi.com linux-node1 10.200.51.100 控制节点 linux-node2 10.200.51.31 计算节点 配置网络yum源: wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo sed -i 's/$releasever/7.7.1908/g' /etc/yum.repos.d/CentOS-Base.repo NTP服务安装 yum install chrony -y timedatectl set-timezone Asia/Shanghai #配置时区 vim /etc/chrony.conf ... allow 10.200.... openstack系列- keystone部署文档 Linux
现有表格内容如下: BT 列有全部图片 url 地址: 最终版本优化 #!/usr/bin/python # -- coding: utf-8 -- # @Time : 2019/10/15 21:36 # @Author : cuijianzhe # @File : biaoge.py # @Software: PyCharm import xlrd import requests import os name = input('请输入表格名称:') path = name + '.xls' workbook = xlrd.open_workbook(path) Data_sheet = workbook.sheets()[0] rowNum = Data_sheet.nrows #行数 colNum = Data_sheet.ncols #列数 def get_sitesname(): ''' 提取并添加站点名称 ''' #第一个方法使用列表 sites_list = [] i = 1 #从1开始跳过表头数据 try: for s in range(Data_sheet.nc....... 通过python读取excel表格内容url批量下载 Python