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

Boot process takes too long #21

Closed
halleysouza opened this issue Aug 24, 2023 · 4 comments
Closed

Boot process takes too long #21

halleysouza opened this issue Aug 24, 2023 · 4 comments
Assignees

Comments

@halleysouza
Copy link
Collaborator

VM boot, in rescue mode, takes too long and GCE Rescue throws an exception while waiting for startup-script completion.

if not remove_rescue_mode and not wait_for_os_boot(vm):

Need to find an alternative for this scenario.

raise Exception('Guest OS boot timeout.')

@tjsmith555
Copy link

Per Halley's request, I am uploading the serial output from the VM after trying to run gce-rescue
serial-output.txt

@halleysouza
Copy link
Collaborator Author

I can see the agent initiating the startup-script:

Aug 23 17:08:59 debian google_metadata_script_runner[1511]: Starting startup scripts (version 20230601.00).

But nothing printing the ending of the scripts. We need try to replicate with the same agents version.

@tjsmith555 I understood that you manually increased the timeout and GCE rescue finally came to an ending, right ?

If so, what was the value you set ?

@tomerlf1 I believe we still a better option than raising an exception when timing out - Wdyt ?

@tjsmith555
Copy link

I raised it to 600 seconds in the following code snippet. I assumed this was where I should change the timeout based on the error messages I received, but it may have been a flawed understanding that got me there.

image

@halleysouza
Copy link
Collaborator Author

@tjsmith555 we are about to release the patch for this issue in our next version. In the meantime you can try the unstable version to check if this fixed your problem.

$ git clone https://github.com/GoogleCloudPlatform/gce-rescue.git -b develop
$ cd gce-rescue/
$ pip install --force-reinstall .

Let us know if this is working for you now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants