Recent Comments
Category Archives: OpenStack
0-1-openstack(rocky)安装准备-节点规划
我的block和object是一台专门的存储,所以不打算再分开做了,你也可以分开做(未完待续)
0-2-openstack(rocky)安装准备-jumper部署ansible
jumper上面部署ansible,分发密钥 部署完成后测试一下 部署完成后,先更新系统 yum -y upgrade,然后做后面的准备
使用ceilometer meter-list时,报错HTTPNotFound (HTTP 404) error
具体报错就是 The request you have made requires authentication. (HTTP 401) (Request-ID: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx 解决办法: 把admin-token中的admin-token环境变量去掉 # unset OS_TOKEN 完成之后,再次运行,一切正常 # ceilometer meter-list +———————————+——-+———–+—————————————+———+———————————-+ | Name | Type | Unit | Resource ID | User ID | Project ID | +———————————+——-+———–+—————————————+———+———————————-+ | … Continue reading
Swift创建容器没多久就消失解决办法
昨天添加swift组件时遇到一个诡异的问题,就是使用命令行上传数据到container,一会短则几秒钟,长则几十秒就自动消失了,查阅了谷歌资料,总结的解决思路如下: 1、时间服务器NTP或者存储节点的NTP配置有问题,总之就是时间不同步。我的确实是存储节点忘了配置NTP了。但是我配置了之后还是有问题; 2、删除/etc/swift下面的gz,包括backup文件夹,也就是删除配置重新再来一遍。我删除重配之后,一切正常了。 下面是我搜索到的资料,你们参考一下: 链接自:https://ask.openstack.org/en/question/56642/swift-containers-disappear-in-less-than-1-min/ 原来小哥的问题是这样的,和我的一模一样: Hi, I had an RDO IceHouse installation of openstack on Fedora 20. It had no swift installed, so I was trying to install it. The installation was done ~6-8 month ago, and since then … Continue reading
创建容器对象时报错 failed to create container ‘container2’: 404 Not Found: Not Found
The resource could not be found.<
使用swift创建容器时报错404,谷歌查阅资料如下 原文地址是:https://answers.launchpad.net/swift/+question/235980 A 404 on a PUT means the “group of things” above the request failed the existence check. So if you get a 404 on object PUT it’s because the proxy failed the container existence check. If you get … Continue reading
openstack-swift-object.service等服务重启不成功
# systemctl status openstack-swift-object.service openstack-swift-object-auditor.service openstack-swift-object-replicator.service openstack-swift-object-updater.service -l ● openstack-swift-object.service – OpenStack Object Storage (swift) – Object Server Loaded: loaded (/usr/lib/systemd/system/openstack-swift-object.service; enabled; vendor preset: disabled) Active: active (running) since Tue 2019-02-19 00:20:53 EST; 3s ago Main PID: 24340 (swift-object-se) Tasks: … Continue reading
Swift 使用Builder 文件 创建 Rings
转载自:https://blog.csdn.net/rollingwayne/article/details/38396877 主要命令为:swift-ring-builder 命令使用方法: swift-ring-builder add swift-ring-builder create swift-ring-builder list_parts swift-ring-builder rebalance 命令详解: swift-ring-builder create 后面跟的三个值表示的意思分别是: ,是以2为底数的指数的幂,即2^ part_power,所得的值表示总共的partition 的数目。如果设置为2,则2^2=4,表示总共有4个partition。partiton的数目最好设置为1024以上 表示每个object 在swift中储存的数目。 表示一个partiton 能够再次更改的最小时间。防止没有进行同步便进行下次更改。 swift-ring-builder account/container/object.builder create 10 3 24 swift-ring-builder add z-:/_ 例如: swift-ring-builder account/container/object.builder add z1-10.0.0.1:6000/swift01 1024 运行完命令后会有三个ring 文件出现在/etc/swift目录下 ip … Continue reading
libvirt_storage_backend_rbd.so报错及解决方法
虚拟化服务libvirtd无法正常启动,报错:error : virModuleLoadFile:53 : internal error: Failed to load module ‘/usr/lib64/libvirt/storag e-backend/libvirt_storage_backend_rbd.so’: /usr/lib64/libvirt/storage-backend/libvirt_storage_backend_rbd.so: undefined symbol: rbd_diff_iterate2 。 问题原因:older version of libvirt-daemon-driver-storage-rbd usually used in older RHEL 7.x version which is missing the librbd1 dependency。(动态链接库缺失) 具体可以通过如下方法查看: [root@rhvh42 storage-backend]# file libvirt_storage_backend_rbd.solibvirt_storage_backend_rbd.so: ELF … Continue reading
Openstack安装额外的计算节点
案例:安装额外计算节点 主机聚合 可用域名称 主机 可用 internal openstack.tedu.cn (服务已运行) True nova openstack.tedu.cn (服务已运行) True 问题 本案例要求安装额外的计算节点: 添加两块网卡,均能与第一个节点通信 能够准确地进行DNS解析 配置yum仓库 安装计算节点 步骤 实现此案例需要按照如下步骤进行。 步骤一:安装计算节点 备注:day02的案例里面在安装openstack时,nova.tedu.cn已经配置过网卡,DNS解析,yum源,这里不再赘述,不会的可以看day02的案例 1)更改answer.ini文件 [root@openstack ~]# vi answer.ini //在openstack.tedu.cn上面操作 CONFIG_COMPUTE_HOSTS=192.168.1.1,192.168.1.2 CONFIG_NETWORK_HOSTS=192.168.1.1,192.168.1.2 [root@openstack ~]# packstack –answer-file answer.ini **** Installation completed successfully … Continue reading
OpenStack一键式安装
今天的内容延续昨天openstack环境准备 今天需要把真机,虚拟机1和虚拟机2全部准备完毕 1 案例1:配置yum仓库 1.1 问题 本案例要求把三个镜像配置yum源: CentOS7-1708光盘内容作为仓库源 配置 RHEL7-extars内容加入仓库源 RHEL7OSP-10光盘中包含多个目录,每个目录都是仓库源(可以使用脚本生成) 1.2 步骤 实现此案例需要按照如下步骤进行。 步骤一:配置 yum仓库 警告:仅yum配置的第一个源(系统源)为gpgcheck=1需要导入公钥,其他的都是gpgcheck=0,否则安装会报错 [root@room9pc01 ~]# mkdir /var/ftp/system [root@room9pc01 ~]# mkdir /var/ftp/extras [root@room9pc01 ~]# mkdir /var/ftp/HEL7OSP [root@room9pc01 ~]# vim /etc/fstab /iso/RHEL7OSP-10.iso /var/ftp/HEL7OSP iso9660 defaults 0 0 /iso/CentOS7-1708.iso … Continue reading