openSUSE / open-build-service

Build and distribute Linux packages from sources in an automatic, consistent and reproducible way #obs
https://openbuildservice.org
GNU General Public License v2.0
935 stars 438 forks source link

Installed OBS appliance has wrong time set up #4633

Open bgeuken opened 6 years ago

bgeuken commented 6 years ago

Issue description

Some days after installation I checked the time of the system and noticed that it's incorrect. This was causing ec2 cloud uploads to fails because during the upload the timestamp of the request is checked. Kudos to @ChrisBr for debugging this (description from stackoverflow).

After setting the correct time the upload succeeded.

Actual result:

# date
Fri Mar  9 12:30:24 UTC 2018

Expected result:

# date
Fri Mar  9 12:44:24 UTC 2018

Example of the upload failure:

Start uploading image SLES12-SP3-EC2-HVM-BYOS.x86_64-1.0.12-Build3.2.raw.xz.
Successfully authenticated.
Creating temporary key pair
Deleting temporary key pair  temporary_ec2_uploadkey.hsx_pcna.key
An error occurred (AuthFailure) when calling the DeleteKeyPair operation: AWS was not able to validate the provided access credentials
bgeuken commented 6 years ago

P3: (2) Find out all policies we need for ec2 uploads

adrianschroeter commented 6 years ago

ntp should be configured and update at network startup time. Isn't this working?

bgeuken commented 6 years ago

ntp was / is not running on that machine. However, this issue can also happen on installations that are not set up via our appliance (aka. where we can not control if ntp is running). So I documented this in our documentation for now.