https://qa.mandrakesoft.com/show_bug.cgi?id=1958

           Product: urpmi-parallel-ssh
         Component: urpmi-parallel-ssh
           Summary: urpmi --parallel incorrectly classes previous
                    installtion as error
           Version: 4.2-19mdk
          Platform: PC
        OS/Version: All
            Status: UNCONFIRMED
          Severity: major
          Priority: P2
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


When a parallel installation is attempted across a number of workstations the
prior installation of all of the packages onto any one of the targets causes the
entire installation to fail after the download of all packages is complete.

This appears to be due to urpmi picking up that 'Everything already installed' 
and classifying this as an error rather than just bypassing the installation of
that package(s).

Please find an example below which attempts to install findutils onto two nodes
(opcpc01 and robpc01) where findutils has previously been installed onto opcpc01
therefore generating the scenario in question.

[root@opcpc01 urpmi]# urpmi -v --parallel opcpc01robpc01 findutils
examining parallel handler in file
[/usr/lib/perl5/vendor_perl/5.8.0/urpm/parallel_ssh.pm]
found parallel handler for nodes: robpc01, opcpc01
examining synthesis file [/var/lib/urpmi/synthesis.hdlist.uninett.cz]
examining synthesis file [/var/lib/urpmi/synthesis.hdlist.uninett contribs.cz]
parallel_ssh: scp -q '/var/cache/urpmi/partial/parallel.cz'
'robpc01:/var/cache/urpmi/partial/parallel.cz'
parallel_ssh: scp -q '/var/cache/urpmi/partial/parallel.cz'
'opcpc01:/var/cache/urpmi/partial/parallel.cz'
parallel_ssh: ssh robpc01 urpmq --synthesis /var/cache/urpmi/partial/parallel.cz
-fduc  findutils-4.1.7-5mdk.i586
parallel_ssh: ssh opcpc01 urpmq --synthesis /var/cache/urpmi/partial/parallel.cz
-fduc  findutils-4.1.7-5mdk.i586
To satisfy dependencies, the following packages are going to be installed (0 MB):
findutils-4.1.7-5mdk.i586
Is this OK? (Y/n) y
retrieving rpm files from medium "uninett"...
   
ftp://ftp.uninett.no/pub/linux/Mandrake/Mandrake-devel/cooker/i586/Mandrake/RPMS/findutils-4.1.7-5mdk.i586.rpm
...retrieving done
distributing /var/cache/urpmi/rpms/findutils-4.1.7-5mdk.i586.rpm
 
starting distributed install
parallel_ssh: scp '/var/cache/urpmi/rpms/findutils-4.1.7-5mdk.i586.rpm'
robpc01:/var/cache/urpmi/rpms
parallel_ssh: scp '/var/cache/urpmi/rpms/findutils-4.1.7-5mdk.i586.rpm'
opcpc01:/var/cache/urpmi/rpms
parallel_ssh: ssh robpc01 urpmi --pre-clean --no-locales --test --no-verify-rpm
--auto --synthesis /var/cache/urpmi/partial/parallel.cz  findutils-4.1.7-5mdk.i586
parallel_ssh: ssh opcpc01 urpmi --pre-clean --no-locales --test --no-verify-rpm
--auto --synthesis /var/cache/urpmi/partial/parallel.cz  findutils-4.1.7-5mdk.i586
Installation failed on node opcpc01:
Everything already installed




The next example demonstrates the same situation occuring on the second node for
multiple packages.  First the packages in question are purposefully loaded onto
robpc01 to force the situation:

[root@opcpc01 urpmi]# urpmi --parallel robpc01 kdebase
To satisfy dependencies, the following packages are going to be installed (34 MB):
kdebase-3.1-42mdk.i586
kdebase-kdm-3.1-42mdk.i586
kdebase-nsplugins-3.1-42mdk.i586
Is this OK? (Y/n) y
   
ftp://ftp.uninett.no/pub/linux/Mandrake/Mandrake-devel/cooker/i586/Mandrake/RPMS/kdebase-3.1-42mdk.i586.rpm
   
ftp://ftp.uninett.no/pub/linux/Mandrake/Mandrake-devel/cooker/i586/Mandrake/RPMS/kdebase-nsplugins-3.1-42mdk.i586.rpm
   
ftp://ftp.uninett.no/pub/linux/Mandrake/Mandrake-devel/cooker/i586/Mandrake/RPMS/kdebase-kdm-3.1-42mdk.i586.rpm
distributing /var/cache/urpmi/rpms/kdebase-3.1-42mdk.i586.rpm
/var/cache/urpmi/rpms/kdebase-nsplugins-3.1-42mdk.i586.rpm
/var/cache/urpmi/rpms/kdebase-kdm-3.1-42mdk.i586.rpm
 
installing /var/cache/urpmi/rpms/kdebase-3.1-42mdk.i586.rpm
/var/cache/urpmi/rpms/kdebase-nsplugins-3.1-42mdk.i586.rpm
/var/cache/urpmi/rpms/kdebase-kdm-3.1-42mdk.i586.rpm
 
Preparing...                ##################################################
   1:kdebase                #####################################warning:
/usr/share/config/kdm/kdmrc created as /usr/share/config/kdm/kdmrc.rpmnew
#############
   2:kdebase-nsplugins      ##################################################
   3:kdebase-kdm            ##################################################




Now that the second system is loaded an installation is attempted to two nodes
of the same packages, which reslts in the following example:

[root@opcpc01 urpmi]# urpmi --parallel robpc01opcpc01 kdebase
unable to use parallel option "robpc01opcpc01"
[root@opcpc01 urpmi]# urpmi --parallel opcpc01robpc01 kdebase
To satisfy dependencies, the following packages are going to be installed (34 MB):
kdebase-3.1-42mdk.i586
kdebase-kdm-3.1-42mdk.i586
kdebase-nsplugins-3.1-42mdk.i586
Is this OK? (Y/n) y
distributing /var/cache/urpmi/rpms/kdebase-3.1-42mdk.i586.rpm
/var/cache/urpmi/rpms/kdebase-nsplugins-3.1-42mdk.i586.rpm
/var/cache/urpmi/rpms/kdebase-kdm-3.1-42mdk.i586.rpm
 
Installation failed on node robpc01:
Everything already installed




This is only the case if all of the packages are previously installed on one of
the nodes, if a partial selection of packages is installed then the whole
parallel installation proceeds as expected.  The following example demonstrates
this:

[root@opcpc01 urpmi]# urpmi --parallel opcpc01robpc01 kdebase kdebase-servicemenu
To satisfy dependencies, the following packages are going to be installed (34 MB):
kdebase-3.1-42mdk.i586
kdebase-kdm-3.1-42mdk.i586
kdebase-nsplugins-3.1-42mdk.i586
kdebase-servicemenu-1.0-5mdk.noarch
Is this OK? (Y/n) y
   
ftp://ftp.uninett.no/pub/linux/Mandrake/Mandrake-devel/cooker/i586/Mandrake/RPMS/kdebase-servicemenu-1.0-5mdk.noarch.rpm
distributing /var/cache/urpmi/rpms/kdebase-servicemenu-1.0-5mdk.noarch.rpm
/var/cache/urpmi/rpms/kdebase-3.1-42mdk.i586.rpm
/var/cache/urpmi/rpms/kdebase-nsplugins-3.1-42mdk.i586.rpm
/var/cache/urpmi/rpms/kdebase-kdm-3.1-42mdk.i586.rpm
 
installing /var/cache/urpmi/rpms/kdebase-servicemenu-1.0-5mdk.noarch.rpm
 
Preparing...                ##################################################
   1:kdebase-servicemenu    ##################################################
installing /var/cache/urpmi/rpms/kdebase-servicemenu-1.0-5mdk.noarch.rpm
/var/cache/urpmi/rpms/kdebase-3.1-42mdk.i586.rpm
/var/cache/urpmi/rpms/kdebase-nsplugins-3.1-42mdk.i586.rpm
/var/cache/urpmi/rpms/kdebase-kdm-3.1-42mdk.i586.rpm
 
Preparing...                ##################################################
   1:kdebase-servicemenu    ##################################################
   2:kdebase                #####################################warning:
/usr/share/config/kdm/kdmrc created as /usr/share/config/kdm/kdmrc.rpmnew
#############
   3:kdebase-nsplugins      ##################################################
   4:kdebase-kdm            ##################################################




Kind regards,

Robert Thorneycroft



------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.

Reply via email to