<html>
    <head>
      <base href="https://bugzilla.suse.com/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Distro migration name resolution failure"
   href="https://bugzilla.suse.com/show_bug.cgi?id=1206194">1206194</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Distro migration name resolution failure
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>SUSE Linux Enterprise Server
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>SUSE Linux Enterprise Server 12 SP5 in Public Clouds
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>BYOS
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>x86-64
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>SLES 12
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>Normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P5 - None
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>DMS
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>dms-bugs@lists.suse.com
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>kpenrose@suse.com
          </td>
        </tr>

        <tr>
          <th>QA Contact</th>
          <td>public-cloud-maintainers@suse.de
          </td>
        </tr>

        <tr>
          <th>Group</th>
          <td>novellonly, SUSE Public Cloud
          </td>
        </tr>

        <tr>
          <th>Found By</th>
          <td>SUSE Technical Services
          </td>
        </tr>

        <tr>
          <th>Services Priority</th>
          <td>500
          </td>
        </tr>

        <tr>
          <th>Blocker</th>
          <td>---
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Tested with multiple images provided by SUSE.  Both standard 12sp5 byos and
12sp5 for SAP byos.  All instances were registered to SCC.  All attempts to
migrate to 15sp1 failed.

To reproduce the problem:

Create a vm instance using one of our images. For example sles-sap-12-sp5-byos.

In my cases I set the "Authentication Type" to a user and password instead of
the key.

Install all updates
zypper up

Reboot after updates installed.

Install migration packages
zypper in suse-migration-sle15-activation SLES15-Migration

Reboot to kick off migration.

Failure reported:
_____________________________________________________
Calling: ['cat', '/etc/resolv.conf']
DNS Resolver
### /etc/resolv.conf is a symlink to /var/run/netconfig/resolv.conf
### autogenerated by netconfig!
#
# Before you change this file manually, consider to define the
# static DNS configuration using the following variables in the
# /etc/sysconfig/network/config file:
#     NETCONFIG_DNS_STATIC_SEARCHLIST
#     NETCONFIG_DNS_STATIC_SERVERS
#     NETCONFIG_DNS_FORWARDER
# or disable DNS configuration updates via netconfig by setting:
#     NETCONFIG_DNS_POLICY=''
#
# See also the netconfig(8) manual page and other documentation.
#
### Call "netconfig update -f" to force adjusting of /etc/resolv.conf.
search zuqmzox35guulhwgs1nkmozwke.bx.internal.cloudapp.net
nameserver 168.63.129.16

Running prepare service
Bind mounting /etc/zypp
Calling: ['mount', '--bind', '/system-root/etc/zypp', '/etc/zypp']
Bind mounting /usr/lib/zypp/plugins
Calling: ['mount', '--bind', '/system-root/usr/lib/zypp/plugins/services',
'/usr/lib/zypp/plugins/services']
Calling: ['chroot', '/system-root', 'SUSEConnect', '--list-extensions']
SUSEConnect error: SocketError: getaddrinfo: Temporary failure in name
resolution

System not registered. Aborting migration.
Preparation of zypper metadata failed with System not registered. Aborting
migration.
Running grub setup service
Calling: ['chroot', '/system-root', 'zypper', '--non-interactive',
'--no-gpg-checks', 'remove', 'SLE*-Migration', 'suse-migration-*-activation']
Uninstalling migration:
_____________________________________________________


To fix the problem edit the resolv.conf:

Default /etc/resolv.conf
kpenrose12sp5-migrate:~ # cat /etc/resolv.conf
### /etc/resolv.conf file autogenerated by netconfig!
#
# Before you change this file manually, consider to define the
# static DNS configuration using the following variables in the
# /etc/sysconfig/network/config file:
#     NETCONFIG_DNS_STATIC_SEARCHLIST
#     NETCONFIG_DNS_STATIC_SERVERS
#     NETCONFIG_DNS_FORWARDER
# or disable DNS configuration updates via netconfig by setting:
#     NETCONFIG_DNS_POLICY=''
#
# See also the netconfig(8) manual page and other documentation.
#
# Note: Manual change of this file disables netconfig too, but
# may get lost when this file contains comments or empty lines
# only, the netconfig settings are same with settings in this
# file and in case of a "netconfig update -f" call.
#
### Please remove (at least) this line when you modify the file!
search zuqmzox35guulhwgs1nkmozwke.bx.internal.cloudapp.net
nameserver 168.63.129.16

Removed this line:
### Please remove (at least) this line when you modify the file!

Install migration packages
zypper in suse-migration-sle15-activation SLES15-Migration

Reboot to kick off migration.

Successful migration!</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>