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

test #6688

Closed
wants to merge 5 commits into from
Closed

test #6688

wants to merge 5 commits into from

Conversation

jitendra-12113
Copy link
Contributor

No description provided.

@CLAassistant
Copy link

CLAassistant commented Dec 17, 2020

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
2 out of 3 committers have signed the CLA.

✅ jitendra-12113
✅ gaurav061
❌ Jitendra Kumar


Jitendra Kumar seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

@jitendra-12113
Copy link
Contributor Author

Setting up the volumeCount for aws provider to 1 whose instanceType starting with c5/c4.

@gaurav061
Copy link
Contributor

Kindly review the changes,
Change: For all AWS instances starting with c4 and c5, default volume-info field will be 1. This includes c5d. .. instances as well,
we have added a property volumeCount which holds the default value.

Copy link
Contributor

@SergeyPotachev SergeyPotachev left a comment

Choose a reason for hiding this comment

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

Please add junit tests for changes in InstanceTypeController.java.

// setting up the volumeCount to 1 for instanceType starting with c5/c4
for (InstanceType instanceType: instanceTypeList) {
if (provider.code.equals(aws.toString()) &&
((instanceType.idKey.instanceTypeCode.startsWith("c5")) ||
Copy link
Contributor

Choose a reason for hiding this comment

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

This is incorrect. c5d instances are similar to i3 instances in that they use NVMe drives. So we want to use the value present in the details.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks @Arnav15 for confirming this. Will do this only for c4/C5 instance type which won't include c5d.
Will do necessary changes and update CR.

@@ -608,7 +609,7 @@ export default class ClusterFields extends Component {
if (volumeDetail) {
const deviceInfo = {
volumeSize: volumeDetail.volumeSizeGB,
numVolumes: volumesList.length,
numVolumes: volumeCount,
Copy link
Collaborator

Choose a reason for hiding this comment

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

could you please update logic here as well

@jitendra-12113
Copy link
Contributor Author

Will raise another PR.

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.

6 participants