spread icon indicating copy to clipboard operation
spread copied to clipboard

openstack backend

Open sergiocazzolato opened this issue 1 year ago • 7 comments

This is the new openstack backend. Through this backend it is possible to run tests/tasks in openstack infrastructure.

The documenatation is also added explaning how to setup spread to use it.

For the openstack backend implementation the lib goose was used. This lib provides the clients needed to interact with the different openstack modules (nova. neutron, glance and, keystone).

sergiocazzolato avatar Jun 02 '23 16:06 sergiocazzolato

Awesome, we are able to allocate and discard on our openstack tenant. Do you think it's feasible to support adding security groups automatically? For example, we do not use a default allow-ssh policy on our network so in order for these tests to work I had to manually attach the policy after allocation but before the test ran. We have other ports that may need to be open depending on the test so having a way to set these dynamically would be useful for us.

corytodd avatar Jun 07 '23 19:06 corytodd

Awesome, we are able to allocate and discard on our openstack tenant. Do you think it's feasible to support adding security groups automatically? For example, we do not use a default allow-ssh policy on our network so in order for these tests to work I had to manually attach the policy after allocation but before the test ran. We have other ports that may need to be open depending on the test so having a way to set these dynamically would be useful for us.

Thanks for taking a look. I'll add few extra features: add extra storage specify the network specify the security group

sergiocazzolato avatar Jun 07 '23 19:06 sergiocazzolato

Specifying the network and security group work great! This passes our testing, I would support a +1 on getting this merged. Thanks!

corytodd avatar Jun 09 '23 20:06 corytodd

Some feedback I got from Gustavo:

  • the names in "systems": "network" and "security-groups" should be looked at again, anything in this should be a generic term/concept that can be potentially reused in all the backends
  • the way images are picked should be similar to google (or linode) I tweaked the other things that came up during the review or that I noticed myself now :)

mvo5 avatar Jul 05 '23 12:07 mvo5

@mvo5 about the network list associated to a machine, the consideration here is that where there are more than 1 network associated to a machine, the ip used by spread to connect has to be provided by the first network. I'll include that in the README.

sergiocazzolato avatar Jul 17 '23 17:07 sergiocazzolato

Folks, please schedule a call for us next week so we can have a general conversation about the approach for authentication and testing before we all spend too many cycles on different avenues.

niemeyer avatar Mar 11 '24 17:03 niemeyer

I dropped the spread test for openstack due to issues and inconsistencies faced with devstack where it cannot replicate a normal openstack cluster.

A better alternative is to do something similar to google. After the openstack backend is merged, we add it as a backend in spread.yaml.

ZeyadYasser avatar Mar 25 '24 21:03 ZeyadYasser