Modify

Ticket #834 (closed defect: fixed)

Opened 12 years ago

Last modified 11 years ago

bcfg2 yum support under SLES10SP2

Reported by: https://www.google.com/accounts/o8/id?id=AItOawntJ05hIp41Y-72vdUTMMBOIn4BrYWCDOE Owned by: desai
Priority: major Milestone: Bcfg2 1.1.0 Release
Component: bcfg2-client Version: 1.0
Keywords: Cc:

Description

I'm currently trying to get yum to work under SLES10SP2 with the Packages plugin. On the client side, I've configured yum and I'm able to install rpms using the yum command manually.

I had to update the following line in Packages.py in order to get yum to even execute from inside the bcfg2 client: (added the suse group below)

basegroups = ['redhat', 'centos', 'suse']

Here's a test for installing the "mc" package, running bcfg2 -qvd. I omitted the large RPM listing that gets generated during the beginning of the client run:

installOnlyPackages = ['kernel', 'kernel-bigmem', 'kernel-enterprise', 'kernel-smp', 'kernel-modules', 'kernel-debug', 'kernel-unsuppo rted', 'kernel-source', 'kernel-devel', 'kernel-default', 'kernel-largesmp-devel', 'kernel-largesmp', 'kernel-xen', 'gpg-pubkey'] erase_flags = allmatches? pkg_checks = true pkg_verify = true installed_action = install version_fail_action = upgrade verify_fail_action = none version_fail_action = upgrade Reading Local RPMDB Baseurl(s) for repo: http://instsrc-00.i/SLE10-SDK-SP2-Updates/sles-10-x86_64? Baseurl(s) for repo: http://instsrc-00.i/SLE10-SDK-SP2-Pool/sles-10-x86_64? Baseurl(s) for repo: http://instsrc-00.i/SLES10-SP2-Updates/sles-10-x86_64? Baseurl(s) for repo: http://instsrc-00.i/SLES10-SP2-Pool/sles-10-x86_64? Baseurl(s) for repo: http://software.opensuse.org/download/system:/management/SLE_10? Building updates object Setting up Package Sacks Excluding Incompatible Archs Finished More than one identical match in sack for libtiff-devel - 3.8.2-5.16.x86_64 More than one identical match in sack for qt-sql - 4.3.4-0.7.1.x86_64 More than one identical match in sack for mono-winforms - 1.2.2-12.27.x86_64 More than one identical match in sack for java-1_4_2-ibm - 1.4.2_sr13.2-0.4.1.x86_64 More than one identical match in sack for kernel-kdump - 2.6.16.60-0.42.7.x86_64 More than one identical match in sack for perl-Cyrus-IMAP - 2.2.12-27.13.4.x86_64 More than one identical match in sack for qt - 4.3.4-0.7.1.x86_64 More than one identical match in sack for qt-x11 - 4.3.4-0.7.1.x86_64 More than one identical match in sack for mysql-shared - 5.0.26-12.24.2.x86_64 More than one identical match in sack for dbus-1-qt - 4.3.4-0.7.1.x86_64 More than one identical match in sack for libapr-util1-devel - 1.2.2-13.10.1.x86_64 More than one identical match in sack for mono-data - 1.2.2-12.27.x86_64 More than one identical match in sack for mono-web - 1.2.2-12.27.x86_64 More than one identical match in sack for open-iscsi - 2.0.707-0.47.x86_64 More than one identical match in sack for java-1_4_2-ibm-devel - 1.4.2_sr13.2-0.4.1.x86_64 More than one identical match in sack for kdelibs3-devel - 3.5.1-49.52.2.x86_64 More than one identical match in sack for openslp-server - 1.2.0-22.26.1.x86_64 More than one identical match in sack for mono-core - 1.2.2-12.27.x86_64 More than one identical match in sack for mysql-client - 5.0.26-12.24.2.x86_64 More than one identical match in sack for qt-qt3support - 4.3.4-0.7.1.x86_64 More than one identical match in sack for libapr1-devel - 1.2.2-13.8.2.x86_64 More than one identical match in sack for mono-core-32bit - 1.2.2-12.27.x86_64 More than one identical match in sack for yast2-instserver - 2.13.19-0.3.noarch More than one identical match in sack for perl-Cyrus-SIEVE-managesieve - 2.2.12-27.13.4.x86_64 More than one identical match in sack for evms - 2.5.5-24.67.2.x86_64 More than one identical match in sack for mysql-devel - 5.0.26-12.24.2.x86_64 More than one identical match in sack for kexec-tools - 1.101-32.54.2.x86_64 Loaded tool drivers:

Action Chkconfig POSIX YUMng

The following packages are specified in bcfg2:

mc

The following packages are prereqs added by Packages:

/sbin/chkconfig --list autofs

< autofs 0:off 1:off 2:off 3:on 4:off 5:on 6:off

/sbin/chkconfig --list ntp

< ntp 0:off 1:off 2:on 3:on 4:off 5:on 6:off

/sbin/chkconfig --list|grep :on

< acpid 0:off 1:off 2:on 3:on 4:off 5:on 6:off < autofs 0:off 1:off 2:off 3:on 4:off 5:on 6:off < cron 0:off 1:off 2:on 3:on 4:off 5:on 6:off < dbus 0:off 1:off 2:off 3:on 4:off 5:on 6:off < earlygdm 0:off 1:off 2:off 3:off 4:off 5:on 6:off < earlykbd 0:off 1:off 2:off 3:off 4:off 5:on 6:off < earlysyslog 0:off 1:off 2:off 3:off 4:off 5:on 6:off < eventmonitor 0:off 1:off 2:on 3:on 4:on 5:on 6:off < fbset 0:off 1:on 2:on 3:on 4:off 5:on 6:off < gmond 0:off 1:off 2:off 3:on 4:off 5:on 6:off < haldaemon 0:off 1:off 2:off 3:on 4:off 5:on 6:off < idmapd 0:off 1:off 2:off 3:on 4:off 5:on 6:off < irq_balancer 0:off 1:on 2:on 3:on 4:off 5:on 6:off < job 0:off 1:off 2:on 3:on 4:on 5:on 6:off < kbd 0:off 1:on 2:on 3:on 4:off 5:on 6:off S:on < lk 0:off 1:off 2:on 3:on 4:off 5:on 6:off B:on < lustrefs 0:off 1:off 2:off 3:on 4:off 5:on 6:off < microcode 0:off 1:on 2:on 3:on 4:off 5:on 6:off S:on < network 0:off 1:off 2:on 3:on 4:off 5:on 6:off < nfs 0:off 1:off 2:off 3:on 4:off 5:on 6:off < nfsboot 0:off 1:off 2:off 3:on 4:off 5:on 6:off < nscd 0:off 1:off 2:off 3:on 4:off 5:on 6:off < ntp 0:off 1:off 2:on 3:on 4:off 5:on 6:off < openibd 0:off 1:off 2:on 3:on 4:off 5:on 6:off < pbs_mom 0:off 1:off 2:on 3:on 4:off 5:on 6:off < pmclusterd 0:off 1:off 2:on 3:on 4:off 5:on 6:off < portmap 0:off 1:off 2:off 3:on 4:off 5:on 6:off < postfix 0:off 1:off 2:off 3:on 4:off 5:on 6:off < random 0:off 1:off 2:on 3:on 4:off 5:on 6:off < resmgr 0:off 1:off 2:on 3:on 4:off 5:on 6:off < slpd 0:off 1:off 2:off 3:on 4:off 5:on 6:off < sshd 0:off 1:off 2:off 3:on 4:off 5:on 6:off < syslog 0:off 1:off 2:on 3:on 4:off 5:on 6:off < sysstat 0:off 1:off 2:off 3:off 4:off 5:off 6:off B:on Found active services:

acpid earlygdm fbset irq_balancer lustrefs nfsboot pbs_mom random syslog autofs earlykbd gmond job microcode nscd pmclusterd resmgr sysstat cron earlysyslog haldaemon kbd network ntp portmap slpd dbus eventmonitor idmapd lk nfs openibd postfix sshd

Verifying package instances for mc Package mc has no instances installed ConfigFile? /etc/ssh/shosts.equiv permissions are 0755 should be 0644 ConfigFile? /etc/ssh/ssh_known_hosts2 permissions are 0755 should be 0644 ConfigFile? /etc/ssh/sshd_config permissions are 0640 should be 0644 ConfigFile? /root/.shosts permissions are 0755 should be 0644 ConfigFile? /root/.rhosts permissions are 0755 should be 0644 Symlink /opt/totalview points to /opt/hpc/toolworks/totalview.8.0.2-0, should be /opt/hpc/toolworks/totalview.8.7.0-0 ConfigFile? /etc/ntp.conf group wrong ConfigFile? /etc/ntp.conf permissions are 0640 should be 0644

Phase: initial Correct entries: 27 Incorrect entries: 11 Total managed entries: 38 Unmanaged entries: 1132

Running YUMng.Install() Attempting to install packages

/usr/bin/yum -d0 -y install mc

< Starting SuSEconfig, the SuSE Configuration Tool... < Running module permissions only < Reading /etc/sysconfig and updating the system... < Executing /sbin/conf.d/SuSEconfig.permissions... < Finished. < warning: waiting to reestablish exclusive database lock

What's interesting is that it just sits there on the last warning line. Yum is still running in the background, but the "mc" rpm actually is installed. It just looks like the client is getting hung up for some reason.

Relevant Configs:

Packages/config.xml <Sources>

<YUMSource>

<RawURL>url removed due to trac identifying this message as spam</RawURL> <Version>10</Version> <Component>other</Component> <Component>filelists</Component> <Component>primary</Component> <Arch>x86_64</Arch>

</YUMSource>

</Sources>

bcfg2-00:/var/lib/bcfg2/Bundler # more pkg-test.xml <Bundle name='pkg-test'>

<Package name='mc'/>

</Bundle>

And the bundle is associated with the group the client is in.

Thanks for your help, Ed

Attachments

Change History

comment:1 Changed 11 years ago by desai

  • Status changed from new to closed
  • Resolution set to fixed

This should be working properly in 1.1.0rc5. (We have other reports of success using yum/sles10 with Packages and YUMng)

WARNING! You need to establish a session before you can create or edit tickets. Otherwise the ticket will get treated as spam.

View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.