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

openstack: run test with only 1 public IP #349

Merged
merged 5 commits into from
Aug 5, 2022

Conversation

tormath1
Copy link
Contributor

@tormath1 tormath1 commented Aug 5, 2022

When spawning instance in OpenStack, VMs need to attach an interface with a public IP in order to SSH into it. With this change, we can now SSH proxy jump into the devstack host (Openstack dev environment) into the VM deployed in the public network.

tmp hsExzPr6Z4

This reduce the dependency to floating IPs.

Related to: flatcar/Flatcar#785

Tests:

sudo ./bin/kola run --openstack-network public --openstack-domain default --platform openstack --openstack-flavor ds1G --openstack-user core --openstack-host 147.28... --openstack-keyfile ./id_rsa --openstack-image flatcar-stable --openstack-config-file ./openstack.json bpf.execsnoop

The AccessIPv4 was returning an empty string.

Signed-off-by: Mathieu Tortuyaux <mtortuyaux@microsoft.com>
@tormath1 tormath1 force-pushed the tormath1/openstack branch from 0cc977e to 21022f1 Compare August 5, 2022 12:31
@tormath1 tormath1 self-assigned this Aug 5, 2022
@tormath1 tormath1 marked this pull request as ready for review August 5, 2022 12:39
@tormath1 tormath1 requested a review from a team August 5, 2022 12:39
Copy link
Member

@krnowak krnowak left a comment

Choose a reason for hiding this comment

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

Is this going to be used by a vendor test?

@tormath1
Copy link
Contributor Author

tormath1 commented Aug 5, 2022

@krnowak thanks for the review. Yes, the idea is to add it as a vendor test, we recently got a couple of issues related to openstack provider, that'd be nice to ensure coverage on this platform.

This dialer can be used to proxy jump SSH connection.

Signed-off-by: Mathieu Tortuyaux <mtortuyaux@microsoft.com>
Signed-off-by: Mathieu Tortuyaux <mtortuyaux@microsoft.com>
if an `openstack-host` is present in the command line, the flight will
be created with a proxy jump SSH server.

this allows to SSH into the created VMs from the devstack server and it
avoids consuming more elastic IPs

Signed-off-by: Mathieu Tortuyaux <mtortuyaux@microsoft.com>
Signed-off-by: Mathieu Tortuyaux <mtortuyaux@microsoft.com>
@tormath1 tormath1 force-pushed the tormath1/openstack branch from 30652d5 to fad7f69 Compare August 5, 2022 14:30
@tormath1
Copy link
Contributor Author

tormath1 commented Aug 5, 2022

did a final test with kubeadm.v1.23.4.flannel.base.

@tormath1 tormath1 merged commit 5435f26 into flatcar-master Aug 5, 2022
@tormath1 tormath1 deleted the tormath1/openstack branch August 5, 2022 14:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants