redhat-cop / redhat-cop/openshift_virtualization_migration

RFE NetworkMap functionality does not handle many port group to one NAD scenarios

Open
#90 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
YAML
Stars
9
Forks
12
Avg merge
3d 59m
Merged PRs (30d)
20

Description

The NetworkMap functionality is based around the idea that there is a 1:1 mapping between the source port group name and the target NetworkAttachmentDefinition which makes it unsuitable for migration scenarios where multiple source networks going to the same network in OpenShift.

The most common scenario for this many to one challenge is when multiple vSphere environments are being consolidated to fewer OpenShift clusters. When a naming standard such as SITE_DATACENTER_VLANID then it is likely to end up with a many to one mapping scenario.

Additionally vCenter on requires port groups to have unique names within the scope of a distributed switch.

One solution is to update the annotation lookup to support a list of source port group names such as infra.openshift-virtualization-migration/source-portgroup: '["pg1","pg2","pg3","pg4"]'.

For VLAN backed networks another option could be to lookup the NAD VLAN ID if the source port group annotation match finds no results.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the NetworkMap functionality and its source-portgroup annotation lookup. Compare the many-to-one migration scenarios described, including list-based source port groups and VLAN ID fallback, and clarify which behavior is required. Done means an agreed approach supports multiple source port groups mapping to one NetworkAttachmentDefinition.

Written by the indexing model from the issue text.

Assessment

Tech stack
ansible, kubernetes
Domain
networking
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Active
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.