Got it

The ECS Deletion Task Remains in the Processing State

Latest reply: Apr 20, 2020 12:02:19 481 5 4 0 0

Hello, guys!


Today, I'd like to share with you a case: The ECS Deletion Task Remains in the Processing State

Let's get started.


Problem Description


The ECS deletion task remains in the processing state on ManageOne Operation Portal.



Delete tasks failed


Problem Analysis


1. Log in to the FusionSphere OpenStack controller node, import environment variables, query the two nodes where the apicom services are deployed, and log in to the two nodes:

nova list --all-t | grep CPT-SRV

The default username is apicom, and password is Huawei12#$.


Check taskmgr_ecm_executor.log in the /var/log/apicom/taskmgr/ecm/ directory.


the command

The error message "too many connections for role "TASKMGR" is reported in the log, indicating that the number of connections to the database reaches the upper limit.


Solution

1. Modify the connection pool configurations of the APIcom service on both the CPT-SRV01 and CPT-SRV02 nodes.

vi /opt/apicom/tomcat/taskmgr/WEB-INF/classes/hibernate-ims-spring.xml


Change the values in the red box in the following figure.

en-us_image_0178321455.jpg

vi /opt/apicom/tomcat/taskmgr/WEB-INF/classes/hibernate-bks-spring.xml

Change the values in the red box in the following figure.

en-us_image_0178324336.jpg

vi /opt/apicom/tomcat/taskmgr/WEB-INF/classes/hibernate-spring.xml

Change the values in the red box in the following figure.

en-us_image_0178322477.jpg


Run the ps -ef |grep apicom command to check the apicom process ID.

The process is automatically started after you run the kill -9 ID command.

en-us_image_0178321729.jpg


2. Modify the connection pool configurations of the ImageConvert service on both the CPT-SRV01 and CPT-SRV02 nodes.

vi /opt/imcs/tomcat/taskmgr/WEB-INF/classes/hibernate-spring.xml


3. Change the values in the red box in the following figure.

en-us_image_0178322267.jpg

Change the value of minEvictableIdleTimeMillis to 300000.

en-us_image_0178322732.jpg

Run the ps -ef |grep imcs command to check the imcs process ID. Then, run the kill -9 ID command again

to stop the process. The process will be automatically started soon.

en-us_image_0178475497.jpg

Do not provide services during configuration modification.


That's all for today. I hope it will be helpful to all of you! 


If you have any other comments or want to know more, please leave a message below to let me know.

Thanks.
View more
  • x
  • convention:

Very useful, thanks
View more
  • x
  • convention:

stephen.xu
stephen.xu Created Apr 21, 2020 07:47:19 (0) (0)
Thank you!
Wissal  
Thanks for sharing!!
View more
  • x
  • convention:

stephen.xu
stephen.xu Created Apr 21, 2020 07:46:55 (0) (0)
 

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.