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

Managed worker security group will be applied to control plane machines in absence of managed control plane SG #1784

Closed
stephenfin opened this issue Dec 8, 2023 · 0 comments · Fixed by #1785
Labels
kind/bug Categorizes issue or PR as related to a bug.

Comments

@stephenfin
Copy link
Contributor

/kind bug

What steps did you take and what happened:

if util.IsControlPlaneMachine(machine) && openStackCluster.Status.ControlPlaneSecurityGroup != nil {
managedSecurityGroup = openStackCluster.Status.ControlPlaneSecurityGroup.ID
} else if openStackCluster.Status.WorkerSecurityGroup != nil {
managedSecurityGroup = openStackCluster.Status.WorkerSecurityGroup.ID
}

From code inspection, it appears that if a machine is a control plane machine, a control plane machine security group is not specified, but a worker machine security group is specified, the worker machine SG will be applied to the control plane machine.

What did you expect to happen:

Worker SGs should only be applied to control plane machines and vice versa.

Anything else you would like to add:

None.

Environment:

  • Cluster API Provider OpenStack version (Or git rev-parse HEAD if manually built): 70494b6
  • Cluster-API version: n/a
  • OpenStack version: n/a
  • Minikube/KIND version: n/a
  • Kubernetes version (use kubectl version): n/a
  • OS (e.g. from /etc/os-release): n/a
@k8s-ci-robot k8s-ci-robot added the kind/bug Categorizes issue or PR as related to a bug. label Dec 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants