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

Add per-platform instance tags #5486

Conversation

enkeefe00
Copy link
Contributor

When determining if a particular VM instance can be created, the VM flavor's maximum number of instances is compared to the current number of instances with the same instance-tag to ensure no more than the maximum number of VMs are created. Since the current configurations have all flavors using the same instance tag, the count of unique instances (flavors, in this case) is wrong. Adding per-platform/flavor instance tags should fix this.

@openshift-ci openshift-ci bot requested review from hugares and ifireball February 6, 2025 20:12
@hugares hugares requested a review from mshaposhnik February 6, 2025 20:13
@mshaposhnik
Copy link
Contributor

mshaposhnik commented Feb 7, 2025

In general, this approach is OK for me. I have the following tag format proposal though:

[prod|stage]-[platform]-[optional_extra_quantifier]

i..e prod-amd64, stage-arm64-2mxlarge, prod-ppc64-d200

The reason for that is that some IBM accounts hosts both staging and prod VMs, and it has to have different tags for the:

  • correct amount control
  • us "adminitrators" is always helpful to see in the console where those machines come from.

And I would like ask to add more explicit examples into the documentation, so that fuctionality become more trasparent.

@enkeefe00 enkeefe00 force-pushed the add-instance-tags-to-VM-flavors branch from f3229dd to c977bec Compare February 7, 2025 18:23
Copy link

openshift-ci bot commented Feb 7, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: enkeefe00, mshaposhnik

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci bot added the approved label Feb 7, 2025
When determining if a particular VM instance can be created, the VM
flavor's maximum number of instances is compared to the current number
of instances with the same instance-tag to ensure no more than the
maximum number of VMs are created. Since the current configurations
have all flavors using the same instance tag, the count of unique
instances (flavors, in this case) is wrong. Adding per-platform/flavor
instance tags should fix this.
@enkeefe00 enkeefe00 force-pushed the add-instance-tags-to-VM-flavors branch from c977bec to bca2617 Compare February 11, 2025 16:11
@enkeefe00
Copy link
Contributor Author

@hugares or @mshaposhnik can you guys give this an LGTM so I can try to test it in the staging clusters?

@openshift-merge-bot openshift-merge-bot bot merged commit c57030c into redhat-appstudio:main Feb 12, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants