Comments (12)
@sugamasuhasini I am able to recreate this. I haven't found the issue yet though. I can get the createDate
to return properly anytime I use another tool or write the code by hand to make the call. Whenever I use rbvmomi though, it shows nil
. I'm thinking it's related to deserialization of that parameter. I'll keep looking.
from rbvmomi.
@jrgarcia Thanks for the update! Is there an equivalent property that gives me when the VM was created?
from rbvmomi.
@sugamasuhasini Not that I'm aware of. You can use modified
and it should show the creation date if it has not been modified since creation. That is nowhere near equivalent though. I'm still looking into this and will keep you updated. Sorry for the delay!
from rbvmomi.
I've found a workaround, but it's unacceptable in my opinion. I'm still looking to see what's happening. To get this working, you can do
vim = method_that_will_connect # however you normally connect with RbVmomi
vm = method_that_will_get_your_vm_object # however you want to get your VirtualMachine object
create_date = vim.propertyCollector.RetrievePropertiesEx(
specSet: [{
propSet: [{
type: vm.class.wsdl_name,
pathSet: ['config.createDate']
}],
objectSet: [obj: vm]
}],
options: {}
).objects.first.propSet.first.val
I cannot figure out why createDate
is not returning on this even though it's clearly available if you specifically ask for that property. I'm still actively looking into it though.
from rbvmomi.
Exactly!! every other property works except for this one :(
from rbvmomi.
Yeah, I have no idea why. I'm getting pretty frustrated trying to figure out the root cause. It's definitely going to get fixed though!
from rbvmomi.
I'm very angry that I somehow missed this, but it should be fixed for you now. Sorry that this took so long. I'm kind of embarrassed that I somehow didn't catch this sooner. 🤦♂
from rbvmomi.
@jrgarcia Tried querying that property on multiple VCs. Still no luck :( is there any tweak need to be done from my end to get that to work?
from rbvmomi.
@sugamasuhasini Sorry! I was out on vacation. Are they all 6.7+ vCenters? You mentioned using 6.7 in your original report, but I want to make sure that's the case.
What happens if you call RbVmomi::VIM.connect(opts)
where opts
contains a key :rev
set to 6.7
? I tried this and it was immediately available on every instance I tested.
from rbvmomi.
@jrgarcia yes they are 6.7 vcenters. I still get blank value :(
from rbvmomi.
@sugamasuhasini Did you try passing in :rev => '6.7'
as one of the options to RbVmomi::VIM.connect
? If that doesn't work, can you verify the version of RbVmomi you are using and what the .rev
property is set to.
from rbvmomi.
@jrgarcia Thanks a lot :) This is working fine for me after including the :rev => '6.7' in the opts.
Appreciate your help in this!!
from rbvmomi.
Related Issues (20)
- Memory leak caused by at_exit {} usage HOT 4
- esxcli option not working HOT 1
- RbVmomi 2.1.0 breaks PBM HOT 6
- Drop support for all EOL Ruby versions
- Add code coverage/review tools to run for every commit/PR
- Get code coverage to a respectable level
- Revamp the VMODL DB usage HOT 1
- API to create Datastore HOT 18
- A specified parameter was not correct: HOT 11
- Trying to get an example to add an nvdimm device/host PMEM datastore to a virtual machine. I've read the docs, but I'm missing some clarity somewhere, and keep getting errors. HOT 3
- vStorageObjectManager not able to create a disk under specified folder HOT 8
- kitchen destroy stopped working on kitchen-vcenter HOT 7
- portgroup info empty HOT 5
- Error message while using esxi_cpu_stats.rb HOT 10
- Definition of StoragePod class and how to query for it? HOT 1
- Add linting/code analysis HOT 4
- Update Hash syntax HOT 6
- RbVmomi deserialization fails on managed object type `ContentLibrary` HOT 4
- New Data Types added in vSphere 7.0 U1 and U2 missing from vmodl.db
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rbvmomi.