Skip to content

Including instance details in KubernetesClusterResponse#4420

Merged
DaanHoogland merged 3 commits into
apache:masterfrom
shapeblue:cks-vms
Oct 27, 2020
Merged

Including instance details in KubernetesClusterResponse#4420
DaanHoogland merged 3 commits into
apache:masterfrom
shapeblue:cks-vms

Conversation

@davidjumani

@davidjumani davidjumani commented Oct 22, 2020

Copy link
Copy Markdown
Contributor

Description

Returning list of virtual machine nodes of a cluster rather than just their IDs. Simplifies the UI as well (Reduces API calls and checks post 4.15 release in primate for backward compatibility)

Types of changes

  • Breaking change (fix or feature that would cause existing functionality to change)
  • New feature (non-breaking change which adds functionality)
  • Bug fix (non-breaking change which fixes an issue)
  • Enhancement (improves an existing feature and functionality)
  • Cleanup (Code refactoring and cleanup, that may add test cases)

How Has This Been Tested?

(kubeadmin) 🐱 > list kubernetesclusters id=3d2d10cd-db04-4c4f-87f0-7405d45333e8 
{
  "count": 1,
  "kubernetescluster": [
    {
      .....
      "name": "cluster-1",
      "virtualmachines": [
        {
          .....
          "displayname": "cluster-1-master-1754f2cc2da",
          .....
        },
        {
         .....
          "displayname": "cluster-1-node-1754f2cd5f1",
          .....
        }
      ],
    }
  ]
}

@davidjumani

Copy link
Copy Markdown
Contributor Author

@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

@davidjumani a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress.

@davidjumani

Copy link
Copy Markdown
Contributor Author

@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

@davidjumani a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress.

@blueorangutan

Copy link
Copy Markdown

Packaging result: ✔centos7 ✔centos8 ✔debian. JID-2262

@davidjumani

Copy link
Copy Markdown
Contributor Author

@blueorangutan test

@blueorangutan

Copy link
Copy Markdown

@davidjumani a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests

UserVmJoinVO userVM = userVmJoinDao.findById(vmMapVO.getVmId());
if (userVM != null) {
vmIds.add(userVM.getUuid());
UserVmResponse vmResponse = ApiDBUtils.newUserVmResponse(respView, "virtualmachine", userVM,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

would like this string constant defined

@blueorangutan

Copy link
Copy Markdown

Trillian test result (tid-3045)
Environment: kvm-centos7 (x2), Advanced Networking with Mgmt server 7
Total time taken: 39498 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr4420-t3045-kvm-centos7.zip
Intermittent failure detected: /marvin/tests/smoke/test_kubernetes_clusters.py
Intermittent failure detected: /marvin/tests/smoke/test_vpc_redundant.py
Smoke tests completed. 83 look OK, 2 have error(s)
Only failed tests results shown below:

Test Result Time (s) Test File
test_03_deploy_and_upgrade_kubernetes_cluster Failure 259.96 test_kubernetes_clusters.py
test_03_create_redundant_VPC_1tier_2VMs_2IPs_2PF_ACL_reboot_routers Failure 301.90 test_vpc_redundant.py

response.setNetworkId(ntwk.getUuid());
response.setAssociatedNetworkName(ntwk.getName());
List<String> vmIds = new ArrayList<String>();
List<UserVmResponse> vmIds = new ArrayList<UserVmResponse>();

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@davidjumani considering that this variable has changed from a list of VM IDs to a list of VM Responses I would suggest renaming it.
What do you think of vmResponses or vmResponseList?

@davidjumani

Copy link
Copy Markdown
Contributor Author

@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

@davidjumani a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress.

@blueorangutan

Copy link
Copy Markdown

Packaging result: ✔centos7 ✔centos8 ✔debian. JID-2267

@davidjumani

Copy link
Copy Markdown
Contributor Author

@blueorangutan test

@blueorangutan

Copy link
Copy Markdown

@davidjumani a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests

@blueorangutan

Copy link
Copy Markdown

Trillian test result (tid-3061)
Environment: kvm-centos7 (x2), Advanced Networking with Mgmt server 7
Total time taken: 41056 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr4420-t3061-kvm-centos7.zip
Intermittent failure detected: /marvin/tests/smoke/test_diagnostics.py
Intermittent failure detected: /marvin/tests/smoke/test_kubernetes_clusters.py
Intermittent failure detected: /marvin/tests/smoke/test_vpc_redundant.py
Smoke tests completed. 85 look OK, 0 have error(s)
Only failed tests results shown below:

Test Result Time (s) Test File

@DaanHoogland

Copy link
Copy Markdown
Contributor

@GabrielBrascher is this lgty?

@shwstppr shwstppr left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM on code changes and functionality works. Only concern, will this make listKubernetesCluster API response too big!

@davidjumani

davidjumani commented Oct 27, 2020

Copy link
Copy Markdown
Contributor Author

@shwstppr This is needed for the cluster auotscaler (rather return the entire result than give listVMs access to an external service)
Also makes primate simpler (reduces backwards compatibility work)

@DaanHoogland

Copy link
Copy Markdown
Contributor

satisfied @shwstppr ? can we merge?

@shwstppr shwstppr left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM. @davidjumani seems okay based on auto-scaler, Primate requirements cc @DaanHoogland

@DaanHoogland DaanHoogland merged commit 8a8947a into apache:master Oct 27, 2020
@DaanHoogland DaanHoogland deleted the cks-vms branch October 27, 2020 13:44
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.

5 participants