[opensuse-buildservice] kiwi inside obs
Hi all! I hacked tonight and got my app to write a my config.xml for kiwi. My questions are now: * will the kiwi-inside-obs support the known config.xml (+ X.foo ) or is a special format used ? * how is the root-folder (tree to copy over the image) implemented ? tar.gz ? Use case: our users won't have root-access to run kiwi from cmdline, so i need to find a nice solution. Best regards Jan-Simon --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
On Donnerstag 11 September 2008 08:18:49 Jan-Simon Möller wrote:
Hi all!
I hacked tonight and got my app to write a my config.xml for kiwi. My questions are now: * will the kiwi-inside-obs support the known config.xml (+ X.foo ) or is a special format used ?
You need to upload it as something.kiwi You need to specify all used repos via "obs://project/repositoy" URLs. It is also needed to change the build type in the project config. Add something like: %if "%_repository" == "images" Type: kiwi %else Type: spec %endif This will build kiwi images for the "images" repository (and nothing else) and rpm builds for all other repos in that project (and no kiwi builds).
* how is the root-folder (tree to copy over the image) implemented ? tar.gz ?
yes, just tar it as "root.tar.gz" and place it besied.
Use case: our users won't have root-access to run kiwi from cmdline, so i need to find a nice solution.
Currently, the kiwi implementation is unsecure, because it does not run within XEN. So an evil hacker might get root permission on your build systems ... You can limit kiwi builds by specifing the projects which are allowed to build kiwi in BSConfig.pm currently. bye adrian -- Adrian Schroeter SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg) email: adrian@suse.de --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
Am Donnerstag 11 September 2008 08:31:54 schrieb Adrian Schröter:
You need to upload it as something.kiwi
Funtastic ;)
You need to specify all used repos via "obs://project/repositoy" URLs.
So <repository type="rpm-md"> <source path="http://192.168.10.247/lire/base_toolchain/"/> </repository> gets <repository type="rpm-md"> <source path="obs://lire/base_toolchain/"/> </repository> # not sure about "rpm-md" ...
It is also needed to change the build type in the project config. Add something like:
%if "%_repository" == "images" Type: kiwi %else Type: spec %endif
This will build kiwi images for the "images" repository (and nothing else) and rpm builds for all other repos in that project (and no kiwi builds).
* how is the root-folder (tree to copy over the image) implemented ? tar.gz ?
yes, just tar it as "root.tar.gz" and place it besied.
Use case: our users won't have root-access to run kiwi from cmdline, so i need to find a nice solution.
Currently, the kiwi implementation is unsecure, because it does not run within XEN. So an evil hacker might get root permission on your build systems ... Known. But better than requiring "root" for kiwi build or a custom hacked "service".
You can limit kiwi builds by specifing the projects which are allowed to build kiwi in BSConfig.pm currently.
Thanks a log ! Best regards, Jan-Simon --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
Am Donnerstag 11 September 2008 08:31:54 schrieb Adrian Schröter:
At least i get: bad kiwi description data imaging/obs-imaging/config.kiwi So it evaluates the .kiwi ... My kiwi.config for a really small/custom system looks like this: <?xml version="1.0"?> <image schemeversion="2.4" name="lire-vmxboot-0.1"> <description type="system"> <author>Jan-Simon Moeller</author> <contact>dl9pf@gmx.de</contact> <specification>small boot/filesystem image</specification> </description> <preferences> <type primary="true" filesystem="ext2">ext2</type> <version>0.0.1</version> <size unit="M">100</size> <packagemanager>smart</packagemanager> <rpm-check-signatures>False</rpm-check-signatures> <rpm-force>True</rpm-force> <locale>en_US</locale> <keytable>us.map.gz</keytable> </preferences> <users group="root"> <user name="root" pwd="" home="/"/> </users> <repository type="rpm-md"> <source path="http://192.168.10.247/repo1/standard/"/> <!-- changed to obs://repo1/standard --> </repository> <repository type="rpm-md"> <source path="http://192.168.10.247/repo2/standard/"/> <!-- changed to obs://repo2/standard --> </repository> <repository type="rpm-md"> <source path="http://192.168.10.247/repo3/standard/"/> <!-- changed to obs://repo3/standard --> </repository> <packages type="bootstrap"> [...] </packages> </image> This config works for kiwi-2.73.80.1. What values need to be changed ? BSKiwiXML.pm has many differences. Is there a example config to look at ? best regards Jan-Simon --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
On Donnerstag 11 September 2008 13:54:12 Jan-Simon Möller wrote:
Am Donnerstag 11 September 2008 08:31:54 schrieb Adrian Schröter:
At least i get: bad kiwi description data imaging/obs-imaging/config.kiwi So it evaluates the .kiwi ...
Hm, please run bs_admin --check-kiwi-xml $file to check the file. It reports hopefully something usefull ;)
My kiwi.config for a really small/custom system looks like this:
<?xml version="1.0"?>
It might be that the parse does not skip this line.
<image schemeversion="2.4" name="lire-vmxboot-0.1"> <description type="system"> <author>Jan-Simon Moeller</author> <contact>dl9pf@gmx.de</contact> <specification>small boot/filesystem image</specification> </description> <preferences> <type primary="true" filesystem="ext2">ext2</type> <version>0.0.1</version> <size unit="M">100</size> <packagemanager>smart</packagemanager> <rpm-check-signatures>False</rpm-check-signatures> <rpm-force>True</rpm-force> <locale>en_US</locale> <keytable>us.map.gz</keytable> </preferences> <users group="root"> <user name="root" pwd="" home="/"/> </users> <repository type="rpm-md"> <source path="http://192.168.10.247/repo1/standard/"/> <!-- changed to obs://repo1/standard --> </repository> <repository type="rpm-md"> <source path="http://192.168.10.247/repo2/standard/"/> <!-- changed to obs://repo2/standard --> </repository> <repository type="rpm-md"> <source path="http://192.168.10.247/repo3/standard/"/> <!-- changed to obs://repo3/standard --> </repository> <packages type="bootstrap"> [...] </packages> </image>
This config works for kiwi-2.73.80.1. What values need to be changed ? BSKiwiXML.pm has many differences. Is there a example config to look at ?
best regards Jan-Simon --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
-- Adrian Schroeter SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg) email: adrian@suse.de --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
On Donnerstag 11 September 2008 14:02:11 Adrian Schröter wrote:
On Donnerstag 11 September 2008 13:54:12 Jan-Simon Möller wrote:
Am Donnerstag 11 September 2008 08:31:54 schrieb Adrian Schröter:
At least i get: bad kiwi description data imaging/obs-imaging/config.kiwi So it evaluates the .kiwi ...
Hm, please run
bs_admin --check-kiwi-xml $file
to check the file. It reports hopefully something usefull ;)
Just checked myself and found not yet defined elements. Fixed in svn :) bye adrian -- Adrian Schroeter SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg) email: adrian@suse.de --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
http://pastebin.ca/1199943 Am Donnerstag 11 September 2008 14:06:03 schrieb Adrian Schröter:
On Donnerstag 11 September 2008 14:02:11 Adrian Schröter wrote:
On Donnerstag 11 September 2008 13:54:12 Jan-Simon Möller wrote:
Am Donnerstag 11 September 2008 08:31:54 schrieb Adrian Schröter:
At least i get: bad kiwi description data imaging/obs-imaging/config.kiwi So it evaluates the .kiwi ...
Hm, please run
bs_admin --check-kiwi-xml $file Fixed in svn :)
Now it works, but build still fails. Big tnx! Best regards Jan-Simon --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
Moin moin! Testing after svn up gave me these 2 messages: ==> /srv/obs/log/src_server.log <== PUT /source/imaging/obs-imaging/config.kiwi? Build::Kiwi::parse IS NOT IMPLEMENTED ! PUT /source/imaging/obs-imaging/_meta? ==> /srv/obs/log/scheduler_i586.log <== remote error: 404 Not an ARRAY reference at /usr/lib/obs/server//bs_srcserver line 781. could not get project/package information, sleeping 1 minute ==> /srv/obs/log/src_server.log <== reading config for base_toolchain_devel/standard i586 reading config for imaging/image i586 130.75.137.157: Not an ARRAY reference at /usr/lib/obs/server//bs_srcserver line 781. Best regards Jan-Simon --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
==> /srv/obs/log/src_server.log <== PUT /source/imaging/obs-imaging/config.kiwi? Build::Kiwi::parse IS NOT IMPLEMENTED ! PUT /source/imaging/obs-imaging/_meta?
==> /srv/obs/log/scheduler_i586.log <== remote error: 404 Not an ARRAY reference at /usr/lib/obs/server//bs_srcserver line 781. could not get project/package information, sleeping 1 minute ==> /srv/obs/log/src_server.log <== reading config for base_toolchain_devel/standard i586 reading config for imaging/image i586 130.75.137.157: Not an ARRAY reference at /usr/lib/obs/server//bs_srcserver line 781.
Issue found ? Best regards Jan-Simon --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
participants (2)
-
Adrian Schröter
-
Jan-Simon Möller