Fix race condition in test_security_groups

Listing security groups and taking the first one to change
rules doesn't give any warranty listed security group is
exactly the one used to create servers ports.

This avoids this problem by creating a security group and
passing it to server instead of having to search for it
after the server has been created.

Despite a test cases require a general refactory this should
at least fix the CI job intermittent failures related to
this test.

Partial-Bug: #1801306
Change-Id: I5ecb3c8711e7455e7f1588943a2ffd08ce154578
1 file changed