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

proxmox_template: fix the wrong path called on proxmox_template.task_status #9277

Merged
merged 1 commit into from
Dec 30, 2024

Conversation

xunleii
Copy link
Contributor

@xunleii xunleii commented Dec 18, 2024

SUMMARY

The task_status functions uses the wrong Proxmox API path to fetch tasks logs (node instead of nodes). The documentation can be found here: https://pve.proxmox.com/pve-docs/api-viewer/index.html#/nodes/{node}/tasks (the node path doesn't exist)

Fixes #9276

ISSUE TYPE
  • Bugfix Pull Request
COMPONENT NAME

proxmox_template

@xunleii xunleii changed the title proxmox_template: add missing 's' on proxmox_template.task_status proxmox_template: fix the wrong path called on proxmox_template.task_status Dec 18, 2024
@xunleii xunleii force-pushed the main branch 2 times, most recently from 2254068 to 956db7e Compare December 18, 2024 00:21
@ansibullbot
Copy link
Collaborator

@ansibullbot ansibullbot added bug This issue/PR relates to a bug module module new_contributor Help guide this first time contributor plugins plugin (any type) labels Dec 18, 2024
@felixfontein felixfontein added check-before-release PR will be looked at again shortly before release and merged if possible. backport-9 Automatically create a backport for the stable-9 branch backport-10 Automatically create a backport for the stable-10 branch labels Dec 20, 2024
Copy link
Collaborator

@felixfontein felixfontein left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your contribution! My guess is that the path changed in some Proxmox release. The module also needs to support Proxmox versions where it currently works, so you need to figure out in which version it changed and adjust the code to only use the new path for the appropriate versions.

@xunleii
Copy link
Contributor Author

xunleii commented Dec 21, 2024

Thanks for your contribution! My guess is that the path changed in some Proxmox release. The module also needs to support Proxmox versions where it currently works, so you need to figure out in which version it changed and adjust the code to only use the new path for the appropriate versions.

Hello, thank you for your reply.

I hadn't thought to do any research, thinking it was a typo 😅.

However, after some research, and as far as I can go, the API path to interact with a node has always been nodes and not node.

With all this in mind, I think it's a typo 😟.

@xunleii xunleii force-pushed the main branch 3 times, most recently from 6d82eb2 to 9d5fd39 Compare December 21, 2024 08:26
Missing the 's' means using the wrong API, making log reading
impossible. Should fix !9276

Co-Authored-By: Felix Fontein <felix@fontein.de>
Signed-off-by: Alexandre Nicolaie <xunleii@users.noreply.github.com>
@ansibullbot

This comment was marked as outdated.

@ansibullbot ansibullbot added ci_verified Push fixes to PR branch to re-run CI needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR labels Dec 21, 2024
@ansibullbot ansibullbot added stale_ci CI is older than 7 days, rerun before merging and removed ci_verified Push fixes to PR branch to re-run CI needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR labels Dec 29, 2024
Copy link
Collaborator

@russoz russoz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@felixfontein felixfontein merged commit 403418f into ansible-collections:main Dec 30, 2024
129 checks passed
Copy link

patchback bot commented Dec 30, 2024

Backport to stable-9: 💚 backport PR created

✅ Backport PR branch: patchback/backports/stable-9/403418f75da9b23d0cef65ca582ed7f7cdb65e16/pr-9277

Backported as #9475

🤖 @patchback
I'm built with octomachinery and
my source is open — https://github.com/sanitizers/patchback-github-app.

@felixfontein felixfontein removed the check-before-release PR will be looked at again shortly before release and merged if possible. label Dec 30, 2024
patchback bot pushed a commit that referenced this pull request Dec 30, 2024
…status (#9277)

fix: add missing 's' on proxmox_template.task_status

Missing the 's' means using the wrong API, making log reading
impossible. Should fix !9276

Signed-off-by: Alexandre Nicolaie <xunleii@users.noreply.github.com>
Co-authored-by: Felix Fontein <felix@fontein.de>
(cherry picked from commit 403418f)
Copy link

patchback bot commented Dec 30, 2024

Backport to stable-10: 💚 backport PR created

✅ Backport PR branch: patchback/backports/stable-10/403418f75da9b23d0cef65ca582ed7f7cdb65e16/pr-9277

Backported as #9476

🤖 @patchback
I'm built with octomachinery and
my source is open — https://github.com/sanitizers/patchback-github-app.

patchback bot pushed a commit that referenced this pull request Dec 30, 2024
…status (#9277)

fix: add missing 's' on proxmox_template.task_status

Missing the 's' means using the wrong API, making log reading
impossible. Should fix !9276

Signed-off-by: Alexandre Nicolaie <xunleii@users.noreply.github.com>
Co-authored-by: Felix Fontein <felix@fontein.de>
(cherry picked from commit 403418f)
@felixfontein
Copy link
Collaborator

@xunleii thanks for your contribution!
@russoz thanks for reviewing!

felixfontein pushed a commit that referenced this pull request Dec 30, 2024
…g path called on proxmox_template.task_status (#9475)

proxmox_template: fix the wrong path called on proxmox_template.task_status (#9277)

fix: add missing 's' on proxmox_template.task_status

Missing the 's' means using the wrong API, making log reading
impossible. Should fix !9276

Signed-off-by: Alexandre Nicolaie <xunleii@users.noreply.github.com>
Co-authored-by: Felix Fontein <felix@fontein.de>
(cherry picked from commit 403418f)

Co-authored-by: Alexandre Nicolaie <xunleii@users.noreply.github.com>
felixfontein pushed a commit that referenced this pull request Dec 30, 2024
…ng path called on proxmox_template.task_status (#9476)

proxmox_template: fix the wrong path called on proxmox_template.task_status (#9277)

fix: add missing 's' on proxmox_template.task_status

Missing the 's' means using the wrong API, making log reading
impossible. Should fix !9276

Signed-off-by: Alexandre Nicolaie <xunleii@users.noreply.github.com>
Co-authored-by: Felix Fontein <felix@fontein.de>
(cherry picked from commit 403418f)

Co-authored-by: Alexandre Nicolaie <xunleii@users.noreply.github.com>
Massl123 pushed a commit to Massl123/community.general that referenced this pull request Feb 7, 2025
…status (ansible-collections#9277)

fix: add missing 's' on proxmox_template.task_status

Missing the 's' means using the wrong API, making log reading
impossible. Should fix !9276

Signed-off-by: Alexandre Nicolaie <xunleii@users.noreply.github.com>
Co-authored-by: Felix Fontein <felix@fontein.de>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-9 Automatically create a backport for the stable-9 branch backport-10 Automatically create a backport for the stable-10 branch bug This issue/PR relates to a bug module module new_contributor Help guide this first time contributor plugins plugin (any type) stale_ci CI is older than 7 days, rerun before merging
Projects
None yet
Development

Successfully merging this pull request may close these issues.

proxmox_template: 501 Not Implemented when using the uri field
4 participants