All, I need help from the knife-vsphere developers. Email below was established with the general
distribution. I've been trying to get this to work for over a week. I found out yesterday that funding stops "end of month". So any help is truly appreciate. I need help specifically with the "vmdk add" feature for knife-vsphere. Chef and knife versions are: Chef-server 11.0.6-1 Chef client 11.4.0-1 Knife-vsphere 0.9.8 OS RHEL 6.1 First issue was that the command (annotated below) would fail saying "Could not find VMname", which I believe would be better described as the vsphere folder name created on the data store for the VM. After many different attempts, I tried shortening the length of the name from 17chars to 14 and it worked. So that's problem #1 that has a temporary work around but not one acceptable for long term. Problem #2 After shortening the name, the command fails because it says the vmdk already exists. Well, when the VM is cloned (also using knife-vsphere), it creates a primary vmdk after the name of the VM (VMname.vmdk) But more importantly, the folder where it resides on the data store is the name of the VM. So, when I issue the "vmdk add" options, it 'acts' it appears to be trying to create the primary folder again as it fails saying it is a duplicate name. If I try placing the additional vmdk on a 'different' datastore from the primary VMs vmdk, it works but if I try to create a third vmdk on the same datastore as vmdk#2, it again fails saying it already exists. If I place the third vmdk on a different datastore, it creates but creates it with the same name as vmdk#2. The following behavior is what I believe is happening, the "vmdk add" option is trying to create the original folder for the primary vmdk, it fails if the target data store is the same as the primary's and it would be because the folder was created when the VM was cloned. If the target is an alternate data store, it works for the first vmdk, then fails for any additional placed on the same datastore for the same VM. If you place it on a separate data store it works but does not increment the 'counter' in the suffix of your data store name, naming it as if it were the first add-on vmdk. In other words, it 'should' create as follows: [datastore#1]vmname.vmdk [datastore#1]vmname_1.vmdk [datastore#1]vmname_2.vmdk Or something like: [datastore#1]vmname.vmdk [datastore#2]vmname_1.vmdk [datastore#3]vmname_2.vmdk Instead, creates the names as: [datastore#1]vmname.vmdk [datastore#2]vmname_1.vmdk [datastore#3]vmname_1.vmdk And if you put on the 'same' datastore, it fails saying it already exists. Again, I appreciate your help. Anna
|
Archive powered by MHonArc 2.6.16.