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

[RFE] Add Openstack to Flatcar test coverage #785

Closed
tormath1 opened this issue Jun 23, 2022 · 2 comments · Fixed by flatcar/scripts#502
Closed

[RFE] Add Openstack to Flatcar test coverage #785

tormath1 opened this issue Jun 23, 2022 · 2 comments · Fixed by flatcar/scripts#502
Labels
kind/feature A feature request kind/infrastructure Issues concerning build / test / release tooling or infrastructure of Flatcar Container Linux. platform/openstack

Comments

@tormath1
Copy link
Contributor

tormath1 commented Jun 23, 2022

Current situation

Mantle does support openstack platform and Flatcar has Openstack releases but we do not have a deployed Openstack infrastructure to run tests against.

Impact

No Openstack coverage.

Ideal future situation

Having an Openstack test environment.

Implementation options

Additional information

TBD

@tormath1 tormath1 added kind/infrastructure Issues concerning build / test / release tooling or infrastructure of Flatcar Container Linux. kind/feature A feature request platform/openstack labels Jun 23, 2022
@tormath1
Copy link
Contributor Author

tormath1 commented Aug 5, 2022

A devstack instance has been deployed and Mantle codebase updated to work with only one public IP. The last thing to do: add vendor script to flatcar-linux/script to implement the kola logic.

@tormath1
Copy link
Contributor Author

OpenStack CI scripts are missing on the two pipelines:

Implementation options

Flatcar OpenStack image first needs to be created on the OpenStack infra using the URL of the build image, example:

IMAGE_ID=$(ore openstack create-image --name test-ore --file https://alpha.release.flatcar-linux.net/amd64-usr/3305.0.0/flatcar_production_openstack_image.img.gz --config-file ./openstack.json)

Then the IMAGE_ID can be used to run the test:

kola run --openstack-network public --openstack-domain default --platform openstack --openstack-flavor m1.medium --openstack-user openstack-user --openstack-host 1.2.3.4 --openstack-keyfile ./id_rsa --openstack-image "${IMAGE_ID}" --openstack-config-file ./openstack.json "*"

config-file can be stored as a credential, same for the keyfile, the user and OpenStack host. Here's the expected content of the config-file: https://github.com/flatcar-linux/mantle/blob/c833f695503b47a166d3305e0b781edaf521135b/auth/openstack.go#L27-L33

Additional information

Garbage collector can also be implemented here: https://github.com/flatcar-linux/scripts/blob/main/ci-automation/garbage_collect_cloud.sh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature A feature request kind/infrastructure Issues concerning build / test / release tooling or infrastructure of Flatcar Container Linux. platform/openstack
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant