[RFC] Dell hardware-specific repositories -- testers and feedback needed

Berthold Cogel cogel at rrz.uni-koeln.de
Wed Apr 11 09:42:23 CDT 2007


Michael E Brown schrieb:
> On Wed, Apr 11, 2007 at 10:26:39AM +0200, Berthold Cogel wrote:
>> Michael E Brown schrieb:
>>> On Tue, Apr 10, 2007 at 05:39:33PM +0200, Berthold Cogel wrote:
>>>> Michael E Brown schrieb:
>>> The "dell-repository" rpm that is downloaded by the bootstrap script
>>> should have added lines like "yum dell-software ..." and "yum-mirror
>>> dell-software ..." to your sources file. Are those present?
>>>
>> I've removed the redirection to /dev/null in the repo rpm part of the
>> bootstrap script. What I get now is:
>>
>> [root at cipsrv root]# ./test
>> Downloading GPG key: http://linux.dell.com//repo/software/RPM-GPG-KEY-dell
>>     Importing key into RPM.
>> Downloading GPG key:
>> http://linux.dell.com//repo/software/RPM-GPG-KEY-libsmbios
>>     Importing key into RPM.
>> Failed to download RPM =pri location=:
>> http://linux.dell.com//repo/software/el3/dell-repository/18-0/noarch/dell-repository-18-0.el3.noarch.rpm
>> Failed to download RPM =alt location=:
>> http://linux.dell.com//repo/software/el3/i386/RPMS/dell-repository-18-0.el3.noarch.rpm
>>
>> So this is the point where it goes wrong.
> 
> Ok, can you wget the script again and try again? Version 18 is no longer
> the latest version, I've released -22 last night.
> 
> --
> Michael

With the latest versin of bootstrap.cgi I got:

[root at cipsrv etc]# wget -q -O -
http://linux.dell.com/repo/software/bootstrap.cgi | bash
Downloading GPG key: http://linux.dell.com//repo/software/RPM-GPG-KEY-dell
    Importing key into RPM.
Downloading GPG key:
http://linux.dell.com//repo/software/RPM-GPG-KEY-libsmbios
    Importing key into RPM.
Installing dell-repository-22-0.el3.noarch.rpm
rm: Entfernen von »/etc/dell-mirror.cfg« nicht möglich: Datei oder
Verzeichnis nicht gefunden
Done!


But still no changes. Saving and editing the script in line 140:

rpm -iv ${REPO_RPM} #> /dev/null 2>&1'


Now I get this:

[root at cipsrv root]# ./test Downloading GPG key:
http://linux.dell.com//repo/software/RPM-GPG-KEY-dell
    Importing key into RPM.
Downloading GPG key:
http://linux.dell.com//repo/software/RPM-GPG-KEY-libsmbios
    Importing key into RPM.
Installing dell-repository-22-0.el3.noarch.rpm
Preparing packages for installation...
        file /etc/yum.repos.d/dell.repo from install of
dell-repository-22-0.el3 conflicts with file from package
dell-repository-18-0.el3
rm: Aufruf von lstat für »/etc/dell-mirror.cfg« nicht möglich: Datei
oder Verzeichnis nicht gefunden
Done!


After removing dell-repository the script works:


[root at cipsrv root]# rpm -e dell-repository
[root at cipsrv root]# ./test
Downloading GPG key: http://linux.dell.com//repo/software/RPM-GPG-KEY-dell
    Importing key into RPM.
Downloading GPG key:
http://linux.dell.com//repo/software/RPM-GPG-KEY-libsmbios
    Importing key into RPM.
Installing dell-repository-22-0.el3.noarch.rpm
Preparing packages for installation...
dell-repository-22-0.el3
If you haven't already done so, you should import Dell's GPG keys
into RPM.  Do this by running:
    rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-dell
    rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-libsmbios
rm: Aufruf von lstat für »/etc/dell-mirror.cfg« nicht möglich: Datei
oder Verzeichnis nicht gefunden
Done!

[root at cipsrv root]# up2date -i dellhw-repository
http://linux.dell.com/repo/software/mirrors.pl?osname=el3
using mirror: http://linux.dell.com//repo/software/el3

Fetching Obsoletes list for channel: rhel-i386-as-3...

Fetching Obsoletes list for channel: dell-software...

Fetching obsoletes list for http://linux.dell.com//repo/software/el3...
#######################################
Fetching rpm headers...
########################################

Name                                    Version        Rel
----------------------------------------------------------
dellhw-repository                       2              1.el3
 noarch


Testing package set / solving RPM inter-dependencies...

Downloading headers to solve dependencies...
#######################################
Downloading headers to solve dependencies...
#######################################
Downloading headers to solve dependencies...
########################################
dellhw-repository-2-1.el3.n ########################## Done.
firmware-addon-dell-1.2.11- ########################## Done.
firmware-tools-1.2.5-1.el3. ########################## Done.
libsmbios-bin-0.13.5-1.el3. ########################## Done.
libsmbios-libs-0.13.5-1.el3 ########################## Done.
Preparing              ########################################### [100%]

Installing...
   1:libsmbios-libs         ###########################################
[100%]
   2:libsmbios-bin          ###########################################
[100%]
   3:firmware-tools         ###########################################
[100%]
   4:firmware-addon-dell    ###########################################
[100%]
   5:dellhw-repository      ###########################################
[100%]
The following packages were added to your selection to satisfy dependencies:

Name                                    Version        Release
--------------------------------------------------------------
firmware-addon-dell                     1.2.11         1.el3
firmware-tools                          1.2.5          1.el3
libsmbios-bin                           0.13.5         1.el3
libsmbios-libs                          0.13.5         1.el3


Perhaps the script should look at line 140 for an already installed
repository rpm. Then exit with a warning or try an update.


The next step for me was to look for available packages:

[root at cipsrv root]# up2date-nox --show-available --channel=dell-software
An error has occurred:
This system may not be updated until it is associated with a channel.
See /var/log/up2date for more information

/var/log/up2date:

[Wed Apr 11 15:18:28 2007] up2date Updating package profile
[Wed Apr 11 15:49:27 2007] up2date updating login info
[Wed Apr 11 15:49:27 2007] up2date logging into up2date server
[Wed Apr 11 15:49:28 2007] up2date successfully retrieved authentication
token from up2date server
[Wed Apr 11 15:49:28 2007] up2date This system may not be updated until
it is associated with a channel.
[Wed Apr 11 15:49:28 2007] up2date   File "/usr/sbin/up2date-nox", line
1288, in ?
    sys.exit(main() or 0)
   File "/usr/sbin/up2date-nox", line 601, in main
    rhnChannel.setChannels(tempchannels)
   File "/usr/share/rhn/up2date_client/rhnChannel.py", line 285, in
setChannels
    return getChannels(label_whitelist=whitelist)
   File "/usr/share/rhn/up2date_client/rhnChannel.py", line 183, in
getChannels
    raise up2dateErrors.NoChannelsError(_("This system may not be
updated until it is associated with a channel."))


What I can do is 'up2date -i metapackage'. OMSA 5.1 is up and running.


Regards,
Berthold



More information about the Linux-PowerEdge mailing list