server: fix resource count error when upgrade a vm#3759
Conversation
Steps to reproduce the issue (1) create an account (test) (2) create a vm with the account (test) (3) login with admin, and upgrade the vm to another offering (4) the resource count (cpu,memory) of admin increases, not the account (test).
DaanHoogland
left a comment
There was a problem hiding this comment.
makes a lot of sense. code looks good
|
@blueorangutan package |
|
@DaanHoogland a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
|
Packaging result: ✖centos6 ✔centos7 ✔debian. JID-639 |
|
@ustcweizhou I tried to recreate the bug with current master in a testenvironment. Are the any Domains, Projects or something else involved? Just creating another user with an vm and increasing the VM ressources with admin did not show the bug. If I can recreate the bug I can review your PR. |
|
@blueorangutan test |
|
@DaanHoogland a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
|
Trillian test result (tid-808)
|
@DennisKonrad thanks for testing. However the count is not correct if we use listDomains or listAccounts before updateresourcecount. |
|
thanks @DennisKonrad , can you review,test and/or confirm that this fixes the bug or at least is an improvement? (this need a second 👍 ) |
|
@ustcweizhou @DaanHoogland I was able to reproduce the bug (on current master) and this PR fixes the issue. So LGTM |
Steps to reproduce the issue (1) create an account (test) (2) create a vm with the account (test) (3) login with admin, and upgrade the vm to another offering (4) the resource count (cpu,memory) of admin increases, not the account (test).
Description
Steps to reproduce the issue
(1) create an account (test)
(2) create a vm with the account (test)
(3) login with admin, and upgrade the vm to another offering
(4) the resource count (cpu,memory) of admin increases, not the account (test).
Types of changes
Screenshots (if appropriate):
How Has This Been Tested?