Skip to content

kvm: fix exception in volume stats after storage migration - #3884

Merged
yadvr merged 1 commit into
apache:4.13from
ustcweizhou:4.13-fix-volume-stats-exception
Feb 19, 2020
Merged

kvm: fix exception in volume stats after storage migration#3884
yadvr merged 1 commit into
apache:4.13from
ustcweizhou:4.13-fix-volume-stats-exception

Conversation

@ustcweizhou

Copy link
Copy Markdown
Contributor

Description

on kvm, the 'path' of volume is the file name on primary storage. we should use 'path' instead of 'uuid' in volume statistics.

Fixes: #3878

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)

Screenshots (if appropriate):

How Has This Been Tested?

  1. storage migration
  2. volume statistics every 10 minutes (default)

@ustcweizhou
ustcweizhou changed the base branch from master to 4.13February 12, 2020 21:34
@weizhouapacheweizhouapache changed the title kvm: fix exception in volume statts after storage migrationkvm: fix exception in volume stats after storage migrationFeb 12, 2020

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

Does it matter for managed vs unmanaged?

@yadvryadvr closed this Feb 13, 2020
@yadvryadvr reopened this Feb 13, 2020
@yadvr

Copy link
Copy Markdown
Member

@blueorangutan package

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

Nevermind, saw the PR that introduced the regression

@blueorangutan

Copy link
Copy Markdown

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

@yadvr

Copy link
Copy Markdown
Member

@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

@rhtyd 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: ✖centos6 ✔centos7 ✔debian. JID-848

@blueorangutan

Copy link
Copy Markdown

Packaging result: ✖centos6 ✔centos7 ✔debian. JID-849

@yadvr

Copy link
Copy Markdown
Member

Packaging overlap failure, rekicking
@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

@rhtyd 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: ✖centos6 ✔centos7 ✔debian. JID-850

@yadvryadvr added this to the 4.13.1.0 milestone Feb 13, 2020
@yadvr

Copy link
Copy Markdown
Member

@blueorangutan test

@blueorangutan

Copy link
Copy Markdown

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

@yadvryadvr closed this Feb 14, 2020
@yadvryadvr reopened this Feb 14, 2020
@yadvr

Copy link
Copy Markdown
Member

@blueorangutan test

@blueorangutan

Copy link
Copy Markdown

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

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

looks good, I trust Wei, but as a matter of principle, did someone test?

@andrijapanicsb

Copy link
Copy Markdown
Contributor

LGTM

haven't tested. @weizhouapache if you tested, I'm fine with it - thx for the fix.

@weizhouapache

Copy link
Copy Markdown
Member

@DaanHoogland@andrijapanicsb @rhtyd

I have tested with qcow2 on NFS. Did not test local storage and Ceph RBD.

@yadvryadvr reopened this Feb 17, 2020
@yadvr

Copy link
Copy Markdown
Member

@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

@rhtyd 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: ✖centos6 ✔centos7 ✔debian. JID-876

@DaanHoogland

Copy link
Copy Markdown
Contributor

@blueorangutan test

@yadvryadvr closed this Feb 17, 2020
@yadvryadvr reopened this Feb 17, 2020
@yadvr

Copy link
Copy Markdown
Member

@blueorangutan test

@blueorangutan

Copy link
Copy Markdown

@rhtyd 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-1011)
Environment: kvm-centos7 (x2), Advanced Networking with Mgmt server 7
Total time taken: 55716 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr3884-t1011-kvm-centos7.zip
Intermittent failure detected: /marvin/tests/smoke/test_network.py
Intermittent failure detected: /marvin/tests/smoke/test_password_server.py
Intermittent failure detected: /marvin/tests/smoke/test_privategw_acl.py
Intermittent failure detected: /marvin/tests/smoke/test_router_dhcphosts.py
Intermittent failure detected: /marvin/tests/smoke/test_router_dns.py
Intermittent failure detected: /marvin/tests/smoke/test_router_dnsservice.py
Intermittent failure detected: /marvin/tests/smoke/test_routers_iptables_default_policy.py
Intermittent failure detected: /marvin/tests/smoke/test_routers_network_ops.py
Intermittent failure detected: /marvin/tests/smoke/test_service_offerings.py
Intermittent failure detected: /marvin/tests/smoke/test_templates.py
Intermittent failure detected: /marvin/tests/smoke/test_usage.py
Smoke tests completed. 66 look OK, 11 have error(s)
Only failed tests results shown below:

TestResultTime (s)Test File
test_01_port_fwd_on_src_natFailure813.94test_network.py
test_02_port_fwd_on_non_src_natFailure816.10test_network.py
test_reboot_routerFailure397.09test_network.py
test_network_rules_acquired_public_ip_1_static_nat_ruleFailure815.14test_network.py
test_network_rules_acquired_public_ip_2_nat_ruleFailure816.63test_network.py
test_network_rules_acquired_public_ip_3_Load_Balancer_RuleFailure819.69test_network.py
test_isolate_network_password_serverFailure216.62test_password_server.py
test_02_vpc_privategw_static_routesFailure941.47test_privategw_acl.py
test_03_vpc_privategw_restart_vpc_cleanupFailure941.43test_privategw_acl.py
test_04_rvpc_privategw_static_routesFailure996.36test_privategw_acl.py
test_router_dhcphostsFailure216.53test_router_dhcphosts.py
ContextSuite context=TestRouterDHCPHosts>:teardownError225.79test_router_dhcphosts.py
test_router_dns_guestipqueryFailure612.66test_router_dns.py
test_router_dns_guestipqueryFailure613.73test_router_dnsservice.py
test_01_single_VPC_iptables_policiesError916.52test_routers_iptables_default_policy.py
test_01_isolate_network_FW_PF_default_routes_egress_trueFailure263.10test_routers_network_ops.py
test_02_isolate_network_FW_PF_default_routes_egress_falseFailure261.07test_routers_network_ops.py
test_01_RVR_Network_FW_PF_SSH_default_routes_egress_trueFailure287.26test_routers_network_ops.py
test_02_RVR_Network_FW_PF_SSH_default_routes_egress_falseFailure284.19test_routers_network_ops.py
test_01_service_offering_cpu_limit_useError811.17test_service_offerings.py
test_04_change_offering_smallFailure910.99test_service_offerings.py
test_04_extract_templateFailure128.30test_templates.py
ContextSuite context=TestISOUsage>:setupError0.00test_usage.py

@yadvr

Copy link
Copy Markdown
Member

@skattoju3 can you review this?
@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

@rhtyd 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: ✖centos6 ✔centos7 ✔debian. JID-894

@yadvr

Copy link
Copy Markdown
Member

@blueorangutan test

@blueorangutan

Copy link
Copy Markdown

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

TestResultTime (s)Test File
test_02_vpc_privategw_static_routesFailure166.72test_privategw_acl.py
test_03_vpc_privategw_restart_vpc_cleanupFailure164.54test_privategw_acl.py
test_04_rvpc_privategw_static_routesFailure217.70test_privategw_acl.py

@yadvr
yadvr merged commit 649ed45 into apache:4.13Feb 19, 2020
nvazquez pushed a commit to shapeblue/cloudstack that referenced this pull request Feb 21, 2020
)
On kvm, the 'path' of volume is the file name on primary storage. we should use 'path' instead of 'uuid' in volume statistics.
Fixes: apache#3878
nvazquez pushed a commit to shapeblue/cloudstack that referenced this pull request Feb 21, 2020
)
On kvm, the 'path' of volume is the file name on primary storage. we should use 'path' instead of 'uuid' in volume statistics.
Fixes: apache#3878
ggoodrich-ipp pushed a commit to ippathways/cloudstack that referenced this pull request Feb 24, 2020
)
On kvm, the 'path' of volume is the file name on primary storage. we should use 'path' instead of 'uuid' in volume statistics.
Fixes: apache#3878
ustcweizhou added a commit to ustcweizhou/cloudstack that referenced this pull request Feb 28, 2020
)
On kvm, the 'path' of volume is the file name on primary storage. we should use 'path' instead of 'uuid' in volume statistics.
Fixes: apache#3878
@weizhouapacheweizhouapache mentioned this pull request Oct 7, 2020
3 tasks
nlgordon added a commit to ippathways/cloudstack that referenced this pull request Sep 14, 2021
nlgordon added a commit to ippathways/cloudstack that referenced this pull request Sep 15, 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.

Volume metrics doesn't update after volume migration

8 participants

@ustcweizhou@yadvr@blueorangutan@andrijapanicsb@weizhouapache@DaanHoogland@skattoju3@svenvogel