当前位置:网站首页>OpenStack节点地址改变
OpenStack节点地址改变
2022-07-03 11:55:00 【星哥玩云】
正常在生产环境中,OpenStack各个节点会做HA,可以用域名机制来管理节点。
但是有时候如果用了IP地址,就面临着一旦改变了IP需要更新配置的问题。
如果要修改的话,主要是两个方面的信息。
一是配置文件,基本都在/etc/目录下。
可以先grep地址下看看是不是都可以直接替换,如果可以的话,执行
$ sed -i "s/old_ip/new_ip/g" `grep old_ip -rl /etc`即可。
另外一个是数据库,这个要略微复杂些。
一般openstack的数据库中有多个database,主要需要修改的在keystone database的endpoint表中。登录到sql后,命令如下
mysql>use keystone;
mysql> update endpoint set -> url=replace(url,'1.1.1.1','2.2.2.2');
其它的如token表中内容或其它database中内容,可以根据自己情况来看是否需要修改。
最后是重启所有的相关服务,或者干脆重启机器。
边栏推荐
- Slf4j log facade
- If you can't learn, you have to learn. Jetpack compose writes an im app (II)
- QT OpenGL texture map
- (construction notes) learn the specific technology of how to design reusable software entities from three levels: class, API and framework
- 1-2 project technology selection and structure
- Shutter: add gradient stroke to font
- 【嵌入式】---- 内存四区介绍
- init. RC service failed to start
- 阿里大于发送短信(用户微服务--消息微服务)
- 02_ Lock the code, and don't let the "lock" become a worry
猜你喜欢

4000 word super detailed pointer

剑指Offer10- I. 斐波那契数列

1-2 project technology selection and structure

Use Tencent cloud IOT platform to connect custom esp8266 IOT devices (realized by Tencent continuous control switch)

使用BLoC 构建 Flutter的页面实例

Unicode encoding table download

Sword finger offer09 Implementing queues with two stacks

阿里大于发送短信(用户微服务--消息微服务)

Shutter: add gradient stroke to font
![[MySQL special] read lock and write lock](/img/ac/e01c26882cc664ea2e5e731c5a8bab.png)
[MySQL special] read lock and write lock
随机推荐
Take you to the installation and simple use tutorial of the deveco studio compiler of harmonyos to create and run Hello world?
Apache Mina开发手册
Implement verification code verification
Integer int compare size
JVM内存模型
01_ Using the concurrent tool class library, is thread safety safe
2020-10_ Development experience set
Introduction to concurrent programming (I)
剑指Offer10- I. 斐波那契数列
【嵌入式】---- 内存四区介绍
102. Sequence traversal of binary tree
(构造笔记)ADT与OOP
SystemVerilog -- OOP -- copy of object
Use of atomicinteger
wpa_ cli
Dart: self study system
[ManageEngine] the role of IP address scanning
Shutter: add gradient stroke to font
Shutter: about inheritedwidget
[download attached] password acquisition tool lazagne installation and use