Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • S snf-ganeti
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • itmineduitminedu
  • snf-ganeti
  • Repository
Switch branch/tag
  • snf-ganeti
  • lib
  • jqueue.py
Find file BlameHistoryPermalink
  • Iustin Pop's avatar
    Encode the actual exception raised by LU execution · e6345c35
    Iustin Pop authored Aug 27, 2009
    
    
    Currently, the actual exception raised during an LU execution (one of
    OpPrereqError, OpExecError, HooksError, etc.) is lost because the
    jqueue.py code simply sets that to a str(err), and the code in cli.py
    simply passes that string to OpExecError.
    
    This patch moves to encoding the errors as per errors.EncodeError and
    changes the cli code to parse and raise that (if possible).
    
    Signed-off-by: default avatarIustin Pop <iustin@google.com>
    Reviewed-by: default avatarMichael Hanselmann <hansmi@google.com>
    (cherry picked from commit bcb66fca)
    e6345c35