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-132629 / 24.10.1 / Increase the timeout wrt ES24n import in import_on_boot (by bmeagherix) #14987

Merged
merged 1 commit into from
Nov 19, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 14 additions & 2 deletions src/middlewared/middlewared/plugins/pool_/import_pool.py
Original file line number Diff line number Diff line change
Expand Up @@ -434,15 +434,27 @@ def import_on_boot(self, job):
self.logger.info('Start bring up of NVMe/RoCE')
try:
jbof_job = self.middleware.call_sync('jbof.configure_job')
jbof_job.wait_sync(timeout=10)
jbof_job.wait_sync(timeout=60)
if jbof_job.error:
self.logger.error(f'Error attaching JBOFs: {jbof_job.error}')
elif jbof_job.result['failed']:
self.logger.error(f'Failed to attach JBOFs:{jbof_job.result["message"]}')
else:
self.logger.info(jbof_job.result['message'])
except TimeoutError:
self.logger.error('Timed out attaching JBOFs - will continue in background')
self.logger.error('Timed out attaching JBOFs. Waiting again.')
try:
jbof_job.wait_sync(timeout=60)
if jbof_job.error:
self.logger.error(f'Error attaching JBOFs: {jbof_job.error}')
elif jbof_job.result['failed']:
self.logger.error(f'Failed to attach JBOFs:{jbof_job.result["message"]}')
else:
self.logger.info(jbof_job.result['message'])
except TimeoutError:
self.logger.error('Timed out attaching JBOFs - will continue in background.')
else:
self.logger.info('Done bring up of NVMe/RoCE')
except Exception:
self.logger.error('Unexpected error', exc_info=True)

Expand Down
Loading