Skip to content

Commit 78dca32

Browse files
committed
ci: create a dedicated security group to avoid run time race conditions with name default
Signed-off-by: Paul Kroeher <paul.kroeher@cyberus-technology.de> On-behalf-of: SAP paul.kroeher@sap.com
1 parent f2f447e commit 78dca32

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

modules/testing/default.nix

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,15 @@ in
184184
openstack security group rule create --proto icmp default
185185
openstack security group rule create --proto tcp --dst-port 22 default
186186
187+
# create a dedicated security group to avoid run time race conditions with name >default<
188+
openstack security group create testsg
189+
openstack security group rule create testsg \
190+
--protocol tcp --dst-port 22 --ingress --remote-ip 0.0.0.0/0
191+
openstack security group rule create testsg \
192+
--protocol icmp --ingress --remote-ip 0.0.0.0/0
193+
openstack security group rule create testsg \
194+
--protocol tcp --egress --remote-ip 0.0.0.0/0
195+
187196
mkdir -p /root/.ssh/
188197
ssh-keygen -q -N "" -t rsa -f /root/.ssh/id_rsa
189198
openstack keypair create --public-key ~/.ssh/id_rsa.pub mykey

0 commit comments

Comments
 (0)