Coder Social home page Coder Social logo

Comments (12)

jrgarcia avatar jrgarcia commented on August 16, 2024

@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.

sugamasuhasini avatar sugamasuhasini commented on August 16, 2024

@jrgarcia Thanks for the update! Is there an equivalent property that gives me when the VM was created?

from rbvmomi.

jrgarcia avatar jrgarcia commented on August 16, 2024

@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.

jrgarcia avatar jrgarcia commented on August 16, 2024

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.

sugamasuhasini avatar sugamasuhasini commented on August 16, 2024

Exactly!! every other property works except for this one :(

from rbvmomi.

jrgarcia avatar jrgarcia commented on August 16, 2024

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.

jrgarcia avatar jrgarcia commented on August 16, 2024

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.

sugamasuhasini avatar sugamasuhasini commented on August 16, 2024

@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.

jrgarcia avatar jrgarcia commented on August 16, 2024

@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.

sugamasuhasini avatar sugamasuhasini commented on August 16, 2024

@jrgarcia yes they are 6.7 vcenters. I still get blank value :(

from rbvmomi.

jrgarcia avatar jrgarcia commented on August 16, 2024

@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.

sugamasuhasini avatar sugamasuhasini commented on August 16, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.