TritonDataCenter / smartos-live

For more information, please see http://smartos.org/ For any questions that aren't answered there, please join the SmartOS discussion list: https://smartos.topicbox.com/groups/smartos-discuss
1.57k stars 245 forks source link

delegate_dataset fails if zones has explicit mountpoint #642

Open ismell opened 8 years ago

ismell commented 8 years ago

If the zones pool has an explicit mountpoint:

zones  mountpoint            /zones                   local

and then I try and create a zone with delegate_dataset: true I get the following error:

root@headnode /var/tmp/zones]# vmadm create -f documents-lx.json
Command failed: could not verify zfs dataset zones/bfff0017-6754-c2f5-de54-a5c580c9430c/data:     mountpoint cannot be inherited
zoneadm: zone bfff0017-6754-c2f5-de54-a5c580c9430c failed to verify

Maybe vmadm needs to set the mountpoint explicitly for the delegated dataset or just not have an explicit mountpoint on the zones pool ;)

foxx commented 7 years ago

Having this same issue..

ismell commented 7 years ago

Just unset your explicit mountpoint on the zones pool.

foxx commented 7 years ago

Yeah that worked, but it would be good if the error was more verbose about why it failed