当前位置:网站首页>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中内容,可以根据自己情况来看是否需要修改。
最后是重启所有的相关服务,或者干脆重启机器。
边栏推荐
- [MySQL special] read lock and write lock
- SLF4J 日志门面
- Pki/ca and digital certificate
- Flinksql can directly create tables and read MySQL or Kafka data on the client side, but how can it automatically flow and calculate?
- Unicode encoding table download
- 2020-10_ Development experience set
- 雲計算未來 — 雲原生
- 225. Implement stack with queue
- Shutter widget: centerslice attribute
- Summary of development issues
猜你喜欢

ES6新特性

Flutter 退出登录二次确认怎么做才更优雅?

Cloud Computing future - native Cloud

Develop plug-ins for idea

Take you to the installation and simple use tutorial of the deveco studio compiler of harmonyos to create and run Hello world?

Fluent: Engine Architecture

Socket TCP for network communication (I)

Use bloc to build a page instance of shutter
![[ManageEngine] the role of IP address scanning](/img/dc/df353da0e93e4d936c39a39493b508.png)
[ManageEngine] the role of IP address scanning

记录自己vulnhub闯关记录
随机推荐
Symlink(): solution to protocol error in PHP artisan storage:link on win10
New features of ES6
SystemVerilog -- OOP -- copy of object
Atomic atomic operation
LeetCode 0556. Next bigger element III - end of step 4
【附下载】密码获取工具LaZagne安装及使用
Kubectl_ Command experience set
init. RC service failed to start
adb push apk
Flutter: self study system
Fluent: Engine Architecture
Write a simple nodejs script
Pki/ca and digital certificate
OpenGL index cache object EBO and lineweight mode
What is more elegant for flutter to log out and confirm again?
Sword finger offer05 Replace spaces
temp
1-2 project technology selection and structure
Jsup crawls Baidu Encyclopedia
剑指Offer03. 数组中重复的数字【简单】