Uploaded image for project: 'CloudStack'
  1. CloudStack
  2. CLOUDSTACK-298

putting host in maintenance mode while creating snapshot ,host resorce state stuck in "ErrorInMaintenance mode" and snapshot creation fail Unable to migrate due to Requested operation is not valid: cannot migrate domain with 1 snapshots

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • pre-4.0.0
    • 4.3.0
    • KVM
    • Security Level: Public (Anyone can view this level - this is the default.)
    • None

    Description

      while creating snapshot put host 1 in maintenance mode , snapshot creation fails and host resource state stuck in "ErrorInMaintenance" mode.

      STEPS TO REPRODUCE
      -------------------------------------
      -------------------------------------
      1-Create advance zone->add pod->cluster->add 1 KVM host.
      2-Create ha enable service offering
      3-Deploy a VM using service offering(you have created in step 2)
      4-Add another KVM host in same cluster which you have created in step 1
      5-Click button create a snapshot from root volume
      6-While step 5 is in progress put 1st host in maintenance mode

      EXPECTED RESULT
      ---------------------------------
      ---------------------------------
      1-Snapshot should backed up successfully and host should go in maintenance mode

      ACTUAL RESULT
      --------------------------------
      -------------------------------
      1-Snapshot creation failed
      2- Host resource sate stuck in ErrorInmaintenance mode

      MY OBSERVATION
      ------------------------------
      ------------------------------
      1-Snapshot creation happening properly if you put host in maintenance mode which is not hosting any vms
      2- Without any maintenance activity snapshot creation is happening properly
      3-Migration is happening properly without any snapshot activity

      LOG
      ------------------
      -----------------
      2012-10-09 12:45:56,505 DEBUG [agent.transport.Request] (AgentManager-Handler-5:null) Seq 8-806223881: Processing: { Ans: , MgmtId: 7036532162601, via: 8, Ver: v1, Flags: 10, [{"BackupSnapshotAnswer":{"full":true,"result":false,"details":"Failed to backup snapshot: qemu-img: Could not delete snapshot 'hatest_ROOT-8_20121009071100': -2 (No such file or directory)Failed to delete snapshot hatest_ROOT-8_20121009071100 for path /mnt/59119a1e-adb2-32b7-9567-e4d52693e43c/b1f6f0f6-01cf-48f3-bb8c-6c82fa454c2a","wait":0}}] }
      2012-10-09 12:45:56,505 DEBUG [agent.transport.Request] (Job-Executor-1:job-148) Seq 8-806223881: Received: { Ans: , MgmtId: 7036532162601, via: 8, Ver: v1, Flags: 10,

      { BackupSnapshotAnswer }

      }
      2012-10-09 12:45:56,505 DEBUG [storage.snapshot.SnapshotManagerImpl] (Job-Executor-1:job-148) The result for com.cloud.agent.api.BackupSnapshotCommand is Failed to backup snapshot: qemu-img: Could not delete snapshot 'hatest_ROOT-8_20121009071100': -2 (No such file or directory)Failed to delete snapshot hatest_ROOT-8_20121009071100 for path /mnt/59119a1e-adb2-32b7-9567-e4d52693e43c/b1f6f0f6-01cf-48f3-bb8c-6c82fa454c2a through 8
      2012-10-09 12:45:59,187 DEBUG [storage.secondary.SecondaryStorageManagerImpl] (secstorage-1:null) Zone 1 is ready to launch secondary storage VM
      2012-10-09 12:45:59,329 DEBUG [cloud.consoleproxy.ConsoleProxyManagerImpl] (consoleproxy-1:null) Zone 1 is ready to launch console proxy
      2012-10-09 12:45:59,947 DEBUG [network.router.VirtualNetworkApplianceManagerImpl] (RouterStatusMonitor-1:null) Found 1 routers.
      2012

      Attachments

        1. access_log.2012-10-09.txt
          61 kB
          prashant kumar mishra
        2. api-server.log
          198 kB
          prashant kumar mishra
        3. catalina.out
          447 kB
          prashant kumar mishra
        4. management-server.log
          516 kB
          prashant kumar mishra

        Activity

          People

            edison Disheng Su
            prashantkm prashant kumar mishra
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: