Ask Your Question
0

Query Openstack Time

asked 2017-03-21 09:54:12 -0500

Tori gravatar image

Hi

I can retrieve the last_updated_time for various resources via API but i do not know what the delta is between that tin me and the time of the VM I am calling the request on. Is there an API method to retrieve the current time according to Openstack?

Thanks, Toru

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2017-03-21 16:45:15 -0500

zaneb gravatar image

The resolution of those timestamps is only 1s anyway, so this should never be an issue if you're keeping your clocks in sync with NTP.

I don't know of an API to just retrieve the time.

edit flag offensive delete link more

Comments

Hi @zanweb, thanks for the reply, the problem is i cannot guarantee that my "client" machine and the running cloud will be sync'd off the same NTP server. They might even be in different time-zones.

Tori gravatar imageTori ( 2017-03-22 04:06:26 -0500 )edit

It's hard to believe that your NTP time would generally be off by more than a few hundred milliseconds, so smaller than the resolution of the timestamp. Time zones are completely irrelevant.

zaneb gravatar imagezaneb ( 2017-03-23 13:59:41 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2017-03-21 09:54:12 -0500

Seen: 161 times

Last updated: Mar 21 '17