Issue #21957 has been updated by Alexander Golovin.

Kenn Hussey wrote:
> This is a duplicate of https://projects.puppetlabs.com/issues/21549.
Fixed by this patch -> 
https://projects.puppetlabs.com/attachments/2866/fog-1.5.0_ruby-1.9-fix.patch
Just one line must be changed in this file 
/opt/puppet/lib/ruby/gems/1.9.1/gems/fog-1.5.0/lib/fog/vsphere/requests/compute/list_virtual_machines.rb

from this: if ( not folder.methods.include?('parent') ) or ( folder == root )
to this: if ( not folder.respond_to?(:parent) ) or ( folder == root )

Tested, node_vmware feature works well after line was changed.




----------------------------------------
Bug #21957: node_vmware create error
https://projects.puppetlabs.com/issues/21957#change-96284

* Author: Alexander Golovin
* Status: Duplicate
* Priority: High
* Assignee: Zack Smith
* Category: 
* Target version: 
* Affected Puppet version: 
* Keywords: 
* Branch: 
----------------------------------------
# puppet --version
3.2.2 (Puppet Enterprise 3.0.0)

[root@myhost]# puppet node_vmware create --vmname=mynewvm 
--template="/Datacenters/Data Center, MY/vm/PROD/PUPPET/RHEL6"
Notice: Connecting ...
Notice: Connected to myvmware.domain.local as mylogin (API version 4.1)
Notice: Locating VM at /Datacenters/Data Center, MY/vm/PROD/PUPPET/RHEL6 
(Started at 02:06:28 AM)
Notice: Control will be returned to you in 10 minutes at 02:16 AM if locating 
(1/2) is unfinished.
Locating (1/2):    100% 
|oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo|
 Time: 00:00:00
Error: Could not find VM at /Datacenters/Data Center, MY/vm/PROD/PUPPET/RHEL6
Error: Try 'puppet help node_vmware create' for usage



-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://projects.puppetlabs.com/my/account

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to