Get the App
SLTechnology News&Howtos  ›  Servers  › 

How to add field ha_enabled in Openstack horizon instance interface

Shulou Source: shulou.com Published: 2022-05-31 16:14:15 11月08日 Update

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!

Tags: Fields interfaces articles code content commands not much information functions most internal effects effect maps data databases files more knowledge industry information Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MySQL vpn macOS Shulou Information Apple