Uploaded image for project: 'Modules'
  1. Modules
  2. MODULES-7350

If zone creation fails with an assigned dataset, the dataset can not be reused

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: zone_core
    • Labels:
    • Template:
    • Story Points:
      2

      Description

      See PUP-2817 for the original report. The applied manifests are

      zone {"dataset":
        ensure => running,
        path => "/zones/dataset",
        dataset => ['rpool/stuff'],
      }
       
      Info: Applying configuration version '1409242942'
      Debug: Executing '/usr/sbin/zoneadm -z dataset list -p'
      Debug: Executing '/usr/sbin/zonecfg -z dataset info'
      Debug: Executing '/usr/sbin/zoneadm -z dataset list -p'
      Debug: Executing '/usr/sbin/zonecfg -z dataset info'
      Debug: Executing '/usr/sbin/zoneadm -z dataset install'
      Error: Could not install zone: Execution of '/usr/sbin/zoneadm -z dataset install' returned 1: could not verify zfs dataset zonepool: dataset does not exist
      zoneadm: zone dataset failed to verify
      
      

       
      zone {"dataset":
        ensure => running,
        path => "/zones/dataset",
        dataset => ['rpool/stuff2'],
      }
      Info: Applying configuration version '1409243015'
      Debug: Executing '/usr/sbin/zoneadm -z dataset list -p'
      Debug: Executing '/usr/sbin/zonecfg -z dataset info'
      Debug: Executing '/usr/sbin/zoneadm -z dataset list -p'
      Debug: Executing '/usr/sbin/zonecfg -z dataset info'
      Debug: Executing '/usr/sbin/zoneadm -z dataset install'
      Error: Could not install zone: Execution of '/usr/sbin/zoneadm -z dataset install' returned 1: could not verify zfs dataset zonepool: dataset does not exist
      zoneadm: zone dataset failed to verify
      

      zone {"dataset3":
        ensure => running,
        path => "/zones/dataset3",
        dataset => ['rpool/stuff3'],
      }
       
      Info: Applying configuration version '1409243034'
      Debug: Executing '/usr/sbin/zoneadm -z dataset3 list -p'
      Debug: Executing '/usr/sbin/zonecfg -z dataset3 info'
      Debug: Executing '/usr/sbin/zoneadm -z dataset3 list -p'
      Debug: Executing '/usr/sbin/zonecfg -z dataset3 info'
      Debug: Executing '/usr/sbin/zoneadm -z dataset3 install'
      Error: Could not install zone: Execution of '/usr/sbin/zoneadm -z dataset3 install' returned 1: could not verify zfs dataset rpool/stuff2: dataset does not exist
      zoneadm: zone dataset3 failed to verify
      
      

      Further information in this [gist

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              rahul Rahul Gopinath
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Zendesk Support