Uh oh!
There was an error while loading. Please reload this page.
CLOUDSTACK-9203 Implement security group move on updateVM API call - #1297
Conversation
DaanHoogland
commented
Dec 30, 2015
DaanHoogland
commented
Dec 30, 2015
ping @ustcweizhou |
70e6897 to
bf7ab1fCompareDaanHoogland
commented
Dec 31, 2015
done some testing: |
DaanHoogland
commented
Dec 31, 2015
pinging every badoy again: @borisroman@wido@resmo@llambiel@pyr@bhaisaab@wilderrodrigues |
resmo
commented
Jan 1, 2016
LGTM |
There was a problem hiding this comment.
Shouldn't there be a check for NULL here?
There was a problem hiding this comment.
The updateVirtualMachine below can handle the null value (see line 2463)
wido
commented
Jan 5, 2016
One comment I have on the code. Otherwise it looks good. |
wido
commented
Jan 5, 2016
Checked all the commits, re-read the code and LGTM. Based on the tests already performed. |
DaanHoogland
commented
Jan 8, 2016
@borisroman@wido@resmo@llambiel@pyr@bhaisaab@wilderrodrigues I can run the tests again but I am the contributor. Can someone else, please? |
ustcweizhou
commented
Jan 12, 2016
this does not work if there are multiple shared network in advanced zone with sg. |
DaanHoogland
commented
Jan 16, 2016
@wido@remibergsma Can we merge? |
remibergsma
commented
Jan 16, 2016
@DaanHoogland Did I miss the integration tests? |
DaanHoogland
commented
Jan 16, 2016
@remibergsma the api was tested in sg. We can run a full regression suit if you feel it is needed. I don't feel we need to test anything but the call with updated security groups. |
DaanHoogland
commented
Jan 16, 2016
btw it also is based on exoscale production code |
ustcweizhou
commented
Jan 16, 2016
LGTM, based on manual functional testing in advanced zone with security groups. |
wido
commented
Jan 27, 2016
Can we rebase against master (4.9)? Seems that this one is ready to merge |
bvbharatk
commented
Mar 28, 2016
ACS CI BVT RunSumarry: Link to logs Folder (search by build_no):https://www.dropbox.com/sh/yj3wnzbceo9uef2/AAB6u-Iap-xztdm6jHX9SjPja?dl=0 Failed tests:
Skipped tests: Passed test suits: |
NuxRo
commented
Apr 11, 2016
Daan, How did you test? Hunk #7 FAILED at 467. |
DaanHoogland
commented
Apr 11, 2016
@nux, it probably doesn't apply anymore. This PR is 4 months old :( |
swill
commented
Apr 11, 2016
@NuxRo asked that I review this. @DaanHoogland I see you opened this, would you mind rebasing. I suspect it is still valid considering the fact that not a huge amount of code has been merged since you opened this. |
4e86f9a to
de53cd1CompareDaanHoogland
commented
Apr 11, 2016
new integration run pending |
DaanHoogland
commented
Apr 12, 2016
CI bubble runCommit Reference: de53cd1 initially two test failed. I reran the 'unusual' failure and it succeeded. 1297.results.network.txt |
DaanHoogland
commented
Apr 12, 2016
@ustcweizhou Can you review, the rebasing led to more commits then expected. The result looks fine but I am not sure. |
DaanHoogland
commented
Apr 12, 2016
@remibergsma@swill this one test always failing in our environments doesn't sit good with me. It feels like we are accepting a crippled system to be carried. I'll spend some time there. |
swill
commented
Apr 12, 2016
@DaanHoogland for the test that often fails in my environment, check @remibergsma's comments here: #1449 (comment) |
DaanHoogland
commented
Apr 12, 2016
@swill that is definitely not the same issue as I'm having. it is in the same test however |
DaanHoogland
commented
May 20, 2016
@swill I think it is genuine. |
swill
commented
May 20, 2016
@DaanHoogland you think the issue that travis is having is a genuine issue, is that what you mean? |
DaanHoogland
commented
May 20, 2016
Yes, I'm just not sure it is Travis or the xen plug-in. |
swill
commented
May 20, 2016
OK. I don't really have the bandwidth to troubleshoot this (unfortunately). This is one of the many PRs that are on the bubble which I am trying to figure out what to do with. For now I am thinking not to merge it because this issue seems to be only happening with this PR. I am already almost a week late (of my own imposed deadline), so I have to make hard decisions soon on some of these. |
DaanHoogland
commented
May 20, 2016
I might find the time but it is long since I worked with xen. Also I must find new joy for this hobby. So no promises |
swill
commented
May 21, 2016
Have a nice weekend. :) |
f72c8f2 to
c55d82bCompare| DataCenterVO zone = _dcDao.findById(vm.getDataCenterId()); | ||
| Network defaultNetwork = _networkModel.getExclusiveGuestNetwork(zone.getId()); | ||
| boolean isVmWare = (vm.getHypervisorType() == HypervisorType.VMware); |
There was a problem hiding this comment.
Small detail: Please check the spelling of VMware, I see lots of different variations and believe VMware is the right one.
00d83b5 to
c8d848dCompareDaanHoogland
commented
May 23, 2016
@swill, i had a nice weekend, thanks. The test that is failing throws a different kind of exception if I run it on master in my bubble. I have just pushed a limited part of the change to see what it does and if the exception is still the same. |
DaanHoogland
commented
May 23, 2016
@swill, the test_scale_vm didn't error out because it wasn't run on this version! I have lost a tiny bit of confidence in our travis runs again. I will now start adding the rest of the code again. |
c8d848d to
17ffcecCompare9723768 to
570b676Comparegot the test to run locally with or , so the rest is office-time-work |
NuxRo
commented
May 23, 2016
Thanks Daan, Does that mean we're good to go? |
DaanHoogland
commented
May 23, 2016
@NuxRo it means debugging the problem has started. what is in here now is not much (you can review it) |
cherry-picked from a exoscale internal fix: Implement security group move on updateVM API call Prevent security group update while instance is running Conflicts: api/src/org/apache/cloudstack/api/command/user/vm/UpdateVMCmd.java server/src/com/cloud/vm/UserVmManager.java server/src/com/cloud/vm/UserVmManagerImpl.java
50992aa to
5877293CompareConflicts: api/src/org/apache/cloudstack/api/command/user/vm/DeployVMCmd.java api/src/org/apache/cloudstack/api/command/user/vm/UpdateVMCmd.java
DaanHoogland
commented
May 23, 2016
@NuxRo can you test if it is still working for you? |
swill
commented
May 24, 2016
CI RESULTSSummary of the problem(s): Associated Uploads
Uploads will be available until Comment created by |
swill
commented
May 24, 2016
This is coming back clean now. Those failures are not related to this PR. |
DaanHoogland
commented
May 24, 2016
@swill, do you know what those errors are about? (always a dizzy feeling when this happens) |
swill
commented
May 24, 2016
Apparently |
CLOUDSTACK-9203 Implement security group move on updateVM API call cherry-picked from a exoscale internal fix Conflicts: api/src/org/apache/cloudstack/api/command/user/vm/UpdateVMCmd.java server/src/com/cloud/vm/UserVmManager.java server/src/com/cloud/vm/UserVmManagerImpl.java * pr/1297: CLOUDSTACK-9203 refactorred DeployVM code to be used by UpdateVM as well CLOUDSTACK-9203 security group update on running instance Signed-off-by: Will Stevens <williamstevens@gmail.com>



cherry-picked from a exoscale internal fix
Conflicts:
api/src/org/apache/cloudstack/api/command/user/vm/UpdateVMCmd.java
server/src/com/cloud/vm/UserVmManager.java
server/src/com/cloud/vm/UserVmManagerImpl.java