Bug 185688

Summary: SLES10 RC2-5, rug register service YUM does not work, YaST register YUM works but shows ZYPP in rug
Product: [openSUSE] SUSE Linux 10.1 Reporter: Forgotten User zGPzpL5ttp <forgotten_zGPzpL5ttp>
Component: ZenworksAssignee: Stanislav Visnovsky <visnov>
Status: RESOLVED WONTFIX QA Contact: Geronimo Orozco <gorozco>
Severity: Critical    
Priority: P5 - None CC: andreas.hanke, kkaempf
Version: Final   
Target Milestone: ---   
Hardware: x86   
OS: SLES 10   
Whiteboard:
Found By: Customer Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: All Logfiles /var/log

Description Forgotten User zGPzpL5ttp 2006-06-16 13:19:22 UTC
Hi
I am Testing SLES10 RC2-5 on i386.

PROBLEM:
When adding a YUM service with rug and the displaying the current patch status, there is not the same output displayed like YaST diskplays with the same registered YUM service:

I registered the YUM Service as follows:
/usr/bin/rug sa --type=YUM http://138.191.39.97/suse/i386/update/10.1/ POST_Youpatch

h025z3:~ # rug patches

Catalog | Name                 | Version | Category    | Status
--------+----------------------+---------+-------------+------------
        | aaa_skel             | 1444-0  | recommended | Uninstalled
        | avahi                | 1399-0  | security    | Uninstalled
        | bash                 | 1456-0  | recommended | Uninstalled
        | cdparanoia           | 1437-0  | recommended | Uninstalled
        | cron                 | 1440-0  | security    | Uninstalled
        | cyrus-sasl-saslauthd | 1457-0  | recommended | Uninstalled
        | dhcdbd               | 1315-0  | recommended | Uninstalled
        | dhcdbd               | 1579-0  | recommended | Uninstalled
        | dhcp                 | 1424-0  | recommended | Uninstalled
        | dhcp                 | 1316-0  | recommended | Uninstalled
        | dia                  | 1435-0  | security    | Uninstalled
        | dia                  | 1421-0  | security    | Uninstalled
        | dovecot              | 1398-0  | security    | Uninstalled
        | file                 | 1587-0  | optional    | Uninstalled
        | fontconfig           | 1586-0  | recommended | Uninstalled
        | foomatic-filters     | 1436-0  | security    | Uninstalled
        | gdm                  | 1582-0  | security    | Uninstalled
        | gnome2-SuSE          | 1428-0  | recommended | Uninstalled
        | gtk-qt-engine        | 1583-0  | recommended | Uninstalled
        | gtk-sharp2           | 1427-0  | recommended | Uninstalled
        | ifolder3             | 1535-0  | recommended | Uninstalled
        | ifolder3             | 1584-0  | recommended | Uninstalled
        | ivman                | 1423-0  | recommended | Uninstalled
        | java-1_5_0-sun       | 1438-0  | security    | Uninstalled
        | john                 | 1592-0  | optional    | Uninstalled
        | kdeadmin3            | 1439-0  | recommended | Uninstalled
        | kdebase3             | 1449-0  | recommended | Uninstalled
        | ksh                  | 1452-0  | recommended | Uninstalled
        | libextractor         | 1426-0  | security    | Uninstalled
        | libzypp              | 1533-0  | recommended | Uninstalled
        | MozillaFirefox       | 1585-0  | security    | Uninstalled
        | mysql                | 1593-0  | security    | Uninstalled
        | mysql                | 1312-0  | security    | Uninstalled
        | mysql-administrator  | 1445-0  | recommended | Uninstalled
        | mysql-administrator  | 1589-0  | recommended | Uninstalled
        | nagios-www           | 1311-0  | security    | Uninstalled
        | netbeans             | 1451-0  | optional    | Uninstalled
        | NetworkManager       | 1434-0  | security    | Uninstalled
        | openldap2            | 1323-0  | recommended | Uninstalled
        | opera                | 1313-0  | security    | Uninstalled
        | pam                  | 1458-0  | recommended | Uninstalled
        | pdns                 | 1314-0  | security    | Uninstalled
        | pgcalc               | 1588-0  | recommended | Uninstalled
        | php5                 | 1590-0  | security    | Uninstalled
        | phpMyAdmin           | 1581-0  | security    | Uninstalled
        | postgresql           | 1443-0  | security    | Uninstalled
        | postgresql-server    | 1442-0  | security    | Uninstalled
        | powersave            | 1430-0  | recommended | Uninstalled
        | qt3                  | 1441-0  | recommended | Uninstalled
        | rekall               | 1432-0  | recommended | Uninstalled
        | susehelp             | 1431-0  | recommended | Uninstalled
        | sysconfig            | 1580-0  | recommended | Uninstalled
        | syslog-ng            | 1446-0  | recommended | Uninstalled
        | util-linux-crypto    | 1425-0  | recommended | Uninstalled
        | xv                   | 1448-0  | recommended | Uninstalled
        | yast2-storage        | 1591-0  | recommended | Uninstalled

h025z3:~ #

Now all the patches show the status "uninstalled"

Now I register YUM Service with YaST using the menu Software => Installation Source:
 YaST @ h025z3                                                Press F1 for Help

 ┌────────────────────┐ Media Containing the Software Catalog
 │   Software packages┬ ┌──────────────────────────────────────────────────┐
 │can be installed    │ │Status│Refresh│Name                           │URL│
 │from the CD, over a │ │On    │Off    │SUSE Linux Enterprise Server 10│htt│
 │network, or from the│ │On    │On     │YUM                            │htt│
 │hard disk.          │ │                                                  │
 │   To install       │ │                                                  │
 │packages from CD,   ┴ │                                                  │
 │have the            │ │                                                  │
 │SUSE Linux Enterpris│ │                                                  │
 │e Server CD set or  │ │                                                  │
 │the DVD available.  │ │                                                  │
 │   The              │ │                                                  │
 │SUSE Linux Enterpris│ │                                                  │
 │e Server CDs can be │ │                                                  │
 │copied to the hard  │ │                                                  │
 │disk. Then use that │ └├───────────────────────────┤─────────────────────┘
 │as the installation │ [       Add        v]          [   Up   ][  Down  ]
 │source. Insert the  │ [       Edit       v]          [ Enable or Disable ]
 │path name where the │ [      Delete       ]          [ Refresh On or Off ]
 └────────────────────┘                        [Abort]               [Finish]


In YaST Online Update works, and I can see the necessary Patches:
 YaST @ h025z3                                                Press F1 for Help

 [Filterv]           [Actionsv]           [Informationv]
 ┌────────────────────────────────────────────────────────────────────────────┐
 │     │Name                │Kind       │Summary                              │
 │     │dia                 │security   │dia security update                  │
 │     │dovecot             │security   │dovecot security update              ─
 │     │file                │optional   │The file utility does not display the│
 │ a+  │fontconfig          │recommended│fontconfig breaks font handling in wi│
 │     │foomatic-filters    │security   │Command injection into foomatic-filte│
 │     │gdm                 │security   │GMD login configuration can be access│
 │     │gnome2-SuSE         │recommended│Addition of pam-message to GDM theme │
 └├───────────────────────────────────────────────┤───────────────────────────┘
 Filter: Online Update Patches          Total Download Size: 0 B
 ┌────────────────────────────────────────────────────────────────────────────┐
 │Patch: fontconfig Size:  0 B                                                │
 │All system fonts accessed via fontconfig ceased to work recently in wine and│
 │crossover office. This was due to a change in the API of fontconfig. But    │
 │this change was not done on purpose and the problem has been fixed again in │
 │the latest upstream version of fontconfig. This patch is a backport of the  │
 │upstream fix to the fontconfig version used in SUSE Linux 10.1.             │
 └────────────────────────────────────────────────────────────────────────────┘
 [Help]                                         [Cancel]                  [OK]


Now with rug I can see my registered service under YIPP "datestring-time" and also the patches, wich show now a different status: WHY?
h025z3:~ # rug ca

Sub'd? | Name                                                   | Service                           
-------+--------------------------------------------------------+-------------------------------------------------------
Yes    | SUSE-Linux-Enterprise-Server-i386-10-0-20060616-133912 | SUSE-Linux-Enterprise-Server-i386-10-0-20060616-133912
Yes    | 20060616-145348                                        | 20060616-145348                   

h025z3:~ # rug sl

# | Status | Type | Name                                                   | URI                    
--+--------+------+--------------------------------------------------------+---------------------------------------------------------------------------------------------
1 | Active | ZYPP | SUSE-Linux-Enterprise-Server-i386-10-0-20060616-133912 | http://138.191.39.97/sles10/CD1?alias=SUSE-Linux-Enterprise-Server-i386-10-0-20060616-133912
2 | Active | ZYPP | 20060616-145348                                        | http://hcwe60/suse/i386/update/10.1/

h025z3:~ # rug patches

Catalog         | Name                 | Version | Category    | Status
----------------+----------------------+---------+-------------+---------------
20060616-145348 | aaa_skel             | 1444-0  | recommended | Not needed
20060616-145348 | avahi                | 1399-0  | security    | Not Applicable
20060616-145348 | bash                 | 1456-0  | recommended | Not needed
20060616-145348 | cdparanoia           | 1437-0  | recommended | Not Applicable
20060616-145348 | cron                 | 1440-0  | security    | Not needed
20060616-145348 | cyrus-sasl-saslauthd | 1457-0  | recommended | Not needed
20060616-145348 | dhcdbd               | 1315-0  | recommended | Not Applicable
20060616-145348 | dhcdbd               | 1579-0  | recommended | Not Applicable
20060616-145348 | dhcp                 | 1424-0  | recommended | Not Applicable
20060616-145348 | dhcp                 | 1316-0  | recommended | Not Applicable
20060616-145348 | dia                  | 1435-0  | security    | Not Applicable
20060616-145348 | dia                  | 1421-0  | security    | Not Applicable
20060616-145348 | dovecot              | 1398-0  | security    | Not Applicable
20060616-145348 | file                 | 1587-0  | optional    | Needed
20060616-145348 | fontconfig           | 1586-0  | recommended | Needed
20060616-145348 | foomatic-filters     | 1436-0  | security    | Not Applicable
20060616-145348 | gdm                  | 1582-0  | security    | Not Applicable
20060616-145348 | gnome2-SuSE          | 1428-0  | recommended | Not Applicable
20060616-145348 | gtk-qt-engine        | 1583-0  | recommended | Not Applicable
20060616-145348 | gtk-sharp2           | 1427-0  | recommended | Not Applicable
20060616-145348 | ifolder3             | 1535-0  | recommended | Not Applicable
20060616-145348 | ifolder3             | 1584-0  | recommended | Not Applicable
20060616-145348 | ivman                | 1423-0  | recommended | Not needed
20060616-145348 | java-1_5_0-sun       | 1438-0  | security    | Not Applicable
20060616-145348 | john                 | 1592-0  | optional    | Not Applicable
20060616-145348 | kdeadmin3            | 1439-0  | recommended | Not Applicable
20060616-145348 | kdebase3             | 1449-0  | recommended | Not Applicable
20060616-145348 | ksh                  | 1452-0  | recommended | Not needed
20060616-145348 | libextractor         | 1426-0  | security    | Not Applicable
20060616-145348 | libzypp              | 1533-0  | recommended | Not needed
20060616-145348 | MozillaFirefox       | 1585-0  | security    | Not Applicable
20060616-145348 | mysql                | 1593-0  | security    | Not Applicable
20060616-145348 | mysql                | 1312-0  | security    | Not Applicable
20060616-145348 | mysql-administrator  | 1445-0  | recommended | Not Applicable
20060616-145348 | mysql-administrator  | 1589-0  | recommended | Not Applicable
20060616-145348 | nagios-www           | 1311-0  | security    | Not Applicable
20060616-145348 | netbeans             | 1451-0  | optional    | Not Applicable
20060616-145348 | NetworkManager       | 1434-0  | security    | Not Applicable
20060616-145348 | openldap2            | 1323-0  | recommended | Not Applicable
20060616-145348 | opera                | 1313-0  | security    | Not Applicable
20060616-145348 | pam                  | 1458-0  | recommended | Not needed
20060616-145348 | pdns                 | 1314-0  | security    | Not Applicable
20060616-145348 | pgcalc               | 1588-0  | recommended | Not Applicable
20060616-145348 | php5                 | 1590-0  | security    | Not Applicable
20060616-145348 | phpMyAdmin           | 1581-0  | security    | Not Applicable
20060616-145348 | postgresql           | 1443-0  | security    | Not Applicable
20060616-145348 | postgresql-server    | 1442-0  | security    | Not Applicable
20060616-145348 | powersave            | 1430-0  | recommended | Not needed
20060616-145348 | qt3                  | 1441-0  | recommended | Not Applicable
20060616-145348 | rekall               | 1432-0  | recommended | Not Applicable
20060616-145348 | susehelp             | 1431-0  | recommended | Not Applicable
20060616-145348 | sysconfig            | 1580-0  | recommended | Not needed
20060616-145348 | syslog-ng            | 1446-0  | recommended | Not needed
20060616-145348 | util-linux-crypto    | 1425-0  | recommended | Not Applicable
20060616-145348 | xv                   | 1448-0  | recommended | Not Applicable
20060616-145348 | yast2-storage        | 1591-0  | recommended | Needed

h025z3:~ #

Why seems a registered YUM service with rug not be working, but when registering interactively with YaST the I can see the patches and the YUM service. 
But afterwards when invorking rug, the registered YUM service, registered in YaST is displayed as YIPP not as YUM.

So the YUM Service registration is inconsistent between YaST and rug.
There should be a way to register a YUM service either in YaST interactively or on the command-line in rug and the the service should be displayed with the same attributes in YaST and with rug.

best regards
Comment 1 Forgotten User zGPzpL5ttp 2006-06-16 13:25:01 UTC
Created attachment 89781 [details]
All Logfiles /var/log

in this tar.gz archive you get all the lofiles from /var/log and subdirectories and also the logfiles from /var/adm/autoinstall/log and /var/log/autoinstall/cache/installaedSystem.xml the install profile.
Comment 2 Forgotten User zGPzpL5ttp 2006-06-16 13:35:25 UTC
Hi

The issue is:
When registering a servcie type YUM with rug, YaST does not see it.
But when registering a service type ZYPP then YaST recognises it as YUM under Software -> Installation Source! 
This confuses and for me does not make sense.

h025z3:/home/freyu # /usr/bin/rug sa --type=ZYPP http://138.191.39.97/suse/i386/update/10.1/ POST_Youpatch

Adding zypp service...
                                                                                                                                           100%

Successfully added service 'http://138.191.39.97/suse/i386/update/10.1/'
h025z3:/home/freyu #

h025z3:/home/freyu # rug sl

# | Status | Type | Name                                                   | URI                                                                
--+--------+------+--------------------------------------------------------+---------------------------------------------------------------------------------------------
1 | Active | ZYPP | SUSE-Linux-Enterprise-Server-i386-10-0-20060616-133912 | http://138.191.39.97/sles10/CD1?alias=SUSE-Linux-Enterprise-Server-i386-10-0-20060616-133912
2 | Active | ZYPP | 20060616-145348                                        | http://hcwe60/suse/i386/update/10.1/                               
3 | Active | ZYPP | POST_Youpatch                                          | http://138.191.39.97/suse/i386/update/10.1/                        

h025z3:/home/freyu #

 YaST @ h025z3                                                                                     Press F1 for Help

 ┌───────────────────────────────┐ Media Containing the Software Catalog
 │   Software packages can be    ┬ ┌────────────────────────────────────────────────────────────────────────────┐
 │installed from the CD, over a  │ │Status│Refresh│Name                           │URL                          │
 │network, or from the hard disk.│ │On    │On     │YUM                            │http://138.191.39.97/suse/i38│
 │   To install packages from CD,│ │On    │Off    │SUSE Linux Enterprise Server 10│http://138.191.39.97/sles10/C│
 │have the                       │ │On    │On     │YUM                            │http://hcwe60/suse/i386/updat│
 │SUSE Linux Enterprise Server CD│ │                                                                            │
 │set or the DVD available.      │ │                                                                            │
 │   The                         │ │                                                                            │
 │SUSE Linux Enterprise Server   │ │                                                                            │
 │CDs can be copied to the hard  │ │                                                                            │
 │disk. Then use that as the     ┴ │                                                                            │
 │installation source. Insert the│ │                                                                            │
 │path name where the first CD is│ │                                                                            │
 │located, for example, /data1/  │ │                                                                            │
 │CD1. Only the base path is     │ │                                                                            │
 │required if all CDs are copied │ └├─────────────────────────────────────────────────────────────┤─────────────┘
 │into one directory.            │ [              Add              v]          [      Up       ][     Down      ]
 │   Network installation        │ [             Edit              v]          [       Enable or Disable        ]
 │requires a working network     │ [             Delete             ]          [       Refresh On or Off        ]
 └───────────────────────────────┘                                     [Abort]                            [Finish]


Summary:
rug sa => ZYPP ----> YaST Software, Installation Source => YUM visible
rug sa => YUM  ----> YAST Software, Installation Source => Not visible
YaST Software, Installation Source, add YUM ------> rug sl ==> ZYPP

best regards
Comment 3 Chris Rivera 2006-06-16 15:51:59 UTC
From everything I see zmd is behaving correctly.  Klaus, do the YaST guys need to take a look at this?  There seems to be some confusion as to why YaST adds everything as a ZYPP service.
Comment 4 Klaus Kämpf 2006-06-16 16:06:24 UTC
This is a long and, due to the pasted 'screenshots', hardly readable bug.

So I restrict my answer to the "summary" from comment #3:

This is indeed the designed behaviour. (To be improved, I have to admit).

The naming of sources is a bit unfortunate.
YaST does auto-detect the type of source and syncs it to rug. Such sources show up as 'zypp' regardless of their actual type.
When rug adds a source, it keeps 'yum' for itself (not synced to YaST) and only passes type 'zypp' to YaST.

Anything added via YaST is passed as type 'zypp' to rug.

I set this bug to 'later' for now.
Comment 5 Klaus Kämpf 2006-07-21 13:45:47 UTC
Reponened for cleanup after Code10 release.
Comment 8 Klaus Kämpf 2006-08-18 12:44:59 UTC
-> prjmgr for scheduling
Comment 9 Klaus Kämpf 2006-08-18 12:45:38 UTC
to be fixed later.
Comment 10 Federico Lucifredi 2006-10-11 22:14:16 UTC
this is not scheduled for 10.2.
Comment 11 Stanislav Visnovsky 2007-07-30 18:56:42 UTC
We are not going to fix this in SLE10 codebase.