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

Operator does not reload when SmbShare's settings are changed #320

Open
pfaelzerchen opened this issue Dec 16, 2023 · 3 comments
Open

Operator does not reload when SmbShare's settings are changed #320

pfaelzerchen opened this issue Dec 16, 2023 · 3 comments

Comments

@pfaelzerchen
Copy link

I recognized that the samba-operator seems to automatically resolve changes to SmbShare definitions. I applied to following definition with kubectl apply:

apiVersion: samba-operator.samba.org/v1alpha1
kind: SmbShare
metadata:
  name: backup-windows
  namespace: media-files
spec:
  shareName: "backup"
  readOnly: true
  browseable: true
  securityConfig: smb-backup-security
  commonConfig: smb-backup-config

  storage:
    pvc:
      name: backup-windows

  scaling:
    availabilityMode: standard
    minClusterSize: 1
    groupMode: never

After I got access, I changed spec.readOnly to false (obviously readOnly for backups was a typo). After kubectl apply the resource to the cluster, nothing happened. I had to manually delete the pod for that share. After that, the operator successfully recreated the pod with the new settings.

This behaviour is reproducible. I had expected that the changes would be applied automatically.

@phlogistonjohn
Copy link
Collaborator

To help identify the issue: can you please take a look at the generated configmap that the operator creates and see if the change is reflected in the generated JSON file there that the operator provides to the samba containers?

@pfaelzerchen
Copy link
Author

The changes are immediately reflected in the config map. Switching to readOnly true, kubectl apply and kubectl get cm shows "read only": "yes" in the config map. This is also completely reproducible (switching back and forth).

@phlogistonjohn
Copy link
Collaborator

That implies that the problem is on the samba container side. Either an issue in the interaction between the configmap and the container or a bug in sambacc. Thanks for the info - I'll try and look into it more in-depth soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants