RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1788816 - Static DNS suffix info can't show correctly in windows guest after v2v conversion
Summary: Static DNS suffix info can't show correctly in windows guest after v2v conver...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: virt-v2v
Version: unspecified
Hardware: x86_64
OS: Unspecified
medium
medium
Target Milestone: beta
: ---
Assignee: Virtualization Maintenance
QA Contact: Virtualization Bugs
URL:
Whiteboard: V2V
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-01-08 07:41 UTC by mxie@redhat.com
Modified: 2022-05-13 11:43 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-05-13 11:43:08 UTC
Type: Bug
Target Upstream Version:
Embargoed:
pm-rhel: mirror+


Attachments (Terms of Use)
static-dns-suffix-before-v2v.png (105.48 KB, image/png)
2020-01-08 07:41 UTC, mxie@redhat.com
no flags Details
static-dns-suffix-after-v2v.png (77.33 KB, image/png)
2020-01-08 07:58 UTC, mxie@redhat.com
no flags Details
firstboot-log.png (68.23 KB, image/png)
2020-01-08 08:02 UTC, mxie@redhat.com
no flags Details

Description mxie@redhat.com 2020-01-08 07:41:25 UTC
Created attachment 1650597 [details]
static-dns-suffix-before-v2v.png

Description:
Static DNS suffix info can't show correctly in windows guest after v2v conversion

Version-Release number of selected component (if applicable):
virt-v2v-1.40.2-16.module+el8.1.1+5309+6d656f05.x86_64
libguestfs-1.40.2-16.module+el8.1.1+5309+6d656f05.x86_64
libvirt-5.6.0-10.module+el8.1.1+5309+6d656f05.x86_64
qemu-kvm-4.1.0-21.module+el8.1.1+5388+fd51bfbc.x86_64
nbdkit-1.12.5-2.module+el8.1.1+5309+6d656f05.x86_64
virtio-win-1.9.10-3.el8.noarch  
libguestfs-winsupport-8.0-4.module+el8.1.1+5309+6d656f05.x86_64

How reducible:
100%

Reproducing steps:
1.Prepare a windows guest which has static IP, gateway, subnet mask and DNS(set suffix)
static ip: 10.73.75.102
subnet mask:255.255.252.0
default gateway:10.73.75.254
DNS suffix:lab.eng.pek2.redhat.com 

2 Check MAC address of the guest
# virsh -c vpx://root.73.141/data/10.73.75.219/?no_verify=1 dumpxml esx6.7-win2016-x86_64-vmware-tools
Enter root's password for 10.73.73.141: 
<domain type='vmware' xmlns:vmware='http://libvirt.org/schemas/domain/vmware/1.0'>
  <name>esx6.7-win2016-x86_64-vmware-tools</name>
....
    <interface type='bridge'>
      <mac address='00:50:56:ac:b3:da'/>
      <source bridge='VM Network'/>
      <model type='e1000e'/>
    </interface>
....
</domain>

3 Convert the guest from VMware to rhv, set static IP address,gateway, subnet mask and DNS in --mac option, which are consistent with the setting in guest
#virt-v2v -ic vpx://root.73.141/data/10.73.75.219/?no_verify=1 -it vddk -io vddk-libdir=/home/vmware-vix-disklib-distrib -io  vddk-thumbprint=1F:97:34:5F:B6:C2:BA:66:46:CB:1A:71:76:7D:6B:50:1E:03:00:EA  -o rhv-upload -oo rhv-cafile=/home/ca.pem -oo rhv-direct -oc https://ibm-x3250m5-03.rhts.eng.pek2.redhat.com/ovirt-engine/api -op /home/rhvpasswd --password-file /home/passwd -of raw esx6.7-win2016-x86_64-vmware-tools -oo rhv-cluster=Default -os nfs_data --mac 00:50:56:ac:b3:da:ip:10.73.75.102,10.73.75.254,22,lab.eng.pek2.redhat.com -b ovirtmgmt -on win2016-vmware-tools-static-ip-gw-subnet-dns_suffix-rhv -v -x |& tee > static-dns-suffix.log


4  Check the guest network after finishing conversion on rhv
4.1 Power on and log into guest, found guest gets IP from DHCP at this time because firstboot.log shows rhev-apt is installing
4.2 Wait more than 30mins, found guest can get correct static IP, subnet mask and gateway, but DNS suffix info isn't shown in output of command ‘ipconfig’, then open dialog box "internet Protocol Version4 (TCP/IPv4) Properties' -> Advanced-> DNS, found DNS suffix info is not input correctly in inputbox of "DNS suffix for this connection", pls refer to screenshot"static-dns-suffix-after-v2v"


Actual result:
As above description


Expected result:
Static DNS suffix info can show correctly in windows guest after v2v conversion


Additional info:

Comment 1 mxie@redhat.com 2020-01-08 07:58:45 UTC
Created attachment 1650598 [details]
static-dns-suffix-after-v2v.png

Comment 2 mxie@redhat.com 2020-01-08 08:02:55 UTC
Created attachment 1650600 [details]
firstboot-log.png

Comment 6 RHEL Program Management 2021-07-08 07:30:46 UTC
After evaluating this issue, there are no plans to address it further or fix it in an upcoming release.  Therefore, it is being closed.  If plans change such that this issue will be fixed in an upcoming release, then the bug can be reopened.

Comment 7 Richard W.M. Jones 2021-07-08 07:51:22 UTC
My apologies again.  This bug was closed in error by an automated
process that we do not have control over.

Comment 8 Laszlo Ersek 2022-05-13 11:43:08 UTC
(In reply to mxie from comment #0)

> Reproducing steps:
> 1.Prepare a windows guest which has [...] DNS(set suffix)
> [...]
> DNS suffix:lab.eng.pek2.redhat.com
>
> [...]
>
> 3 Convert the guest from VMware to rhv, set static IP address,gateway,
> subnet mask and DNS in --mac option, which are consistent with the
> setting in guest
> [...]
> --mac 00:50:56:ac:b3:da:ip:10.73.75.102,10.73.75.254,22,lab.eng.pek2.redhat.com
>
> Expected result:
> Static DNS suffix info can show correctly in windows guest after v2v
> conversion

The expectation in the bug report is incorrect.

The virt-v2v manual <https://libguestfs.org/virt-v2v.1.html> states:

> --mac aa:bb:cc:dd:ee:ff:ip:ipaddr[,gw[,len[,ns,ns,...]]]
>
>     Force a particular interface (controlled by its MAC address) to
>     have a static IP address after boot.
>
>     The fields in the parameter are: ipaddr is the IP address. gw is
>     the optional gateway IP address. len is the subnet mask length (an
>     integer). The final parameters are zero or more nameserver IP
>     addresses.

Note: "The final parameters are zero or more *nameserver IP addresses*".

The final parameters in the --mac option were never meant to set a DNS
search suffix. Instead, they set DNS *name servers*. Therefore, as
reported, this symptom is NOTABUG.

We can perhaps reformulate the ticket as a Feature Request, but then I
don't think it should have high priority. For now I'm closing it as
NOTABUG.


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