-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Re-enable IP address usage hiding #4327
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
|
@blueorangutan package |
|
@Pearl1594 a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
|
Packaging result: ✔centos7 ✔centos8 ✔debian. JID-2004 |
|
@blueorangutan test |
|
@DaanHoogland a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
5874150 to
a28dad5
Compare
|
Kindly ping @rhtyd |
|
@blueorangutan package |
|
@DaanHoogland a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
|
Packaging result: ✔centos7 ✔centos8 ✔debian. JID-2087 |
|
@olivierlemasle Do you have a smoke or integration test for this? it would help guard the feature in the future. |
|
@DaanHoogland a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
|
@DaanHoogland I must say I do not know CloudStack smoke tests well; are there any smoke tests on usages data in CloudStack currently, that I could use as a basis? |
|
look in the test/integration/ subdirectory. I imagine there are marvin tests for related functionality, if you want to go that way. there is https://github.com/apache/cloudstack/blob/master/test/integration/smoke/test_usage.py and I hav e to admit I don't know how relevant it is for your case. |
|
@olivierlemasle which milestone version should it merged? we can set it to 4.16? |
|
@svenvogel as it is marked a bug I wouldimagine 4.15 or before to be appropriate. unless we decide it is too risky and not major..? |
|
👍 for 4.15! Without it, IP addresses will generate usages on networks flagged "Hide IP address usages"... |
|
@blueorangutan package |
|
@DaanHoogland a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
|
Packaging result: ✔centos7 ✔centos8 ✔debian. JID-2255 |
|
@blueorangutan test |
a28dad5 to
dfa2184
Compare
|
@DaanHoogland @svenvogel I just rebased on master to fix the conflict in |
|
@blueorangutan package |
|
@DaanHoogland a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
|
Packaging result: ✔centos7 ✔centos8 ✔debian. JID-2315 |
|
@blueorangutan test |
|
@DaanHoogland a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
Pearl1594
left a comment
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.
Code LGTM
|
@andrijapanicsb what do you think about this? |
|
what is being different with this vs the original PR? |
|
@andrijapanicsb However, like all To filter the "hidden" IP address usages with a correct NB: Since today's rebase, a timeout in smoke tests cause Travis build to fail. |
|
Trillian test result (tid-3110)
|
DaanHoogland
left a comment
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.
one little question, i don't like null returns. otherwise good.
server/src/main/java/com/cloud/network/IpAddressManagerImpl.java
Outdated
Show resolved
Hide resolved
With this commit, listUsageRecords filters out usages made on IP addresses on networks with "Hide IP Address Usage". This was previously introduced in apache#3235. This requires a DB schema change, to introduce a flag is_hidden in table cloud_usage.cloud_usage.
dfa2184 to
db65fbd
Compare
|
@DaanHoogland I've just updated the PR after your comment. |
|
@blueorangutan package |
|
@DaanHoogland a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
|
Verified fix: Created a VM in a shared n/w with hiding IP Usage enabled, and one in a shared network without hiding IP usage - 3 records were created for both networks, While in all there are 33 records, listusagerecords filters out listing ip usage for the n/w with hide ip usage enabled. |
|
Packaging result: ✔centos7 ✔centos8 ✔debian. JID-2340 |
|
@blueorangutan test |
|
@DaanHoogland a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
|
Trillian test result (tid-3133)
|
Description
With this commit, listUsageRecords filters out usages made on IP addresses on networks with "Hide IP Address Usage". This was previously introduced in #3235.
This requires a DB schema change, to introduce a flag
is_hiddenin tablecloud_usage.cloud_usage.Cf. #4193
Types of changes
How Has This Been Tested?
Multiple IP addresses have been created.
is_hidden, and are not returned by the API.