This repository was archived by the owner on Oct 26, 2022. It is now read-only.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Issue#208: When 3 or more VLANs are added to a Node via multiple Modify Slice Requests, at least one network interface would not be created on the VM.
Code Details
OrcaXmlRpcHandler::modifySlice invokes ReservationConverter::modifyReservations to build the local properties for the newly added VLANs. ReservationConverter::modifyReservations logic to construct the information for network devices was working incorrectly and always did not construct appropriate information for at least one interface. This results in modify command for at least one network interface to be not sent to the AM and hence causing missing network on VM.
Reason for Properties to be not constructed for at least one interface:
ReservationConverter::modifyReservations constructs network interface properties by traversing a linked list of network elements(existing and new). Linked List does not maintain the order of the Network elements. Thus new network elements are not processed after existing elements have been processed. modifyReservations generates the eth name for the new network element using local property unit.number.interface. In the existing code this property always had value 0 thus resulting in already used eth names and causing data for at least one interface to be overwritten.
Fix:
Stored unit.number.interface in configuration properties and used it for subsequent modifies. unit.number.interface value is not decremented in case of a deletion to keep the eth names unique.