Got it

The Nova service is abnormal because the user frequently adjusts the time on the control node ntp-server

Latest reply: Nov 24, 2021 05:25:26 1428 3 4 0 0

Hello, everyone!

I will share with you how to deal with the Nova service is abnormal because the user frequently adjusts the time on the control node ntp-server.

Issue Description

The status of Nova and Cinder components go Down and Up repeatedly.

085015wim1m1115mcjmyiw.png?图片.png

Handling Process

1. According to the experience, we first checked the clock synchronization status of the CPS.

2. The time of a control node is about 12 minutes. (Core components such as nova-api,cinder-api are deployed on the control node.)

3. Check the background by the ntp time-delta --host all command. It is found that the time of only one host is not synchronized.

    085033lvt6tf0hg1egte23.png?图片.png

4. Log in to the node and check the ntp-client log. It is found that the time difference reaches 560 seconds on August 6.

085046ikuuqwwh36e4wq14.png?图片.png

085056ghm8xcxa5mhmwoa5.png?图片.png

Confirm that a person has modified the time on this node: (there were multiple times, capture one of them.)

085104cdvcg9z6lizl3qyv.png?图片.png

5. The node time is not synchronized because the user frequently modifies the time.

6. Why are the services of Nova and Cinder sometimes good and sometimes bad?

When you query the service list of Nova and Cinder, nova-api or cinder-api is required. In this case, the time of the master node of nova-api and cinder-api is incorrect.

7. Why cannot the ntp-client synchronize time with the ntp-server after the user modifies the time?

If the time difference is too large, the ntp-client cannot synchronize time.

Root Cause

The time of the control node is inconsistent with the control node.

Solution

1. Disable the HA function of VM.

cps template-params-update --parameter ha_enabled=False --service nova nova-compute

cps commit

2. Log in to the target host and shut down ntp-client function. (Use the ntp result-show command to inspection the result)

085119bhf2xn0g9i77gfmh.png?图片.png

3. Forcibly synchronize the time with the faulty host. (Use the ntp result-show command to inspection the result)

085134v2xcyc1pwzww2ppe.png?图

4. Start up the ntp-client function. (Use the ntp result-show command to inspection the result)085150rv1biiv8b996ryvb.png?图片.png

5. Enable the HA function of VM.

085200y99jrddgjjrzljf9.png?图片.png

Switch to chinese

This article contains more resources

You need to log in to download or view. No account? Register

x
  • x
  • convention:

user_4400653
Created Nov 5, 2021 01:46:14

good
View more
  • x
  • convention:

user_4358465
Created Nov 24, 2021 05:00:05

Thanks for sharing this post
View more
  • x
  • convention:

Nikica
Created Nov 24, 2021 05:25:26

Thanks for sharing
View more
  • x
  • convention:

Comment

You need to log in to comment to the post Login | Register
Comment

Notice: To protect the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but are not limited to the following:
  • Politically sensitive content
  • Content concerning pornography, gambling, and drug abuse
  • Content that may disclose or infringe upon others ' commercial secrets, intellectual properties, including trade marks, copyrights, and patents, and personal privacy
Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see " User Agreement."

My Followers

Login and enjoy all the member benefits

Login

Block
Are you sure to block this user?
Users on your blacklist cannot comment on your post,cannot mention you, cannot send you private messages.
Reminder
Please bind your phone number to obtain invitation bonus.
Information Protection Guide
Thanks for using Huawei Enterprise Support Community! We will help you learn how we collect, use, store and share your personal information and the rights you have in accordance with Privacy Policy and User Agreement.