-
Notifications
You must be signed in to change notification settings - Fork 1.2k
CLOUDSTACK-9203 Implement security group move on updateVM API call #1297
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
ping @ustcweizhou |
70e6897 to
bf7ab1f
Compare
|
done some testing: |
|
pinging every badoy again: @borisroman @wido @resmo @llambiel @pyr @bhaisaab @wilderrodrigues |
|
LGTM |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't there be a check for NULL here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The updateVirtualMachine below can handle the null value (see line 2463)
|
One comment I have on the code. Otherwise it looks good. |
|
Checked all the commits, re-read the code and LGTM. Based on the tests already performed. |
|
@borisroman @wido @resmo @llambiel @pyr @bhaisaab @wilderrodrigues I can run the tests again but I am the contributor. Can someone else, please? |
|
this does not work if there are multiple shared network in advanced zone with sg. |
|
@wido @remibergsma Can we merge? |
|
@DaanHoogland Did I miss the integration tests? |
|
@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. |
|
btw it also is based on exoscale production code |
|
LGTM, based on manual functional testing in advanced zone with security groups. |
|
Can we rebase against master (4.9)? Seems that this one is ready to merge |
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: |
|
Daan, How did you test? Hunk #7 FAILED at 467. |
|
@nux, it probably doesn't apply anymore. This PR is 4 months old :( |
|
@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
de53cd1
Compare
|
new integration run pending |
CI bubble runCommit Reference: de53cd1 initially two test failed. I reran the 'unusual' failure and it succeeded. 1297.results.network.txt |
|
@ustcweizhou Can you review, the rebasing led to more commits then expected. The result looks fine but I am not sure. |
|
@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. |
|
@DaanHoogland for the test that often fails in my environment, check @remibergsma's comments here: #1449 (comment) |
|
@swill that is definitely not the same issue as I'm having. it is in the same test however |
|
@swill I think it is genuine. |
|
@DaanHoogland you think the issue that travis is having is a genuine issue, is that what you mean? |
|
Yes, I'm just not sure it is Travis or the xen plug-in. |
|
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. |
|
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 |
|
Have a nice weekend. :) |
f72c8f2 to
c55d82b
Compare
| 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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Small detail: Please check the spelling of VMware, I see lots of different variations and believe VMware is the right one.
00d83b5 to
c8d848d
Compare
|
@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. |
|
@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
17ffcec
Compare
9723768 to
570b676
Compare
|
got the test to run locally with or , so the rest is office-time-work |
|
Thanks Daan, Does that mean we're good to go? |
|
@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
5877293
Compare
Conflicts: api/src/org/apache/cloudstack/api/command/user/vm/DeployVMCmd.java api/src/org/apache/cloudstack/api/command/user/vm/UpdateVMCmd.java
|
@NuxRo can you test if it is still working for you? |
CI RESULTSSummary of the problem(s): Associated Uploads
Uploads will be available until Comment created by |
|
This is coming back clean now. Those failures are not related to this PR. |
|
@swill, do you know what those errors are about? (always a dizzy feeling when this happens) |
|
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 <[email protected]>



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