On Donnerstag, 27. Mai 2010 23:29:55 Troy Telford wrote:
I already have openSUSE:11.2 in my local OBS installation, so I created a "new" project named "ISO_TEST", with the package _product.
I copied the files from _project (which I had checked out from build.opensuse.org's openSUSE:11.2). Next, I tried to commit them (to my local OBS).
I get an HTTP error 403: Forbidden error from osc when I try to check in
On Friday, May 28, 2010 02:16:45 am Adrian Schröter wrote: the files:
Do you try to edit the _product:* packages ?
No; I only copied in the _product package (with no :*)
if not please send the "osc -d ci" output.
~/src/obs/ISO_TEST/_product$ osc -d ci GET http://obsapi.americas.sgi.com/source/ISO_TEST GET http://obsapi.americas.sgi.com/source/ISO_TEST/_product/_meta Sending meta data... PUT http://obsapi.americas.sgi.com/source/ISO_TEST/_product/_meta Done. Sending _product GET http://obsapi.americas.sgi.com/source/ISO_TEST/_product?rev=latest Sending _product/DVD5-i586.group Sending _product/DVD5-lang.group Sending _product/DVD5-nonoss.group Sending _product/DVD5-promo-i386.group Sending _product/DVD5-promo-x86_64.group Sending _product/DVD5-x86_64.group Sending _product/FROZEN.group Sending _product/NON_FTP_PACKAGES.group Sending _product/archsets.inc Sending _product/conditionals.inc Sending _product/i686_list.group Sending _product/obsoletepackages.inc Sending _product/openSUSE-Addon-Lang.product Sending _product/openSUSE-Addon-NonOss.product Sending _product/openSUSE-LiveCD.product Sending _product/openSUSE-Promo.product Sending _product/openSUSE-release.spec Sending _product/openSUSE.product Sending _product/update-drops Transmitting file data .PUT http://obsapi.americas.sgi.com/source/ISO_TEST/_product/DVD5- i586.group?rev=upload .PUT http://obsapi.americas.sgi.com/source/ISO_TEST/_product/DVD5- lang.group?rev=upload .PUT http://obsapi.americas.sgi.com/source/ISO_TEST/_product/DVD5- nonoss.group?rev=upload .PUT http://obsapi.americas.sgi.com/source/ISO_TEST/_product/DVD5-promo- i386.group?rev=upload .PUT http://obsapi.americas.sgi.com/source/ISO_TEST/_product/DVD5-promo- x86_64.group?rev=upload .PUT http://obsapi.americas.sgi.com/source/ISO_TEST/_product/DVD5- x86_64.group?rev=upload .PUT http://obsapi.americas.sgi.com/source/ISO_TEST/_product/FROZEN.group?rev=upl... .PUT http://obsapi.americas.sgi.com/source/ISO_TEST/_product/NON_FTP_PACKAGES.gro... .PUT http://obsapi.americas.sgi.com/source/ISO_TEST/_product/archsets.inc?rev=upl... POST http://obsapi.americas.sgi.com/source/ISO_TEST/_product?cmd=deleteuploadrev Server returned an error: HTTP Error 403: Forbidden Connection: close Content-Type: text/html Content-Length: 345 Date: Fri, 28 May 2010 17:51:42 GMT Server: lighttpd/1.4.20 <?xml version="1.0" encoding="iso-8859-1"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title>403 - Forbidden</title> </head> <body> <h1>403 - Forbidden</h1> </body> </html>
These are generated, you can only change the "_product" package, the other packages will get re-generated based by this.
Yeah; I had noticed that.
Are you aware that you need really a full build of the distribution to create products ? Just having the :full directory filled is not enough, you need also all the binaries in /obs/build/$PROJECT/$standard/$arch/ directory.
Let's not get ahead of ourselves. I'm not able to check in _product. Thus,
no kiwi files are being generated, _package:* are also not being generated.
I've found (through trial and error) that 'osc ci' doesn't like _any_ files
with the extension *.inc. I can even create a 'junk' package (named anything;
it doesn't have to be _product), and if I try to add a file named foo.inc and
check it in, I see the same error:
ttelford@obs:~/src/obs/TEST/$ osc mkpac foo
ttelford@obs:~/src/obs/TEST/foo$ touch foo.inc
ttelford@obs:~/src/obs/TEST/foo$ osc add foo.inc
A foo.inc
ttelford@obs:~/src/obs/TEST/foo$ osc -d ci
GET http://obsapi.foo.bar.com/source/TEST
GET http://obsapi.foo.bar.com/source/TEST/foo?rev=latest
Sending foo.inc
Transmitting file data .PUT
http://obsapi.foo.bar.com/source/TEST/foo/foo.inc?rev=upload
POST http://obsapi.foo.bar.com/source/TEST/foo?cmd=deleteuploadrev
Server returned an error: HTTP Error 403: Forbidden
Connection: close
Content-Type: text/html
Content-Length: 345
Date: Fri, 28 May 2010 18:04:58 GMT
Server: lighttpd/1.4.20
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>403 - Forbidden</title>
</head>
<body>
<h1>403 - Forbidden</h1>
</body>
</html>
If I rename the '*.inc' files to '*.xml', and modify the .product files to
match, then I can successfully run 'osc ci'. At that point, the _product:*
packages are auto-generated and I get .kiwi files. Why OBS is worried about
the '*.inc' extension, I'm not sure.
Then the build fails in kiwi, probably for the reason you stated above...
(Kiwi output:)
[I] STEP 3 [collectPackages]
[I] Handle scripts for metafiles and metapackages
[E] Metapackage <skelcd-openSUSE> not available for architecure