Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

provider//passt: add changes for multiarch #5361

Merged
merged 1 commit into from
Jan 10, 2024

Conversation

smitterl
Copy link
Contributor

@smitterl smitterl commented Dec 21, 2023

Depends on avocado-framework/avocado-vt#3818

'passt.avx2' is a specialization only for x86_64.
On other architectures the process might just be "passt".

Change the regular expression to match any process containing
"passt".

check_vm_ip calculated the guest interface name for x86_64
for other architectures allow for configuration of this value.

Remove zone index when comparing routes as they might differ
between host and guest (e.g. if the interfaces are named differently).

Check gateways by confirming that routes in guest are available on
host instead of confirming they must be exactly the same on both ends.

Pass the target interface name to the check_connection function to
allow for the correct selection of the gateway. When a host
has two interfaces the function used a list and failed.

check_protocol_connection sent a command to start listening to
the server VM and the client send a message to quickly. We could
establish a wait condition like checking ports of the machine
but a static sleep seemed like a simpler and still reliable solution.

The port list definition for check_portforward needs to contain
the host interface, not the VM interface. Therefore, pass the parameter
and remove the unused vm_iface.

@smitterl
Copy link
Contributor Author

@chloerh Please help review
@dzhengfy for visibility

@smitterl smitterl changed the title provider//passt: make check platform independent provider//passt: provider//passt: add changes for multiarch Dec 21, 2023
@smitterl smitterl changed the title provider//passt: provider//passt: add changes for multiarch provider//passt: add changes for multiarch Dec 21, 2023
@smitterl
Copy link
Contributor Author

@yalzhang please help review

Copy link
Contributor

@yalzhang yalzhang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGMT

'passt.avx2' is a specialization only for x86_64.
On other architectures the process might just be "passt".

Change the regular expression to match any process containing
"passt".

`check_vm_ip` calculated the guest interface name for x86_64
for other architectures allow for configuration of this value.

Remove zone index when comparing routes as they might differ
between host and guest (e.g. if the interfaces are named differently).

Check gateways by confirming that routes in guest are available on
host instead of confirming they must be exactly the same on both ends.

Pass the target interface name to the check_connection function to
allow for the correct selection of the gateway. When a host
has two interfaces the function used a list and failed.

`check_protocol_connection` sent a command to start listening to
the server VM and the client send a message to quickly. We could
establish a wait condition like checking ports of the machine
but a static sleep seemed like a simpler and still reliable solution.

The port list definition for `check_portforward` needs to contain
the host interface, not the VM interface. Therefore, pass the parameter
and remove the unused vm_iface.

Signed-off-by: Sebastian Mitterle <[email protected]>
@chloerh chloerh merged commit f01dc2a into autotest:master Jan 10, 2024
5 checks passed
@smitterl smitterl deleted the passt_provider branch July 26, 2024 12:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants