Skip to content

handle broader Exception when image_pull_from_url fails#45

Open
leust wants to merge 1 commit into
stable/wallaby-m3from
fix_log_format
Open

handle broader Exception when image_pull_from_url fails#45
leust wants to merge 1 commit into
stable/wallaby-m3from
fix_log_format

Conversation

@leust
Copy link
Copy Markdown

@leust leust commented Jun 24, 2024

There can be more than VimFaultException thrown here, i.e. ConnectionRefusedError. By catching Exception we make sure that we always fallback to the HttpNfcLease upload, avoiding the volume going to error state.

The log was missing a string placeholder for the exception, causing a "TypeError: not all arguments converted during string formatting".

Change-Id: Ib81eca79210cdbcfe47f50914f1775f07e54de57

There can be more than VimFaultException thrown here, i.e.
ConnectionRefusedError. By catching `Exception` we make sure that
we always fallback to the HttpNfcLease upload, avoiding the volume
going to error state.

The log was missing a string placeholder for the exception, causing
a "TypeError: not all arguments converted during string formatting".

Change-Id: Ib81eca79210cdbcfe47f50914f1775f07e54de57
@leust leust requested review from hemna and joker-at-work July 11, 2024 15:47
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.

1 participant