Uploaded image for project: 'Coopr'
  1. Coopr
  2. COOPR-638

google disk quota not handled well

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 0.9.8, Code Name: Centaurus
    • Fix Version/s: None
    • Component/s: provisioner
    • Labels:
      None
    • Rank:
      1|hzyifr:

      Description

      If a cluster provision on the Google provider exceeds the account's disk quota, it is not handled well:

      2014-11-30 03:00:16 -0800 worker-superadmin-2 DEBUG: Creating data disk: dw-dqtest36-1000-data of size 5200
      2014-11-30 03:00:46 -0800 worker-superadmin-2 ERROR: Unexpected Error Occurred in FogProviderGoogle.create: #<Fog::Errors::NotFound: The resource 'projects/xxx/zones/europe-west1-b/disks/dw-dqtest36-1000-data' was not found>

      Upon retry:
      2014-11-30 03:00:51 -0800 worker-superadmin-4 ERROR: Unexpected Error Occurred in FogProviderGoogle.create: #<RuntimeError: Disk dw-dqtest36-1000 already exists with different specifications>

      Issues:

      • Instead of UnexpectedError, we can catch this NotFound and suggest checking quota in stderr
      • On retry, it is unable to find the previous disk (if it exists) and retry with it.
      • If the data disk exceeds the quota, the OS disk can be left behind in the account. Since the vm is never created, the delete call never attempts to delete any disks.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                derek Derek Wood
                Reporter:
                derek Derek Wood
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: