Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NAS-130472 / 24.10 / No need to reload http service when shutting down middleware #14155

Merged
merged 1 commit into from
Aug 7, 2024

Conversation

Qubad786
Copy link
Contributor

@Qubad786 Qubad786 commented Aug 7, 2024

Problem

We were running into an issue where shutdown would be halted because of VMs even if they are not running. Changes were added (#13909) to not make an attempt to de-initialize vms if none of them are running but we still left a case.

Service's terminate methods are called when middleware is shutting down and in this case, what we were doing for VMs was:

  1. Closing middleware libvirt socket connection
  2. Reloading http service

Now for reasons unknown, during shutdown (2) would hang in conjunction with libvirtd for 120 secs. However (2) should not be executed at all in the first place.

Solution

Make sure we just close middleware libvirt connection when we are terminating middleware and when system is being shtudown, there is no need to actually reload http service either at that time and libvirt should just be gracefully shutdown.

@Qubad786 Qubad786 added the jira label Aug 7, 2024
@Qubad786 Qubad786 requested a review from yocalebo August 7, 2024 11:26
@bugclerk
Copy link
Contributor

bugclerk commented Aug 7, 2024

@bugclerk bugclerk changed the title No need to reload http service when shutting down middleware NAS-130472 / 24.10 / No need to reload http service when shutting down middleware Aug 7, 2024
@truenas truenas deleted a comment from bugclerk Aug 7, 2024
@Qubad786 Qubad786 merged commit 31d0b27 into master Aug 7, 2024
3 checks passed
@Qubad786 Qubad786 deleted the mrehan/fix-shutdown-vm branch August 7, 2024 12:49
@bugclerk
Copy link
Contributor

bugclerk commented Aug 7, 2024

This PR has been merged and conversations have been locked.
If you would like to discuss more about this issue please use our forums or raise a Jira ticket.

@truenas truenas locked as resolved and limited conversation to collaborators Aug 7, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants