Bug 297422

Summary: repositories created with yast2-add-on can not be used
Product: [openSUSE] openSUSE 10.3 Reporter: Olaf Hering <ohering>
Component: YaST2Assignee: Ladislav Slezák <lslezak>
Status: RESOLVED DUPLICATE QA Contact: Jiri Srain <jsrain>
Severity: Normal    
Priority: P5 - None CC: jsuchome, lslezak, nospamm
Version: Alpha 7   
Target Milestone: ---   
Hardware: PowerPC   
OS: Linux   
Whiteboard:
Found By: Development Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: bug297422.tar.bz2

Description Olaf Hering 2007-08-03 20:50:13 UTC
10.3a7

I tried to create an repository with yast2-add-on.
but it can not be used in the software management window. There is a popup:

   Warning:
  There was an error in repository initialization.
Comment 1 Olaf Hering 2007-08-03 20:52:37 UTC
Created attachment 155556 [details]
bug297422.tar.bz2
Comment 2 Katarina Machalkova 2007-08-06 08:20:00 UTC
Well, yast2-add-on is not meant to be used for creating repositories, but for installing add-on product. 
Olaf, didn't you actually mean yast2-add-on-creator?
Comment 3 Olaf Hering 2007-08-06 08:46:29 UTC
well, whatever it is called.
Its all in the logs, I hope.
Comment 4 Katarina Machalkova 2007-08-06 09:16:31 UTC
I'll read y2logs before requesting info :-)
It is yast2-add-on that is called -> Lukas, CCing also Lada, as it might be pkg-bindings related
Comment 5 Lukas Ocilka 2007-08-06 11:03:16 UTC
I can only see dir:///home/olaf/machbunt/10.3/
Which might be wrong.

YaST2 Add-On is a module that adds new URL into ZYPP and calls either installation.xml or sw_single. The warning "There was an error in repository initialization." comes from sw_single.

There are three possibilities:
  * Pkg-bindings do something wrong when adding new source
    (but I doubt it does)
  * Zypp can't handle dir:// well
    (possible)
  * The source is wrong
    (...)

Reassigning to lslezak.
Comment 6 Ladislav Slezák 2007-08-06 17:12:12 UTC
It seems that the created product is broken, during metadata download it tries to download an x86_64 pattern on PPC:

File ./suse/setup/descr/32bit-10.3-84.x86_64.pat not found on media: dir:///home/olaf/machbunt/10.3/

Jiri, it seems that the content file refers to missing file. (Caused probably by the original content file?)
Comment 7 Jiří Suchomel 2007-08-06 18:24:53 UTC
Olaf, could you please give me the access (both) to 

a) the repository you've created

b) the original files you've used as a source to create the add-on, so I can follow your steps, reproduce and debug.


Thanks.
Comment 8 Olaf Hering 2007-08-07 16:39:59 UTC
I have copied ~olaf/machbunt to ~olh/bugs/297422
Comment 9 Jiří Suchomel 2007-08-08 07:33:15 UTC
There's nothing strange with the add-on, content file mentions just one pattern, but I have this line in log:

2007-08-08 09:24:50 <5> gorgon(24525) [zypp] Exception.cc(log):119 RepoManager.cc(refreshMetadata):453 CAUGHT:   Fetcher.cc(start):176: Can't provide ./suse/setup/descr/EXTRA_PROV : Media Exception


Add-on doesn't have any EXTRA_PROV (and if the original example was done with the same addon, it also doesn't have any  32bit-10.3-84.x86_64.pat pattern - neither defined in DESCRDIR, nor mentioned in content file).

Jano, any idea?
Comment 10 Jan Kupec 2007-08-08 08:45:42 UTC
Yes, got it. Both the missing .pat file and the ghost EXTRA_PROV is due to a bug with using raw metadata cache - it simply took the content file from another repo.

*** This bug has been marked as a duplicate of bug 297611 ***