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

finalize-staged: Bump timeout to 5 minutes #1755

Closed

Conversation

cgwalters
Copy link
Member

See coreos/rpm-ostree#1568

Basically for people on e.g. rotational media, the default 90
second timeout can be too small.

We're in a tough situation here, because delaying shutdown
can be problematic too if the user is trying to shut down their
laptop to put in a backpack, etc.

There's potential optimizations here to make; I think we
could pre-copy the kernel/initramfs for example.

I suspect for some people the grub2 os-prober is a factor here too,
if that tries to e.g. inspect attached USB rotational hard drives.
But hopefully we'll get rid of that soon.

@jlebon
Copy link
Member

jlebon commented Oct 12, 2018

Hmm, 10m is pretty generous. What if some subtle other issue is causing us to hang? But then again, the chances of that are pretty low so... maybe it's fine. I'd be interested to hear e.g. what the reporter in coreos/rpm-ostree#1568 found worked for them.

I'm wondering if it'd help if we also did a pre-emptive full_system_sync() at staging time. So then the one at finalization time would hopefully be faster too.

@jlebon
Copy link
Member

jlebon commented Oct 16, 2018

So, looking at coreos/rpm-ostree#1568, looks like 2m was enough for that user. WDYT about making this 5m for now?

See coreos/rpm-ostree#1568

Basically for people on e.g. rotational media, the default 90
second timeout can be too small.

We're in a tough situation here, because delaying shutdown
can be problematic too if the user is trying to shut down their
laptop to put in a backpack, etc.

There's potential optimizations here to make; I think we
could pre-copy the kernel/initramfs for example.

I suspect for some people the grub2 os-prober is a factor here too,
if that tries to e.g. inspect attached USB rotational hard drives.
But hopefully we'll get rid of that soon.
@cgwalters cgwalters force-pushed the finalize-stage-longer-timeout branch from 929d9ac to bda2dde Compare October 16, 2018 20:47
@cgwalters cgwalters changed the title finalize-staged: Bump timeout to 10 minutes finalize-staged: Bump timeout to 5 minutes Oct 16, 2018
@cgwalters
Copy link
Member Author

OK, updated to 5.

@jlebon
Copy link
Member

jlebon commented Oct 16, 2018

@rh-atomic-bot r+ bda2dde

@rh-atomic-bot
Copy link

⌛ Testing commit bda2dde with merge e242033...

@rh-atomic-bot
Copy link

☀️ Test successful - status-atomicjenkins
Approved by: jlebon
Pushing e242033 to master...

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

Successfully merging this pull request may close these issues.

None yet

3 participants