Plugin isn't ran while using OpenStack as the provider
When using OpenStack as a provider the vagrant-registration plugin doesn't seem to run:
$ vup --provider=openstack Bringing machine 'jhunt-sat62' up with 'openstack' provider... ==> jhunt-sat62: Finding flavor for server... ==> jhunt-sat62: Finding image for server... ==> jhunt-sat62: Launching a server with the following settings... ==> jhunt-sat62: -- Tenant : GSS TAM ==> jhunt-sat62: -- Name : jhunt-sat62 ==> jhunt-sat62: -- Flavor : m1.small ==> jhunt-sat62: -- FlavorRef : 83098b08-7339-4089-bc07-3f2a14b7a4c1 ==> jhunt-sat62: -- Image : rhel-guest-image-7.1-20150224.0.x86_64 ==> jhunt-sat62: -- ImageRef : da47214f-5a10-4d44-8175-cfaf354b1148 ==> jhunt-sat62: -- KeyPair : jhunt-key ==> jhunt-sat62: Waiting for the server to be built... /home/jhunt/.vagrant.d/gems/gems/vagrant-openstack-provider-0.7.2/lib/vagrant-openstack-provider/action/create_server.rb:134:inwaiting_for_server_to_be_built': Object#timeout is deprecated, use Timeout.timeout instead.
==> jhunt-sat62: Using floating IP 10.3.11.65
==> jhunt-sat62: Waiting for machine to boot. This may take a few minutes...
jhunt-sat62: SSH address: 10.3.8.173:22
jhunt-sat62: SSH username: cloud-user
jhunt-sat62: SSH auth method: private key
jhunt-sat62: Warning: Connection refused. Retrying...
==> jhunt-sat62: Machine booted and ready!
==> jhunt-sat62: Rsyncing folder: /home/jhunt/vagrant/openstack-satellite/ => /vagrant
==> jhunt-sat62: Setting time zone...
`
But on a destroy, it does try to unregister....
$ vdestroy ==> jhunt-sat62: Unregistering box with vagrant-registration... ==> jhunt-sat62: Deleting server... ==> jhunt-sat62: Waiting for the server to be deleted...
Hi, it seems there needs to be a provider-specific hook, similar to
https://github.com/projectatomic/adb-vagrant-registration/blob/eeb9d8c238de7b559cac19383c4f100b7803b84d/lib/vagrant-registration/plugin.rb#L23
Hooked ideally, right after
==> jhunt-sat62: Machine booted and ready!
is run.