Velero/Restic integration is susceptible to a race condition when Velero checks Restic "summary"

Solution In Progress - Updated -

Issue

  • We observed a run of Restic reporting a failure even though it was successful.
  • The issue is that the data Velero parsed to get Restic's status was malformed from what looks to be a race condition writing to stdout.
  • Velero was parsing a JSON blob similar to below:
{\"message_type\":\"sumtus\",\"seconds_elapsed\":43,\"percent_done\":1,\"total_files\":3460,\"files_done\":3460,\"total_bytes\":242398842,\"bytes_done\":242398842}\n
  • Velero was looking for the word 'summary', instead the key in the blob was 'sumtus', assume a combination of "summary" and "status" and some pieces writing over each other.

Environment

  • Red Hat Openshift Container Platform
  • Migration Toolkit for Containers (MTC) 1.4.3

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content