Kilo版Openstack如何删除一台计算节点
发表于:2025-02-02 作者:千家信息网编辑
千家信息网最后更新 2025年02月02日,小编给大家分享一下Kilo版Openstack如何删除一台计算节点,希望大家阅读完这篇文章之后都有所收获,下面让我们一起去探讨吧!1、移除计算节点上的ceph osd停止节点上所有的osd服务syst
千家信息网最后更新 2025年02月02日Kilo版Openstack如何删除一台计算节点
小编给大家分享一下Kilo版Openstack如何删除一台计算节点,希望大家阅读完这篇文章之后都有所收获,下面让我们一起去探讨吧!
1、移除计算节点上的ceph osd
停止节点上所有的osd服务
systemctl stop ceph-osd@20systemctl stop ceph-osd@21systemctl stop ceph-osd@22systemctl stop ceph-osd@23
在mon节点上移除osd
ceph osd out 23ceph osd out 22ceph osd out 21ceph osd out 20ceph osd crush remove osd.23ceph osd crush remove osd.22ceph osd crush remove osd.21ceph osd crush remove osd.20ceph auth del osd.23ceph auth del osd.22ceph auth del osd.21ceph auth del osd.20ceph osd rm 23ceph osd rm 22ceph osd rm 21ceph osd rm 20ceph osd crush remove bdc8
等待集群自动恢复即可 如果配置文件中有对应osd在某台节点上的配置,需要删掉
2、移除计算节点上openstack服务
2.1、计算节点上停止服务
systemctl stop neutron-openvswitch-agent.servicesystemctl stop openstack-nova-compute.service systemctl disable neutron-openvswitch-agent.servicesystemctl disable openstack-nova-compute.service
2.2、移除计算服务
查看计算节点服务
. admin-openrc.sh nova service-list+----+------------------+------+----------+---------+-------+----------------------------+-----------------+| Id | Binary | Host | Zone | Status | State | Updated_at | Disabled Reason |+----+------------------+------+----------+---------+-------+----------------------------+-----------------+| 1 | nova-cert | bdc2 | internal | enabled | up | 2018-03-22T02:54:42.000000 | - || 2 | nova-conductor | bdc2 | internal | enabled | up | 2018-03-22T02:54:43.000000 | - || 3 | nova-consoleauth | bdc2 | internal | enabled | up | 2018-03-22T02:54:42.000000 | - || 4 | nova-scheduler | bdc2 | internal | enabled | up | 2018-03-22T02:54:40.000000 | - || 5 | nova-compute | bdc3 | nova | enabled | up | 2018-03-22T02:54:41.000000 | - || 6 | nova-compute | bdc2 | nova | enabled | up | 2018-03-22T02:54:45.000000 | - || 7 | nova-compute | bdc4 | nova | enabled | up | 2018-03-22T02:54:42.000000 | - || 8 | nova-compute | bdc5 | nova | enabled | up | 2018-03-22T02:54:44.000000 | - || 9 | nova-compute | bdc6 | nova | enabled | up | 2018-03-22T02:54:44.000000 | - || 10 | nova-compute | bdc7 | nova | enabled | up | 2018-03-22T02:54:46.000000 | - || 11 | nova-compute | bdc8 | nova | enabled | up | 2018-03-22T02:54:39.000000 | - |+----+------------------+------+----------+---------+-------+----------------------------+-----------------+
删除bdc8上的计算服务
nova service-disable 11nova service-delete 11
元数据库中删除
use nova;select * from compute_nodes where host='bdc2'\Gdelete from compute_nodes where host='bdc2';select * from services where host='bdc2'\G delete from services where host='bdc2';
2.3、移除网络服务
查看网络服务
# neutron agent-list+--------------------------------------+--------------------+------+-------+----------------+---------------------------+| id | agent_type | host | alive | admin_state_up | binary |+--------------------------------------+--------------------+------+-------+----------------+---------------------------+| 08bc9d33-3e67-4a06-9223-74be1c969b8a | Open vSwitch agent | bdc2 | :-) | True | neutron-openvswitch-agent || 19a31ea2-280b-42b4-9f08-c1f99182e826 | Open vSwitch agent | bdc5 | :-) | True | neutron-openvswitch-agent || 286336ae-22fd-4391-8470-aae559ee5ccb | DHCP agent | bdc3 | :-) | True | neutron-dhcp-agent || 42ab605e-3d66-402f-b86a-4ef246df2ecf | Open vSwitch agent | bdc8 | :-) | True | neutron-openvswitch-agent || 4791844d-07f7-43be-8b27-bcfe8d8a7791 | Open vSwitch agent | bdc6 | :-) | True | neutron-openvswitch-agent || 63c99510-205a-4f94-ac18-61082c6edb44 | L3 agent | bdc3 | :-) | True | neutron-l3-agent || 830a75fb-c516-4f6f-ae74-e09bfd558291 | Open vSwitch agent | bdc7 | :-) | True | neutron-openvswitch-agent || 91df9210-0a27-4933-9f03-3ccce6192011 | Open vSwitch agent | bdc4 | :-) | True | neutron-openvswitch-agent || a9f7bc30-beda-437d-92a8-be64296c57d0 | Open vSwitch agent | bdc3 | :-) | True | neutron-openvswitch-agent || cf6443f7-ef8e-4738-bfc5-e491e4f89aeb | Metadata agent | bdc3 | :-) | True | neutron-metadata-agent |+--------------------------------------+--------------------+------+-------+----------------+---------------------------+
删除bdc8上的网络服务
# neutron agent-delete 42ab605e-3d66-402f-b86a-4ef246df2ecfDeleted agent: 42ab605e-3d66-402f-b86a-4ef246df2ecf
3、元数据查看
nova库
MariaDB [nova]> select hypervisor_hostname,deleted_at,deleted from compute_nodes;+---------------------+---------------------+---------+| hypervisor_hostname | deleted_at | deleted |+---------------------+---------------------+---------+| bdc3 | NULL | 0 || bdc2 | NULL | 0 || bdc4 | NULL | 0 || bdc5 | NULL | 0 || bdc6 | NULL | 0 || bdc7 | NULL | 0 || bdc8 | 2018-03-22 02:58:53 | 7 |+---------------------+---------------------+---------+MariaDB [nova]> select * from services where host = 'bdc8';+---------------------+---------------------+---------------------+----+------+--------------+---------+--------------+----------+---------+-----------------+| created_at | updated_at | deleted_at | id | host | binary | topic | report_count | disabled | deleted | disabled_reason |+---------------------+---------------------+---------------------+----+------+--------------+---------+--------------+----------+---------+-----------------+| 2016-10-13 09:20:41 | 2018-03-22 02:58:49 | 2018-03-22 02:58:53 | 11 | bdc8 | nova-compute | compute | 4442289 | 0 | 11 | NULL |+---------------------+---------------------+---------------------+----+------+--------------+---------+--------------+----------+---------+-----------------+
4、删除其它节点与bdc8连通的隧道网络
先在元数据库中删除bdc8的gre信息
MariaDB [neutron]> select * from ml2_gre_endpoints; +-------------+------+| ip_address | host |+-------------+------+| 172.16.13.2 | bdc2 || 172.16.13.3 | bdc3 || 172.16.13.4 | bdc4 || 172.16.13.5 | bdc5 || 172.16.13.6 | bdc6 || 172.16.13.7 | bdc7 || 172.16.13.8 | bdc8 |+-------------+------+MariaDB [neutron]> delete from ml2_gre_endpoints where ip_address='172.16.13.8';
各个节点中删除连接bdc8的gre隧道
# ovs-vsctl show8d6ea1e1-9b90-4e6b-94ae-d5a04601daf9 Bridge br-tun fail_mode: secure Port "gre-ac100d03" Interface "gre-ac100d03" type: gre options: {df_default="true", in_key=flow, local_ip="172.16.13.2", out_key=flow, remote_ip="172.16.13.3"} Port "gre-ac100d07" Interface "gre-ac100d07" type: gre options: {df_default="true", in_key=flow, local_ip="172.16.13.2", out_key=flow, remote_ip="172.16.13.7"} Port "gre-ac100d08" Interface "gre-ac100d08" type: gre options: {df_default="true", in_key=flow, local_ip="172.16.13.2", out_key=flow, remote_ip="172.16.13.8"} Port "gre-ac100d05" Interface "gre-ac100d05" type: gre options: {df_default="true", in_key=flow, local_ip="172.16.13.2", out_key=flow, remote_ip="172.16.13.5"} Port "gre-ac100d06" Interface "gre-ac100d06" type: gre options: {df_default="true", in_key=flow, local_ip="172.16.13.2", out_key=flow, remote_ip="172.16.13.6"} Port patch-int Interface patch-int type: patch options: {peer=patch-tun} Port "gre-ac100d04" Interface "gre-ac100d04" type: gre options: {df_default="true", in_key=flow, local_ip="172.16.13.2", out_key=flow, remote_ip="172.16.13.4"} Port br-tun Interface br-tun type: internal Bridge br-int fail_mode: secure Port "qvo86bf0e09-3f" tag: 2 Interface "qvo86bf0e09-3f" Port "qvo73d3f4d9-72" tag: 2 Interface "qvo73d3f4d9-72" Port br-int Interface br-int type: internal Port "qvo7c5fbeca-ab" tag: 2 Interface "qvo7c5fbeca-ab" Port "qvo2364aa3b-98" tag: 4 Interface "qvo2364aa3b-98" Port "qvo0194c615-74" tag: 5 Interface "qvo0194c615-74" Port patch-tun Interface patch-tun type: patch options: {peer=patch-int} Port "qvo4a30d4d8-e3" tag: 3 Interface "qvo4a30d4d8-e3" Port "qvo1d912409-ed" tag: 2 Interface "qvo1d912409-ed" Port "qvoe79c563d-50" tag: 1 Interface "qvoe79c563d-50" Port "qvo4b146bb0-52" tag: 3 Interface "qvo4b146bb0-52" ovs_version: "2.5.0"
所有节点上连接bdc8的port一样,全都需要删除
# ovs-vsctl del-port br-tun gre-ac100d08
看完了这篇文章,相信你对"Kilo版Openstack如何删除一台计算节点"有了一定的了解,如果想了解更多相关知识,欢迎关注行业资讯频道,感谢各位的阅读!
节点
服务
网络
数据
网络服务
数据库
篇文章
隧道
配置
信息
全都
完了
文件
更多
知识
行业
资讯
资讯频道
集群
频道
数据库的安全要保护哪些东西
数据库安全各自的含义是什么
生产安全数据库录入
数据库的安全性及管理
数据库安全策略包含哪些
海淀数据库安全审计系统
建立农村房屋安全信息数据库
易用的数据库客户端支持安全管理
连接数据库失败ssl安全错误
数据库的锁怎样保障安全
英语数据库管理系统
深圳宝德网络技术有限公司
国外代理服务器网站
ibm x系列服务器管理口
软件开发外包合同补充协议
备份数据库文件可以压缩吗
命令创建db2管理服务器
网络安全防范措施主要措施有
数据库表的关联含义
百度边缘服务器
延庆区一站式网络技术推广好处
sql数据库开发教程
数据库可以查出用户登录ip吗
打电话过去对方显示未连接服务器
网络技术开发是什么
南京实力医疗健康软件开发
新华网 网络安全年会
服务器远程连接进不了桌面
系统和网络安全策略
深维软件开发公司
公安部网络安全专项活动
肥城展驰网络技术中心
租用邮件服务器
杭州学软件开发设计
软件开发企业业务内容
云服务器 需要备份吗
网络安全记心间主持稿
宿豫区威力网络技术哪家好
软件开发和生存周期模型
应用层软件开发