Uploaded image for project: 'DeltaCloud'
  1. DeltaCloud
  2. DTACLOUD-88

deltacloud-core should pass back better error messages from RHEV-M errors

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Server
    • None
    • Fedora-15, deltacloud-core-0.5.0-0.2.1317167702git.fc15.noarch (nightly)

    Description

      When trying to run a RHEV-M action (lib/deltacloud/drivers/rhevm/rhevm_client.rb:vm_action()), the action may fail. If it does, deltacloud-core returns a pretty generic: Operation start failed.

      However, we can do better. If an action fails, RHEV-M returns a piece of XML with detail, like:

      <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
      <action>
      <status>
      <state>failed</state>
      </status>
      <fault>
      <reason>Nogah operation failed</reason>
      <detail>[Cannot run VM. VM is not found.]</detail>
      </fault>
      </action>

      We should parse that detail out and return it as part of the exception so that the client will have a better idea of what the problem is.

      Attachments

        Activity

          People

            lutter David Lutterkort
            clalance Chris Lalancette
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: