@@ -37,9 +37,9 @@ const (
37
37
38
38
// ReconcileSecurityGroups reconcile the security groups.
39
39
func (s * Service ) ReconcileSecurityGroups (openStackCluster * infrav1.OpenStackCluster , clusterName string ) error {
40
- s .scope .Logger ().Info ("Reconciling security groups" , "cluster" , clusterName )
40
+ s .scope .Logger ().Info ("Reconciling security groups" )
41
41
if ! openStackCluster .Spec .ManagedSecurityGroups {
42
- s .scope .Logger ().V (4 ).Info ("No need to reconcile security groups" , "cluster" , clusterName )
42
+ s .scope .Logger ().V (4 ).Info ("No need to reconcile security groups" )
43
43
return nil
44
44
}
45
45
@@ -290,7 +290,7 @@ func (s *Service) reconcileGroupRules(desired, observed infrav1.SecurityGroup) (
290
290
291
291
s .scope .Logger ().V (4 ).Info ("Deleting rules not needed anymore for group" , "name" , observed .Name , "amount" , len (rulesToDelete ))
292
292
for _ , rule := range rulesToDelete {
293
- s .scope .Logger ().V (6 ).Info ("Deleting rule" , "ruleID " , rule .ID , "groupName " , observed .Name )
293
+ s .scope .Logger ().V (6 ).Info ("Deleting rule" , "ID " , rule .ID , "name " , observed .Name )
294
294
err := s .client .DeleteSecGroupRule (rule .ID )
295
295
if err != nil {
296
296
return infrav1.SecurityGroup {}, err
@@ -321,7 +321,7 @@ func (s *Service) createSecurityGroupIfNotExists(openStackCluster *infrav1.OpenS
321
321
return err
322
322
}
323
323
if secGroup == nil || secGroup .ID == "" {
324
- s .scope .Logger ().V (6 ).Info ("Group doesn't exist, creating it. " , "name" , groupName )
324
+ s .scope .Logger ().V (6 ).Info ("Group doesn't exist, creating it" , "name" , groupName )
325
325
326
326
createOpts := groups.CreateOpts {
327
327
Name : groupName ,
@@ -391,7 +391,7 @@ func (s *Service) createRule(r infrav1.SecurityGroupRule) (infrav1.SecurityGroup
391
391
RemoteIPPrefix : r .RemoteIPPrefix ,
392
392
SecGroupID : r .SecurityGroupID ,
393
393
}
394
- s .scope .Logger ().V (6 ).Info ("Creating rule" , "Description " , r .Description , "Direction " , dir , "PortRangeMin " , r .PortRangeMin , "PortRangeMax " , r .PortRangeMax , "Proto " , proto , "etherType" , etherType , "RemoteGroupID " , r .RemoteGroupID , "RemoteIPPrefix " , r .RemoteIPPrefix , "SecurityGroupID " , r .SecurityGroupID )
394
+ s .scope .Logger ().V (6 ).Info ("Creating rule" , "description " , r .Description , "direction " , dir , "portRangeMin " , r .PortRangeMin , "portRangeMax " , r .PortRangeMax , "proto " , proto , "etherType" , etherType , "remoteGroupID " , r .RemoteGroupID , "remoteIPPrefix " , r .RemoteIPPrefix , "securityGroupID " , r .SecurityGroupID )
395
395
rule , err := s .client .CreateSecGroupRule (createOpts )
396
396
if err != nil {
397
397
return infrav1.SecurityGroupRule {}, err
0 commit comments