Bug 1981074 - "Namespace" field of "NetworkAttachmentDefinition" resource in "Mapping" CR must be mandatory
Summary: "Namespace" field of "NetworkAttachmentDefinition" resource in "Mapping" CR m...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Migration Toolkit for Virtualization
Classification: Red Hat
Component: General
Version: 2.1.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: 2.2.0
Assignee: Jeff Ortel
QA Contact: Maayan Hadasi
Avital Pinnick
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-07-11 07:08 UTC by Maayan Hadasi
Modified: 2021-12-09 19:20 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-12-09 19:20:47 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2021:5066 0 None None None 2021-12-09 19:20:54 UTC

Description Maayan Hadasi 2021-07-11 07:08:27 UTC
Description of problem:
The 'namespace' should be mandatory for a Network Attach Definition resource while creating NetworkMap CR


Steps to Reproduce:
1. Create a NetworkAttachDefinition with a unique name among all namespaces
2. Create NetworkMap CR with the NAD as destination network, including only type:multus and name:<nad_name>
For example:
map:
  - destination:
      type: multus 
      name: <networkattachmentdefinition_name> 
    source:
      id: <source_network_mor> 



Expected results:
NetworkMap should be invalid with reason: NotFound until the NAD's namespace will be added.

Comment 1 Maayan Hadasi 2021-07-14 08:05:10 UTC
@fdupont @jortel 
Should this issue move to ON_QA since the fix is a part of Bug 1971259?
https://github.com/konveyor/forklift-controller/pull/306

Comment 2 Fabien Dupont 2021-09-01 22:08:09 UTC
Yes, this should have been ON_QA. Could you please verify it with MTV 2.2.0-1?

Comment 3 Maayan Hadasi 2021-10-05 08:42:52 UTC
Verified.

Versions:
MTV 2.2.0-20 / iib: 113682
CNV 4.8.3-11 / iib:117885
(PSI)

Step to reproduce:
As mentioned in bug description

Actual result:
NetworkMap is invalid with reason: "Ambiguous" and appropriate message: "Destination network (NAD) namespace required."
Until editing NetworkMap with the NAD namespace


$ oc describe networkmap.forklift.konveyor.io/rdu2-to-ocp
...
Status:
  Conditions:
    Category:  Critical
    Items:
      unique-nad-name
    Last Transition Time:  2021-10-05T08:19:41Z
    Message:               Destination network (NAD) namespace required.
    Reason:                Ambiguous
    Status:                True
    Type:                  DestinationNetworkNotValid
  Observed Generation:     1
  References:
    Id:    network-14
    Name:  VM Network
    Id:    network-13
    Name:  Mgmt Network
Events:
  Type     Reason                      Age   From        Message
  ----     ------                      ----  ----        -------
  Warning  DestinationNetworkNotValid  15s   networkMap  Destination network (NAD) namespace required.

Comment 6 errata-xmlrpc 2021-12-09 19:20:47 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (MTV 2.2.0 Images), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHEA-2021:5066


Note You need to log in before you can comment on or make changes to this bug.