vagrant-smartos / vagrant-smartos-zones

Manage SmartOS local zones in Vagrant
MIT License
54 stars 9 forks source link

`vagrant zones create` does not work #19

Closed sax closed 9 years ago

sax commented 9 years ago

If you do the following:

vagrant destroy <name>
vagrant create <name>

Then the zone is not created. Something happens between the plugin and zonegate that interferes with the guest capabilities.

sax commented 9 years ago

I've done quite a bit of refactoring in the last two days, but still haven't gotten to this. I think the logic for creating zones should move out of the :zone_create capability and into either Zone or ZoneInfo. Probably the latter for now, until that can be refactored into something that makes more sense.

The error appears to be in creating zone users, since when Zonegate is active we're not able to run the capabilities in the global zone. Maybe in capability?. I think that the :create_zone_users capability should disappear and that logic should move into the zone creation code. It always needs to run on zone creation, and doesn't need to be separate.

sax commented 9 years ago

FYI I probably won't have much time this week to fix this, but so far I think it's the last bug that needs fixing before a real plugin release.

bixu commented 9 years ago

Comments prior to this (refactoring) make sense to me.

On 13 Oct 2014, at 21:11, Eric Saxby notifications@github.com wrote:

FYI I probably won't have much time this week to fix this, but so far I think it's the last bug that needs fixing before a real plugin release.

— Reply to this email directly or view it on GitHub.

tylerflint commented 9 years ago

I'm not sure I understand the problem. I'm also not familiar with the 'vagrant create' command. Are you referring to 'vagrant up'? Also, in the example above, are you configuring multiple vms in your Vagrantfile?

sax commented 9 years ago

The plugin adds a vagrant zones command to vagrant, where you can start/stop/destroy/recreate the zone.

On Tue, Oct 14, 2014 at 3:57 PM, Tyler Flint notifications@github.com wrote:

I'm not sure I understand the problem. I'm also not familiar with the 'vagrant create' command. Are you referring to 'vagrant up'? Also, in the example above, are you configuring multiple vms in your Vagrantfile?

— Reply to this email directly or view it on GitHub https://github.com/vagrant-smartos/vagrant-smartos-zones/issues/19#issuecomment-59123929 .


e s

tylerflint commented 9 years ago

Oh ok. So were you meaning:

vagrant zones destroy vagrant zones create

Thanks