frapposelli / vagrant-vcenter

A Vagrant provider for VMware vCenter®
MIT License
106 stars 36 forks source link

Cannot upload using latest develop branch #31

Open vladistan opened 9 years ago

vladistan commented 9 years ago

I am on the latest 'develop' branch commit-id 'd2c47a5'

When I am trying to do vagrant up to bring up new box which hasn't been downloaded from atlas, the plugin downloads the box ok. But when it tries to upload it to the VCenter I get the following message

The Virtual Machine vladistan-trusty64-min was not found in this environment.
This should not happen, please log an issue on Github

Same thing happens when I am doing vagrant up and the box is already downloaded to the vagrant workstation.

The plugin does show the message Uploading [boxname], but the error occurs immediately after this message is shown. I think it doesn't even try to upload anything.

Switching back to tag 'v0.3.2' fixes the issue.

Here is an excerpt from the debug log

DEBUG connect_vcenter: hostname: vcenter55-2
DEBUG connect_vcenter: username: root
DEBUG connect_vcenter: password: <hidden>
 INFO warden: Calling IN action: #<VagrantPlugins::VCenter::Action::InventoryCheck:0x00000102091d90>
DEBUG inventory_check: Checking for box: vladistan-trusty64-min...
DEBUG inventory_check: Sleeping 2.1395028512873253 to avoid race conditions.
 INFO interface: info: Uploading [vladistan-trusty64-min]...
 INFO interface: info: ==> testbox: Uploading [vladistan-trusty64-min]...
==> testbox: Uploading [vladistan-trusty64-min]...
DEBUG inventory_check: OVF File: file:///Users/vlad/.vagrant.d/boxes/vladistan-VAGRANTSLASH-trusty64-min/0.0.6/vmware_ovf/trusty64-min.ovf
 INFO warden: Calling IN action: #<Vagrant::Action::Builtin::Call:0x000001020a5778>
 INFO runner: Preparing hooks for middleware sequence...
 INFO runner: 1 hooks defined.
 INFO runner: Running action: #<Vagrant::Action::Builder:0x000001041f5590>
 INFO warden: Calling IN action: #<VagrantPlugins::VCenter::Action::IsCreated:0x000001042358e8>
 WARN is_created: VM has not been created
 INFO warden: Calling OUT action: #<VagrantPlugins::VCenter::Action::IsCreated:0x000001042358e8>
 INFO runner: Preparing hooks for middleware sequence...
 INFO runner: 1 hooks defined.
 INFO runner: Running action: #<Vagrant::Action::Warden:0x00000101153608>
 INFO warden: Calling IN action: #<Proc:0x000001044152f8@/Applications/Vagrant/embedded/gems/gems/vagrant-1.6.5/lib/vagrant/action/warden.rb:94 (lambda)>
 INFO warden: Calling IN action: #<VagrantPlugins::VCenter::Action::BuildVM:0x00000101153540>
ERROR warden: Error occurred: The Virtual Machine vladistan-trusty64-min was not found in this environment.
This should not happen, please log an issue on Github