Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
Red Hat Satellite engineering is moving the tracking of its product development work on Satellite 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 "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. 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 "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-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.
It seems the support for medium_uri was added by BZ 1447963 and should work. Shim, could you please take a look? A quick workaround may be changing medium_uri to "@host.os.medium_uri(@host)" which has been there before.
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, 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/RHSA-2019:1222
Description of problem: I creates SLES operation system and assigned AutoYaST default iPXE template to it now if I want to enable build mode of SLES host I get this error: The following errors may prevent a successful build: Templates Failure parsing AutoYaST default iPXE: undefined method `medium_uri' for #<Foreman::Renderer::Scope::Provisioning:0x000000000b3e9418> Did you mean? medium_url media_url. This is AutoYaST default iPXE template: #!gpxe <%# kind: iPXE name: AutoYaST default iPXE model: ProvisioningTemplate oses: - SLES - OpenSUSE %> <% boot_files_uris = @host.operatingsystem.boot_files_uri(medium_provider) -%> <% kernel = boot_files_uris[0] -%> <% initrd = boot_files_uris[1] -%> kernel <%= kernel %> initrd=initrd.img splash=silent install=<%= medium_uri %> autoyast=<%= foreman_url('provision') %> text-mode=1 useDHCP=1 initrd <%= initrd %> boot diff of 6.4 and 6.5 version of the template: --- 6.4 2018-11-28 08:19:36.726269741 +0100 +++ 6.5 2018-11-28 08:19:49.254340534 +0100 @@ -8,10 +8,10 @@ - OpenSUSE %> -<% boot_files_uris = @host.operatingsystem.boot_files_uri(@host.medium,@host.architecture) -%> +<% boot_files_uris = @host.operatingsystem.boot_files_uri(medium_provider) -%> <% kernel = boot_files_uris[0] -%> <% initrd = boot_files_uris[1] -%> -kernel <%= kernel %> initrd=initrd.img splash=silent install=<%=@host.os.medium_uri(@host)%> autoyast=<%= foreman_url('provision') %> text-mode=1 useDHCP=1 +kernel <%= kernel %> initrd=initrd.img splash=silent install=<%= medium_uri %> autoyast=<%= foreman_url('provision') %> text-mode=1 useDHCP=1 initrd <%= initrd %> boot Version-Release number of selected component (if applicable): Sat 6.5 snap 5