Page MenuHomeVyOS Platform

Upgrade from 1.2.5 to 1.3-rolling-202007040117 results in broken config due to case mismatch
Closed, ResolvedPublicBUG

Description

When upgrading from 1.2.5 to 1.3-rolling-202007040117, the configuration does not load correctly on first boot. When loaded manually, the failing section is:

...
ssh {
    disable-password-authentication
    loglevel info
}
...

The 1.3 syntax appears to be loglevel INFO.

The upgrade should tolerate insignificant case differences like this.

Details

Version
1.3-rolling-202007040117
Is it a breaking change?
Config syntax change (migratable)
Issue type
Bug (incorrect behavior)

Event Timeline

Adding screenshots showing the error and the fix.

Screenshot from 2020-07-07 19-42-57.png (420×736 px, 9 KB)

Screenshot from 2020-07-07 19-43-42.png (423×608 px, 6 KB)

The reason this is failing is VyOS 1.2 lacks proper input validation on the loglevel nodes.

https://github.com/vyos/vyos-1x/blob/crux/interface-definitions/ssh.xml#L123-L147 - in fact every string is supported. I will write a validator sanitizing the inputs

c-po triaged this task as Urgent! priority.
c-po edited a custom field.
erkin set Issue type to Bug (incorrect behavior).Aug 29 2021, 1:54 PM
erkin removed a subscriber: Global Notifications.