Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to add field ha_enabled in Openstack horizon instance interface

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)05/31 Report--

Editor to share with you how to add field ha_enabled to the Openstack horizon instance interface, I believe most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!

Final effect picture:

1 add the field D:\ queenDashboard\ nova\ db\ sqlalchemy\ api_migrations\ migrate_repo\ versions\ 004_add_request_spec.py to the instance table and use the nova-manage db sync command to modify the database. The figure below is as follows

2 in D:\ queenDashboard\ horizon-stable-queens\ openstack_dashboard\ dashboards\ admin\ instances\ tables.py

3 the function in the api package in horizon, which provides internal calls for the interface and external novaclient code for calling.

D:\ queenDashboard\ horizon-stable-queens\ openstack_dashboard\ api\ nova.py

4 horizon api sends the calling command to novaclient, and novaclient transfers it to nova api for processing. Call D:\ queenDashboard\ nova\ api\ openstack\ compute\ servers.py

5 add the code shown in the figure in order for the information returned by nova to include the added ha_enabled field.

6D:\ queenDashboard\ nova\ db\ sqlalchemy\ models.py

7 D:\ queenDashboard\ nova\ objects\ instance.py

The above is all the content of the article "how to add field ha_enabled to the Openstack horizon instance interface". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report