Skip to content

server: fix public IP addresses filtering#3368

Merged
yadvr merged 1 commit into
apache:masterfrom
shapeblue:fix-listpublicipaddresses-filter-3295
Jun 3, 2019
Merged

server: fix public IP addresses filtering#3368
yadvr merged 1 commit into
apache:masterfrom
shapeblue:fix-listpublicipaddresses-filter-3295

Conversation

@shwstppr

@shwstppr shwstppr commented May 31, 2019

Copy link
Copy Markdown
Contributor

Description

Fixes #3295

listPublicIPAddresses API was missing networkid parameter and it has been used in UI to list public IP addresses while changing IP address for a VM.

networkid parameter is added to listPublicIPAddresses API which would allow filtering public IP addresses based on the source network. This will help to show relevant IP addresses when users try to change assigned IP address for a VM NIC.

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)

Screenshots (if appropriate):

Screenshot from 2019-05-31 16-43-10

How Has This Been Tested?

UI and cmk

Added missing parameter in listPublicIpAddresses API.

Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
@yadvr yadvr added this to the 4.13.0.0 milestone May 31, 2019
@yadvr
yadvr requested a review from DaanHoogland May 31, 2019 11:58
@yadvr

yadvr commented May 31, 2019

Copy link
Copy Markdown
Member

@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

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

@blueorangutan

Copy link
Copy Markdown

Packaging result: ✔centos6 ✔centos7 ✔debian. JID-2825

@yadvr

yadvr commented May 31, 2019

Copy link
Copy Markdown
Member

@blueorangutan test

@blueorangutan

Copy link
Copy Markdown

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

@blueorangutan

Copy link
Copy Markdown

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

Test Result Time (s) Test File
test_05_rvpc_multi_tiers Failure 416.20 test_vpc_redundant.py
test_05_rvpc_multi_tiers Error 443.20 test_vpc_redundant.py

@anuragaw anuragaw left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@yadvr
yadvr merged commit 6c6f40f into apache:master Jun 3, 2019
@yadvr yadvr changed the title [WIP DO NOT MERGE] server: fix public IP addresses filtering server: fix public IP addresses filtering Jun 3, 2019
sb.and("physicalNetworkId", sb.entity().getPhysicalNetworkId(), SearchCriteria.Op.EQ);
sb.and("associatedNetworkIdEq", sb.entity().getAssociatedWithNetworkId(), SearchCriteria.Op.EQ);
sb.and("associatedNetworkId", sb.entity().getAssociatedWithNetworkId(), SearchCriteria.Op.EQ);
sb.and("sourceNetworkId", sb.entity().getSourceNetworkId(), SearchCriteria.Op.EQ);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@shwstppr any reason why sourceNetworkId is chosen instead of networkId parameter?

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.

listPublicIPAddresses return not filtered for current network

6 participants