Difference between revisions of "SUSE Manager/Sync RHEL media"

From MicroFocusInternationalWiki
Jump to: navigation, search
 
(5 intermediate revisions by 2 users not shown)
Line 3: Line 3:
 
The goal of this procedure is having a RHEL media as a SUSE Manager channel. This mean that you will find the packages from your RHEL DVD or ISO into a regular SUSE Manager channel.
 
The goal of this procedure is having a RHEL media as a SUSE Manager channel. This mean that you will find the packages from your RHEL DVD or ISO into a regular SUSE Manager channel.
  
== Minimal RHEL 7 version for Salt ==
+
== Minimal RHEL versions for Salt ==
  
For Salt support RHEL 7.2 (aka 'SP2') is required. Redhat added packages to this released required by Salt.
+
Red Hat added dependency resolving packages to their releases required by Salt.  Earlier versions did not have all the needed packages.
  
  
== On the SUSE Manager Web UI ==
+
For Salt support on RH6,  RHEL 6.7+ media is required.
 +
 
 +
For Salt support on RH7,  RHEL 7.2+ media is required.
 +
 
 +
== Create the channel in SUSE Manager ==
 +
 
 +
On the SUSE Manager Web UI:
 +
 
 
* Create the channel in SUSE Manager
 
* Create the channel in SUSE Manager
In the Admin web UI, go to "Channels" -> "Manage Software Channels" - > "Create channel" and fill the basic channel details.
+
Go to "Channels" -> "Manage Software Channels" - > "Create channel" and fill the basic channel details.
  
 
Best practice is to make it a child channel to the corresponding RH distribution/architecture channel from Customer Center.  The parent channel will have zero packages.
 
Best practice is to make it a child channel to the corresponding RH distribution/architecture channel from Customer Center.  The parent channel will have zero packages.
Line 16: Line 23:
 
* Modify your activation key to include this new child channel.
 
* Modify your activation key to include this new child channel.
  
== On the CLI of SUSE Manager ==
+
== Working with the ISO ==
 +
 
 +
On the CLI of SUSE Manager as root:
 +
 
 
* Copy the ISO to your SUSE Manager server in /tmp
 
* Copy the ISO to your SUSE Manager server in /tmp
 
* Create a directory:
 
* Create a directory:
Line 29: Line 39:
 
<pre>
 
<pre>
 
   # spacewalk-repo-sync -c your_channel_name -u https://127.0.0.1/pub/rhel/
 
   # spacewalk-repo-sync -c your_channel_name -u https://127.0.0.1/pub/rhel/
## Note you may need to use http://suma_server_fqdn/pub/rhel
+
  ## Note you may need to use http://suma_server_fqdn/pub/rhel
 
Repo URL: https://127.0.0.1/pub/rhel/Server/
 
Repo URL: https://127.0.0.1/pub/rhel/Server/
 
Packages in repo:              3690
 
Packages in repo:              3690
Line 39: Line 49:
 
[...]
 
[...]
 
</pre>
 
</pre>
 +
 +
This might fail due to a suppressed certificate warning with this error message: <pre>RepoError: Cannot retrieve repository metadata (repomd.xml) for repository: pub_rhel. Please verify its path and try again</pre>
 +
In this case please use the FQDN of the server instead of 127.0.0.1.
 +
 
* After the end of the synchronization, you will be able to manipulate this channel as a regular SUSE Manager channel.
 
* After the end of the synchronization, you will be able to manipulate this channel as a regular SUSE Manager channel.

Latest revision as of 08:23, 24 November 2017

SUSE Manager Main Page

Import RHEL media into a SUSE Manager Channel

The goal of this procedure is having a RHEL media as a SUSE Manager channel. This mean that you will find the packages from your RHEL DVD or ISO into a regular SUSE Manager channel.

Minimal RHEL versions for Salt

Red Hat added dependency resolving packages to their releases required by Salt. Earlier versions did not have all the needed packages.


For Salt support on RH6, RHEL 6.7+ media is required.

For Salt support on RH7, RHEL 7.2+ media is required.

Create the channel in SUSE Manager

On the SUSE Manager Web UI:

  • Create the channel in SUSE Manager

Go to "Channels" -> "Manage Software Channels" - > "Create channel" and fill the basic channel details.

Best practice is to make it a child channel to the corresponding RH distribution/architecture channel from Customer Center. The parent channel will have zero packages.

  • Modify your activation key to include this new child channel.

Working with the ISO

On the CLI of SUSE Manager as root:

  • Copy the ISO to your SUSE Manager server in /tmp
  • Create a directory:
   # mkdir -p /srv/www/htdocs/pub/rhel
  • mount the iso:
   # mount -o loop /tmp/name_of_iso /srv/www/htdocs/pub/rhel
  • Start spacewalk-repo-sync:
   # spacewalk-repo-sync -c your_channel_name -u https://127.0.0.1/pub/rhel/
   ## Note you may need to use http://suma_server_fqdn/pub/rhel
Repo URL: https://127.0.0.1/pub/rhel/Server/
Packages in repo:              3690
Packages already synced:          0
Packages to sync:              3690
1/3690 : texlive-latex-2007-57.el6_2-0.x86_64
2/3690 : boost-filesystem-1.41.0-18.el6-0.i686
3/3690 : policycoreutils-newrole-2.0.83-19.39.el6-0.x86_64
[...]
This might fail due to a suppressed certificate warning with this error message:
RepoError: Cannot retrieve repository metadata (repomd.xml) for repository: pub_rhel. Please verify its path and try again

In this case please use the FQDN of the server instead of 127.0.0.1.

  • After the end of the synchronization, you will be able to manipulate this channel as a regular SUSE Manager channel.