MAAS fails to enlist machines with local time in the future

Bug #1934532 reported by Junien F
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MAAS
Invalid
Undecided
Unassigned

Bug Description

Hi,

Using maas snap 2.8.6-8602-g.07cdffcaa.

I was investigating why enlistment of some machines was failing, and realized that the local time on these nodes was 7000 years in the future, and that was making TLS certificate verification fails.

Sadly I don't have logs anymore, and I'm not sure where a server getting enlisted uses HTTPS, but perhaps MAAS should sync time from NTP as early as possible during enlistment ?

Thanks !

Revision history for this message
Junien F (axino) wrote :

To be specific, machines get enlisted but the BMC information isn't set.

Revision history for this message
Bill Wear (billwear) wrote :

@axino, not sure what you're suggesting. enlistment isn't supposed to change the machines being enlisted; we could (and maybe already do) an NTP sync up on the MAAS side, but that isn't going to solve this problem. are you suggesting that MAAS should check the time on these machines and refuse to enlist them, in this case?

Changed in maas:
status: New → Incomplete
Revision history for this message
Junien F (axino) wrote :

If enlistment isn't supposed to change anything at all on the machines, I'm suggesting we surface that they are years in the future (or in the past) to MAAS operators, also informing them that it means that TLS certification verification will always fail, and so TLS (meaning, among other things, https) will not be usable.

I'm also suggesting to add the option "Set the time using NTP during enlistment", and I'd suggest that the default value should be "true" - I don't know any use case where an operator would want to keep a out of date machine which prevents enlistment, which prevents MAAS from working at all.

It's also very tedious to fix manually, since enlistment doesn't install MAAS credentials on the BMC, one has to go to the BIOS and set the time there, manually, for each machine.

Changed in maas:
status: Incomplete → New
Revision history for this message
Bill Wear (billwear) wrote :

agreed that MAAS *could* handle such a situation, but i would classify this as a feature request, not a bug. @axino, can you please file this under the "Features" category in discourse?

Changed in maas:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.