-
Notifications
You must be signed in to change notification settings - Fork 1.3k
CLOUDSTACK-8940: Wrong value is inserted into nics table netmask fiel… #916
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
|
So several questions:
|
|
@kansal LGTM. Looking at the JIRA issue, this looks like should apply to 4.6/master but can you update the ticket with the version details, more details on the bug and also note if this also needs to be backported to 4.5/4.4 or older branches. Thanks. |
|
@bhaisaab Sure will check about the back-porting of the issue. Apart from that, the previous values stored incorrectly need to be corrected in the database. I think a simple bash script will do. Your views and will it be part of this PR only? |
|
Use db migration from either past 4.5.x to 4.6.0 version, or this PR gets merged post 4.6.0; add the data migration code in 4.6.0 to 4.6.1 |
|
Hi @kansal Can you please rebase this with current master? I tried running some tests but face old problems. Also, what about the db migration script to fix old problems? Thanks for the update! |
|
LGTM, based on a set of tests that I run on this branch (which I rebased myself first): Result: The 3 errors at the bottom are due to CLOUDSTACK-8991 and unrelated to this PR. Please try running Trying again the other failed test: Result: So, must have been a local issue. Next test run: Result: Before we consider merging, please respond to the comment about the upgrade script. Thanks! |
|
@remibergsma Thank you very much. I was busy somewhere. Will update this PR with "update script" and rebase it. Sorry for the delayed response. |
|
@remibergsma @bhaisaab The above changes were made as the part of DHCP/DNS offload feature. The related ticket is https://issues.apache.org/jira/browse/CLOUDSTACK-8324 |
…d when creating a VM - Fixed
eb217fa to
ba26efc
Compare
|
Hi @kansal Should I deploy a basic zone with shared network in order to see if that fix is fine? I will also run the other set of tests, same as @remibergsma did. Cheers, |
|
code lgtm @remibergsma can you retest? A newer commit is in since your lgtm |
|
Hi @wilderrodrigues, To check the bug is solved, try deploying the VM in shared network with no service. As you can see, this function is called only when is isSharedNetworkWithoutService() is true. |
|
Ping @remibergsma @karuturi @kansal I will run the hardware required tests as well and try to deployed a VM with a shared network. Partial test results:
Cheers, |
|
LGTM, based on a set of tests that I run on this branch (which I rebased myself first): Result: And: Result: These test do not cover your change, all they do is show you didn't break them. Someone else needs to review the code. |
|
@wilderrodrigues any update on your review? |
|
LGTM 👍 Please proceed with merge. |
CLOUDSTACK-8940: Wrong value is inserted into nics table netmask field when creating a VM - Fixed Problem: When creating a VM in shared network with no service, the value of netmask is added in the table in the CIDR format unlike other cases where it is added as normal string in the format xxx.xxx.xxx.xxx. The netmask column in the nics table has a length of 15 chars which gets violated if the CIDR exceeds it(Max CIDR length can be 18). Fix: Before storing the netmask convert from CIDR to native format. * pr/916: CLOUDSTACK-8940: Wrong value is inserted into nics table netmask field when creating a VM - Fixed Signed-off-by: Remi Bergsma <[email protected]>
By switching to this directory we can use relative paths regardless of how people execute the script. cd tools ./docker.sh OR ./tools/docker.sh OR /path/to/git-repo/tools/docker.sh Signed-off-by: Rohit Yadav <[email protected]>

…d when creating a VM - Fixed
Problem: When creating a VM in shared network with no service, the value of netmask is added in the table in the CIDR format unlike other cases where it is added as normal string in the format xxx.xxx.xxx.xxx. The netmask column in the nics table has a length of 15 chars which gets violated if the CIDR exceeds it(Max CIDR length can be 18).
Fix: Before storing the netmask convert from CIDR to native format.