Skip to content
This repository was archived by the owner on Mar 31, 2023. It is now read-only.

Conversation

@kevin-zhonghao
Copy link
Contributor

@kevin-zhonghao kevin-zhonghao commented Aug 4, 2020

This PR proposes fix to the following issues:

  1. A short-term fix to the Subnet GW IP issue when customer doesn't specify GW IP.
  2. Allocation_pools fix => 10.0.0.4-10.0.0.253 (253 =>254).
  3. Subnet update Rest API => now support disable gateway_ip.
  4. Network deletion => now when delete a network, it will check if subnets in the network is empty first.

Expected Behavior of Subnet Gateway

  • Case I: When customer doesn't specify a GW IP, the expected behavior is to allocate an IP address from the reserved Subnet CIDR block. The creation subnet payload doesn't include the "gateway_ip" field.
  • Case II: When customer explicitly disable GW, the expected behavior for control plane is NOT allocating any IP for GW port. The creation subnet payload includes the "gateway_ip" field with NULL value.

Description of GW IP Bug
Current Subnet Mgr is unable to differentiate the above two cases therefore always treating the first case same as second case. The customer impact is that the GW IP is missing for Case I. This PR proposes a short-term fix to unblock E2E integration test before we have a solid solution.

Liguang Xie and others added 18 commits May 22, 2020 12:24
# Conflicts:
#	README.md
#	docs/modules/ROOT/pages/comm_protocol/fast_path.adoc
#	docs/modules/ROOT/pages/comm_protocol/rescue_path.adoc
#	docs/modules/ROOT/pages/controller.adoc
#	docs/modules/ROOT/pages/db_services/data_store.adoc
#	docs/modules/ROOT/pages/deploy_related/deployment.adoc
#	docs/modules/ROOT/pages/deploy_related/integration_nova.adoc
#	docs/modules/ROOT/pages/high_level/system_flow.adoc
#	docs/modules/ROOT/pages/mgmt_services/private_ip_manager.adoc
#	docs/modules/ROOT/pages/mgmt_services/security_group_manager.adoc
#	docs/modules/ROOT/pages/mgmt_services/virtual_mac_manager.adoc
#	docs/modules/ROOT/pages/mgmt_services/vpc_manager.adoc
#	docs/modules/ROOT/pages/sys_monitoring/monitoring.adoc
Copy link
Contributor

@xieus xieus left a comment

Choose a reason for hiding this comment

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

Looks good as a short-term fix. Requires two follow-up items:

  • Long-term fix to identify customer-specified NULL and no passed-in parameter
  • Add UT coverage.

@xieus xieus changed the title Fix/subnet gateway ip issue [Microservice API] Fix Subnet Gateway IP Issue When Customer doesn't specify GW IP Aug 4, 2020
@xieus xieus self-requested a review August 4, 2020 21:23
@xieus xieus added bug Something isn't working short-term fix Temporary workaround labels Aug 4, 2020
@xieus xieus added this to the Version 0.8.2020.08.30 milestone Aug 4, 2020
Copy link
Contributor

@xieus xieus left a comment

Choose a reason for hiding this comment

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

LGTM with minor comments.

}

/**
* delete subnet id in a network
Copy link
Contributor

Choose a reason for hiding this comment

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

Please update comment.


this.vpcDatabaseService.addVpc(inVpcState);

inVpcState = this.vpcDatabaseService.getByVpcId(vpcid);
Copy link
Contributor

Choose a reason for hiding this comment

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

inVpcState => updatedVPcState

@xieus xieus changed the title [Microservice API] Fix Subnet Gateway IP Issue When Customer doesn't specify GW IP [Microservice] Bug fixes for VPC Mgr and Subnet Mgr Aug 5, 2020
@xieus xieus merged commit bfb930c into futurewei-cloud:master Aug 5, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

bug Something isn't working short-term fix Temporary workaround

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants