当前位置:网站首页>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中内容,可以根据自己情况来看是否需要修改。
最后是重启所有的相关服务,或者干脆重启机器。
边栏推荐
- 在网上炒股开户可以吗?资金安全吗?
- 023(【模板】最小生成树)(最小生成树)
- 写一个简单的nodejs脚本
- Adult adult adult
- Develop plug-ins for idea
- Integer string int mutual conversion
- (构造笔记)从类、API、框架三个层面学习如何设计可复用软件实体的具体技术
- Use Tencent cloud IOT platform to connect custom esp8266 IOT devices (realized by Tencent continuous control switch)
- Introduction to concurrent programming (II)
- Self made pop-up input box, input text, and click to complete the event.
猜你喜欢
2.7 overview of livedata knowledge points
Flutter 退出登录二次确认怎么做才更优雅?
剑指Offer03. 数组中重复的数字【简单】
Basic knowledge of OpenGL (sort it out according to your own understanding)
LeetCode 0556. Next bigger element III - end of step 4
(构造笔记)ADT与OOP
OpenGL index cache object EBO and lineweight mode
Fluent: Engine Architecture
Why can't my MySQL container start
Shardingsphere sub database and sub table < 3 >
随机推荐
写一个简单的nodejs脚本
Kubectl_ Command experience set
PHP export word method (phpword)
145. Post order traversal of binary tree
Unicode encoding table download
Dart: view the dill compiled code file
347. Top k high frequency elements
Swagger
剑指Offer07. 重建二叉树
Sword finger offer07 Rebuild binary tree
手机号码变成空号导致亚马逊账号登陆两步验证失败的恢复网址及方法
(construction notes) grasp learning experience
Display time with message interval of more than 1 minute in wechat applet discussion area
wpa_ cli
双链笔记·思源笔记综合评测:优点、缺点、评价
Flutter Widget : KeyedSubtree
[combinatorics] permutation and combination (summary of permutation and combination content | selection problem | set permutation | set combination)
2.7 overview of livedata knowledge points
Sword finger offer03 Repeated numbers in the array [simple]
temp