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

S3 Marketplace monitoring fails with TOTAL_MB defined #6701

Closed
3 tasks
OpenNebulaSupport opened this issue Aug 30, 2024 · 0 comments
Closed
3 tasks

S3 Marketplace monitoring fails with TOTAL_MB defined #6701

OpenNebulaSupport opened this issue Aug 30, 2024 · 0 comments

Comments

@OpenNebulaSupport
Copy link
Collaborator

Description
When the TOTAL_MB attribute is defined for the S3 Private Marketplace, the monitoring script will fail

To Reproduce
Define TOTAL_MB for an S3 marketplace, watch /var/log/one/oned.log to see failures

Expected behavior
The monitor script should return the available appliances

Details

  • Affected Component: Marketplaces
  • Version: 6.8.3

Additional context
The error is happening due the the total_mb variable being a string in line 103 of the s3/monitor script. The TOTAL_MB attribute is wrapped in quotes when creating/updating the S3 Marketplace Template, causing the monitor script to bring it in as a string.

/var/lib/one/remotes/market/s3/monitor:103:in <main>': undefined method -' for "123456":String (NoMethodError)

Progress Status

  • Code committed
  • Testing - QA
  • Documentation (Release notes - resolved issues, compatibility, known issues)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant