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

nInput_Init AF connection recover and enable statefullsets not be recycled #249

Closed
abrizida opened this issue Jan 27, 2025 · 1 comment
Closed
Assignees

Comments

@abrizida
Copy link
Collaborator

Describe the bug
When nAttrMon has a Kube setting, the pods for statefullsets should remain listed even if they are unreachable (this way it’s visible when an RAID instance goes down and since the statefullset will not change name, like what happens with the deployments).

Also when a pod changes IP nAttrMon is unable to refresh.

To Reproduce
Steps to reproduce the behavior:

  1. Change the Input for Init cron to 2 minutes
  2. Start nAttrMon and ensure it creates tha AF pool for the RAID instances
  3. Scale down a RAID instance and scale back up before the Init refreshes
  4. nAttrMon is unable to connect to the new POD

Expected behavior
nAttrMon should be able to recover.

@abrizida abrizida self-assigned this Jan 27, 2025
abrizida added a commit that referenced this issue Jan 27, 2025
Added a podStatefullset that returns the pod name when it's a statefullset, empty string in other cases. Changed the nInput_Init object to not recycle a kube AF connection pod if it's a statefull set. And when doing the factory on AF connections, if the URL changed for the specific AF connection, it should recreate it.
abrizida added a commit that referenced this issue Jan 28, 2025
Added a podStatefullset that returns the pod name when it's a statefullset, empty string in other cases. Changed the nInput_Init object to not recycle a kube AF connection pod if it's a statefull set. And when doing the factory on AF connections, if the URL changed for the specific AF connection, it should recreate it.
abrizida added a commit that referenced this issue Jan 28, 2025
Added a podStatefullset that returns the pod name when it's a statefullset, empty string in other cases. Changed the nInput_Init object to not recycle a kube AF connection pod if it's a statefull set. And when doing the factory on AF connections, if the URL changed for the specific AF connection, it should recreate it.
abrizida added a commit that referenced this issue Jan 28, 2025
Added a podStatefullset that returns the pod name when it's a statefullset, empty string in other cases. Changed the nInput_Init object to not recycle a kube AF connection pod if it's a statefull set. And when doing the factory on AF connections, if the URL changed for the specific AF connection, it should recreate it.
abrizida added a commit that referenced this issue Feb 5, 2025
Added detailed object information to the logErr messages and added some missing exception treatment.
nmaguiar added a commit that referenced this issue Feb 7, 2025
@abrizida
Copy link
Collaborator Author

Closing ticket. Already added.

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

1 participant