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

Nova compute graceful shutdown #6

Open
s3rj1k opened this issue Nov 4, 2024 · 4 comments
Open

Nova compute graceful shutdown #6

s3rj1k opened this issue Nov 4, 2024 · 4 comments
Assignees
Labels
feature Adds new functionality os:nova OpenStack Nova size-L Change size large (CL: 100...499)

Comments

@s3rj1k
Copy link
Collaborator

s3rj1k commented Nov 4, 2024

refs:

@s3rj1k s3rj1k added os:nova OpenStack Nova size-L Change size large (CL: 100...499) labels Nov 4, 2024
@s3rj1k
Copy link
Collaborator Author

s3rj1k commented Nov 22, 2024

you can test it yourself by start building a heavy enough instance (or manually add some pauses in the code), and sigterm the nova-compute, see the difference
make it slower so that you are sure to interrupt the process in the middle
kill/restart the nova-compute when the instance is already assigned to compute, but has not been fully provisioned yet.

@s3rj1k
Copy link
Collaborator Author

s3rj1k commented Nov 22, 2024

nova-compute[93277]: DEBUG nova.compute.manager [None req-72b47a80-146d-41d1-9a71-8b5dccf9b382 None None] [instance: 960674ab-118
3-4df9-85ae-bcb041b0d868] Instance spawn was interrupted before instance_claim, setting instance to ERROR state {{(pid=93277) _error_out_instances_whose_build_was_interrupted /opt/stack/nova/nova/compute/manager.py:1749}}

to slow down Instance start, add time.sleep(1800) in /opt/stack/nova/nova/compute/manager.py for function _do_build_and_run_instance (use AIO DevStack)

@s3rj1k s3rj1k self-assigned this Nov 22, 2024
@s3rj1k s3rj1k added the feature Adds new functionality label Nov 22, 2024
@s3rj1k
Copy link
Collaborator Author

s3rj1k commented Dec 5, 2024

@s3rj1k s3rj1k moved this from Triage to Spec: New in OpenStack Downstream to Upstream Dec 5, 2024
@s3rj1k
Copy link
Collaborator Author

s3rj1k commented Dec 5, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Adds new functionality os:nova OpenStack Nova size-L Change size large (CL: 100...499)
Projects
Status: Spec: New
Development

No branches or pull requests

1 participant