Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RHEL 7 support #27

Open
obsti opened this issue Aug 25, 2015 · 27 comments
Open

RHEL 7 support #27

obsti opened this issue Aug 25, 2015 · 27 comments

Comments

@obsti
Copy link

obsti commented Aug 25, 2015

Hello,

i have a question regarding the errata import script. I use the script and it is working great.
Thanks for that.
But now i added RHEL 7 to our spacewalk server and now the errata import for RHEL7 is not working (see error message below ). Do you know this failure or are the errata import scripts with RHEL 7 not working ?

/opt/spacewalk_scripts-master/ya-errata-import.pl --server 127.0.0.1 --channel rhel7-x86_64 --os-version 7 --publish --redhat --redhat-channel=rhel-x86_64-server-7 --startfromprevious month
INFO: Architecture is not specified, will try to determine it based on the channel properties of 'rhel7-x86_64'
INFO: Setting the OS variant to Redhat, if this is wrong please remove the --redhat option
DEBUG: Version is 20140918
INFO: Server 127.0.0.1 is running API version 15
INFO: Your API version is supported
INFO: Authentication on 127.0.0.1 successful
Please enter RHN username: XXXXX
Please enter RHN password:XXXXX
INFO: Authentication on rhn.redhat.com successful
DEBUG: User is assigned these roles: system_group_admin channel_admin activation_key_admin config_admin monitoring_admin org_admin
INFO: User has administrator access to this server
INFO: Checking if channel rhel7-x86_64 exists on 127.0.0.1
INFO: Determining architecture for channel rhel7-x86_64
INFO: Detected architecture 'x86_64' for channel 'rhel7-x86_64'
INFO: Listing all packages in rhel7-x86
WARNING: channel.software.listErrata returned an error: Fault returned from XML RPC Server, fault code -210: No such channel
INFO: No errata found, nothing will happen

Regards,
Markus

@liedekef
Copy link
Owner

The weird thing are the last 2 lines:

INFO: Detected architecture 'x86_64' for channel 'rhel7-x86_64'
INFO: Listing all packages in rhel7-x86

As you can see (and configured), the channel name is rhel7-x86_64 (and that is found on spacewalk, since the architecture is detected), but then it says "Listing all packages in rhel7-x86", which is another channel name (and a wrong one ...). But: your error is in channel.software.listErrata, meaning lower in the code (but I don't see the line "Listing all errata in ..." in your logs here)
When you look at my code (search for "Listing all packages") never changes the variable $opt_channel between "Listing all packages" and "Listing all errata", so maybe the code is wrong for you. Are you using a modified version? Or not showing all logs? Did you try the debug option?

@obsti
Copy link
Author

obsti commented Aug 25, 2015

Sorry I didn´t show the whole log messages.

See below or the attached logfile with the debug option.

/opt/spacewalk_scripts-master/ya-errata-import.pl --server 127.0.0.1 --channel rhel7-x86_64 --os-version 7 --publish --redhat --redhat-channel=rhel-x86_64-server-7 --startfromprevious month
INFO: Architecture is not specified, will try to determine it based on the channel properties of 'rhel7-x86_64'
INFO: Setting the OS variant to Redhat, if this is wrong please remove the --redhat option
INFO: Server 127.0.0.1 is running API version 15
INFO: Your API version is supported
INFO: Authentication on 127.0.0.1 successful
Please enter RHN username:
Please enter RHN password:
INFO: Authentication on rhn.redhat.com successful
INFO: User has administrator access to this server
INFO: Checking if channel rhel7-x86_64 exists on 127.0.0.1
INFO: Determining architecture for channel rhel7-x86_64
INFO: Detected architecture 'x86_64' for channel 'rhel7-x86_64'
INFO: Listing all packages in rhel7-x86_64
INFO: Listing all errata in rhel7-x86_64 on 127.0.0.1
INFO: Loading errata from rhn.redhat.com
INFO: Getting erratas from date 2015-07-25 15:22:43 till now
WARNING: channel.software.listErrata returned an error: Fault returned from XML RPC Server, fault code -210: No such channel

INFO: No errata found, nothing will happen

I changed nothing on the code, so I use your original version.
I think the problem is that I can´t access the RedHat Channel “rhel-x86_64-server-7”. But I don´t know why it is not working.
With RHEL 5/6 it works without problems. Was something changed with RHEL 7 ?

Regards & Thanks for you help
Markus

@liedekef
Copy link
Owner

Do you have a EL7 subscription with redhat?

@obsti
Copy link
Author

obsti commented Aug 26, 2015

I have a few RHEL subscriptions. Are there spezial subscriptions for EL7 ? Where can i check that ? Does the errata import for RHEL7 work for you ?

@obsti obsti closed this as completed Aug 26, 2015
@obsti obsti reopened this Aug 26, 2015
@obsti
Copy link
Author

obsti commented Aug 26, 2015

Sorry i didn´t want to close the issue. Here my remarks again.
I have a few RHEL subscriptions . Are there spezial subscriptions for EL7 ? Where can i check that ? Does the errata import for RHEL7 work for you ?

@liedekef
Copy link
Owner

I'm still on EL6 so I can't tell you the EL7 name (and no EL7 subscriptions yet).

@obsti
Copy link
Author

obsti commented Oct 2, 2015

Do you plan to test the scripts with EL7 in the furture ? I still didn´t find a possiblity to import the errata for EL7 in spacewalk

@waldirio
Copy link
Contributor

waldirio commented Oct 5, 2015

Guys, good morning.

Just one comment, the subscription is the same, when you buy a subscription, you can use EL5, EL6 or EL7.

About script, I'm really without time to test, but asap I'll try.

Take Care
Waldirio

@trelm249
Copy link

trelm249 commented Oct 8, 2015

I am running into the same error when trying to clone red hat errata. Yes I have red hat subscriptions and have registered rhel 5, rhel 6, and rhel 7 hosts. No such error occurs with the CentOS channels.

INFO: Architecture is not specified, will try to determine it based on the channel properties of 'rhel-7-base-x86_64'
INFO: Setting the OS variant to Redhat, if this is wrong please remove the --redhat option
INFO: Server $RedactedIP is running API version 16
INFO: Your API version is supported
INFO: Authentication on $RedactedIP successful
INFO: Authentication on rhn.redhat.com successful
INFO: User has administrator access to this server
INFO: Checking if channel rhel-7-base-x86_64 exists on $RedactedIP
INFO: Determining architecture for channel rhel-7-base-x86_64
INFO: Detected architecture 'x86_64' for channel 'rhel-7-base-x86_64'
INFO: Listing all packages in rhel-7-base-x86_64
INFO: Listing all errata in rhel-7-base-x86_64 on $RedactedIP
INFO: Loading errata from rhn.redhat.com
INFO: Getting ALL erratas (this make take a while)
WARNING: channel.software.listErrata returned an error: Fault returned from XML RPC Server, fault code -210: No such channel

INFO: No errata found, nothing will happen
INFO: Architecture is not specified, will try to determine it based on the channel properties of 'rhel-6-server-rpms'
INFO: No redhat channel specified, assuming the name 'rhel-6-server-rpms'

INFO: Setting the OS variant to Redhat, if this is wrong please remove the --redhat option
INFO: Server 10.252.39.134 is running API version 16
INFO: Your API version is supported
INFO: Authentication on 10.252.39.134 successful
INFO: Authentication on rhn.redhat.com successful
INFO: User has administrator access to this server
INFO: Checking if channel rhel-6-server-rpms exists on $RedactedIP
INFO: Determining architecture for channel rhel-6-server-rpms
INFO: Detected architecture 'x86_64' for channel 'rhel-6-server-rpms'
INFO: Listing all packages in rhel-6-server-rpms
INFO: Listing all errata in rhel-6-server-rpms on $RedactedIP
INFO: Loading errata from rhn.redhat.com
INFO: Getting ALL erratas (this make take a while)
WARNING: channel.software.listErrata returned an error: Fault returned from XML RPC Server, fault code -210: No such channel

INFO: No errata found, nothing will happen

@obsti
Copy link
Author

obsti commented Feb 18, 2016

Hello everyone,

are there news reagarding my issue ?
I still found no possibilty to imort RHEL7 errata into spacewalk.

Regards,
Markus

@tautzie
Copy link

tautzie commented Apr 1, 2016

@obsti, I got this from @jjperry69:

To find the list of channels available from Red Hat, you can use the spacewalk-api.
You must have a Red Hat login with an active support agreement for the below command to work.
spacewalk-api --server=xmlrpc.rhn.redhat.com/rpc/api --user --pass channel.listSoftwareChannels '%session%'

This API call does not return any suitable channel for RHEL7. I guess this is because redhat is moving away from RHN and starts using the RHSM with the introduction of RHEL7.

According to this article click there is no real API for RHSM available yet...

@liedekef
Copy link
Owner

liedekef commented Apr 1, 2016

I just tried it, and the perl script can return redhat channels just fine for xmlrpc.rhn.redhat.com too, so I'll add the list of redhat channels found in the debug output (is on github now, script version 20160401).
Thus, using

--rhn-server=xmlrpc.rhn.redhat.com

should be sufficient to connect to the newer rhsm and get the erratas ...

@obsti
Copy link
Author

obsti commented Apr 25, 2016

Hello everyone,

I tested the new version with the rhn server option --rhn-server=xmlrpc.rhn.redhat.com
But the same issue the RHEL7 Channels are not listed.
See debug output below.

/opt/spacewalk_scripts-master/ya-errata-import.pl --server 127.0.0.1 --channel rhel7-x86_64 --rhn-server=xmlrpc.rhn.redhat.com --os-version 7 --publish --redhat --rhn-proxy=XXXXX --redhat-channel=rhel-x86_64-server-7 --startfromprevious month --debug
DEBUG: Called as /opt/spacewalk_scripts-master/ya-errata-import.pl --server 127.0.0.1 --channel rhel7-x86_64 --rhn-server=xmlrpc.rhn.redhat.com --os-version 7 --publish --redhat --rhn-proxy=XXXXX --redhat-channel=rhel-x86_64-server-7 --startfromprevious month --debug
INFO: Architecture is not specified, will try to determine it based on the channel properties of 'rhel7-x86_64'
INFO: Setting the OS variant to Redhat, if this is wrong please remove the --redhat option
DEBUG: Version is 20160401
INFO: Server 127.0.0.1 is running API version 15
INFO: Your API version is supported
Please enter username: XXX
Please enter password:
INFO: Authentication on 127.0.0.1 successful
Please enter RHN username: XXXX
Please enter RHN password:
INFO: Authentication on xmlrpc.rhn.redhat.com successful
RHN channel found: redhat-linux-i386-6.2
RHN channel found: redhat-linux-alpha-6.2
RHN channel found: redhat-linux-sparc-6.2
RHN channel found: redhat-powertools-i386-6.2
RHN channel found: redhat-powertools-alpha-6.2
RHN channel found: redhat-powertools-sparc-6.2
RHN channel found: redhat-linux-i386-7.0
RHN channel found: redhat-linux-alpha-7.0
RHN channel found: redhat-powertools-i386-7.0
RHN channel found: redhat-powertools-alpha-7.0
RHN channel found: redhat-linux-i386-7.1
RHN channel found: redhat-linux-alpha-7.1
RHN channel found: redhat-powertools-i386-7.1
RHN channel found: redhat-powertools-alpha-7.1
RHN channel found: redhat-linux-ee-i386-6.2
RHN channel found: redhat-linux-s390x-7.1
RHN channel found: redhat-linux-i386-7.2
RHN channel found: redhat-linux-ia64-7.2
RHN channel found: redhat-linux-s390-7.2
RHN channel found: k12ltsp-i386-7.2
RHN channel found: redhat-linux-i386-7.3
RHN channel found: redhat-linux-i386-8.0
RHN channel found: redhat-linux-i386-9
RHN channel found: redhat-linux-ia64-7.1
RHN channel found: redhat-gcc3.1-i386-7.3
RHN channel found: education-k12ltsp-i386-7.3
RHN channel found: education-general-i386-7.3
RHN channel found: redhat-linux-iSeries-7.1
RHN channel found: redhat-linux-pSeries-7.1
RHN channel found: education-k12ltsp-i386-8.0
RHN channel found: redhat-linux-severn-i386-9.0.93
RHN channel found: education-k12ltsp-i386-9
RHN channel found: redhat-linux-severn-i386-9.0.93-updates
RHN channel found: severn-beta2-i386
RHN channel found: rhel-i386-as-3
RHN channel found: rhel-i386-as-3-extras
RHN channel found: rhel-i386-as-3-devsuite
RHN channel found: rhel-i386-as-3-cluster
RHN channel found: rhel-i386-as-3-interim
RHN channel found: rhel-i386-as-3-beta
RHN channel found: rhel-i386-es-3
RHN channel found: rhel-i386-es-3-extras
RHN channel found: rhel-i386-es-3-devsuite
RHN channel found: rhel-i386-es-3-cluster
RHN channel found: rhel-i386-es-3-interim
RHN channel found: rhel-i386-es-3-beta
RHN channel found: rhel-i386-ws-3
RHN channel found: rhel-i386-ws-3-extras
RHN channel found: rhel-i386-ws-3-devsuite
RHN channel found: rhel-i386-ws-3-interim
RHN channel found: rhel-ia64-as-3
RHN channel found: rhel-ia64-as-3-extras
RHN channel found: rhel-ia64-as-3-devsuite
RHN channel found: rhel-ia64-as-3-interim
RHN channel found: rhel-ia64-as-3-beta
RHN channel found: rhel-ia64-es-3
RHN channel found: rhel-ia64-es-3-extras
RHN channel found: rhel-ia64-es-3-devsuite
RHN channel found: rhel-ia64-es-3-interim
RHN channel found: rhel-ia64-es-3-beta
RHN channel found: rhel-ia64-ws-3
RHN channel found: rhel-ia64-ws-3-extras
RHN channel found: rhel-ia64-ws-3-devsuite
RHN channel found: rhel-ia64-ws-3-interim
RHN channel found: rhel-x86_64-as-3
RHN channel found: rhel-x86_64-as-3-extras
RHN channel found: rhel-x86_64-as-3-devsuite
RHN channel found: rhel-x86_64-as-3-interim
RHN channel found: rhel-x86_64-as-3-beta
RHN channel found: rhel-x86_64-es-3
RHN channel found: rhel-x86_64-es-3-extras
RHN channel found: rhel-x86_64-es-3-devsuite
RHN channel found: rhel-x86_64-es-3-interim
RHN channel found: rhel-x86_64-es-3-beta
RHN channel found: rhel-x86_64-ws-3
RHN channel found: rhel-x86_64-ws-3-extras
RHN channel found: rhel-x86_64-ws-3-devsuite
RHN channel found: rhel-x86_64-ws-3-interim
RHN channel found: rhel-ppc-as-3
RHN channel found: rhel-ppc-as-3-extras
RHN channel found: rhel-ppc-as-3-devsuite
RHN channel found: rhel-ppc-as-3-interim
RHN channel found: rhel-ppc-as-3-beta
RHN channel found: rhel-s390-as-3
RHN channel found: rhel-s390-as-3-extras
RHN channel found: rhel-s390-as-3-interim
RHN channel found: rhel-s390x-as-3
RHN channel found: rhel-s390x-as-3-extras
RHN channel found: rhel-s390x-as-3-interim
RHN channel found: severn-beta2-i386-updates
RHN channel found: rhel-i386-as-3-extras-beta
RHN channel found: rhel-i386-es-3-extras-beta
RHN channel found: rhel-ia64-as-3-extras-beta
RHN channel found: rhel-ia64-es-3-extras-beta
RHN channel found: rhel-x86_64-as-3-extras-beta
RHN channel found: rhel-x86_64-es-3-extras-beta
RHN channel found: rhel-ppc-as-3-extras-beta
RHN channel found: rhn-tools-rhel-3-as-i386
RHN channel found: rhn-tools-rhel-3-es-i386
RHN channel found: rhn-tools-rhel-3-ws-i386
RHN channel found: rhn-tools-redhat-linux-i386-9
RHN channel found: rhel-i386-as-2.1-beta
RHN channel found: rhel-i386-es-2.1-beta
RHN channel found: rhel-ia64-as-2.1-beta
RHN channel found: rhel-i386-desktop-3
RHN channel found: rhel-i386-desktop-3-extras
RHN channel found: rhel-i386-desktop-3-devsuite
RHN channel found: rhel-i386-desktop-3-interim
RHN channel found: rhel-x86_64-desktop-3
RHN channel found: rhel-x86_64-desktop-3-extras
RHN channel found: rhel-x86_64-desktop-3-devsuite
RHN channel found: rhel-x86_64-desktop-3-interim
RHN channel found: rhel-i386-as-3-gfs
RHN channel found: rhel-i386-es-3-gfs
RHN channel found: rhel-ia64-as-3-gfs
RHN channel found: rhel-ia64-es-3-gfs
RHN channel found: rhel-x86_64-as-3-gfs
RHN channel found: rhel-i386-as-3-gfs-6
RHN channel found: rhel-i386-es-3-gfs-6
RHN channel found: rhel-ia64-as-3-gfs-6
RHN channel found: rhel-ia64-es-3-gfs-6
RHN channel found: rhel-x86_64-as-3-gfs-6
RHN channel found: rhel-x86_64-es-3-gfs-6
RHN channel found: rhel-i386-ws-3-gfs-6
RHN channel found: rhel-ia64-ws-3-gfs-6
RHN channel found: rhel-x86_64-ws-3-gfs-6
RHN channel found: rhel-ia64-as-3-cluster
RHN channel found: rhel-ia64-es-3-cluster
RHN channel found: rhel-x86_64-as-3-cluster
RHN channel found: rhel-x86_64-es-3-cluster
RHN channel found: rhel-i386-ws-3-cluster
RHN channel found: rhel-ia64-ws-3-cluster
RHN channel found: rhel-x86_64-ws-3-cluster
RHN channel found: rhn-tools-rhel-3-desktop-i386
RHN channel found: rhel-3-as-i386-rhaps-1
RHN channel found: rhel-3-as-i386-rhds-2
RHN channel found: rhel-3-es-i386-rhaps-1
RHN channel found: rhel-3-es-i386-rhds-2
RHN channel found: rhel-3-ws-i386-rhaps-1
RHN channel found: rhel-3-ws-i386-rhds-2
RHN channel found: rhel-3-as-ia64-rhaps-1
RHN channel found: rhel-3-as-ia64-rhds-2
RHN channel found: rhel-3-es-ia64-rhaps-1
RHN channel found: rhel-3-es-ia64-rhds-2
RHN channel found: rhel-3-ws-ia64-rhaps-1
RHN channel found: rhel-3-ws-ia64-rhds-2
RHN channel found: rhel-3-as-x86_64-rhaps-1
RHN channel found: rhel-3-as-x86_64-rhds-2
RHN channel found: rhel-3-es-x86_64-rhaps-1
RHN channel found: rhel-3-es-x86_64-rhds-2
RHN channel found: rhel-3-ws-x86_64-rhaps-1
RHN channel found: rhel-3-ws-x86_64-rhds-2
RHN channel found: rhel-3-as-ppc-rhaps-1
RHN channel found: rhel-3-as-ppc-rhds-2
RHN channel found: rhn-tools-rhel-3-as-x86_64
RHN channel found: rhn-tools-rhel-3-es-x86_64
RHN channel found: rhn-tools-rhel-3-ws-x86_64
RHN channel found: rhel-i386-as-4-beta
RHN channel found: rhel-i386-es-4-beta
RHN channel found: rhel-x86_64-as-4-beta
RHN channel found: rhel-x86_64-es-4-beta
RHN channel found: rhel-ia64-as-4-beta
RHN channel found: rhel-ia64-es-4-beta
RHN channel found: rhel-ppc-as-4-beta
RHN channel found: rhn-tools-rhel-3-desktop-x86_64
RHN channel found: rhis-i386-as-3-rhdirserv
RHN channel found: rhis-i386-es-3-rhdirserv
RHN channel found: rhel-i386-as-4
RHN channel found: rhel-i386-as-4-extras
RHN channel found: rhel-i386-as-4-sdk
RHN channel found: rhel-i386-es-4
RHN channel found: rhel-i386-es-4-extras
RHN channel found: rhel-i386-es-4-sdk
RHN channel found: rhel-i386-ws-4-sdk
RHN channel found: rh-i386-desktop-4-sdk
RHN channel found: rhel-x86_64-as-4
RHN channel found: rhel-x86_64-as-4-extras
RHN channel found: rhel-x86_64-es-4-sdk
RHN channel found: rhel-x86_64-es-4
RHN channel found: rhel-x86_64-es-4-extras
RHN channel found: rhel-x86_64-ws-4-sdk
RHN channel found: rh-x86_64-desktop-4-sdk
RHN channel found: rhel-ia64-as-4
RHN channel found: rhel-ia64-as-4-extras
RHN channel found: rhel-ia64-es-4
RHN channel found: rhel-ia64-es-4-extras
RHN channel found: rhel-ppc-as-4
RHN channel found: rhel-ppc-as-4-extras
RHN channel found: rhel-x86_64-as-4-sdk
RHN channel found: rhn-tools-rhel-4-as-i386
RHN channel found: rhn-tools-rhel-4-es-i386
RHN channel found: rhn-tools-rhel-4-ws-i386
RHN channel found: rhn-tools-rhel-4-desktop-i386
RHN channel found: rhn-tools-rhel-4-as-x86_64
RHN channel found: rhn-tools-rhel-4-es-x86_64
RHN channel found: rhn-tools-rhel-4-ws-x86_64
RHN channel found: rhn-tools-rhel-4-desktop-x86_64
RHN channel found: rhn-tools-rhel-3-as-ia64
RHN channel found: rhn-tools-rhel-3-es-ia64
RHN channel found: rhn-tools-rhel-3-ws-ia64
RHN channel found: rhn-tools-rhel-4-as-ia64
RHN channel found: rhn-tools-rhel-4-es-ia64
RHN channel found: rhn-tools-rhel-4-ws-ia64
RHN channel found: rhel-i386-as-4-extras-beta
RHN channel found: rhel-i386-es-4-extras-beta
RHN channel found: rhel-x86_64-as-4-extras-beta
RHN channel found: rhel-x86_64-es-4-extras-beta
RHN channel found: rhel-ia64-as-4-extras-beta
RHN channel found: rhel-ia64-es-4-extras-beta
RHN channel found: rhel-ppc-as-4-extras-beta
RHN channel found: rhel-i386-as-3-rhcmsys-7.1
RHN channel found: rhel-i386-es-3-rhcmsys-7.1
RHN channel found: rhel-i386-as-3-rhdirserv-7.1
RHN channel found: rhel-i386-es-3-rhdirserv-7.1
RHN channel found: rhel-i386-as-3-hwcert
RHN channel found: rhel-ia64-as-3-hwcert
RHN channel found: rhel-x86_64-as-3-hwcert
RHN channel found: rhel-ppc-as-3-hwcert
RHN channel found: rhel-s390-as-3-hwcert
RHN channel found: rhel-s390x-as-3-hwcert
RHN channel found: rhel-4-as-i386-rhds-2.1-beta
RHN channel found: rhel-4-es-i386-rhds-2.1-beta
RHN channel found: rhel-4-ws-i386-rhds-2.1-beta
RHN channel found: rhel-4-as-ia64-rhds-2.1-beta
RHN channel found: rhel-4-es-ia64-rhds-2.1-beta
RHN channel found: rhel-4-ws-ia64-rhds-2.1-beta
RHN channel found: rhel-4-as-x86_64-rhds-2.1-beta
RHN channel found: rhel-4-es-x86_64-rhds-2.1-beta
RHN channel found: rhel-4-ws-x86_64-rhds-2.1-beta
RHN channel found: rhel-4-as-ppc-rhds-2.1-beta
RHN channel found: rhel-4-as-i386-rhds-2.1
RHN channel found: rhel-4-es-i386-rhds-2.1
RHN channel found: rhel-4-ws-i386-rhds-2.1
RHN channel found: rhel-4-as-ia64-rhds-2.1
RHN channel found: rhel-4-es-ia64-rhds-2.1
RHN channel found: rhel-4-ws-ia64-rhds-2.1
RHN channel found: rhel-4-as-x86_64-rhds-2.1
RHN channel found: rhel-4-es-x86_64-rhds-2.1
RHN channel found: rhel-4-ws-x86_64-rhds-2.1
RHN channel found: rhel-4-as-ppc-rhds-2.1
RHN channel found: rhel-i386-as-4-fastrack
RHN channel found: rhel-i386-es-4-fastrack
RHN channel found: rhel-x86_64-as-4-fastrack
RHN channel found: rhel-x86_64-es-4-fastrack
RHN channel found: rhel-ia64-as-4-fastrack
RHN channel found: rhel-ia64-es-4-fastrack
RHN channel found: rhel-ppc-as-4-fastrack
RHN channel found: rhel-i386-as-3-fastrack
RHN channel found: rhel-i386-es-3-fastrack
RHN channel found: rhel-i386-ws-3-fastrack
RHN channel found: rhel-i386-desktop-3-fastrack
RHN channel found: rhel-ia64-as-3-fastrack
RHN channel found: rhel-ia64-es-3-fastrack
RHN channel found: rhel-ia64-ws-3-fastrack
RHN channel found: rhel-x86_64-as-3-fastrack
RHN channel found: rhel-x86_64-es-3-fastrack
RHN channel found: rhel-x86_64-ws-3-fastrack
RHN channel found: rhel-x86_64-desktop-3-fastrack
RHN channel found: rhel-ppc-as-3-fastrack
RHN channel found: rhel-s390-as-3-fastrack
RHN channel found: rhel-s390x-as-3-fastrack
RHN channel found: rhel-4-as-i386-rhds-3
RHN channel found: rhel-4-es-i386-rhds-3
RHN channel found: rhel-4-ws-i386-rhds-3
RHN channel found: rhel-4-as-ia64-rhds-3
RHN channel found: rhel-4-es-ia64-rhds-3
RHN channel found: rhel-4-ws-ia64-rhds-3
RHN channel found: rhel-4-as-x86_64-rhds-3
RHN channel found: rhel-4-es-x86_64-rhds-3
RHN channel found: rhel-4-ws-x86_64-rhds-3
RHN channel found: rhel-4-as-ppc-rhds-3
RHN channel found: rhel-i386-server-5-beta
RHN channel found: rhel-i386-server-vt-5-beta
RHN channel found: rhel-i386-server-supplementary-5-beta
RHN channel found: rhel-x86_64-server-5-beta
RHN channel found: rhel-x86_64-server-vt-5-beta
RHN channel found: rhel-x86_64-server-supplementary-5-beta
RHN channel found: rhel-ia64-server-5-beta
RHN channel found: rhel-ia64-server-vt-5-beta
RHN channel found: rhel-ia64-server-supplementary-5-beta
RHN channel found: rhel-ppc-server-5-beta
RHN channel found: rhel-ppc-server-supplementary-5-beta
RHN channel found: rhn-tools-rhel-i386-server-5-beta
RHN channel found: rhn-tools-rhel-x86_64-server-5-beta
RHN channel found: rhn-tools-rhel-ia64-server-5-beta
RHN channel found: rhn-tools-rhel-i386-client-5-beta
RHN channel found: rhn-tools-rhel-x86_64-client-5-beta
RHN channel found: rhel-i386-server-5
RHN channel found: rhel-i386-server-vt-5
RHN channel found: rhel-i386-server-productivity-5
RHN channel found: rhel-i386-server-supplementary-5
RHN channel found: rhel-i386-server-fastrack-5
RHN channel found: rhel-x86_64-server-5
RHN channel found: rhel-x86_64-server-vt-5
RHN channel found: rhel-x86_64-server-productivity-5
RHN channel found: rhel-x86_64-server-supplementary-5
RHN channel found: rhel-x86_64-server-fastrack-5
RHN channel found: rhel-ia64-server-5
RHN channel found: rhel-ia64-server-vt-5
RHN channel found: rhel-ia64-server-supplementary-5
RHN channel found: rhel-ia64-server-fastrack-5
RHN channel found: rhel-ppc-server-5
RHN channel found: rhel-ppc-server-supplementary-5
RHN channel found: rhel-ppc-server-fastrack-5
RHN channel found: rhn-tools-rhel-i386-server-5
RHN channel found: rhn-tools-rhel-x86_64-server-5
RHN channel found: rhn-tools-rhel-ia64-server-5
RHN channel found: rhn-tools-rhel-i386-client-5
RHN channel found: rhn-tools-rhel-x86_64-client-5
RHN channel found: rhel-i386-server-productivity-5-beta
RHN channel found: rhel-x86_64-server-productivity-5-beta
RHN channel found: rhn-tools-rhel-4-as-ppc
RHN channel found: rhn-tools-rhel-4-as-s390
RHN channel found: rhn-tools-rhel-4-as-s390x
RHN channel found: rhn-tools-rhel-ppc-server-5
RHN channel found: rhn-tools-rhel-s390x-server-5
RHN channel found: rhn-tools-rhel-3-as-ppc
RHN channel found: rhn-tools-rhel-3-as-s390
RHN channel found: rhn-tools-rhel-3-as-s390x
RHN channel found: rhn-tools-rhel-4-as-i386-beta
RHN channel found: rhn-tools-rhel-4-es-i386-beta
RHN channel found: rhn-tools-rhel-4-ws-i386-beta
RHN channel found: rhn-tools-rhel-4-desktop-i386-beta
RHN channel found: rhn-tools-rhel-4-as-x86_64-beta
RHN channel found: rhn-tools-rhel-4-es-x86_64-beta
RHN channel found: rhn-tools-rhel-4-ws-x86_64-beta
RHN channel found: rhn-tools-rhel-4-desktop-x86_64-beta
RHN channel found: rhn-tools-rhel-4-as-ia64-beta
RHN channel found: rhn-tools-rhel-4-es-ia64-beta
RHN channel found: rhn-tools-rhel-4-ws-ia64-beta
RHN channel found: rhn-tools-rhel-4-as-ppc-beta
RHN channel found: rhn-tools-rhel-ppc-server-5-beta
RHN channel found: rhel-i386-server-6-beta
RHN channel found: rhel-i386-server-optional-6-beta
RHN channel found: rhel-x86_64-server-6-beta
RHN channel found: rhel-x86_64-server-optional-6-beta
RHN channel found: rhel-i386-server-6
RHN channel found: rhel-i386-server-6-beta-debuginfo
RHN channel found: rhel-i386-server-6-debuginfo
RHN channel found: rhel-i386-server-fastrack-6
RHN channel found: rhel-i386-server-fastrack-6-debuginfo
RHN channel found: rhel-i386-server-optional-6
RHN channel found: rhel-i386-server-optional-6-beta-debuginfo
RHN channel found: rhel-i386-server-optional-6-debuginfo
RHN channel found: rhel-i386-server-optional-fastrack-6
RHN channel found: rhel-i386-server-optional-fastrack-6-debuginfo
RHN channel found: rhel-i386-server-supplementary-6
RHN channel found: rhel-i386-server-supplementary-6-beta
RHN channel found: rhel-i386-server-supplementary-6-beta-debuginfo
RHN channel found: rhel-i386-server-supplementary-6-debuginfo
RHN channel found: rhel-x86_64-server-6
RHN channel found: rhel-x86_64-server-6-beta-debuginfo
RHN channel found: rhel-x86_64-server-6-debuginfo
RHN channel found: rhel-x86_64-server-fastrack-6
RHN channel found: rhel-x86_64-server-fastrack-6-debuginfo
RHN channel found: rhel-x86_64-server-optional-6
RHN channel found: rhel-x86_64-server-optional-6-beta-debuginfo
RHN channel found: rhel-x86_64-server-optional-6-debuginfo
RHN channel found: rhel-x86_64-server-optional-fastrack-6
RHN channel found: rhel-x86_64-server-optional-fastrack-6-debuginfo
RHN channel found: rhel-x86_64-server-supplementary-6
RHN channel found: rhel-x86_64-server-supplementary-6-beta
RHN channel found: rhel-x86_64-server-supplementary-6-beta-debuginfo
RHN channel found: rhel-x86_64-server-supplementary-6-debuginfo
RHN channel found: rhel-i386-as-3-els
RHN channel found: rhel-i386-es-3-els
RHN channel found: rhel-x86_64-server-v2vwin-6
RHN channel found: rhel-x86_64-server-v2vwin-6-beta
RHN channel found: rhel-x86_64-server-v2vwin-6-beta-debuginfo
RHN channel found: rhel-x86_64-server-v2vwin-6-debuginfo
RHN channel found: rhn-tools-rhel-i386-server-6
RHN channel found: rhn-tools-rhel-i386-server-6-beta
RHN channel found: rhn-tools-rhel-x86_64-server-6
RHN channel found: rhn-tools-rhel-x86_64-server-6-beta
RHN channel found: rhel-i386-rhev-agent-5-server
RHN channel found: rhel-i386-rhev-agent-5-server-beta
RHN channel found: rhel-x86_64-rhev-agent-5-server
RHN channel found: rhel-x86_64-rhev-agent-5-server-beta
RHN channel found: rhel-i386-rhev-agent-6-server
RHN channel found: rhel-i386-rhev-agent-6-server-beta
RHN channel found: rhel-x86_64-rhev-agent-6-server
RHN channel found: rhel-x86_64-rhev-agent-6-server-beta
RHN channel found: rhel-x86_64-server-6-cf-tools-1-beta
RHN channel found: rhel-x86_64-server-6-cf-tools-1-beta-debuginfo
RHN channel found: rhel-x86_64-server-5-cf-tools-1-beta
RHN channel found: rhel-i386-rhev-agent-6-server-debuginfo
RHN channel found: rhel-i386-rhev-agent-6-server-beta-debuginfo
RHN channel found: rhel-x86_64-rhev-agent-6-server-debuginfo
RHN channel found: rhel-x86_64-rhev-agent-6-server-beta-debuginfo
RHN channel found: rhel-i386-server-5-debuginfo
RHN channel found: rhel-i386-server-5-beta-debuginfo
RHN channel found: rhel-i386-server-vt-5-debuginfo
RHN channel found: rhel-i386-server-vt-5-beta-debuginfo
RHN channel found: rhel-i386-server-productivity-5-debuginfo
RHN channel found: rhel-i386-server-productivity-5-beta-debuginfo
RHN channel found: rhel-i386-server-supplementary-5-debuginfo
RHN channel found: rhel-i386-server-supplementary-5-beta-debuginfo
RHN channel found: rhel-i386-server-fastrack-5-debuginfo
RHN channel found: rhel-x86_64-server-5-debuginfo
RHN channel found: rhel-x86_64-server-5-beta-debuginfo
RHN channel found: rhel-x86_64-server-vt-5-debuginfo
RHN channel found: rhel-x86_64-server-vt-5-beta-debuginfo
RHN channel found: rhel-x86_64-server-productivity-5-debuginfo
RHN channel found: rhel-x86_64-server-productivity-5-beta-debuginfo
RHN channel found: rhel-x86_64-server-supplementary-5-debuginfo
RHN channel found: rhel-x86_64-server-supplementary-5-beta-debuginfo
RHN channel found: rhel-x86_64-server-fastrack-5-debuginfo
RHN channel found: rhel-ia64-server-5-debuginfo
RHN channel found: rhel-ia64-server-5-beta-debuginfo
RHN channel found: rhel-ia64-server-vt-5-debuginfo
RHN channel found: rhel-ia64-server-vt-5-beta-debuginfo
RHN channel found: rhel-ia64-server-supplementary-5-debuginfo
RHN channel found: rhel-ia64-server-supplementary-5-beta-debuginfo
RHN channel found: rhel-ia64-server-fastrack-5-debuginfo
RHN channel found: rhel-ppc-server-5-debuginfo
RHN channel found: rhel-ppc-server-5-beta-debuginfo
RHN channel found: rhel-ppc-server-supplementary-5-debuginfo
RHN channel found: rhel-ppc-server-supplementary-5-beta-debuginfo
RHN channel found: rhel-ppc-server-fastrack-5-debuginfo
RHN channel found: rhel-i386-server-6-cf-tools-1-beta
RHN channel found: rhel-i386-server-6-cf-tools-1-beta-debuginfo
RHN channel found: rhel-i386-server-5-cf-tools-1-beta
RHN channel found: sam-rhel-x86_64-server-6-beta
RHN channel found: sam-rhel-x86_64-server-6-beta-debuginfo
RHN channel found: sam-rhel-x86_64-server-6
RHN channel found: sam-rhel-x86_64-server-6-debuginfo
RHN channel found: rhel-x86_64-server-dts-5
RHN channel found: rhel-i386-server-dts-5
RHN channel found: rhel-x86_64-server-dts-5-debuginfo
RHN channel found: rhel-x86_64-server-dts-5-beta
RHN channel found: rhel-i386-server-dts-5-beta
RHN channel found: rhel-x86_64-server-dts-5-beta-debuginfo
RHN channel found: rhel-x86_64-server-dts-6
RHN channel found: rhel-i386-server-dts-6
RHN channel found: rhel-x86_64-server-dts-6-beta
RHN channel found: rhel-i386-server-dts-5-debuginfo
RHN channel found: rhel-i386-server-dts-5-beta-debuginfo
RHN channel found: rhel-i386-server-dts-6-beta
RHN channel found: rhel-x86_64-server-dts-6-debuginfo
RHN channel found: rhel-i386-server-dts-6-debuginfo
RHN channel found: rhel-x86_64-server-dts-6-beta-debuginfo
RHN channel found: rhel-i386-server-dts-6-beta-debuginfo
RHN channel found: rhel-x86_64-server-rhsclient-6
RHN channel found: rhel-x86_64-server-rhsclient-6-debuginfo
RHN channel found: rhel-x86_64-server-rhsclient-5
RHN channel found: rhel-x86_64-server-rhsclient-5-debuginfo
RHN channel found: rhel-i386-server-rh-common-6-beta-debuginfo
RHN channel found: rhel-x86_64-server-rh-common-6-beta
RHN channel found: rhel-x86_64-server-rh-common-6-beta-debuginfo
RHN channel found: rhel-i386-server-rh-common-6-beta
RHN channel found: rhel-i386-server-rh-common-6
RHN channel found: rhel-i386-server-rh-common-6-debuginfo
RHN channel found: rhel-x86_64-server-rh-common-6-debuginfo
RHN channel found: rhel-x86_64-server-rh-common-6
RHN channel found: rhel-x86_64-server-6-rhscl-1
RHN channel found: rhel-x86_64-server-6-rhscl-1-debuginfo
RHN channel found: rhel-x86_64-server-6-rhscl-1-beta
RHN channel found: rhel-x86_64-server-6-rhscl-1-beta-debuginfo
RHN channel found: rhel-x86_64-server-dts2-6
RHN channel found: rhel-i386-server-dts2-6
RHN channel found: rhel-x86_64-server-dts2-6-beta
RHN channel found: rhel-i386-server-dts2-5-beta
RHN channel found: rhel-i386-server-dts2-6-beta
RHN channel found: rhel-i386-server-dts2-6-beta-debuginfo
RHN channel found: rhel-x86_64-server-dts2-5
RHN channel found: rhel-i386-server-dts2-5
RHN channel found: rhel-x86_64-server-dts2-5-debuginfo
RHN channel found: rhel-i386-server-dts2-5-debuginfo
RHN channel found: rhel-x86_64-server-dts2-5-beta-debuginfo
RHN channel found: rhel-i386-server-dts2-5-beta-debuginfo
RHN channel found: rhel-x86_64-server-dts2-6-debuginfo
RHN channel found: rhel-i386-server-dts2-6-debuginfo
RHN channel found: rhel-x86_64-server-dts2-6-beta-debuginfo
RHN channel found: rhel-x86_64-server-dts2-5-beta
RHN channel found: rhel-i386-server-5-thirdparty-oracle-java
RHN channel found: rhel-i386-server-5-thirdparty-oracle-java-beta
RHN channel found: rhel-x86_64-server-5-thirdparty-oracle-java
RHN channel found: rhel-i386-as-4-thirdparty-oracle-java
RHN channel found: rhel-x86_64-server-5-thirdparty-oracle-java-beta
RHN channel found: rhel-i386-as-4-thirdparty-oracle-java-beta
RHN channel found: rhel-i386-es-4-thirdparty-oracle-java
RHN channel found: rhel-i386-es-4-thirdparty-oracle-java-beta
RHN channel found: rhel-x86_64-as-4-thirdparty-oracle-java
RHN channel found: rhel-x86_64-es-4-thirdparty-oracle-java
RHN channel found: rhel-i386-server-6-thirdparty-oracle-java
RHN channel found: rhel-i386-server-6-thirdparty-oracle-java-beta
RHN channel found: rhel-x86_64-server-6-thirdparty-oracle-java
RHN channel found: rhel-x86_64-as-4-thirdparty-oracle-java-beta
RHN channel found: rhel-x86_64-es-4-thirdparty-oracle-java-beta
RHN channel found: rhel-x86_64-server-6-thirdparty-oracle-java-beta
RHN channel found: rhel-i386-server-extras-6-debuginfo
RHN channel found: rhel-i386-server-extras-6
RHN channel found: rhel-x86_64-server-extras-6
RHN channel found: rhel-x86_64-server-extras-6-debuginfo
DEBUG: User is assigned these roles: system_group_admin channel_admin activation_key_admin config_

INFO: Getting erratas from date 2016-03-25 09:11:27 till now
WARNING: channel.software.listErrata returned an error: Fault returned from XML RPC Server, fault code -210: No such channel

Regards,
Markus

@bodinewilson
Copy link

We've got the same issue, with the RHEL7 channels not being displayed, even when using xmlrpc.rhn.redhat.com authenticating with an account that does have live EL7 subscriptions.

Is this just because the xmlrpc API for RHEL7 is deprecated?

@ahmedsajid
Copy link

Any solution to this?

@nyromaniac
Copy link

Just found this script. This looked like it would solve my errata issue with RHEL6 and RHEL7 and Spacewalk but I also am receiving the "No such channel" error when attempting to obtain RHEL7 errata.

Any word on if the XMLRPC API for RHEL6 will continue to function after July 2017 when RHN Classic is retired?

@ahmedsajid
Copy link

I have been using reposync to create a local mirror of RHEL 6&7 on a RHEL 7 machine.
Instructions here:
https://access.redhat.com/solutions/23016

@nyromaniac
Copy link

I've used that method before as well. I don't have any issues creating a local mirror (actually using dtmrepo) but I'd like the get the errata too.

@ahmedsajid
Copy link

I'm able to get Erratas using the above method. Reposync gets the updateinfo file which has all the Erratas.
You will need to patch the file because of a bug. https://bugzilla.redhat.com/show_bug.cgi?id=1354496

@jjperry69
Copy link

jjperry69 commented Nov 29, 2016 via email

@nyromaniac
Copy link

Thanks @jjperry69. Tweaked this for my own configuration and is working.

@jjperry69
Copy link

jjperry69 commented Nov 30, 2016 via email

@SallyJohnson
Copy link

SallyJohnson commented Jan 3, 2017

+jjperry69
What a refreshing change to read a thread about spacewalk rhel7 errata that is based on someone using it on rhel7 and getting it to work.
However now is where I demonstrate my ignorance by asking stupid questions. (I guess the questions are related)

  1. Your script has "for each in $repo_path" what is $repo_path, it does not appear to be defined in the script.
  2. You refer to BASE="/iso_in". Perhaps the "iso" bit is what is confusing me, but what exactly is "iso_in"

I have used "reposync --gpgcheck -l --repoid=channel-id --download-metadata --downloadcomps " of channels and sub channels to generate several rpm repositories. Channel-id are in the format "rhel-7-server-rpms" "rhel-7-server-optional-rpms" etc. It creates separate folder repositories for each channel. Each folder contains
A directory called "Packages" containing just RPMS (which I can "rhnpush" into spacewalk" *1)
A "comps.xml" file
A "productid" file
A "XXXXX-updateinfo.xml.gz" file. where XXXXX is a 64(?) hexadecimal number. I have not read anything online about this file.

*1(rhnpush -v --channel=my-custom-channel --server=http://localhost/APP --dir=dir_of_packages)
Thank you again for posting your script.

@liedekef
Copy link
Owner

liedekef commented Jan 3, 2017

Hi all, sorry my script is doing it not ok for EL7, but redhat doesn't make life easier.
If using dtmrepo one could also get the updateinfo.xml.gz, I could adapt the script for this (it supports updateinfo.xml.gz parsing already).

@ahmedsajid
Copy link

I have written script which syncs CentOS7, RHEL6 & RHEL7 including erratas.

https://github.com/ahmedsajid/spacewalk/blob/master/nightly_sync.sh

@SallyJohnson
Copy link

SallyJohnson commented Jan 3, 2017

Actually I have something working (based on jjperry69 script). Just need to thoroughly test it.
thanks for the replies.
(liedekef, please don't apologize ...we are all in this together, and are helping each other out)

@jjperry69
Copy link

jjperry69 commented Jan 3, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants