DB2 restore fails if no DB exists

Bug #1557694 reported by Peter Stachowski
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack DBaaS (Trove)
New
Undecided
Ishita Mandhan

Bug Description

I you create a backup without first having a DB created in DB2, the restore will fail. Here's the error from the guest log:

  ProcessExecutionError: Unexpected error while running command.
  Command: find /home/db2inst1/db2inst1/backup/ -type f -name '*.001' | grep -Po "(?<=backup/)[^.']*(?=\.)"

This seems to be caused by the fact that 'find' returns '1' if it doesn't find anything - this case needs to be handled.

Changed in trove:
assignee: nobody → Ishita Mandhan (imandhan)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.