Skip to content

api: Add 'created' field to API response - #5210

Merged
nvazquez merged 2 commits into
apache:mainfrom
shapeblue:add-created-field-to-response
Jul 20, 2021
Merged

api: Add 'created' field to API response#5210
nvazquez merged 2 commits into
apache:mainfrom
shapeblue:add-created-field-to-response

Conversation

@Pearl1594

Copy link
Copy Markdown
Contributor

Description

Fixes: #5209
This PR adds 'created' field to the response of listing Networks, VPCs, Projects, NetworkOffering

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)

Feature/Enhancement Scale or Bug Severity

Bug Severity

  • BLOCKER
  • Critical
  • Major
  • Minor
  • Trivial

Screenshots (if appropriate):

How Has This Been Tested?

image

@Pearl1594

Copy link
Copy Markdown
ContributorAuthor

@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

@Pearl1594 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: ✔️ el7 ✔️ el8 ✔️ debian. SL-JID 558

Comment threadapi/src/main/java/org/apache/cloudstack/api/response/ProjectResponse.java Outdated

@GabrielBrascherGabrielBrascher left a comment

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.

There are a couple of pending additions raised by @DaanHoogland regarding API "since 4.16.0.0" and an autogenerated commented line that could be removed (in my opinion).

Despite these small adjustments, code LGTM.

Comment threadapi/src/main/java/com/cloud/network/NetworkProfile.java Outdated
@Pearl1594

Copy link
Copy Markdown
ContributorAuthor

@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

@Pearl1594 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: ✔️ el7 ✔️ el8 ✔️ debian. SL-JID 582

@davidjumani

Copy link
Copy Markdown
Contributor

@blueorangutan test

@blueorangutan

Copy link
Copy Markdown

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

@nvazquez

Copy link
Copy Markdown
Contributor

Thanks @davidjumani
@Pearl1594 can you please address the open comments? Look like minor changes

@nvazqueznvazquez reopened this Jul 19, 2021
@Pearl1594

Copy link
Copy Markdown
ContributorAuthor

@nvazquez the comments have been addressed. Thanks

@nvazquez

Copy link
Copy Markdown
Contributor

Thanks @Pearl1594, waiting for test results and should be to merge

@blueorangutan

Copy link
Copy Markdown

Trillian test result (tid-1311)
Environment: kvm-centos7 (x2), Advanced Networking with Mgmt server 7
Total time taken: 64197 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr5210-t1311-kvm-centos7.zip
Intermittent failure detected: /marvin/tests/smoke/test_deploy_virtio_scsi_vm.py
Intermittent failure detected: /marvin/tests/smoke/test_network.py
Intermittent failure detected: /marvin/tests/smoke/test_privategw_acl.py
Intermittent failure detected: /marvin/tests/smoke/test_routers_network_ops.py
Intermittent failure detected: /marvin/tests/smoke/test_ssvm.py
Intermittent failure detected: /marvin/tests/smoke/test_storage_policy.py
Intermittent failure detected: /marvin/tests/smoke/test_templates.py
Intermittent failure detected: /marvin/tests/smoke/test_usage.py
Intermittent failure detected: /marvin/tests/smoke/test_vm_life_cycle.py
Intermittent failure detected: /marvin/tests/smoke/test_volumes.py
Intermittent failure detected: /marvin/tests/smoke/test_vpc_redundant.py
Intermittent failure detected: /marvin/tests/smoke/test_vpc_router_nics.py
Intermittent failure detected: /marvin/tests/smoke/test_vpc_vpn.py
Smoke tests completed. 79 look OK, 10 have error(s)
Only failed tests results shown below:

TestResultTime (s)Test File
test_01_RVR_Network_FW_PF_SSH_default_routes_egress_trueFailure344.57test_routers_network_ops.py
test_02_RVR_Network_FW_PF_SSH_default_routes_egress_falseFailure347.54test_routers_network_ops.py
test_03_ssvm_internalsFailure14.45test_ssvm.py
ContextSuite context=TestVMWareStoragePolicies>:setupError0.00test_storage_policy.py
test_02_create_template_with_checksum_sha1Error65.39test_templates.py
test_03_create_template_with_checksum_sha256Error65.37test_templates.py
test_04_create_template_with_checksum_md5Error65.40test_templates.py
test_05_create_template_with_no_checksumError65.37test_templates.py
test_04_extract_templateFailure128.33test_templates.py
ContextSuite context=TestISOUsage>:setupError0.00test_usage.py
test_01_volume_usageFailure787.40test_usage.py
test_10_attachAndDetach_isoFailure1510.31test_vm_life_cycle.py
test_06_download_detached_volumeFailure425.91test_volumes.py
ContextSuite context=TestVPCRedundancy>:setupError0.00test_vpc_redundant.py
ContextSuite context=TestVPCNics>:setupError0.00test_vpc_router_nics.py
ContextSuite context=TestRVPCSite2SiteVpn>:setupError0.00test_vpc_vpn.py
ContextSuite context=TestVPCSite2SiteVPNMultipleOptions>:setupError0.00test_vpc_vpn.py
ContextSuite context=TestVpcRemoteAccessVpn>:setupError0.00test_vpc_vpn.py
ContextSuite context=TestVpcSite2SiteVpn>:setupError0.00test_vpc_vpn.py

@nvazquez

Copy link
Copy Markdown
Contributor

@Pearl1594@DaanHoogland please kick another round of packaging + test after PR #5218 is merged

@blueorangutan

Copy link
Copy Markdown

Packaging result: ✔️ el7 ✔️ el8 ✔️ debian. SL-JID 597

@sureshanapartisureshanaparti 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.

code LGTM

@sureshanaparti

Copy link
Copy Markdown
Contributor

@blueorangutan test

@blueorangutan

Copy link
Copy Markdown

@sureshanaparti 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-1322)
Environment: kvm-centos7 (x2), Advanced Networking with Mgmt server 7
Total time taken: 37953 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr5210-t1322-kvm-centos7.zip
Intermittent failure detected: /marvin/tests/smoke/test_privategw_acl.py
Intermittent failure detected: /marvin/tests/smoke/test_vm_snapshots.py
Smoke tests completed. 88 look OK, 1 have error(s)
Only failed tests results shown below:

TestResultTime (s)Test File
test_03_vpc_privategw_restart_vpc_cleanupFailure1031.25test_privategw_acl.py

@nvazquez

Copy link
Copy Markdown
Contributor

Merging based on approvals and test results, failure seems unrelated

@nvazquez
nvazquez merged commit 1f743e9 into apache:mainJul 20, 2021
Sign up for freeto 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.

created field is nt shown for some entities

7 participants

@Pearl1594@blueorangutan@davidjumani@nvazquez@sureshanaparti@DaanHoogland@GabrielBrascher