Skip to content

feat: check proxmox creation status and fail if it fails - #226

Open
BigSpaceships wants to merge 1 commit into
masterfrom
better-feedback
Open

BigSpaceships wants to merge 1 commit into
masterfrom
better-feedback

Conversation

@BigSpaceships

Copy link
Copy Markdown
Contributor

What

Checks to see if the vm creation task in proxmox fails, and if it does, send that error code back to the user. Also added watch support to hacking

Why

right now it fails silently and takes forever to fail

Test Plan

Lots of local testing

Env Vars

Nope

Documentation

Nope

Checklist

  • Tested all changes locally

Comment thread proxstar/tasks.py
status = get_task_status(proxmox, task_id)

if status['status'] == 'stopped' and status['exitstatus'] != 'OK':
logging.warning('Failed to provision, error code is {}'.format(status['exitstatus']))

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟡 Low: Code Quality Violation

do not use format with logging (...read more)

Avoid using format string with the format method when logging information.

Helpful? 👍/👎 View in Datadog  Leave us feedback  Documentation
🚩 Report as false positive. Flags the rule for review to improve detection accuracy.

Comment thread proxstar/tasks.py
status = get_task_status(proxmox, task_id)

if status['status'] == 'stopped' and status['exitstatus'] != 'OK':
logging.warning('Failed to provision, error code is {}'.format(status['exitstatus']))

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟡 Low: Code Quality Violation

do not use format with logging (...read more)

Avoid using format string with the format method when logging information.

Helpful? 👍/👎 View in Datadog  Leave us feedback  Documentation
🚩 Report as false positive. Flags the rule for review to improve detection accuracy.

@datadog-computersciencehouse

datadog-computersciencehouse Bot commented Nov 7, 2026 •

Copy link
Copy Markdown

Pipelines  Code Quality  Code Vulnerabilities  IaC  Library Vulnerabilities  Secrets

⚠️ Warnings

🛠️ 2 Code quality issues detected

Low: python-best-practices/logging-no-format do not use format string with logging functions View rule
proxstar/tasks.py:211
Low: python-best-practices/logging-no-format do not use format string with logging functions View rule
proxstar/tasks.py:81

Your PR has warnings. Please review the issues below.

🚦 1 Pipeline job failed

Python application | lint

View in Datadog · View in GitHub Actions

ℹ️ Info

No other issues found (see more)

🛡️ No new code vulnerabilities
📚 No new vulnerable libraries detected
🧱 No new Infrastructure as Code (IaC) issues
🔑 No new secrets detected

Useful? React with 👍 / 👎

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: 45944ee | Docs | View more details | Give us feedback!

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

Successfully merging this pull request may close these issues.

1 participant