Skip to content

Bug fix in displaying public IP address of shared networks#4675

Merged
yadvr merged 3 commits intoapache:4.15from
ravening:public-ip-range
Apr 1, 2021
Merged

Bug fix in displaying public IP address of shared networks#4675
yadvr merged 3 commits intoapache:4.15from
ravening:public-ip-range

Conversation

@ravening
Copy link
Member

Description

Public IP address dedicated to one domain should not be accessed
by other domains. Also root admin should be able to display all
public ip address in system.

Currently following issues exist

  1. Public IP address assigned to one domain can be accessed by
    other sibling domains

If use.system.public.ip is false then child domains should not
see public ip of ROOT domain

Before fix

(test1) mgt01 > list publicipaddresses listall=true fordisplay=true allocatedonly=false forvirtualnetwork=true filter=ipaddress,
{
  "count": 59,
  "publicipaddress": [

After fix

(test) mgt01 > list publicipaddresses listall=true fordisplay=true allocatedonly=false forvirtualnetwork=true filter=ipaddress,
{
  "count": 10,

Types of changes

  • Breaking change (fix or feature that would cause existing functionality to change)
  • New feature (non-breaking change which adds functionality)
  • Bug fix (non-breaking change which fixes an issue)
  • Enhancement (improves an existing feature and functionality)
  • Cleanup (Code refactoring and cleanup, that may add test cases)

Feature/Enhancement Scale or Bug Severity

Feature/Enhancement Scale

  • Major
  • Minor

Bug Severity

  • BLOCKER
  • Critical
  • Major
  • Minor
  • Trivial

Screenshots (if appropriate):

How Has This Been Tested?

@shwstppr
Copy link
Contributor

@ravening conflict here. Should this go in 4.15.1.0 as it is a bug fix?

@shwstppr shwstppr added this to the 4.15.1.0 milestone Feb 15, 2021
@ravening ravening changed the base branch from master to 4.15 February 16, 2021 12:05
@DaanHoogland
Copy link
Contributor

@blueorangutan package

@blueorangutan
Copy link

@DaanHoogland a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress.

@blueorangutan
Copy link

Packaging result: ✔centos7 ✔centos8 ✔debian. JID-2717

Copy link
Contributor

@DaanHoogland DaanHoogland left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

some remarks, haven't had time to review it fully yet

@DaanHoogland
Copy link
Contributor

@blueorangutan test

@blueorangutan
Copy link

@DaanHoogland a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests

@blueorangutan
Copy link

Trillian test result (tid-3556)
Environment: kvm-centos7 (x2), Advanced Networking with Mgmt server 7
Total time taken: 34467 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr4675-t3556-kvm-centos7.zip
Intermittent failure detected: /marvin/tests/smoke/test_network.py
Smoke tests completed. 85 look OK, 1 have error(s)
Only failed tests results shown below:

Test Result Time (s) Test File
test_public_ip_admin_account Failure 32.31 test_network.py
test_public_ip_user_account Failure 2.29 test_network.py
test_releaseIP Failure 663.16 test_network.py

@DaanHoogland
Copy link
Contributor

@ravening can you look at those failures ^^?

@ravening
Copy link
Member Author

@ravening can you look at those failures ^^?

@DaanHoogland will look into it

@yadvr
Copy link
Member

yadvr commented Mar 1, 2021

There's also a conflict @ravening

@yadvr
Copy link
Member

yadvr commented Mar 11, 2021

@shwstppr can you help resolve conflict and then kick tests. Thanks.

@shwstppr
Copy link
Contributor

@rhtyd I've fixed the conflicts but test failures from previous run doesn't seem intermittent and would need investigation/changes cc @ravening

2021-02-16 21:39:22,806 - CRITICAL - FAILED: test_public_ip_admin_account: ['Traceback (most recent call last):\n', '  File "/usr/lib64/python2.7/unittest/case.py", line 369, in run\n    testMethod()\n', '  File "/marvin/tests/smoke/test_network.py", line 236, in test_public_ip_admin_account\n    self.fail("list public ip response is not empty")\n', '  File "/usr/lib64/python2.7/unittest/case.py", line 450, in fail\n    raise self.failureException(msg)\n', 'AssertionError: list public ip response is not empty\n']
2021-02-16 21:39:25,098 - CRITICAL - FAILED: test_public_ip_user_account: ['Traceback (most recent call last):\n', '  File "/usr/lib64/python2.7/unittest/case.py", line 369, in run\n    testMethod()\n', '  File "/marvin/tests/smoke/test_network.py", line 285, in test_public_ip_user_account\n    "Check if disassociated IP Address is no longer available"\n', '  File "/usr/lib64/python2.7/unittest/case.py", line 553, in assertEqual\n    assertion_func(first, second, msg=msg)\n', '  File "/usr/lib64/python2.7/unittest/case.py", line 546, in _baseAssertEqual\n    raise self.failureException(msg)\n', 'AssertionError: Check if disassociated IP Address is no longer available\n']
2021-02-16 21:56:14,340 - CRITICAL - FAILED: test_releaseIP: ['Traceback (most recent call last):\n', '  File "/usr/lib64/python2.7/unittest/case.py", line 369, in run\n    testMethod()\n', '  File "/marvin/tests/smoke/test_network.py", line 894, in test_releaseIP\n    "Failed to disassociate IP address")\n', '  File "/usr/lib64/python2.7/unittest/case.py", line 462, in assertTrue\n    raise self.failureException(msg)\n', 'AssertionError: Failed to disassociate IP address\n']

@blueorangutan package

@blueorangutan
Copy link

@shwstppr a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. [S]

Public IP address dedicated to one domain should not be accessed
by other domains. Also root admin should be able to display all
public ip address in system.

Currently following issues exist

1. Public IP address assigned to one domain can be accessed by
other sibling domains

If use.system.public.ip is false then child domains should not
see public ip of ROOT domain

Before fix
```
(test1) mgt01 > list publicipaddresses listall=true fordisplay=true allocatedonly=false forvirtualnetwork=true filter=ipaddress,
{
  "count": 59,
  "publicipaddress": [
```

After fix

```
(test) mgt01 > list publicipaddresses listall=true fordisplay=true allocatedonly=false forvirtualnetwork=true filter=ipaddress,
{
  "count": 10,
```
@blueorangutan
Copy link

Packaging result: ✔️ centos7 ✖️ centos8 ✔️ debian. SL-JID 87

@ravening
Copy link
Member Author

@rhtyd I've fixed the conflicts but test failures from previous run doesn't seem intermittent and would need investigation/changes cc @ravening

2021-02-16 21:39:22,806 - CRITICAL - FAILED: test_public_ip_admin_account: ['Traceback (most recent call last):\n', '  File "/usr/lib64/python2.7/unittest/case.py", line 369, in run\n    testMethod()\n', '  File "/marvin/tests/smoke/test_network.py", line 236, in test_public_ip_admin_account\n    self.fail("list public ip response is not empty")\n', '  File "/usr/lib64/python2.7/unittest/case.py", line 450, in fail\n    raise self.failureException(msg)\n', 'AssertionError: list public ip response is not empty\n']
2021-02-16 21:39:25,098 - CRITICAL - FAILED: test_public_ip_user_account: ['Traceback (most recent call last):\n', '  File "/usr/lib64/python2.7/unittest/case.py", line 369, in run\n    testMethod()\n', '  File "/marvin/tests/smoke/test_network.py", line 285, in test_public_ip_user_account\n    "Check if disassociated IP Address is no longer available"\n', '  File "/usr/lib64/python2.7/unittest/case.py", line 553, in assertEqual\n    assertion_func(first, second, msg=msg)\n', '  File "/usr/lib64/python2.7/unittest/case.py", line 546, in _baseAssertEqual\n    raise self.failureException(msg)\n', 'AssertionError: Check if disassociated IP Address is no longer available\n']
2021-02-16 21:56:14,340 - CRITICAL - FAILED: test_releaseIP: ['Traceback (most recent call last):\n', '  File "/usr/lib64/python2.7/unittest/case.py", line 369, in run\n    testMethod()\n', '  File "/marvin/tests/smoke/test_network.py", line 894, in test_releaseIP\n    "Failed to disassociate IP address")\n', '  File "/usr/lib64/python2.7/unittest/case.py", line 462, in assertTrue\n    raise self.failureException(msg)\n', 'AssertionError: Failed to disassociate IP address\n']

@shwstppr I have pushed a commit. can you retrigger the tests to see if that fixes?

@shwstppr
Copy link
Contributor

okay @ravening
@blueorangutan package

@blueorangutan
Copy link

@shwstppr a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. [S]

@yadvr
Copy link
Member

yadvr commented Mar 12, 2021

@Spaceman1984 can you help manually test/verify this? cc @shwstppr Thanks.

@shwstppr
Copy link
Contributor

@ravening still some issue

@Spaceman1984
Copy link
Contributor

@Spaceman1984 can you help manually test/verify this? cc @shwstppr Thanks.

I'll test @rhtyd

@ravening
Copy link
Member Author

@ravening still some issue

@shwstppr found the issue.. without the change, if ip address is in free state, its not displayed by list publicipaddress command but with this change, it will be displayed. so need to pass an extra param state=Allocated. Then its not displayed

@shwstppr
Copy link
Contributor

@blueorangutan package

@blueorangutan
Copy link

@shwstppr a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. [S]

@blueorangutan
Copy link

Packaging result: ✖️ centos7 ✔️ centos8 ✔️ debian. SL-JID 168

@yadvr
Copy link
Member

yadvr commented Mar 24, 2021

@blueorangutan package

@blueorangutan
Copy link

@rhtyd a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress.

@blueorangutan
Copy link

Packaging result: ✖️ centos7 ✖️ centos8 ✖️ debian. SL-JID 222

@yadvr
Copy link
Member

yadvr commented Mar 24, 2021

@blueorangutan package

@blueorangutan
Copy link

@rhtyd a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress.

@blueorangutan
Copy link

Packaging result: ✖️ centos7 ✖️ centos8 ✖️ debian. SL-JID 230

@yadvr
Copy link
Member

yadvr commented Mar 24, 2021

@blueorangutan package

@blueorangutan
Copy link

@rhtyd a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress.

@blueorangutan
Copy link

Packaging result: ✔️ centos7 ✔️ centos8 ✔️ debian. SL-JID 233

@shwstppr
Copy link
Contributor

@blueorangutan test

@blueorangutan
Copy link

@shwstppr a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests

@blueorangutan
Copy link

Trillian test result (tid-253)
Environment: kvm-centos7 (x2), Advanced Networking with Mgmt server 7
Total time taken: 40948 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr4675-t253-kvm-centos7.zip
Intermittent failure detected: /marvin/tests/smoke/test_kubernetes_clusters.py
Intermittent failure detected: /marvin/tests/smoke/test_vm_life_cycle.py
Intermittent failure detected: /marvin/tests/smoke/test_hostha_kvm.py
Smoke tests completed. 84 look OK, 2 have error(s)
Only failed tests results shown below:

Test Result Time (s) Test File
test_01_deploy_kubernetes_cluster Failure 3602.73 test_kubernetes_clusters.py
ContextSuite context=TestKubernetesCluster>:teardown Error 71.83 test_kubernetes_clusters.py
test_01_migrate_VM_and_root_volume Error 67.20 test_vm_life_cycle.py
test_02_migrate_VM_with_two_data_disks Error 51.12 test_vm_life_cycle.py

@blueorangutan
Copy link

Trillian test result (tid-259)
Environment: kvm-centos7 (x2), Advanced Networking with Mgmt server 7
Total time taken: 35585 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr4675-t259-kvm-centos7.zip
Intermittent failure detected: /marvin/tests/smoke/test_kubernetes_clusters.py
Intermittent failure detected: /marvin/tests/smoke/test_vm_life_cycle.py
Smoke tests completed. 84 look OK, 2 have error(s)
Only failed tests results shown below:

Test Result Time (s) Test File
ContextSuite context=TestKubernetesCluster>:teardown Error 70.88 test_kubernetes_clusters.py
test_01_migrate_VM_and_root_volume Error 67.17 test_vm_life_cycle.py
test_02_migrate_VM_with_two_data_disks Error 50.06 test_vm_life_cycle.py

@yadvr
Copy link
Member

yadvr commented Mar 29, 2021

Ping @ravening @shwstppr @Spaceman1984 what's the update on this? Thanks

@shwstppr
Copy link
Contributor

Manually tested, fixes #4723

@yadvr yadvr merged commit 76ba5c6 into apache:4.15 Apr 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants