test-driving Uyuni / SMLM 5.1.2 support for Leap 16:
- downloaded Leap 16 offline ISO to container host
- try to copy files from ISO to container, auto-creating the distro (someuser" is org admin)
suma:~/isos # mgradm distribution copy --api-user someuser --api-password somepass --loglevel debug Leap-16.0-offline-installer-x86_64.install.iso
8:39PM INF mgradm/cmd/cmd.go:69 > Starting mgradm distribution copy --api-user someuser --api-password somepass --loglevel debug Leap-16.0-offline-installer-x86_64.install.iso
8:39PM INF mgradm/cmd/cmd.go:70 > Use of this software implies acceptance of the End User License Agreement.
8:39PM DBG mgradm/cmd/distro/cp.go:81 > Source is an ISO image
8:39PM DBG shared/utils/exec.go:227 > Running: /usr/bin/mount -o ro,loop Leap-16.0-offline-installer-x86_64.install.iso /tmp/mgradm-1719286472
⠋ /usr/bin/umount /tmp/mgradm-1719286472
8:39PM ERR shared/utils/cmd.go:94 > error="distribution treeinfo /tmp/mgradm-1719286472/.treeinfo does not exists. Please provide distribution details and/or channel label"
Error: distribution treeinfo /tmp/mgradm-1719286472/.treeinfo does not exists. Please provide distribution details and/or channel label
suma:~/isos #
-
the .treeinfo file is on the ISO, in "/install/.treeinfo", not in "/.treeinfo" - so " /tmp/mgradm-1719286472/.treeinfo" really doesn't exist, but "/tmp/mgradm-1719286472/install/.treeinfo" would.
-
when only copying the distro files, this does work:
suma:~/isos # mgradm distribution copy --loglevel debug Leap-16.0-offline-installer-x86_64.install.iso
10:16PM INF mgradm/cmd/cmd.go:69 > Starting mgradm distribution copy --loglevel debug Leap-16.0-offline-installer-x86_64.install.iso
10:16PM INF mgradm/cmd/cmd.go:70 > Use of this software implies acceptance of the End User License Agreement.
10:16PM DBG mgradm/cmd/distro/cp.go:81 > Source is an ISO image
10:16PM DBG shared/utils/exec.go:227 > Running: /usr/bin/mount -o ro,loop Leap-16.0-offline-installer-x86_64.install.iso /tmp/mgradm-1415945638
10:16PM DBG mgradm/cmd/distro/cp.go:178 > Would not be able to auto register
10:16PM INF mgradm/cmd/distro/cp.go:187 > Auto-detected distribution Leap-16.0-offline-installer-x86_64.install
10:16PM DBG shared/utils/exec.go:201 > Running: podman inspect uyuni-server --format {{.Name}}
⠋ podman ps -q -f name=uyuni-server
⠋ podman exec uyuni-server test -e /srv/www/distributions/Leap-16.0-offline-installer-x86_64.install
⠋ podman exec uyuni-server sh -c mkdir -p /srv/www/distributions/
10:16PM INF mgradm/cmd/distro/cp.go:122 > Copying distribution Leap-16.0-offline-installer-x86_64.install
10:16PM DBG shared/utils/exec.go:210 > Running: podman cp /tmp/mgradm-1415945638 uyuni-server:/srv/www/distributions/Leap-16.0-offline-installer-x86_64.install
10:16PM DBG shared/utils/exec.go:210 > Running: podman exec uyuni-server chown tomcat:susemanager /srv/www/distributions/Leap-16.0-offline-installer-x86_64.install
10:16PM INF mgradm/cmd/distro/cp.go:126 > Distribution has been copied into /srv/www/distributions/Leap-16.0-offline-installer-x86_64.install
10:16PM INF mgradm/cmd/distro/cp.go:198 > Continue by registering autoinstallation distribution
10:16PM DBG shared/utils/exec.go:201 > Running: /usr/bin/umount /tmp/mgradm-1415945638
suma:~/isos #
Am I using the command wrongly to auto-register the distribution, or is this a bug?
test-driving Uyuni / SMLM 5.1.2 support for Leap 16:
the .treeinfo file is on the ISO, in "/install/.treeinfo", not in "/.treeinfo" - so " /tmp/mgradm-1719286472/.treeinfo" really doesn't exist, but "/tmp/mgradm-1719286472/install/.treeinfo" would.
when only copying the distro files, this does work:
Am I using the command wrongly to auto-register the distribution, or is this a bug?