
On Tue, Oct 10, 2017 at 7:08 PM, Brüns, Stefan <Stefan.Bruens@rwth-aachen.de> wrote:
On Dienstag, 10. Oktober 2017 16:51:00 CEST Roger Oberholtzer wrote:
On Fri, Oct 6, 2017 at 2:09 PM, Andreas Jaeger <aj@suse.com> wrote:
On 2017-09-26 12:34, Roger Oberholtzer wrote:
On Mon, Sep 25, 2017 at 8:33 PM, Jim Henderson <hendersj@gmail.com> wrote:
It would be great if one could import a kiwi project that one currently runs on a local computer. Not just one set up in Studio.
You should be able to add kiwi files that you have locally, there's nothing magic here. What is not working for you?
I have finally gotten OBS to start building the image. All repos and packages are resolved. All the repos get added, and the prepare step starts. Then it complains and exits.
It stops, complaining that the Schema validation failed. I cannot guess why as this works in a native kiwi build. It says:
Relax-NG validity error : Invalid sequence in interleave
Maybe it is not my config.xml that it is complaining about? After all, it has started to act on it by adding the repos.
What version of kiwi (kiwi or kiwi-ng?) is used in OBS, and what schema versions are supported? It does not, as far as I can see, tell what it does not like.
You should do local builds using osc, then you can inspect any intermediate build results:
$> osc co home:rogeroberholtzer rsl-oem-42.3 ... $> osc build images ... [ 169s] Oct-10 16:57:21 <3> : Schema validation failed [ 169s] Oct-10 16:57:21 <1> : Automatically upgraded /usr/src/packages/ SOURCES/config.xml to /usr/src/packages/SOURCES/config.converted.xml [ 169s] Oct-10 16:57:21 <1> : Reported Line numbers may not match the file / usr/src/packages/SOURCES/config.xml [ 169s] Oct-10 16:57:21 <3> : unknown-5a96bf0:0: Relax-NG validity error : Invalid sequence in interleave [ 169s] unknown-5a96bf0:0: Relax-NG validity error : Invalid sequence in interleave [ 169s] unknown-5a96bf0:0: Relax-NG validity error : Element image failed to validate content [ 169s] [ 169s] Oct-10 16:57:21 <3> : KIWI exited with error(s) [ 169s] Oct-10 16:57:21 <1> : warning: jing not found [ 169s] Oct-10 16:57:21 <1> : Use the jing command for more details [ 169s] Oct-10 16:57:21 <1> : The following requires jing to be installed [ 169s] Oct-10 16:57:21 <1> : jing /usr/share/kiwi/modules/KIWISchema.rng / usr/src/packages/SOURCES/config.converted.xml
Ok, it tell us it needs jing to give a more meaningful error message, so try again:
$> osc build -x jing -x cups-libs images ... [ 91s] Oct-10 17:01:51 <3> : Schema validation failed [ 91s] Oct-10 17:01:51 <1> : Automatically upgraded /usr/src/packages/ SOURCES/config.xml to /usr/src/packages/SOURCES/config.converted.xml [ 91s] Oct-10 17:01:51 <1> : Reported Line numbers may not match the file / usr/src/packages/SOURCES/config.xml [ 91s] Oct-10 17:01:51 <1> : EXEC [/usr/bin/jing /usr/share/kiwi/modules/ KIWISchema.rng /usr/src/packages/SOURCES/config.converted.xml 2>/dev/null] [ 93s] Oct-10 17:01:53 <3> : /usr/src/packages/SOURCES/config.converted.xml: 2:88: error: value of attribute "schemaversion" is invalid; must be equal to "6.2" [ 93s] /usr/src/packages/SOURCES/config.converted.xml:13:172: error: attribute "initrd_system" not allowed here; expected attribute "bootfilesystem", "bootkernel", "bootpartition", "bootpartsize", "bootprofile", "boottimeout", "btrfs_root_is_snapshot", "checkprebuilt", "compressed", "container", "devicepersistency", "editbootconfig", "editbootinstall", "flags", "format", "formatoptions", "fsmountoptions", "fsnocheck", "fsreadonly", "fsreadwrite", "gcelicense", "hybrid", "hybridpersistent", "hybridpersistent_filesystem", "installboot", "installprovidefailsafe", "installpxe", "installstick", "luks", "luksOS", "mdraid", "primary", "ramonly", "target_blocksize", "vga", "vhdfixedtag", "volid", "wwid_wait_timeout", "zfsoptions" or "zipl_targettype" [ 93s] /usr/src/packages/SOURCES/config.converted.xml:38:12: error: element "users" missing required attribute "group" [ 93s] /usr/src/packages/SOURCES/config.converted.xml:40:91: error: attribute "groups" not allowed here; expected attribute "id", "realname" or "shell"
Kind regards,
Stefan
Thanks for the pointer. The error that is reported here is not correct for kiwi 9. That is why I ask: what version of kiwi is OBS using? Is it the older kiwi 7 or the more recent kiwi 9? Based on the error, it is kiwi 7, I think. Can one use kiwi 9 in OBS? -- Roger Oberholtzer -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org