← Back to team overview

holland-coredev team mailing list archive

[Bug 1206202] Re: pgdump plugin does not handle missing commands gracefully

 

Improved the error handling for these cases so it's a little less ugly
when these fail.

Featured branch here for inclusion in holland 1.0.12: https://github.com
/holland-
backup/holland/tree/feature/lp_1206202_handle_pgdump_missing_cmd

** Changed in: holland-backup
       Status: New => Fix Committed

** Changed in: holland-backup
     Assignee: (unassigned) => Andrew Garner (muzazzi)

-- 
You received this bug notification because you are a member of Holland
Build, which is subscribed to holland-backup.
https://bugs.launchpad.net/bugs/1206202

Title:
  pgdump plugin does not handle missing commands gracefully

Status in Holland Backup Framework:
  Fix Committed

Bug description:
  Like most holland plugins, pg_dump runs commands through subprocess
  rather than via a shell.  If a command is not found, subprocess raises
  an OSError with errno = ENOENT.  This results in a messy and confusing
  failure message.

  These invocations should be wrapped around a try/except to detect
  these cases and fail cleanly.

  This particular case is common with Postgres on RHEL/Cent as newer
  versions installed from yum.postgresql.org are probably going to put
  their tools in /usr/pgsql-{version}/bin/ and not necessarily be in the
  path.   holland's default path doesn't pick these up automatically.

To manage notifications about this bug go to:
https://bugs.launchpad.net/holland-backup/+bug/1206202/+subscriptions


References