[Dev] cannot generate a snapshot image from local repo

Chanho Park chanho61.park at samsung.com
Fri Oct 10 05:46:11 GMT 2014


Hi JF,

 

I attached my repomd.xml and original repomd.xml file. I’m not sure what difference caused the problem.

 

BTW, can we make a snapshot image automatically from OBS staging project? We generated packages from out staging OBS project. To make a snapshot, however, we should download all packages from repository and generate  a snapshot image from local repo. It’s really painful to us because download speed is poor. If we can make a snapshot image from OBS staging project like main project, we can verify the image more easier than before.

 

Download: http://download.tizen.org/live/devel:/arm_toolchain:/Mobile:/Tizen_Common/

OBS: https://build.tizen.org/project/show?project=devel%3Aarm_toolchain%3AMobile%3ATizen_Common

 

Best Regards,

Chanho Park

 

From: JF Ding [mailto:jian-feng.ding at intel.com] 
Sent: Friday, October 10, 2014 1:20 PM
To: Chanho Park
Cc: dev at lists.tizen.org; Gui Chen; Sun, LihongX
Subject: Re: cannot generate a snapshot image from local repo

 

>From the error message, it should be something wrong for the re-generated repos’ group meta files. Would you help to open the files and compare them with the copies in download server to find out what’s wrong?

 

thanks

- jf.ding

 

On Friday, October 10, 2014 at 11:04 AM, Chanho Park wrote:

Hi all,

 

After I upgraded my Ubuntu version to 14.04, I can't generate a local image using mic tool.

I downloaded group.xml and patterns.xml from below:

http://download.tizen.org/snapshots/tizen/common/latest/repos/ia32-wayland/packages/repodata/

 

First of all, I downloaded all packages of ia3a-wayland using wget command:

http://download.tizen.org/snapshots/tizen/common/latest/repos/ia32-wayland/packages/

 

And then, I generated local repos using createrepo/modifyrepo command.

 

This is createrepo results:

createrepo -g /newroot/opt/ia32-wayland-staging/repodata/group.xml --database --unique-md-filenames /newroot/opt/ia32-wayland-staging/

Spawning worker 0 with 485 pkgs

Spawning worker 1 with 485 pkgs

Spawning worker 2 with 485 pkgs

Spawning worker 3 with 485 pkgs

Spawning worker 4 with 485 pkgs

Spawning worker 5 with 485 pkgs

Spawning worker 6 with 485 pkgs

Spawning worker 7 with 484 pkgs

Worker 4: 

Worker 4: iso-8859-1 encoding on Unifdef is useful for removing ifdef'ed lines from a file while otherwise

Worker 4: leaving the file alone. Unifdef acts on #ifdef, #ifndef, #else, and #en�

Worker 4: dif lines, and it knows only enough about C to know when one of these is

Worker 4: inactive because it is inside a comment, or a single or double quote.

Worker 4: 

Worker 4: %track

Worker 4: prog unifdef = {

Worker 4: url = http://dotat.at/prog/unifdef/

Worker 4: version = 2.8

Worker 4: regex = unifdef-(__VER__)\.tar\.gz

Worker 4: }

Worker 4: 

Workers Finished

Saving Primary metadata

Saving file lists metadata

Saving other metadata

Generating sqlite DBs

Sqlite DBs complete

 

modifyrepo /newroot/opt/ia32-wayland-staging/repodata/patterns.xml /newroot/opt/ia32-wayland-staging/repodata/

Wrote: /newroot/opt/ia32-wayland-staging/repodata/patterns.xml.gz

type = patterns

location = repodata/a4f30f1681e29db7657f0f8f4f8f7d456fabc057c551c422311a98875f553851-patterns.xml.gz

checksum = a4f30f1681e29db7657f0f8f4f8f7d456fabc057c551c422311a98875f553851

timestamp = 1412909833

open-checksum = c5f5bc08cccfdd7c4909e6234ec058c428b0abd4588e89ad6eb5bba68dc00169

size = 1941

open-size = 17271

Wrote: /newroot/opt/ia32-wayland-staging/repodata/repomd.xml

 

I also downloaded a kickstarter file from below:

http://download.tizen.org/snapshots/tizen/common/latest/images/ia32-wayland/common-wayland-mbr-i586/

 

I only modified the url:// to local file:/// <file:///\\> .

 

When I made a snapshot image using mic tool, I met below errors:

sudo mic cr auto tizen-common-i586.ks --tmpfs

[sudo] password for cometzero: 

mic 0.24.2 (cometzero-exa2 Ubuntu 14.04 trusty)

INFO: Retrieving repo metadata:

Traceback (most recent call last):

File "/usr/bin/mic", line 231, in <module>

sys.exit(MIC.main())

File "/usr/lib/pymodules/python2.7/mic/utils/cmdln.py", line 257, in main

return self.cmd(args)

File "/usr/lib/pymodules/python2.7/mic/utils/cmdln.py", line 280, in cmd

retval = self.onecmd(argv)

File "/usr/lib/pymodules/python2.7/mic/utils/cmdln.py", line 412, in onecmd

return self._dispatch_cmd(handler, argv)

File "/usr/lib/pymodules/python2.7/mic/utils/cmdln.py", line 1084, in _dispatch_cmd

return handler(argv)

File "/usr/bin/mic", line 104, in do_create

crobj.main(argv[1:])

File "/usr/lib/pymodules/python2.7/mic/creator.py", line 319, in main

return self.cmd(args)

File "/usr/lib/pymodules/python2.7/mic/utils/cmdln.py", line 280, in cmd

retval = self.onecmd(argv)

File "/usr/lib/pymodules/python2.7/mic/utils/cmdln.py", line 412, in onecmd

return self._dispatch_cmd(handler, argv)

File "/usr/lib/pymodules/python2.7/mic/utils/cmdln.py", line 1100, in _dispatch_cmd

return handler(argv[0], opts, *args)

File "/usr/lib/pymodules/python2.7/mic/creator.py", line 391, in do_auto

self.main(argv)

File "/usr/lib/pymodules/python2.7/mic/creator.py", line 319, in main

return self.cmd(args)

File "/usr/lib/pymodules/python2.7/mic/utils/cmdln.py", line 280, in cmd

retval = self.onecmd(argv)

File "/usr/lib/pymodules/python2.7/mic/utils/cmdln.py", line 412, in onecmd

return self._dispatch_cmd(handler, argv)

File "/usr/lib/pymodules/python2.7/mic/utils/cmdln.py", line 1100, in _dispatch_cmd

return handler(argv[0], opts, *args)

File "/usr/lib/mic/plugins/imager/raw_plugin.py", line 64, in do_create

configmgr._ksconf = ksconf

File "/usr/lib/pymodules/python2.7/mic/conf.py", line 135, in __set_ksconf

self._parse_kickstart(ksconf)

File "/usr/lib/pymodules/python2.7/mic/conf.py", line 240, in _parse_kickstart

self.create['cachedir'])

File "/usr/lib/pymodules/python2.7/mic/utils/misc.py", line 653, in get_metadata_from_repos

checksums['comps'] = elm.find("%sopen-checksum" % ns).text

AttributeError: 'NoneType' object has no attribute 'text'

 

Is there any changes of createrepo/mic tools?

 

Best Regards,

Chanho Park

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.tizen.org/pipermail/dev/attachments/20141010/f5ec843b/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: repomd.xml
Type: text/xml
Size: 4148 bytes
Desc: not available
URL: <http://lists.tizen.org/pipermail/dev/attachments/20141010/f5ec843b/attachment-0001.xml>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: repomd.xml.orig
Type: application/octet-stream
Size: 4472 bytes
Desc: not available
URL: <http://lists.tizen.org/pipermail/dev/attachments/20141010/f5ec843b/attachment-0001.obj>


More information about the Dev mailing list