Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

puppet node_vmware create fails with "The --template option must be a path" even though I can see the template VM listed in the "puppet node_vmware list" command output

puppet node_vmware list

Notice: Connecting ... Notice: Connected to w.x.y.z as root (API version 4.1) Notice: Finding all Virtual Machines ... (Started at 04:47:17 AM) Notice: Control will be returned to you in 10 minutes at 04:57 AM if locating is unfinished. Locating: 100% |ooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo| Time: 00:00:00 Notice: Complete /VMware vCenter Server Appliance powerstate: poweredOn name: VMware vCenter Server Appliance hostname: localhost instanceid: id1 ipaddress: 1.2.3.4 template: false

/UI VM powerstate: poweredOn name: UI VM hostname: firstvm-external instanceid: id2 ipaddress: 5.6.7.8 template: false

/Analytics VM powerstate: poweredOn name: Analytics VM hostname: secondvm-external instanceid: id3 ipaddress: 9.10.11.12 template: false

/Ubuntu-12.04-amd64-bit-basic powerstate: poweredOn name: Ubuntu-12.04-amd64-bit-basic hostname: devenv-aas instanceid: id4 ipaddress: 13.14.15.16 template: false

/Ubuntu-12.04-amd64-bit-template powerstate: poweredOff name: Ubuntu-12.04-amd64-bit-template hostname: -------- instanceid: 5034b7e5-ee62-25f3-f3c5-1b0625e8d604 ipaddress: ---.---.---.--- template: false

puppet nodevmware create --verbose --template="/Ubuntu-12.04-amd64-bit-template" --vmname="devil-master" --wait-for-boot Error: The --template option must be a path, for example /Datacenters/Solutions/vm/templates/puppettemplate. Error: Try 'puppet help node_vmware create' for usage

I have followed the examples I found to the letter (the official CP guide states "This is the template seen earlier with the list action."). Note I have also tried the option where the VM was converted to a template, but it also fails. What am I missing ?

puppet node_vmware create fails with "The --template option must be a path" even though I can see the template VM listed in the "puppet node_vmware list" command output

puppet node_vmware list

Notice: Connecting ...
Notice: Connected to w.x.y.z as root (API version 4.1)
Notice: Finding all Virtual Machines ... (Started at 04:47:17 AM)
Notice: Control will be returned to you in 10 minutes at 04:57 AM if locating is unfinished.
Locating:          100% |ooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo| |ooooooo....ooooooo| Time: 00:00:00
Notice: Complete
/VMware vCenter Server Appliance
  powerstate: poweredOn
  name:       VMware vCenter Server Appliance
  hostname:   localhost
  instanceid: id1
  ipaddress:  1.2.3.4
  template:   false

false /UI VM powerstate: poweredOn name: UI VM hostname: firstvm-external instanceid: id2 ipaddress: 5.6.7.8 template: false

false /Analytics VM powerstate: poweredOn name: Analytics VM hostname: secondvm-external instanceid: id3 ipaddress: 9.10.11.12 template: false

false /Ubuntu-12.04-amd64-bit-basic powerstate: poweredOn name: Ubuntu-12.04-amd64-bit-basic hostname: devenv-aas instanceid: id4 ipaddress: 13.14.15.16 template: false

false /Ubuntu-12.04-amd64-bit-template powerstate: poweredOff name: Ubuntu-12.04-amd64-bit-template hostname: -------- instanceid: 5034b7e5-ee62-25f3-f3c5-1b0625e8d604 ipaddress: ---.---.---.--- template: false

false

puppet nodevmware node_vmware create --verbose --template="/Ubuntu-12.04-amd64-bit-template" --vmname="devil-master" --wait-for-boot

Error: The --template option must be a path, for example /Datacenters/Solutions/vm/templates/puppettemplate.
/Datacenters/Solutions/vm/templates/puppet_template.
Error: Try 'puppet help node_vmware create' for usage

usage

I have followed the examples I found to the letter (the official CP guide states "This is the template seen earlier with the list action."). Note I have also tried the option where the VM was converted to a template, but it also fails. What am I missing ?