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 understand Nova reboot and lock operation

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

Share

Shulou(Shulou.com)06/01 Report--

How to understand Nova reboot and lock operation, in view of this problem, this article introduces the corresponding analysis and solution in detail, hoping to help more partners who want to solve this problem to find a more simple and feasible method.

Today we are going to talk about the relatively simple operations of nova: reboot and lock/unlock.

I will first explain the theoretical knowledge of these operations, and then leave the log analysis to you to complete.

Soft/Hard Reboot

The difference between soft reboot and hard reboot is that: 1. Soft reboot only restarts the operating system, and instance is still running throughout the process. It is equivalent to executing the reboot command in linux. 2. Hard reboot is to restart instance, which is equivalent to shutting down and then booting.

Soft/hard reboot's log analysis is left as an exercise.

Tip:

1. Soft/hard reboot cannot be found in the nova-api log because log is not output in the reboot method of / opt/stack/nova/nova/compute/api.py. You can search by keyword "nova.api.openstack.wsgi" or "reboot".

two。 You can see the obvious difference between "soft reboot" and "hard reboot" in nova-compute 's log.

Lock/Unlock

To avoid misoperation, such as accidentally restarting or deleting the instance, you can lock the instance. A state change operation such as a restart on a locked (Lock) instance will indicate that the operation is not allowed. Return to normal after performing an unlock (Unlock) operation.

Lock/Unlock operations are all done in nova-api. After a successful operation, nova-api updates the status of the instance lock. When performing other operations, the nova-api determines whether it is allowed or not based on the locking status.

Lock/Unlock does not require the participation of nova-compute. Lock/Unlock 's log is relatively simple and is left for everyone to practice.

Tip:

1. Users in the admin role are not affected by lock and can operate normally regardless of whether they are locked or not.

two。 According to the default policy configuration, any user can unlock. That is, if you find that instance is locked, you can unlock it through unlock and then perform the operation.

This is the answer to the question on how to understand the operation of Nova reboot and lock. I hope the above content can be of some help to you. If you still have a lot of doubts to be solved, you can follow the industry information channel for more related knowledge.

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