Skip to content
This repository has been archived by the owner on Mar 25, 2018. It is now read-only.

add support to get instance creation datetime from compute api (NodeMetadata? ) #1497

Open
hackndoes opened this issue Apr 7, 2013 · 4 comments
Assignees

Comments

@hackndoes
Copy link

There is a need to get the creation datetime of an instance using the compute api for generic cross cloud provider support.

@ghost ghost assigned abayer Apr 7, 2013
@demobox
Copy link
Member

demobox commented Apr 7, 2013

Note that for e.g. EC2 RunningInstance already has launchTime information. Initial questions from me would be:

  • which clouds specifically do you need this information for?
  • for these clouds, is the information available via the provider-specific domain objects already?
  • for how many clouds is this information not currently available in the provider domain logic?

@abayer
Copy link
Member

abayer commented Apr 7, 2013

fwiw, I tend to think this is worthwhile - EC2, OpenStack Nova and CloudStack all have a launch time (or created time) field. It would need to be Nullable, given how many of the other APIs don't have it (i.e., vcloud, byon, cloudservers...), but it seems reasonable to add it to NodeMetadata when possible.

@demobox
Copy link
Member

demobox commented Apr 8, 2013

EC2, OpenStack Nova and CloudStack all have a launch time

Seems like the current "big guns", indeed... ;-)

Do we do @Nullable launchTime or Optional<...> launchTime in NodeMetadata nowadays? @adriancole ?

@codefromthecrypt
Copy link
Contributor

I could go either way since the class already has nullable fields.
Personally, I prefer Optional.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants