Page MenuHomeVyOS Platform

interfaces migration script fails on AWS hosts
Closed, WontfixPublicBUG

Description

The recently added migration script https://github.com/vyos/vyos-1x/blob/current/src/migration-scripts/interfaces/20-to-21 fails to run on AWS hosts due to this error captured in the attached log:

i-0b4d268e646362d89.jpg (400×720 px, 88 KB)

The root cause appears to be that ethtool does not report link autonegotiation properties at all for the virtualized NICs on the AWS hosts. E.g., the following is the ethtool output on a previous working equuleus build:

vyos@ip-172-16-1-65:~$ ethtool eth0
Settings for eth0:
	Current message level: 0x000004e3 (1251)
			       drv probe ifup rx_err tx_err tx_done
	Link detected: yes

We could update the AWS config template in vyos-bulid to have a newer version to avoid the migration, but it may be better to patch the migration script to support interfaces that have ethtool output like the above.

Details

Difficulty level
Unknown (require assessment)
Version
vyos-1.3-rolling-202109122106-amd64
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Unspecified (possibly destroys the router)
Issue type
Bug (incorrect behavior)

Event Timeline

cc: @c-po maybe this was a side effect of unifying the two parsers

Note: config versions were added to the default configs here https://github.com/vyos/vyos-build/commit/23639568a945f19471af88547dab45b87bbd642d, but the current vyos-build-ami replaces the default file with its own that hasn't been modified to add the versioning comment yet. That can probably be fixed whenever that repo is updated for equuleus (I have my own patched local branch that I could publish if desired).

The root issue of the migration script supporting interfaces that don't report autonegotiation settings still stands, as even if default boot works users could still want to migrate an existing config and get bitten by the script.

syncer triaged this task as High priority.
syncer added a subscriber: dmbaturin.