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

[BUG]:Module snapshotschedule tries to get snapshot_list and hits platform API Bug #140

Open
nikolisg7 opened this issue Dec 6, 2024 · 0 comments
Labels
needs-triage Issue requires triage. type/bug Something isn't working

Comments

@nikolisg7
Copy link

Describe the bug
Task to create snapshot schedule fails if the schedule exists and an individual snapshot exists in the schedule with shadow_bytes > 4294967295
The error is ultimately due to a platform API Bug that specifies shadow_bytes with 4294967295 (see: Isilon/isilon_sdk_python#62)
For the case of creating snapshot schedules, it is unclear why `self.api_instance.list_snapshot_snapshots(schedule=name) is called

To Reproduce

  • Create snapshot schedule with the snapshotschedule module
  • Modify file system content so that a snapshot is created from the schedule with shadow_bytes > 4294967295 (create, snapshot, delete, repeat)
  • Re-run the task to create the snapshot schedule

Expected behavior
Expected behavior would be ok, since the schedule is already defined; instead we get:

failed: [cha-store1 -> localhost] (item={'name': 'entenhausen_f_weekly', 'path': '/ifs/entenhausen/entenhausen_f', 'desired_    retention': 30, 'retention_unit': 'days', 'pattern': 'entenhausen_f_weekly-%Y-%m-%d_%H:%M', 'schedule': 'Every Friday at 16:    00 PM'}) => {"ansible_loop_var": "schedule", "changed": false, "msg": "Get details of snapshot schedule entenhausen_f_weekly     failed with error: Invalid value for `shadow_bytes`, must be a value less than or equal to `4294967295`", "schedule": {"des    ired_retention": 30, "name": "entenhausen_f_weekly", "path": "/ifs/entenhausen/entenhausen_f", "pattern": "entenhausen_f_wee    kly-%Y-%m-%d_%H:%M", "retention_unit": "days", "schedule": "Every Friday at 16:00 PM"}}

apparently due the fact that the module tries to get the snapshot list for the schedule and falls victim to the platform API Bug

Screenshots
If applicable, add screenshots to help explain your problem.

Logs
If applicable, submit logs or stack traces from the affected services

System Information (please complete the following information):

  • OS/Version: OneFS 9.7.2.1
  • Ansible Version 2.16.5
  • Python Version 3.10
  • isilon-sdk 0.3.0.1
  • dellemc.powerscale 3.4.0

Additional context
Add any other context about the problem here.

@nikolisg7 nikolisg7 added needs-triage Issue requires triage. type/bug Something isn't working labels Dec 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-triage Issue requires triage. type/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant