Skip to content

Conversation

shwstppr
Copy link
Contributor

@shwstppr shwstppr commented Aug 27, 2025

Fixes #182

Adds params for Custom offerings. Constrained custom offerings allow min/max values for CPU and memory. Also adds params for encrypt root and storage tags.

New params added,

  • customized
  • min_cpu_number
  • max_cpu_number
  • min_memory
  • max_memory
  • encrypt_root
  • storage_tags

encryptroot

Fixes apache#182

Adds params for Custom offerings. Constrained custom offerings allow
min/max values for CPU and memory. Also adds params for encrypt root and
storage tags.

New params added,
- customized
- min_cpu_number
- max_cpu_number
- min_memory
- max_memory
- encrypt_root
- storage_tags

Signed-off-by: Abhishek Kumar <[email protected]>
@shwstppr shwstppr force-pushed the add-serviceoff-params branch from b40e651 to 9408600 Compare August 27, 2025 11:27
Signed-off-by: Abhishek Kumar <[email protected]>
Signed-off-by: Abhishek Kumar <[email protected]>
@vishesh92 vishesh92 requested a review from Copilot August 27, 2025 11:40
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

Adds support for custom service offerings in CloudStack by implementing parameters for constrained custom offerings, root disk encryption, and storage tags.

  • Adds custom offering parameters (customized flag, min/max CPU/memory constraints)
  • Implements root disk encryption capability for service offerings
  • Adds storage tags support for service offering configuration

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
website/docs/r/service_offering.html.markdown Documents the new parameters for custom offerings, encryption, and storage tags
cloudstack/resource_cloudstack_service_offering_test.go Adds comprehensive test case for all new custom offering parameters
cloudstack/resource_cloudstack_service_offering.go Implements the new schema fields and CRUD operations for custom offerings

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Copy link
Member

@vishesh92 vishesh92 left a comment

Choose a reason for hiding this comment

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

clgtm. didn't test.

@vishesh92
Copy link
Member

@shwstppr Acceptance tests are failing. Please check.

Signed-off-by: Abhishek Kumar <[email protected]>
Copy link
Member

@vishesh92 vishesh92 left a comment

Choose a reason for hiding this comment

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

lgtm. works as expected. Some weird behavior when customized is set to false but other parameters like min_cpu_number & max_cpu_number are present. It will probably be a good improvement to ensure customized is set to true when other params are present.
Another failure is during update of storage tags only. Because of issue in the MS, the update fails when only storage tags are updated. But subsequent apply works fine.

Copy link
Contributor

@DaanHoogland DaanHoogland left a comment

Choose a reason for hiding this comment

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

clgtm

@vishesh92 vishesh92 merged commit 2d90b19 into apache:main Aug 28, 2025
24 checks passed
@vishesh92 vishesh92 deleted the add-serviceoff-params branch August 28, 2025 11:40
@CodeBleu
Copy link
Collaborator

@vishesh92 @shwstppr I see this service offering changes were merged, but why are we not moving forward with this? It has some significant changes in it , and the new way of creating these resources going forward

ianc769 pushed a commit to ianc769/cloudstack-terraform-provider that referenced this pull request Sep 3, 2025
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.

Improvement: cloudstack_service_offering
4 participants