All of lore.kernel.org
 help / color / mirror / Atom feed
* Adding custom toasterconf.json file for Mentor
@ 2015-08-06 12:41 sujith h
  2015-08-07  8:54 ` sujith h
  0 siblings, 1 reply; 10+ messages in thread
From: sujith h @ 2015-08-06 12:41 UTC (permalink / raw)
  To: toaster

[-- Attachment #1: Type: text/plain, Size: 1000 bytes --]

Hi all,

At Mentor we provide already cloned layers ( like poky, meta-mentor etc ).
In meta-mentor layer we have a setup-environment script which when run from
command line along with arguments like machine name ( eg: qemuarm, minnow
etc ) would create a build folder with local.conf and bblayers.conf. The
bblayers.conf will include all the layers which are dependent for machine
to be built. So I was thinking of creating a separate toasterconf.json file
for meta-mentor so that it will include all the layers which are required
for us to use toaster.

So my query here is, should I add toasterconf.json file in meta-mentor
layer so that toaster can pick it up? Or should it be in a different
location which toaster can read it from there.


Let me know if my query needs more inputs.

Thanks,
Sujith H


-- 
സുജിത് ഹരിദാസന്
Bangalore
<Project>Contributor to KDE project
http://fci.wikia.com/wiki/Anti-DRM-Campaign
<Blog> http://sujithh.info

[-- Attachment #2: Type: text/html, Size: 1314 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Adding custom toasterconf.json file for Mentor
  2015-08-06 12:41 Adding custom toasterconf.json file for Mentor sujith h
@ 2015-08-07  8:54 ` sujith h
  2015-08-07 11:41   ` Ed Bartosh
  0 siblings, 1 reply; 10+ messages in thread
From: sujith h @ 2015-08-07  8:54 UTC (permalink / raw)
  To: toaster

[-- Attachment #1: Type: text/plain, Size: 4366 bytes --]

On Thu, Aug 6, 2015 at 6:11 PM, sujith h <sujith.h@gmail.com> wrote:

> Hi all,
>
> At Mentor we provide already cloned layers ( like poky, meta-mentor etc ).
> In meta-mentor layer we have a setup-environment script which when run from
> command line along with arguments like machine name ( eg: qemuarm, minnow
> etc ) would create a build folder with local.conf and bblayers.conf. The
> bblayers.conf will include all the layers which are dependent for machine
> to be built. So I was thinking of creating a separate toasterconf.json file
> for meta-mentor so that it will include all the layers which are required
> for us to use toaster.
>
> So my query here is, should I add toasterconf.json file in meta-mentor
> layer so that toaster can pick it up? Or should it be in a different
> location which toaster can read it from there.
>
>
> Let me know if my query needs more inputs.
>

I figured out a way to use toasterconf.json file which I created in
meta-mentor layer, using command:
---------
./poky/bitbake/lib/toaster/manage.py loadconf meta-mentor/toasterconf.json
---------


When I execute the above command below is the error I get:

--------------
(venv)sujith@kdekidd0:~/MEL/toaster_MEL$
./poky/bitbake/lib/toaster/manage.py loadconf meta-mentor/toasterconf.json
Traceback (most recent call last):
  File "./poky/bitbake/lib/toaster/manage.py", line 10, in <module>
    execute_from_command_line(sys.argv)
  File
"/home/sujith/MEL/toaster_MEL/venv/local/lib/python2.7/site-packages/django/core/management/__init__.py",
line 399, in execute_from_command_line
    utility.execute()
  File
"/home/sujith/MEL/toaster_MEL/venv/local/lib/python2.7/site-packages/django/core/management/__init__.py",
line 392, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File
"/home/sujith/MEL/toaster_MEL/venv/local/lib/python2.7/site-packages/django/core/management/base.py",
line 242, in run_from_argv
    self.execute(*args, **options.__dict__)
  File
"/home/sujith/MEL/toaster_MEL/venv/local/lib/python2.7/site-packages/django/core/management/base.py",
line 285, in execute
    output = self.handle(*args, **options)
  File
"/home/sujith/MEL/toaster_MEL/poky/bitbake/lib/toaster/bldcontrol/management/commands/loadconf.py",
line 171, in handle
    self._import_layer_config(filepath)
  File
"/home/sujith/MEL/toaster_MEL/poky/bitbake/lib/toaster/bldcontrol/management/commands/loadconf.py",
line 71, in _import_layer_config
    bvo.giturl = _read_git_url_from_local_repository(bvi['giturl'])
  File
"/home/sujith/MEL/toaster_MEL/poky/bitbake/lib/toaster/bldcontrol/management/commands/loadconf.py",
line 62, in _read_git_url_from_local_repository
    raise Exception("Error while looking for remote \"%s\" in \"%s\"" %
(remote_name, out))
Exception: Error while looking for remote "origin" in "mel    ssh://
git@github.com/MentorEmbedded/meta-mentor.git (fetch)
mel    ssh://git@github.com/MentorEmbedded/meta-mentor.git (push)
"
(venv)sujith@kdekidd0:~/MEL/toaster_MEL$
--------------

The reason I believe is its checking for origin in the git branch output.
When I execute 'git branch -a' in meta-mentor layer we have, I get:

------------
sujith@kdekidd0:~/MEL/toaster_MEL/meta-mentor$ git branch -a
* (no branch)
  remotes/m/master -> mel/master
  remotes/mel/daisy
  remotes/mel/danny
  remotes/mel/dylan
  remotes/mel/fix-parse-cache-issue
  remotes/mel/layerscape
  remotes/mel/master
  remotes/mel/meibp/2013
  remotes/mel/mentor/atp
  remotes/mel/mentor/mel6
  remotes/mel/merge-and-update-master
  remotes/mel/release/2013.11
  remotes/mel/release/2013.11-adit
  remotes/mel/release/2014.05
  remotes/mel/release/2014.05-async1
  remotes/mel/release/2014.05-async1-lite
  remotes/mel/release/2014.05-async2
  remotes/mel/release/2014.05_fastboot_addon
  remotes/mel/release/2014.12
  remotes/mel/release/2014.12-async1
  remotes/mel/release/2014.12-birch
  remotes/mel/revert-471-sysroot-stage-dirs-undefined
  remotes/mel/sb-2727
sujith@kdekidd0:~/MEL/toaster_MEL/meta-mentor$
------------

Now this is another twist, which I would have to solve.


-- 
സുജിത് ഹരിദാസന്
Bangalore
<Project>Contributor to KDE project
http://fci.wikia.com/wiki/Anti-DRM-Campaign
<Blog> http://sujithh.info

[-- Attachment #2: Type: text/html, Size: 5408 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Adding custom toasterconf.json file for Mentor
  2015-08-07  8:54 ` sujith h
@ 2015-08-07 11:41   ` Ed Bartosh
  2015-08-07 12:01     ` sujith h
  0 siblings, 1 reply; 10+ messages in thread
From: Ed Bartosh @ 2015-08-07 11:41 UTC (permalink / raw)
  To: sujith h; +Cc: toaster

Hi Sujith,

It looks like your repository doesn't have 'origin' remote, which
failing code is trying to find in 'git remote -v' output.

For your repository git remote -v prints the following 2 lines:
mel    ssh://git@github.com/MentorEmbedded/meta-mentor.git (fetch)
mel    ssh://git@github.com/MentorEmbedded/meta-mentor.git (push)

so, your remote name is 'mel'. My guess is that 'origin' is taken from
your toasterconfig.json. Unfortunately I can't
reproduce this on my machine as I don't have your layers.

I'd suggest to replace 'origin' with 'mel' in your config and try again.

Regards,
Ed


On Fri, Aug 07, 2015 at 02:24:44PM +0530, sujith h wrote:
> On Thu, Aug 6, 2015 at 6:11 PM, sujith h <sujith.h@gmail.com> wrote:
> 
> > Hi all,
> >
> > At Mentor we provide already cloned layers ( like poky, meta-mentor etc ).
> > In meta-mentor layer we have a setup-environment script which when run from
> > command line along with arguments like machine name ( eg: qemuarm, minnow
> > etc ) would create a build folder with local.conf and bblayers.conf. The
> > bblayers.conf will include all the layers which are dependent for machine
> > to be built. So I was thinking of creating a separate toasterconf.json file
> > for meta-mentor so that it will include all the layers which are required
> > for us to use toaster.
> >
> > So my query here is, should I add toasterconf.json file in meta-mentor
> > layer so that toaster can pick it up? Or should it be in a different
> > location which toaster can read it from there.
> >
> >
> > Let me know if my query needs more inputs.
> >
> 
> I figured out a way to use toasterconf.json file which I created in
> meta-mentor layer, using command:
> ---------
> ./poky/bitbake/lib/toaster/manage.py loadconf meta-mentor/toasterconf.json
> ---------
> 
> 
> When I execute the above command below is the error I get:
> 
> --------------
> (venv)sujith@kdekidd0:~/MEL/toaster_MEL$
> ./poky/bitbake/lib/toaster/manage.py loadconf meta-mentor/toasterconf.json
> Traceback (most recent call last):
>   File "./poky/bitbake/lib/toaster/manage.py", line 10, in <module>
>     execute_from_command_line(sys.argv)
>   File
> "/home/sujith/MEL/toaster_MEL/venv/local/lib/python2.7/site-packages/django/core/management/__init__.py",
> line 399, in execute_from_command_line
>     utility.execute()
>   File
> "/home/sujith/MEL/toaster_MEL/venv/local/lib/python2.7/site-packages/django/core/management/__init__.py",
> line 392, in execute
>     self.fetch_command(subcommand).run_from_argv(self.argv)
>   File
> "/home/sujith/MEL/toaster_MEL/venv/local/lib/python2.7/site-packages/django/core/management/base.py",
> line 242, in run_from_argv
>     self.execute(*args, **options.__dict__)
>   File
> "/home/sujith/MEL/toaster_MEL/venv/local/lib/python2.7/site-packages/django/core/management/base.py",
> line 285, in execute
>     output = self.handle(*args, **options)
>   File
> "/home/sujith/MEL/toaster_MEL/poky/bitbake/lib/toaster/bldcontrol/management/commands/loadconf.py",
> line 171, in handle
>     self._import_layer_config(filepath)
>   File
> "/home/sujith/MEL/toaster_MEL/poky/bitbake/lib/toaster/bldcontrol/management/commands/loadconf.py",
> line 71, in _import_layer_config
>     bvo.giturl = _read_git_url_from_local_repository(bvi['giturl'])
>   File
> "/home/sujith/MEL/toaster_MEL/poky/bitbake/lib/toaster/bldcontrol/management/commands/loadconf.py",
> line 62, in _read_git_url_from_local_repository
>     raise Exception("Error while looking for remote \"%s\" in \"%s\"" %
> (remote_name, out))
> Exception: Error while looking for remote "origin" in "mel    ssh://
> git@github.com/MentorEmbedded/meta-mentor.git (fetch)
> mel    ssh://git@github.com/MentorEmbedded/meta-mentor.git (push)
> "
> (venv)sujith@kdekidd0:~/MEL/toaster_MEL$
> --------------
> 
> The reason I believe is its checking for origin in the git branch output.
> When I execute 'git branch -a' in meta-mentor layer we have, I get:
> 
> ------------
> sujith@kdekidd0:~/MEL/toaster_MEL/meta-mentor$ git branch -a
> * (no branch)
>   remotes/m/master -> mel/master
>   remotes/mel/daisy
>   remotes/mel/danny
>   remotes/mel/dylan
>   remotes/mel/fix-parse-cache-issue
>   remotes/mel/layerscape
>   remotes/mel/master
>   remotes/mel/meibp/2013
>   remotes/mel/mentor/atp
>   remotes/mel/mentor/mel6
>   remotes/mel/merge-and-update-master
>   remotes/mel/release/2013.11
>   remotes/mel/release/2013.11-adit
>   remotes/mel/release/2014.05
>   remotes/mel/release/2014.05-async1
>   remotes/mel/release/2014.05-async1-lite
>   remotes/mel/release/2014.05-async2
>   remotes/mel/release/2014.05_fastboot_addon
>   remotes/mel/release/2014.12
>   remotes/mel/release/2014.12-async1
>   remotes/mel/release/2014.12-birch
>   remotes/mel/revert-471-sysroot-stage-dirs-undefined
>   remotes/mel/sb-2727
> sujith@kdekidd0:~/MEL/toaster_MEL/meta-mentor$
> ------------
> 
> Now this is another twist, which I would have to solve.
> 
> 
> -- 
> സുജിത് ഹരിദാസന്
> Bangalore
> <Project>Contributor to KDE project
> http://fci.wikia.com/wiki/Anti-DRM-Campaign
> <Blog> http://sujithh.info

> -- 
> _______________________________________________
> toaster mailing list
> toaster@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/toaster


-- 
--
Regards,
Ed


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Adding custom toasterconf.json file for Mentor
  2015-08-07 11:41   ` Ed Bartosh
@ 2015-08-07 12:01     ` sujith h
  2015-08-07 12:19       ` sujith h
  0 siblings, 1 reply; 10+ messages in thread
From: sujith h @ 2015-08-07 12:01 UTC (permalink / raw)
  To: ed.bartosh; +Cc: toaster

[-- Attachment #1: Type: text/plain, Size: 6150 bytes --]

On Fri, Aug 7, 2015 at 5:11 PM, Ed Bartosh <ed.bartosh@linux.intel.com>
wrote:

> Hi Sujith,
>
> It looks like your repository doesn't have 'origin' remote, which
> failing code is trying to find in 'git remote -v' output.
>
> For your repository git remote -v prints the following 2 lines:
> mel    ssh://git@github.com/MentorEmbedded/meta-mentor.git (fetch)
> mel    ssh://git@github.com/MentorEmbedded/meta-mentor.git (push)
>
> so, your remote name is 'mel'. My guess is that 'origin' is taken from
> your toasterconfig.json. Unfortunately I can't
> reproduce this on my machine as I don't have your layers.
>
> I'd suggest to replace 'origin' with 'mel' in your config and try again.
>

Sure Ed, I would try to use mel instead of origin and I will update the
result. Thanks for the pointer.


> Regards,
> Ed
>
>
> On Fri, Aug 07, 2015 at 02:24:44PM +0530, sujith h wrote:
> > On Thu, Aug 6, 2015 at 6:11 PM, sujith h <sujith.h@gmail.com> wrote:
> >
> > > Hi all,
> > >
> > > At Mentor we provide already cloned layers ( like poky, meta-mentor
> etc ).
> > > In meta-mentor layer we have a setup-environment script which when run
> from
> > > command line along with arguments like machine name ( eg: qemuarm,
> minnow
> > > etc ) would create a build folder with local.conf and bblayers.conf.
> The
> > > bblayers.conf will include all the layers which are dependent for
> machine
> > > to be built. So I was thinking of creating a separate toasterconf.json
> file
> > > for meta-mentor so that it will include all the layers which are
> required
> > > for us to use toaster.
> > >
> > > So my query here is, should I add toasterconf.json file in meta-mentor
> > > layer so that toaster can pick it up? Or should it be in a different
> > > location which toaster can read it from there.
> > >
> > >
> > > Let me know if my query needs more inputs.
> > >
> >
> > I figured out a way to use toasterconf.json file which I created in
> > meta-mentor layer, using command:
> > ---------
> > ./poky/bitbake/lib/toaster/manage.py loadconf
> meta-mentor/toasterconf.json
> > ---------
> >
> >
> > When I execute the above command below is the error I get:
> >
> > --------------
> > (venv)sujith@kdekidd0:~/MEL/toaster_MEL$
> > ./poky/bitbake/lib/toaster/manage.py loadconf
> meta-mentor/toasterconf.json
> > Traceback (most recent call last):
> >   File "./poky/bitbake/lib/toaster/manage.py", line 10, in <module>
> >     execute_from_command_line(sys.argv)
> >   File
> >
> "/home/sujith/MEL/toaster_MEL/venv/local/lib/python2.7/site-packages/django/core/management/__init__.py",
> > line 399, in execute_from_command_line
> >     utility.execute()
> >   File
> >
> "/home/sujith/MEL/toaster_MEL/venv/local/lib/python2.7/site-packages/django/core/management/__init__.py",
> > line 392, in execute
> >     self.fetch_command(subcommand).run_from_argv(self.argv)
> >   File
> >
> "/home/sujith/MEL/toaster_MEL/venv/local/lib/python2.7/site-packages/django/core/management/base.py",
> > line 242, in run_from_argv
> >     self.execute(*args, **options.__dict__)
> >   File
> >
> "/home/sujith/MEL/toaster_MEL/venv/local/lib/python2.7/site-packages/django/core/management/base.py",
> > line 285, in execute
> >     output = self.handle(*args, **options)
> >   File
> >
> "/home/sujith/MEL/toaster_MEL/poky/bitbake/lib/toaster/bldcontrol/management/commands/loadconf.py",
> > line 171, in handle
> >     self._import_layer_config(filepath)
> >   File
> >
> "/home/sujith/MEL/toaster_MEL/poky/bitbake/lib/toaster/bldcontrol/management/commands/loadconf.py",
> > line 71, in _import_layer_config
> >     bvo.giturl = _read_git_url_from_local_repository(bvi['giturl'])
> >   File
> >
> "/home/sujith/MEL/toaster_MEL/poky/bitbake/lib/toaster/bldcontrol/management/commands/loadconf.py",
> > line 62, in _read_git_url_from_local_repository
> >     raise Exception("Error while looking for remote \"%s\" in \"%s\"" %
> > (remote_name, out))
> > Exception: Error while looking for remote "origin" in "mel    ssh://
> > git@github.com/MentorEmbedded/meta-mentor.git (fetch)
> > mel    ssh://git@github.com/MentorEmbedded/meta-mentor.git (push)
> > "
> > (venv)sujith@kdekidd0:~/MEL/toaster_MEL$
> > --------------
> >
> > The reason I believe is its checking for origin in the git branch output.
> > When I execute 'git branch -a' in meta-mentor layer we have, I get:
> >
> > ------------
> > sujith@kdekidd0:~/MEL/toaster_MEL/meta-mentor$ git branch -a
> > * (no branch)
> >   remotes/m/master -> mel/master
> >   remotes/mel/daisy
> >   remotes/mel/danny
> >   remotes/mel/dylan
> >   remotes/mel/fix-parse-cache-issue
> >   remotes/mel/layerscape
> >   remotes/mel/master
> >   remotes/mel/meibp/2013
> >   remotes/mel/mentor/atp
> >   remotes/mel/mentor/mel6
> >   remotes/mel/merge-and-update-master
> >   remotes/mel/release/2013.11
> >   remotes/mel/release/2013.11-adit
> >   remotes/mel/release/2014.05
> >   remotes/mel/release/2014.05-async1
> >   remotes/mel/release/2014.05-async1-lite
> >   remotes/mel/release/2014.05-async2
> >   remotes/mel/release/2014.05_fastboot_addon
> >   remotes/mel/release/2014.12
> >   remotes/mel/release/2014.12-async1
> >   remotes/mel/release/2014.12-birch
> >   remotes/mel/revert-471-sysroot-stage-dirs-undefined
> >   remotes/mel/sb-2727
> > sujith@kdekidd0:~/MEL/toaster_MEL/meta-mentor$
> > ------------
> >
> > Now this is another twist, which I would have to solve.
> >
> >
> > --
> > സുജിത് ഹരിദാസന്
> > Bangalore
> > <Project>Contributor to KDE project
> > http://fci.wikia.com/wiki/Anti-DRM-Campaign
> > <Blog> http://sujithh.info
>
> > --
> > _______________________________________________
> > toaster mailing list
> > toaster@yoctoproject.org
> > https://lists.yoctoproject.org/listinfo/toaster
>
>
> --
> --
> Regards,
> Ed
>



-- 
സുജിത് ഹരിദാസന്
Bangalore
<Project>Contributor to KDE project
http://fci.wikia.com/wiki/Anti-DRM-Campaign
<Blog> http://sujithh.info

[-- Attachment #2: Type: text/html, Size: 8648 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Adding custom toasterconf.json file for Mentor
  2015-08-07 12:01     ` sujith h
@ 2015-08-07 12:19       ` sujith h
  2015-08-07 12:37         ` Ed Bartosh
  0 siblings, 1 reply; 10+ messages in thread
From: sujith h @ 2015-08-07 12:19 UTC (permalink / raw)
  To: ed.bartosh; +Cc: toaster

[-- Attachment #1: Type: text/plain, Size: 10945 bytes --]

On Fri, Aug 7, 2015 at 5:31 PM, sujith h <sujith.h@gmail.com> wrote:

>
>
> On Fri, Aug 7, 2015 at 5:11 PM, Ed Bartosh <ed.bartosh@linux.intel.com>
> wrote:
>
>> Hi Sujith,
>>
>> It looks like your repository doesn't have 'origin' remote, which
>> failing code is trying to find in 'git remote -v' output.
>>
>> For your repository git remote -v prints the following 2 lines:
>> mel    ssh://git@github.com/MentorEmbedded/meta-mentor.git (fetch)
>> mel    ssh://git@github.com/MentorEmbedded/meta-mentor.git (push)
>>
>> so, your remote name is 'mel'. My guess is that 'origin' is taken from
>> your toasterconfig.json. Unfortunately I can't
>> reproduce this on my machine as I don't have your layers.
>>
>> I'd suggest to replace 'origin' with 'mel' in your config and try again.
>>
>
> Sure Ed, I would try to use mel instead of origin and I will update the
> result. Thanks for the pointer.
>

When I change to mel in the config file, the error I get is :

----------
(venv)sujith@kdekidd0:~/MEL/toaster_MEL$
./poky/bitbake/lib/toaster/manage.py loadconf
/home/sujith/MEL/toaster_MEL/meta-mentor/toasterconf.json
Traceback (most recent call last):
  File "./poky/bitbake/lib/toaster/manage.py", line 10, in <module>
    execute_from_command_line(sys.argv)
  File
"/home/sujith/MEL/toaster_MEL/venv/local/lib/python2.7/site-packages/django/core/management/__init__.py",
line 399, in execute_from_command_line
    utility.execute()
  File
"/home/sujith/MEL/toaster_MEL/venv/local/lib/python2.7/site-packages/django/core/management/__init__.py",
line 392, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File
"/home/sujith/MEL/toaster_MEL/venv/local/lib/python2.7/site-packages/django/core/management/base.py",
line 242, in run_from_argv
    self.execute(*args, **options.__dict__)
  File
"/home/sujith/MEL/toaster_MEL/venv/local/lib/python2.7/site-packages/django/core/management/base.py",
line 285, in execute
    output = self.handle(*args, **options)
  File
"/home/sujith/MEL/toaster_MEL/poky/bitbake/lib/toaster/bldcontrol/management/commands/loadconf.py",
line 171, in handle
    self._import_layer_config(filepath)
  File
"/home/sujith/MEL/toaster_MEL/poky/bitbake/lib/toaster/bldcontrol/management/commands/loadconf.py",
line 97, in _import_layer_config
    apiurl = apiurl
  File
"/home/sujith/MEL/toaster_MEL/venv/local/lib/python2.7/site-packages/django/db/models/manager.py",
line 157, in create
    return self.get_queryset().create(**kwargs)
  File
"/home/sujith/MEL/toaster_MEL/venv/local/lib/python2.7/site-packages/django/db/models/query.py",
line 319, in create
    obj.save(force_insert=True, using=self.db)
  File
"/home/sujith/MEL/toaster_MEL/poky/bitbake/lib/toaster/orm/models.py", line
740, in save
    return super(LayerSource, self).save(*args, **kwargs)
  File
"/home/sujith/MEL/toaster_MEL/venv/local/lib/python2.7/site-packages/django/db/models/base.py",
line 545, in save
    force_update=force_update, update_fields=update_fields)
  File
"/home/sujith/MEL/toaster_MEL/venv/local/lib/python2.7/site-packages/django/db/models/base.py",
line 573, in save_base
    updated = self._save_table(raw, cls, force_insert, force_update, using,
update_fields)
  File
"/home/sujith/MEL/toaster_MEL/venv/local/lib/python2.7/site-packages/django/db/models/base.py",
line 654, in _save_table
    result = self._do_insert(cls._base_manager, using, fields, update_pk,
raw)
  File
"/home/sujith/MEL/toaster_MEL/venv/local/lib/python2.7/site-packages/django/db/models/base.py",
line 687, in _do_insert
    using=using, raw=raw)
  File
"/home/sujith/MEL/toaster_MEL/venv/local/lib/python2.7/site-packages/django/db/models/manager.py",
line 232, in _insert
    return insert_query(self.model, objs, fields, **kwargs)
  File
"/home/sujith/MEL/toaster_MEL/venv/local/lib/python2.7/site-packages/django/db/models/query.py",
line 1511, in insert_query
    return query.get_compiler(using=using).execute_sql(return_id)
  File
"/home/sujith/MEL/toaster_MEL/venv/local/lib/python2.7/site-packages/django/db/models/sql/compiler.py",
line 898, in execute_sql
    cursor.execute(sql, params)
  File
"/home/sujith/MEL/toaster_MEL/venv/local/lib/python2.7/site-packages/django/db/backends/util.py",
line 69, in execute
    return super(CursorDebugWrapper, self).execute(sql, params)
  File
"/home/sujith/MEL/toaster_MEL/venv/local/lib/python2.7/site-packages/django/db/backends/util.py",
line 53, in execute
    return self.cursor.execute(sql, params)
  File
"/home/sujith/MEL/toaster_MEL/venv/local/lib/python2.7/site-packages/django/db/utils.py",
line 99, in __exit__
    six.reraise(dj_exc_type, dj_exc_value, traceback)
  File
"/home/sujith/MEL/toaster_MEL/venv/local/lib/python2.7/site-packages/django/db/backends/util.py",
line 53, in execute
    return self.cursor.execute(sql, params)
  File
"/home/sujith/MEL/toaster_MEL/venv/local/lib/python2.7/site-packages/django/db/backends/sqlite3/base.py",
line 450, in execute
    return Database.Cursor.execute(self, query, params)
django.db.utils.IntegrityError: UNIQUE constraint failed:
orm_layersource.name
(venv)sujith@kdekidd0:~/MEL/toaster_MEL$
----------

>
>
>> Regards,
>> Ed
>>
>>
>> On Fri, Aug 07, 2015 at 02:24:44PM +0530, sujith h wrote:
>> > On Thu, Aug 6, 2015 at 6:11 PM, sujith h <sujith.h@gmail.com> wrote:
>> >
>> > > Hi all,
>> > >
>> > > At Mentor we provide already cloned layers ( like poky, meta-mentor
>> etc ).
>> > > In meta-mentor layer we have a setup-environment script which when
>> run from
>> > > command line along with arguments like machine name ( eg: qemuarm,
>> minnow
>> > > etc ) would create a build folder with local.conf and bblayers.conf.
>> The
>> > > bblayers.conf will include all the layers which are dependent for
>> machine
>> > > to be built. So I was thinking of creating a separate
>> toasterconf.json file
>> > > for meta-mentor so that it will include all the layers which are
>> required
>> > > for us to use toaster.
>> > >
>> > > So my query here is, should I add toasterconf.json file in meta-mentor
>> > > layer so that toaster can pick it up? Or should it be in a different
>> > > location which toaster can read it from there.
>> > >
>> > >
>> > > Let me know if my query needs more inputs.
>> > >
>> >
>> > I figured out a way to use toasterconf.json file which I created in
>> > meta-mentor layer, using command:
>> > ---------
>> > ./poky/bitbake/lib/toaster/manage.py loadconf
>> meta-mentor/toasterconf.json
>> > ---------
>> >
>> >
>> > When I execute the above command below is the error I get:
>> >
>> > --------------
>> > (venv)sujith@kdekidd0:~/MEL/toaster_MEL$
>> > ./poky/bitbake/lib/toaster/manage.py loadconf
>> meta-mentor/toasterconf.json
>> > Traceback (most recent call last):
>> >   File "./poky/bitbake/lib/toaster/manage.py", line 10, in <module>
>> >     execute_from_command_line(sys.argv)
>> >   File
>> >
>> "/home/sujith/MEL/toaster_MEL/venv/local/lib/python2.7/site-packages/django/core/management/__init__.py",
>> > line 399, in execute_from_command_line
>> >     utility.execute()
>> >   File
>> >
>> "/home/sujith/MEL/toaster_MEL/venv/local/lib/python2.7/site-packages/django/core/management/__init__.py",
>> > line 392, in execute
>> >     self.fetch_command(subcommand).run_from_argv(self.argv)
>> >   File
>> >
>> "/home/sujith/MEL/toaster_MEL/venv/local/lib/python2.7/site-packages/django/core/management/base.py",
>> > line 242, in run_from_argv
>> >     self.execute(*args, **options.__dict__)
>> >   File
>> >
>> "/home/sujith/MEL/toaster_MEL/venv/local/lib/python2.7/site-packages/django/core/management/base.py",
>> > line 285, in execute
>> >     output = self.handle(*args, **options)
>> >   File
>> >
>> "/home/sujith/MEL/toaster_MEL/poky/bitbake/lib/toaster/bldcontrol/management/commands/loadconf.py",
>> > line 171, in handle
>> >     self._import_layer_config(filepath)
>> >   File
>> >
>> "/home/sujith/MEL/toaster_MEL/poky/bitbake/lib/toaster/bldcontrol/management/commands/loadconf.py",
>> > line 71, in _import_layer_config
>> >     bvo.giturl = _read_git_url_from_local_repository(bvi['giturl'])
>> >   File
>> >
>> "/home/sujith/MEL/toaster_MEL/poky/bitbake/lib/toaster/bldcontrol/management/commands/loadconf.py",
>> > line 62, in _read_git_url_from_local_repository
>> >     raise Exception("Error while looking for remote \"%s\" in \"%s\"" %
>> > (remote_name, out))
>> > Exception: Error while looking for remote "origin" in "mel    ssh://
>> > git@github.com/MentorEmbedded/meta-mentor.git (fetch)
>> > mel    ssh://git@github.com/MentorEmbedded/meta-mentor.git (push)
>> > "
>> > (venv)sujith@kdekidd0:~/MEL/toaster_MEL$
>> > --------------
>> >
>> > The reason I believe is its checking for origin in the git branch
>> output.
>> > When I execute 'git branch -a' in meta-mentor layer we have, I get:
>> >
>> > ------------
>> > sujith@kdekidd0:~/MEL/toaster_MEL/meta-mentor$ git branch -a
>> > * (no branch)
>> >   remotes/m/master -> mel/master
>> >   remotes/mel/daisy
>> >   remotes/mel/danny
>> >   remotes/mel/dylan
>> >   remotes/mel/fix-parse-cache-issue
>> >   remotes/mel/layerscape
>> >   remotes/mel/master
>> >   remotes/mel/meibp/2013
>> >   remotes/mel/mentor/atp
>> >   remotes/mel/mentor/mel6
>> >   remotes/mel/merge-and-update-master
>> >   remotes/mel/release/2013.11
>> >   remotes/mel/release/2013.11-adit
>> >   remotes/mel/release/2014.05
>> >   remotes/mel/release/2014.05-async1
>> >   remotes/mel/release/2014.05-async1-lite
>> >   remotes/mel/release/2014.05-async2
>> >   remotes/mel/release/2014.05_fastboot_addon
>> >   remotes/mel/release/2014.12
>> >   remotes/mel/release/2014.12-async1
>> >   remotes/mel/release/2014.12-birch
>> >   remotes/mel/revert-471-sysroot-stage-dirs-undefined
>> >   remotes/mel/sb-2727
>> > sujith@kdekidd0:~/MEL/toaster_MEL/meta-mentor$
>> > ------------
>> >
>> > Now this is another twist, which I would have to solve.
>> >
>> >
>> > --
>> > സുജിത് ഹരിദാസന്
>> > Bangalore
>> > <Project>Contributor to KDE project
>> > http://fci.wikia.com/wiki/Anti-DRM-Campaign
>> > <Blog> http://sujithh.info
>>
>> > --
>> > _______________________________________________
>> > toaster mailing list
>> > toaster@yoctoproject.org
>> > https://lists.yoctoproject.org/listinfo/toaster
>>
>>
>> --
>> --
>> Regards,
>> Ed
>>
>
>
>
> --
> സുജിത് ഹരിദാസന്
> Bangalore
> <Project>Contributor to KDE project
> http://fci.wikia.com/wiki/Anti-DRM-Campaign
> <Blog> http://sujithh.info
>



-- 
സുജിത് ഹരിദാസന്
Bangalore
<Project>Contributor to KDE project
http://fci.wikia.com/wiki/Anti-DRM-Campaign
<Blog> http://sujithh.info

[-- Attachment #2: Type: text/html, Size: 14427 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Adding custom toasterconf.json file for Mentor
  2015-08-07 12:19       ` sujith h
@ 2015-08-07 12:37         ` Ed Bartosh
  2015-08-07 12:58           ` sujith h
  0 siblings, 1 reply; 10+ messages in thread
From: Ed Bartosh @ 2015-08-07 12:37 UTC (permalink / raw)
  To: sujith h; +Cc: toaster

On Fri, Aug 07, 2015 at 05:49:45PM +0530, sujith h wrote:
> On Fri, Aug 7, 2015 at 5:31 PM, sujith h <sujith.h@gmail.com> wrote:
> 
> >
> >
> > On Fri, Aug 7, 2015 at 5:11 PM, Ed Bartosh <ed.bartosh@linux.intel.com>
> > wrote:
> >
> >> Hi Sujith,
> >>
> >> It looks like your repository doesn't have 'origin' remote, which
> >> failing code is trying to find in 'git remote -v' output.
> >>
> >> For your repository git remote -v prints the following 2 lines:
> >> mel    ssh://git@github.com/MentorEmbedded/meta-mentor.git (fetch)
> >> mel    ssh://git@github.com/MentorEmbedded/meta-mentor.git (push)
> >>
> >> so, your remote name is 'mel'. My guess is that 'origin' is taken from
> >> your toasterconfig.json. Unfortunately I can't
> >> reproduce this on my machine as I don't have your layers.
> >>
> >> I'd suggest to replace 'origin' with 'mel' in your config and try again.
> >>
> >
> > Sure Ed, I would try to use mel instead of origin and I will update the
> > result. Thanks for the pointer.
> >
> 
> When I change to mel in the config file, the error I get is :
> 

This happened because of this db constraint for SourceLayer model:
unique_together = (('sourcetype', 'apiurl'), )

Looks like you have duplicate apiurls in your config.

Regards,
Ed

> ----------
> (venv)sujith@kdekidd0:~/MEL/toaster_MEL$
> ./poky/bitbake/lib/toaster/manage.py loadconf
> /home/sujith/MEL/toaster_MEL/meta-mentor/toasterconf.json
> Traceback (most recent call last):
>   File "./poky/bitbake/lib/toaster/manage.py", line 10, in <module>
>     execute_from_command_line(sys.argv)
>   File
> "/home/sujith/MEL/toaster_MEL/venv/local/lib/python2.7/site-packages/django/core/management/__init__.py",
> line 399, in execute_from_command_line
>     utility.execute()
>   File
> "/home/sujith/MEL/toaster_MEL/venv/local/lib/python2.7/site-packages/django/core/management/__init__.py",
> line 392, in execute
>     self.fetch_command(subcommand).run_from_argv(self.argv)
>   File
> "/home/sujith/MEL/toaster_MEL/venv/local/lib/python2.7/site-packages/django/core/management/base.py",
> line 242, in run_from_argv
>     self.execute(*args, **options.__dict__)
>   File
> "/home/sujith/MEL/toaster_MEL/venv/local/lib/python2.7/site-packages/django/core/management/base.py",
> line 285, in execute
>     output = self.handle(*args, **options)
>   File
> "/home/sujith/MEL/toaster_MEL/poky/bitbake/lib/toaster/bldcontrol/management/commands/loadconf.py",
> line 171, in handle
>     self._import_layer_config(filepath)
>   File
> "/home/sujith/MEL/toaster_MEL/poky/bitbake/lib/toaster/bldcontrol/management/commands/loadconf.py",
> line 97, in _import_layer_config
>     apiurl = apiurl
>   File
> "/home/sujith/MEL/toaster_MEL/venv/local/lib/python2.7/site-packages/django/db/models/manager.py",
> line 157, in create
>     return self.get_queryset().create(**kwargs)
>   File
> "/home/sujith/MEL/toaster_MEL/venv/local/lib/python2.7/site-packages/django/db/models/query.py",
> line 319, in create
>     obj.save(force_insert=True, using=self.db)
>   File
> "/home/sujith/MEL/toaster_MEL/poky/bitbake/lib/toaster/orm/models.py", line
> 740, in save
>     return super(LayerSource, self).save(*args, **kwargs)
>   File
> "/home/sujith/MEL/toaster_MEL/venv/local/lib/python2.7/site-packages/django/db/models/base.py",
> line 545, in save
>     force_update=force_update, update_fields=update_fields)
>   File
> "/home/sujith/MEL/toaster_MEL/venv/local/lib/python2.7/site-packages/django/db/models/base.py",
> line 573, in save_base
>     updated = self._save_table(raw, cls, force_insert, force_update, using,
> update_fields)
>   File
> "/home/sujith/MEL/toaster_MEL/venv/local/lib/python2.7/site-packages/django/db/models/base.py",
> line 654, in _save_table
>     result = self._do_insert(cls._base_manager, using, fields, update_pk,
> raw)
>   File
> "/home/sujith/MEL/toaster_MEL/venv/local/lib/python2.7/site-packages/django/db/models/base.py",
> line 687, in _do_insert
>     using=using, raw=raw)
>   File
> "/home/sujith/MEL/toaster_MEL/venv/local/lib/python2.7/site-packages/django/db/models/manager.py",
> line 232, in _insert
>     return insert_query(self.model, objs, fields, **kwargs)
>   File
> "/home/sujith/MEL/toaster_MEL/venv/local/lib/python2.7/site-packages/django/db/models/query.py",
> line 1511, in insert_query
>     return query.get_compiler(using=using).execute_sql(return_id)
>   File
> "/home/sujith/MEL/toaster_MEL/venv/local/lib/python2.7/site-packages/django/db/models/sql/compiler.py",
> line 898, in execute_sql
>     cursor.execute(sql, params)
>   File
> "/home/sujith/MEL/toaster_MEL/venv/local/lib/python2.7/site-packages/django/db/backends/util.py",
> line 69, in execute
>     return super(CursorDebugWrapper, self).execute(sql, params)
>   File
> "/home/sujith/MEL/toaster_MEL/venv/local/lib/python2.7/site-packages/django/db/backends/util.py",
> line 53, in execute
>     return self.cursor.execute(sql, params)
>   File
> "/home/sujith/MEL/toaster_MEL/venv/local/lib/python2.7/site-packages/django/db/utils.py",
> line 99, in __exit__
>     six.reraise(dj_exc_type, dj_exc_value, traceback)
>   File
> "/home/sujith/MEL/toaster_MEL/venv/local/lib/python2.7/site-packages/django/db/backends/util.py",
> line 53, in execute
>     return self.cursor.execute(sql, params)
>   File
> "/home/sujith/MEL/toaster_MEL/venv/local/lib/python2.7/site-packages/django/db/backends/sqlite3/base.py",
> line 450, in execute
>     return Database.Cursor.execute(self, query, params)
> django.db.utils.IntegrityError: UNIQUE constraint failed:
> orm_layersource.name
> (venv)sujith@kdekidd0:~/MEL/toaster_MEL$
> ----------
> 
> >
> >
> >> Regards,
> >> Ed
> >>
> >>
> >> On Fri, Aug 07, 2015 at 02:24:44PM +0530, sujith h wrote:
> >> > On Thu, Aug 6, 2015 at 6:11 PM, sujith h <sujith.h@gmail.com> wrote:
> >> >
> >> > > Hi all,
> >> > >
> >> > > At Mentor we provide already cloned layers ( like poky, meta-mentor
> >> etc ).
> >> > > In meta-mentor layer we have a setup-environment script which when
> >> run from
> >> > > command line along with arguments like machine name ( eg: qemuarm,
> >> minnow
> >> > > etc ) would create a build folder with local.conf and bblayers.conf.
> >> The
> >> > > bblayers.conf will include all the layers which are dependent for
> >> machine
> >> > > to be built. So I was thinking of creating a separate
> >> toasterconf.json file
> >> > > for meta-mentor so that it will include all the layers which are
> >> required
> >> > > for us to use toaster.
> >> > >
> >> > > So my query here is, should I add toasterconf.json file in meta-mentor
> >> > > layer so that toaster can pick it up? Or should it be in a different
> >> > > location which toaster can read it from there.
> >> > >
> >> > >
> >> > > Let me know if my query needs more inputs.
> >> > >
> >> >
> >> > I figured out a way to use toasterconf.json file which I created in
> >> > meta-mentor layer, using command:
> >> > ---------
> >> > ./poky/bitbake/lib/toaster/manage.py loadconf
> >> meta-mentor/toasterconf.json
> >> > ---------
> >> >
> >> >
> >> > When I execute the above command below is the error I get:
> >> >
> >> > --------------
> >> > (venv)sujith@kdekidd0:~/MEL/toaster_MEL$
> >> > ./poky/bitbake/lib/toaster/manage.py loadconf
> >> meta-mentor/toasterconf.json
> >> > Traceback (most recent call last):
> >> >   File "./poky/bitbake/lib/toaster/manage.py", line 10, in <module>
> >> >     execute_from_command_line(sys.argv)
> >> >   File
> >> >
> >> "/home/sujith/MEL/toaster_MEL/venv/local/lib/python2.7/site-packages/django/core/management/__init__.py",
> >> > line 399, in execute_from_command_line
> >> >     utility.execute()
> >> >   File
> >> >
> >> "/home/sujith/MEL/toaster_MEL/venv/local/lib/python2.7/site-packages/django/core/management/__init__.py",
> >> > line 392, in execute
> >> >     self.fetch_command(subcommand).run_from_argv(self.argv)
> >> >   File
> >> >
> >> "/home/sujith/MEL/toaster_MEL/venv/local/lib/python2.7/site-packages/django/core/management/base.py",
> >> > line 242, in run_from_argv
> >> >     self.execute(*args, **options.__dict__)
> >> >   File
> >> >
> >> "/home/sujith/MEL/toaster_MEL/venv/local/lib/python2.7/site-packages/django/core/management/base.py",
> >> > line 285, in execute
> >> >     output = self.handle(*args, **options)
> >> >   File
> >> >
> >> "/home/sujith/MEL/toaster_MEL/poky/bitbake/lib/toaster/bldcontrol/management/commands/loadconf.py",
> >> > line 171, in handle
> >> >     self._import_layer_config(filepath)
> >> >   File
> >> >
> >> "/home/sujith/MEL/toaster_MEL/poky/bitbake/lib/toaster/bldcontrol/management/commands/loadconf.py",
> >> > line 71, in _import_layer_config
> >> >     bvo.giturl = _read_git_url_from_local_repository(bvi['giturl'])
> >> >   File
> >> >
> >> "/home/sujith/MEL/toaster_MEL/poky/bitbake/lib/toaster/bldcontrol/management/commands/loadconf.py",
> >> > line 62, in _read_git_url_from_local_repository
> >> >     raise Exception("Error while looking for remote \"%s\" in \"%s\"" %
> >> > (remote_name, out))
> >> > Exception: Error while looking for remote "origin" in "mel    ssh://
> >> > git@github.com/MentorEmbedded/meta-mentor.git (fetch)
> >> > mel    ssh://git@github.com/MentorEmbedded/meta-mentor.git (push)
> >> > "
> >> > (venv)sujith@kdekidd0:~/MEL/toaster_MEL$
> >> > --------------
> >> >
> >> > The reason I believe is its checking for origin in the git branch
> >> output.
> >> > When I execute 'git branch -a' in meta-mentor layer we have, I get:
> >> >
> >> > ------------
> >> > sujith@kdekidd0:~/MEL/toaster_MEL/meta-mentor$ git branch -a
> >> > * (no branch)
> >> >   remotes/m/master -> mel/master
> >> >   remotes/mel/daisy
> >> >   remotes/mel/danny
> >> >   remotes/mel/dylan
> >> >   remotes/mel/fix-parse-cache-issue
> >> >   remotes/mel/layerscape
> >> >   remotes/mel/master
> >> >   remotes/mel/meibp/2013
> >> >   remotes/mel/mentor/atp
> >> >   remotes/mel/mentor/mel6
> >> >   remotes/mel/merge-and-update-master
> >> >   remotes/mel/release/2013.11
> >> >   remotes/mel/release/2013.11-adit
> >> >   remotes/mel/release/2014.05
> >> >   remotes/mel/release/2014.05-async1
> >> >   remotes/mel/release/2014.05-async1-lite
> >> >   remotes/mel/release/2014.05-async2
> >> >   remotes/mel/release/2014.05_fastboot_addon
> >> >   remotes/mel/release/2014.12
> >> >   remotes/mel/release/2014.12-async1
> >> >   remotes/mel/release/2014.12-birch
> >> >   remotes/mel/revert-471-sysroot-stage-dirs-undefined
> >> >   remotes/mel/sb-2727
> >> > sujith@kdekidd0:~/MEL/toaster_MEL/meta-mentor$
> >> > ------------
> >> >
> >> > Now this is another twist, which I would have to solve.
> >> >
> >> >
> >> > --
> >> > സുജിത് ഹരിദാസന്
> >> > Bangalore
> >> > <Project>Contributor to KDE project
> >> > http://fci.wikia.com/wiki/Anti-DRM-Campaign
> >> > <Blog> http://sujithh.info
> >>
> >> > --
> >> > _______________________________________________
> >> > toaster mailing list
> >> > toaster@yoctoproject.org
> >> > https://lists.yoctoproject.org/listinfo/toaster
> >>
> >>
> >> --
> >> --
> >> Regards,
> >> Ed
> >>
> >
> >
> >
> > --
> > സുജിത് ഹരിദാസന്
> > Bangalore
> > <Project>Contributor to KDE project
> > http://fci.wikia.com/wiki/Anti-DRM-Campaign
> > <Blog> http://sujithh.info
> >
> 
> 
> 
> -- 
> സുജിത് ഹരിദാസന്
> Bangalore
> <Project>Contributor to KDE project
> http://fci.wikia.com/wiki/Anti-DRM-Campaign
> <Blog> http://sujithh.info

-- 
--
Regards,
Ed


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Adding custom toasterconf.json file for Mentor
  2015-08-07 12:37         ` Ed Bartosh
@ 2015-08-07 12:58           ` sujith h
  2015-08-10  9:25             ` sujith h
  0 siblings, 1 reply; 10+ messages in thread
From: sujith h @ 2015-08-07 12:58 UTC (permalink / raw)
  To: ed.bartosh; +Cc: toaster


[-- Attachment #1.1: Type: text/plain, Size: 13071 bytes --]

On Fri, Aug 7, 2015 at 6:07 PM, Ed Bartosh <ed.bartosh@linux.intel.com>
wrote:

> On Fri, Aug 07, 2015 at 05:49:45PM +0530, sujith h wrote:
> > On Fri, Aug 7, 2015 at 5:31 PM, sujith h <sujith.h@gmail.com> wrote:
> >
> > >
> > >
> > > On Fri, Aug 7, 2015 at 5:11 PM, Ed Bartosh <ed.bartosh@linux.intel.com
> >
> > > wrote:
> > >
> > >> Hi Sujith,
> > >>
> > >> It looks like your repository doesn't have 'origin' remote, which
> > >> failing code is trying to find in 'git remote -v' output.
> > >>
> > >> For your repository git remote -v prints the following 2 lines:
> > >> mel    ssh://git@github.com/MentorEmbedded/meta-mentor.git (fetch)
> > >> mel    ssh://git@github.com/MentorEmbedded/meta-mentor.git (push)
> > >>
> > >> so, your remote name is 'mel'. My guess is that 'origin' is taken from
> > >> your toasterconfig.json. Unfortunately I can't
> > >> reproduce this on my machine as I don't have your layers.
> > >>
> > >> I'd suggest to replace 'origin' with 'mel' in your config and try
> again.
> > >>
> > >
> > > Sure Ed, I would try to use mel instead of origin and I will update the
> > > result. Thanks for the pointer.
> > >
> >
> > When I change to mel in the config file, the error I get is :
> >
>
> This happened because of this db constraint for SourceLayer model:
> unique_together = (('sourcetype', 'apiurl'), )
>
> Looks like you have duplicate apiurls in your config.
>

Yah you are right. So I cleaned up sqlite db. And restarted toaster,
without importing toaster's default config. And then tried with my changes
and its nice to see, changes getting included. I have attached the
screenshot. Thanks Ed for the valuable support.



>
> Regards,
> Ed
>
> > ----------
> > (venv)sujith@kdekidd0:~/MEL/toaster_MEL$
> > ./poky/bitbake/lib/toaster/manage.py loadconf
> > /home/sujith/MEL/toaster_MEL/meta-mentor/toasterconf.json
> > Traceback (most recent call last):
> >   File "./poky/bitbake/lib/toaster/manage.py", line 10, in <module>
> >     execute_from_command_line(sys.argv)
> >   File
> >
> "/home/sujith/MEL/toaster_MEL/venv/local/lib/python2.7/site-packages/django/core/management/__init__.py",
> > line 399, in execute_from_command_line
> >     utility.execute()
> >   File
> >
> "/home/sujith/MEL/toaster_MEL/venv/local/lib/python2.7/site-packages/django/core/management/__init__.py",
> > line 392, in execute
> >     self.fetch_command(subcommand).run_from_argv(self.argv)
> >   File
> >
> "/home/sujith/MEL/toaster_MEL/venv/local/lib/python2.7/site-packages/django/core/management/base.py",
> > line 242, in run_from_argv
> >     self.execute(*args, **options.__dict__)
> >   File
> >
> "/home/sujith/MEL/toaster_MEL/venv/local/lib/python2.7/site-packages/django/core/management/base.py",
> > line 285, in execute
> >     output = self.handle(*args, **options)
> >   File
> >
> "/home/sujith/MEL/toaster_MEL/poky/bitbake/lib/toaster/bldcontrol/management/commands/loadconf.py",
> > line 171, in handle
> >     self._import_layer_config(filepath)
> >   File
> >
> "/home/sujith/MEL/toaster_MEL/poky/bitbake/lib/toaster/bldcontrol/management/commands/loadconf.py",
> > line 97, in _import_layer_config
> >     apiurl = apiurl
> >   File
> >
> "/home/sujith/MEL/toaster_MEL/venv/local/lib/python2.7/site-packages/django/db/models/manager.py",
> > line 157, in create
> >     return self.get_queryset().create(**kwargs)
> >   File
> >
> "/home/sujith/MEL/toaster_MEL/venv/local/lib/python2.7/site-packages/django/db/models/query.py",
> > line 319, in create
> >     obj.save(force_insert=True, using=self.db)
> >   File
> > "/home/sujith/MEL/toaster_MEL/poky/bitbake/lib/toaster/orm/models.py",
> line
> > 740, in save
> >     return super(LayerSource, self).save(*args, **kwargs)
> >   File
> >
> "/home/sujith/MEL/toaster_MEL/venv/local/lib/python2.7/site-packages/django/db/models/base.py",
> > line 545, in save
> >     force_update=force_update, update_fields=update_fields)
> >   File
> >
> "/home/sujith/MEL/toaster_MEL/venv/local/lib/python2.7/site-packages/django/db/models/base.py",
> > line 573, in save_base
> >     updated = self._save_table(raw, cls, force_insert, force_update,
> using,
> > update_fields)
> >   File
> >
> "/home/sujith/MEL/toaster_MEL/venv/local/lib/python2.7/site-packages/django/db/models/base.py",
> > line 654, in _save_table
> >     result = self._do_insert(cls._base_manager, using, fields, update_pk,
> > raw)
> >   File
> >
> "/home/sujith/MEL/toaster_MEL/venv/local/lib/python2.7/site-packages/django/db/models/base.py",
> > line 687, in _do_insert
> >     using=using, raw=raw)
> >   File
> >
> "/home/sujith/MEL/toaster_MEL/venv/local/lib/python2.7/site-packages/django/db/models/manager.py",
> > line 232, in _insert
> >     return insert_query(self.model, objs, fields, **kwargs)
> >   File
> >
> "/home/sujith/MEL/toaster_MEL/venv/local/lib/python2.7/site-packages/django/db/models/query.py",
> > line 1511, in insert_query
> >     return query.get_compiler(using=using).execute_sql(return_id)
> >   File
> >
> "/home/sujith/MEL/toaster_MEL/venv/local/lib/python2.7/site-packages/django/db/models/sql/compiler.py",
> > line 898, in execute_sql
> >     cursor.execute(sql, params)
> >   File
> >
> "/home/sujith/MEL/toaster_MEL/venv/local/lib/python2.7/site-packages/django/db/backends/util.py",
> > line 69, in execute
> >     return super(CursorDebugWrapper, self).execute(sql, params)
> >   File
> >
> "/home/sujith/MEL/toaster_MEL/venv/local/lib/python2.7/site-packages/django/db/backends/util.py",
> > line 53, in execute
> >     return self.cursor.execute(sql, params)
> >   File
> >
> "/home/sujith/MEL/toaster_MEL/venv/local/lib/python2.7/site-packages/django/db/utils.py",
> > line 99, in __exit__
> >     six.reraise(dj_exc_type, dj_exc_value, traceback)
> >   File
> >
> "/home/sujith/MEL/toaster_MEL/venv/local/lib/python2.7/site-packages/django/db/backends/util.py",
> > line 53, in execute
> >     return self.cursor.execute(sql, params)
> >   File
> >
> "/home/sujith/MEL/toaster_MEL/venv/local/lib/python2.7/site-packages/django/db/backends/sqlite3/base.py",
> > line 450, in execute
> >     return Database.Cursor.execute(self, query, params)
> > django.db.utils.IntegrityError: UNIQUE constraint failed:
> > orm_layersource.name
> > (venv)sujith@kdekidd0:~/MEL/toaster_MEL$
> > ----------
> >
> > >
> > >
> > >> Regards,
> > >> Ed
> > >>
> > >>
> > >> On Fri, Aug 07, 2015 at 02:24:44PM +0530, sujith h wrote:
> > >> > On Thu, Aug 6, 2015 at 6:11 PM, sujith h <sujith.h@gmail.com>
> wrote:
> > >> >
> > >> > > Hi all,
> > >> > >
> > >> > > At Mentor we provide already cloned layers ( like poky,
> meta-mentor
> > >> etc ).
> > >> > > In meta-mentor layer we have a setup-environment script which when
> > >> run from
> > >> > > command line along with arguments like machine name ( eg: qemuarm,
> > >> minnow
> > >> > > etc ) would create a build folder with local.conf and
> bblayers.conf.
> > >> The
> > >> > > bblayers.conf will include all the layers which are dependent for
> > >> machine
> > >> > > to be built. So I was thinking of creating a separate
> > >> toasterconf.json file
> > >> > > for meta-mentor so that it will include all the layers which are
> > >> required
> > >> > > for us to use toaster.
> > >> > >
> > >> > > So my query here is, should I add toasterconf.json file in
> meta-mentor
> > >> > > layer so that toaster can pick it up? Or should it be in a
> different
> > >> > > location which toaster can read it from there.
> > >> > >
> > >> > >
> > >> > > Let me know if my query needs more inputs.
> > >> > >
> > >> >
> > >> > I figured out a way to use toasterconf.json file which I created in
> > >> > meta-mentor layer, using command:
> > >> > ---------
> > >> > ./poky/bitbake/lib/toaster/manage.py loadconf
> > >> meta-mentor/toasterconf.json
> > >> > ---------
> > >> >
> > >> >
> > >> > When I execute the above command below is the error I get:
> > >> >
> > >> > --------------
> > >> > (venv)sujith@kdekidd0:~/MEL/toaster_MEL$
> > >> > ./poky/bitbake/lib/toaster/manage.py loadconf
> > >> meta-mentor/toasterconf.json
> > >> > Traceback (most recent call last):
> > >> >   File "./poky/bitbake/lib/toaster/manage.py", line 10, in <module>
> > >> >     execute_from_command_line(sys.argv)
> > >> >   File
> > >> >
> > >>
> "/home/sujith/MEL/toaster_MEL/venv/local/lib/python2.7/site-packages/django/core/management/__init__.py",
> > >> > line 399, in execute_from_command_line
> > >> >     utility.execute()
> > >> >   File
> > >> >
> > >>
> "/home/sujith/MEL/toaster_MEL/venv/local/lib/python2.7/site-packages/django/core/management/__init__.py",
> > >> > line 392, in execute
> > >> >     self.fetch_command(subcommand).run_from_argv(self.argv)
> > >> >   File
> > >> >
> > >>
> "/home/sujith/MEL/toaster_MEL/venv/local/lib/python2.7/site-packages/django/core/management/base.py",
> > >> > line 242, in run_from_argv
> > >> >     self.execute(*args, **options.__dict__)
> > >> >   File
> > >> >
> > >>
> "/home/sujith/MEL/toaster_MEL/venv/local/lib/python2.7/site-packages/django/core/management/base.py",
> > >> > line 285, in execute
> > >> >     output = self.handle(*args, **options)
> > >> >   File
> > >> >
> > >>
> "/home/sujith/MEL/toaster_MEL/poky/bitbake/lib/toaster/bldcontrol/management/commands/loadconf.py",
> > >> > line 171, in handle
> > >> >     self._import_layer_config(filepath)
> > >> >   File
> > >> >
> > >>
> "/home/sujith/MEL/toaster_MEL/poky/bitbake/lib/toaster/bldcontrol/management/commands/loadconf.py",
> > >> > line 71, in _import_layer_config
> > >> >     bvo.giturl = _read_git_url_from_local_repository(bvi['giturl'])
> > >> >   File
> > >> >
> > >>
> "/home/sujith/MEL/toaster_MEL/poky/bitbake/lib/toaster/bldcontrol/management/commands/loadconf.py",
> > >> > line 62, in _read_git_url_from_local_repository
> > >> >     raise Exception("Error while looking for remote \"%s\" in
> \"%s\"" %
> > >> > (remote_name, out))
> > >> > Exception: Error while looking for remote "origin" in "mel    ssh://
> > >> > git@github.com/MentorEmbedded/meta-mentor.git (fetch)
> > >> > mel    ssh://git@github.com/MentorEmbedded/meta-mentor.git (push)
> > >> > "
> > >> > (venv)sujith@kdekidd0:~/MEL/toaster_MEL$
> > >> > --------------
> > >> >
> > >> > The reason I believe is its checking for origin in the git branch
> > >> output.
> > >> > When I execute 'git branch -a' in meta-mentor layer we have, I get:
> > >> >
> > >> > ------------
> > >> > sujith@kdekidd0:~/MEL/toaster_MEL/meta-mentor$ git branch -a
> > >> > * (no branch)
> > >> >   remotes/m/master -> mel/master
> > >> >   remotes/mel/daisy
> > >> >   remotes/mel/danny
> > >> >   remotes/mel/dylan
> > >> >   remotes/mel/fix-parse-cache-issue
> > >> >   remotes/mel/layerscape
> > >> >   remotes/mel/master
> > >> >   remotes/mel/meibp/2013
> > >> >   remotes/mel/mentor/atp
> > >> >   remotes/mel/mentor/mel6
> > >> >   remotes/mel/merge-and-update-master
> > >> >   remotes/mel/release/2013.11
> > >> >   remotes/mel/release/2013.11-adit
> > >> >   remotes/mel/release/2014.05
> > >> >   remotes/mel/release/2014.05-async1
> > >> >   remotes/mel/release/2014.05-async1-lite
> > >> >   remotes/mel/release/2014.05-async2
> > >> >   remotes/mel/release/2014.05_fastboot_addon
> > >> >   remotes/mel/release/2014.12
> > >> >   remotes/mel/release/2014.12-async1
> > >> >   remotes/mel/release/2014.12-birch
> > >> >   remotes/mel/revert-471-sysroot-stage-dirs-undefined
> > >> >   remotes/mel/sb-2727
> > >> > sujith@kdekidd0:~/MEL/toaster_MEL/meta-mentor$
> > >> > ------------
> > >> >
> > >> > Now this is another twist, which I would have to solve.
> > >> >
> > >> >
> > >> > --
> > >> > സുജിത് ഹരിദാസന്
> > >> > Bangalore
> > >> > <Project>Contributor to KDE project
> > >> > http://fci.wikia.com/wiki/Anti-DRM-Campaign
> > >> > <Blog> http://sujithh.info
> > >>
> > >> > --
> > >> > _______________________________________________
> > >> > toaster mailing list
> > >> > toaster@yoctoproject.org
> > >> > https://lists.yoctoproject.org/listinfo/toaster
> > >>
> > >>
> > >> --
> > >> --
> > >> Regards,
> > >> Ed
> > >>
> > >
> > >
> > >
> > > --
> > > സുജിത് ഹരിദാസന്
> > > Bangalore
> > > <Project>Contributor to KDE project
> > > http://fci.wikia.com/wiki/Anti-DRM-Campaign
> > > <Blog> http://sujithh.info
> > >
> >
> >
> >
> > --
> > സുജിത് ഹരിദാസന്
> > Bangalore
> > <Project>Contributor to KDE project
> > http://fci.wikia.com/wiki/Anti-DRM-Campaign
> > <Blog> http://sujithh.info
>
> --
> --
> Regards,
> Ed
>



-- 
സുജിത് ഹരിദാസന്
Bangalore
<Project>Contributor to KDE project
http://fci.wikia.com/wiki/Anti-DRM-Campaign
<Blog> http://sujithh.info

[-- Attachment #1.2: Type: text/html, Size: 18630 bytes --]

[-- Attachment #2: toaster_Mentor.png --]
[-- Type: image/png, Size: 182693 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Adding custom toasterconf.json file for Mentor
  2015-08-07 12:58           ` sujith h
@ 2015-08-10  9:25             ` sujith h
  2015-08-10  9:56               ` sujith h
  0 siblings, 1 reply; 10+ messages in thread
From: sujith h @ 2015-08-10  9:25 UTC (permalink / raw)
  To: ed.bartosh; +Cc: toaster


[-- Attachment #1.1: Type: text/plain, Size: 27975 bytes --]

Hi Ed,

I have one more query. The toasterconf.json with which I got the view
populated with the layers is attached with the
mail(toasterconf.json_WorkingUI). I haven't provided vcs_url in that file
correctly. Hence I got error when I tried to build an image:
--------------------
2015-08-10 14:42:52,389 DEBUG localhostbecontroller, our git repos are
{(u'/home/sujith/MEL/toaster_MEL/meta-fsl-arm', u'HEAD'): [(u'meta-fsl-arm',

u'meta-fsl-arm')],
 (u'/home/sujith/MEL/toaster_MEL/meta-mentor', u'HEAD'): [(u'meta-mel',
                                                           u'meta-mel'),

(u'meta-mel-support',

u'meta-mel-support')],
 (u'/home/sujith/MEL/toaster_MEL/meta-mentor-private', u'HEAD'):
[(u'meta-mentor-private',

u'meta-mentor-private')],
 (u'/home/sujith/MEL/toaster_MEL/meta-mentor-staging', u'HEAD'):
[(u'meta-mentor-staging',

u'meta-mentor-staging')],
 (u'/home/sujith/MEL/toaster_MEL/meta-mx6q', u'HEAD'): [(u'meta-mx6q',
                                                         u'meta-mx6q')],
 (u'/home/sujith/MEL/toaster_MEL/meta-oe', u'HEAD'): [(u'meta-python',
                                                       u'meta-python'),
                                                      (u'meta-multimedia',
                                                       u'meta-multimedia'),
                                                      (u'meta-filesystems',
                                                       u'meta-filesystems'),
                                                      (u'meta-networking',
                                                       u'meta-networking'),
                                                      (u'meta-oe',
                                                       u'meta-oe')],
 (u'/home/sujith/MEL/toaster_MEL/meta-sourcery', u'HEAD'):
[(u'meta-sourcery',

u'meta-sourcery')],
 (u'/home/sujith/MEL/toaster_MEL/meta-tracing', u'HEAD'): [(u'meta-tracing',

u'meta-tracing')],
 (u'/home/sujith/MEL/toaster_MEL/poky', u'HEAD'): [(u'openembedded-core',
                                                    u'meta'),
                                                   (u'meta-yocto',
                                                    u'meta-yocto'),
                                                   (u'meta-yocto-bsp',
                                                    u'meta-yocto-bsp')],
 (u'ssh://git@github.com/MentorEmbedded/meta-mentor.git', u'HEAD'):
[('bitbake',

u'bitbake')]}
2015-08-10 14:42:52,390 DEBUG lbc_shellcmmd:
(/home/sujith/MEL/toaster_MEL/venv) git remote -v
2015-08-10 14:42:52,393 WARNING localhostbecontroller: shellcmd error
command: git remote -v
fatal: Not a git repository (or any of the parent directories): .git

2015-08-10 14:42:52,394 DEBUG lbc_shellcmmd:
(/home/sujith/MEL/toaster_MEL/meta-mentor-industrial) git remote -v
2015-08-10 14:42:52,440 DEBUG localhostbecontroller: shellcmd success
2015-08-10 14:42:52,440 DEBUG lbc_shellcmmd:
(/home/sujith/MEL/toaster_MEL/meta-omap5-evm) git remote -v
2015-08-10 14:42:52,481 DEBUG localhostbecontroller: shellcmd success
2015-08-10 14:42:52,481 DEBUG lbc_shellcmmd:
(/home/sujith/MEL/toaster_MEL/.repo) git remote -v
2015-08-10 14:42:52,485 WARNING localhostbecontroller: shellcmd error
command: git remote -v
fatal: Not a git repository (or any of the parent directories): .git

2015-08-10 14:42:52,486 DEBUG lbc_shellcmmd:
(/home/sujith/MEL/toaster_MEL/manufacturing) git remote -v
2015-08-10 14:42:52,535 DEBUG localhostbecontroller: shellcmd success
2015-08-10 14:42:52,535 DEBUG lbc_shellcmmd:
(/home/sujith/MEL/toaster_MEL/meta-arago-glsdk) git remote -v
2015-08-10 14:42:52,577 DEBUG localhostbecontroller: shellcmd success
2015-08-10 14:42:52,577 DEBUG lbc_shellcmmd:
(/home/sujith/MEL/toaster_MEL/meta-mentor-amsdk) git remote -v
2015-08-10 14:42:52,609 DEBUG localhostbecontroller: shellcmd success
2015-08-10 14:42:52,609 DEBUG lbc_shellcmmd:
(/home/sujith/MEL/toaster_MEL/poky) git remote -v
2015-08-10 14:42:52,613 DEBUG localhostbecontroller: shellcmd success
2015-08-10 14:42:52,614 DEBUG lbc_shellcmmd:
(/home/sujith/MEL/toaster_MEL/meta-selinux) git remote -v
2015-08-10 14:42:52,636 DEBUG localhostbecontroller: shellcmd success
2015-08-10 14:42:52,636 DEBUG lbc_shellcmmd:
(/home/sujith/MEL/toaster_MEL/meta-virtualization) git remote -v
2015-08-10 14:42:52,690 DEBUG localhostbecontroller: shellcmd success
2015-08-10 14:42:52,690 DEBUG lbc_shellcmmd:
(/home/sujith/MEL/toaster_MEL/meta-mentor-mx6q-memf) git remote -v
2015-08-10 14:42:52,754 DEBUG localhostbecontroller: shellcmd success
2015-08-10 14:42:52,754 DEBUG lbc_shellcmmd:
(/home/sujith/MEL/toaster_MEL/meta-mentor-glsdk) git remote -v
2015-08-10 14:42:52,774 DEBUG localhostbecontroller: shellcmd success
2015-08-10 14:42:52,774 DEBUG lbc_shellcmmd:
(/home/sujith/MEL/toaster_MEL/toaster_build_artifacts) git remote -v
2015-08-10 14:42:52,779 WARNING localhostbecontroller: shellcmd error
command: git remote -v
fatal: Not a git repository (or any of the parent directories): .git

2015-08-10 14:42:52,779 DEBUG lbc_shellcmmd:
(/home/sujith/MEL/toaster_MEL/meta-fastboot) git remote -v
2015-08-10 14:42:52,808 DEBUG localhostbecontroller: shellcmd success
2015-08-10 14:42:52,808 DEBUG lbc_shellcmmd:
(/home/sujith/MEL/toaster_MEL/meta-tracing) git remote -v
2015-08-10 14:42:52,845 DEBUG localhostbecontroller: shellcmd success
2015-08-10 14:42:52,845 DEBUG lbc_shellcmmd:
(/home/sujith/MEL/toaster_MEL/scripts) git remote -v
2015-08-10 14:42:52,876 DEBUG localhostbecontroller: shellcmd success
2015-08-10 14:42:52,877 DEBUG lbc_shellcmmd:
(/home/sujith/MEL/toaster_MEL/meta-mentor-private) git remote -v
2015-08-10 14:42:52,893 DEBUG localhostbecontroller: shellcmd success
2015-08-10 14:42:52,893 DEBUG lbc_shellcmmd:
(/home/sujith/MEL/toaster_MEL/meta-mentor-xilinx) git remote -v
2015-08-10 14:42:52,915 DEBUG localhostbecontroller: shellcmd success
2015-08-10 14:42:52,915 DEBUG lbc_shellcmmd:
(/home/sujith/MEL/toaster_MEL/meta-mentor-security) git remote -v
2015-08-10 14:42:52,943 DEBUG localhostbecontroller: shellcmd success
2015-08-10 14:42:52,944 DEBUG lbc_shellcmmd:
(/home/sujith/MEL/toaster_MEL/meta-dra7xx-evm) git remote -v
2015-08-10 14:42:52,976 DEBUG localhostbecontroller: shellcmd success
2015-08-10 14:42:52,976 DEBUG lbc_shellcmmd:
(/home/sujith/MEL/toaster_MEL/meta-fsl-ppc) git remote -v
2015-08-10 14:42:52,998 DEBUG localhostbecontroller: shellcmd success
2015-08-10 14:42:52,999 DEBUG lbc_shellcmmd:
(/home/sujith/MEL/toaster_MEL/meta-qt5-mel) git remote -v
2015-08-10 14:42:53,016 DEBUG localhostbecontroller: shellcmd success
2015-08-10 14:42:53,016 DEBUG lbc_shellcmmd:
(/home/sujith/MEL/toaster_MEL/meta-intel) git remote -v
2015-08-10 14:42:53,028 DEBUG localhostbecontroller: shellcmd success
2015-08-10 14:42:53,028 DEBUG lbc_shellcmmd:
(/home/sujith/MEL/toaster_MEL/meta-erlang) git remote -v
2015-08-10 14:42:53,057 DEBUG localhostbecontroller: shellcmd success
2015-08-10 14:42:53,057 DEBUG lbc_shellcmmd:
(/home/sujith/MEL/toaster_MEL/meta-qt5) git remote -v
2015-08-10 14:42:53,092 DEBUG localhostbecontroller: shellcmd success
2015-08-10 14:42:53,092 DEBUG lbc_shellcmmd:
(/home/sujith/MEL/toaster_MEL/meta-fsl-arm) git remote -v
2015-08-10 14:42:53,123 DEBUG localhostbecontroller: shellcmd success
2015-08-10 14:42:53,123 DEBUG lbc_shellcmmd:
(/home/sujith/MEL/toaster_MEL/meta-mentor-mx6solox-memf) git remote -v
2015-08-10 14:42:53,147 DEBUG localhostbecontroller: shellcmd success
2015-08-10 14:42:53,147 DEBUG lbc_shellcmmd:
(/home/sujith/MEL/toaster_MEL/meta-oe) git remote -v
2015-08-10 14:42:53,162 DEBUG localhostbecontroller: shellcmd success
2015-08-10 14:42:53,162 DEBUG lbc_shellcmmd:
(/home/sujith/MEL/toaster_MEL/meta-minnow) git remote -v
2015-08-10 14:42:53,185 DEBUG localhostbecontroller: shellcmd success
2015-08-10 14:42:53,185 DEBUG lbc_shellcmmd:
(/home/sujith/MEL/toaster_MEL/meta-mentor-xilinx-memf) git remote -v
2015-08-10 14:42:53,213 DEBUG localhostbecontroller: shellcmd success
2015-08-10 14:42:53,214 DEBUG lbc_shellcmmd:
(/home/sujith/MEL/toaster_MEL/meta-sourcery) git remote -v
2015-08-10 14:42:53,246 DEBUG localhostbecontroller: shellcmd success
2015-08-10 14:42:53,246 DEBUG lbc_shellcmmd:
(/home/sujith/MEL/toaster_MEL/meta-ti-glsdk) git remote -v
2015-08-10 14:42:53,275 DEBUG localhostbecontroller: shellcmd success
2015-08-10 14:42:53,275 DEBUG lbc_shellcmmd:
(/home/sujith/MEL/toaster_MEL/meta-mentor-iot) git remote -v
2015-08-10 14:42:53,291 DEBUG localhostbecontroller: shellcmd success
2015-08-10 14:42:53,291 DEBUG lbc_shellcmmd:
(/home/sujith/MEL/toaster_MEL/meta-mentor-softing-opcua) git remote -v
2015-08-10 14:42:53,303 DEBUG localhostbecontroller: shellcmd success
2015-08-10 14:42:53,303 DEBUG lbc_shellcmmd:
(/home/sujith/MEL/toaster_MEL/meta-xilinx) git remote -v
2015-08-10 14:42:53,316 DEBUG localhostbecontroller: shellcmd success
2015-08-10 14:42:53,317 DEBUG lbc_shellcmmd:
(/home/sujith/MEL/toaster_MEL/meta-ti) git remote -v
2015-08-10 14:42:53,335 DEBUG localhostbecontroller: shellcmd success
2015-08-10 14:42:53,335 DEBUG lbc_shellcmmd:
(/home/sujith/MEL/toaster_MEL/meta-fsl-networking) git remote -v
2015-08-10 14:42:53,355 DEBUG localhostbecontroller: shellcmd success
2015-08-10 14:42:53,355 DEBUG lbc_shellcmmd:
(/home/sujith/MEL/toaster_MEL/poky_upstream) git remote -v
2015-08-10 14:42:53,398 DEBUG localhostbecontroller: shellcmd success
2015-08-10 14:42:53,398 DEBUG lbc_shellcmmd:
(/home/sujith/MEL/toaster_MEL/meta-mentor-softing-ethernetip) git remote -v
2015-08-10 14:42:53,427 DEBUG localhostbecontroller: shellcmd success
2015-08-10 14:42:53,427 DEBUG lbc_shellcmmd:
(/home/sujith/MEL/toaster_MEL/meta-mx6solox) git remote -v
2015-08-10 14:42:53,444 DEBUG localhostbecontroller: shellcmd success
2015-08-10 14:42:53,445 DEBUG lbc_shellcmmd:
(/home/sujith/MEL/toaster_MEL/poky_mel) git remote -v
2015-08-10 14:42:53,459 DEBUG localhostbecontroller: shellcmd success
2015-08-10 14:42:53,459 DEBUG lbc_shellcmmd:
(/home/sujith/MEL/toaster_MEL/meta-mentor) git remote -v
2015-08-10 14:42:53,463 DEBUG localhostbecontroller: shellcmd success
2015-08-10 14:42:53,464 DEBUG lbc_shellcmmd:
(/home/sujith/MEL/toaster_MEL/meta-mx6q) git remote -v
2015-08-10 14:42:53,510 DEBUG localhostbecontroller: shellcmd success
2015-08-10 14:42:53,510 DEBUG lbc_shellcmmd:
(/home/sujith/MEL/toaster_MEL/docs) git remote -v
2015-08-10 14:42:53,546 DEBUG localhostbecontroller: shellcmd success
2015-08-10 14:42:53,547 DEBUG localhostbecontroller: giturl
/home/sujith/MEL/toaster_MEL/meta-mx6q:HEAD checking out in current
directory /home/sujith/MEL/toaster_MEL/poky
2015-08-10 14:42:53,547 DEBUG lbc_shellcmmd:
(/home/sujith/MEL/toaster_MEL/poky) git remote -v
2015-08-10 14:42:53,551 DEBUG localhostbecontroller: shellcmd success
Traceback (most recent call last):
  File
"/home/sujith/MEL/toaster_MEL/poky/bitbake/lib/toaster/bldcontrol/management/commands/runbuilds.py",
line 59, in schedule
    bec.triggerBuild(br.brbitbake_set.all(), br.brlayer_set.all(),
br.brvariable_set.all(), br.brtarget_set.all())
  File
"/home/sujith/MEL/toaster_MEL/poky/bitbake/lib/toaster/bldcontrol/localhostbecontroller.py",
line 319, in triggerBuild
    self.setLayers(bitbake, layers)
  File
"/home/sujith/MEL/toaster_MEL/poky/bitbake/lib/toaster/bldcontrol/localhostbecontroller.py",
line 255, in setLayers
    raise BuildSetupException("Existing git repository at %s, but with
different remotes ('%s', expected '%s'). Toaster will not continue out of
fear of damaging something." % (localdirname, ",
".join(localremotes.split("\n")), giturl))
BuildSetupException: Existing git repository at
/home/sujith/MEL/toaster_MEL/poky, but with different remotes ('yocto
git://git.yoctoproject.org/poky.git (fetch), yocto    git://
git.yoctoproject.org/poky.git (push), ', expected
'/home/sujith/MEL/toaster_MEL/meta-mx6q'). Toaster will not continue out of
fear of damaging something.
--------------------

After this I modified the config file which is also attached in the mail,
where I have modified vcs_url field as remote:yocto or remote:mel. I have
added it by verifying the output of git remote -v. Now the command :
./poky/bitbake/lib/toaster/manage.py loadconf meta-mentor/toasterconf.json
fails,

-----------------------------
Traceback (most recent call last):
  File "./poky/bitbake/lib/toaster/manage.py", line 10, in <module>
    execute_from_command_line(sys.argv)
  File
"/home/sujith/MEL/toaster_MEL/venv/local/lib/python2.7/site-packages/django/core/management/__init__.py",
line 399, in execute_from_command_line
    utility.execute()
  File
"/home/sujith/MEL/toaster_MEL/venv/local/lib/python2.7/site-packages/django/core/management/__init__.py",
line 392, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File
"/home/sujith/MEL/toaster_MEL/venv/local/lib/python2.7/site-packages/django/core/management/base.py",
line 242, in run_from_argv
    self.execute(*args, **options.__dict__)
  File
"/home/sujith/MEL/toaster_MEL/venv/local/lib/python2.7/site-packages/django/core/management/base.py",
line 285, in execute
    output = self.handle(*args, **options)
  File
"/home/sujith/MEL/toaster_MEL/poky/bitbake/lib/toaster/bldcontrol/management/commands/loadconf.py",
line 171, in handle
    self._import_layer_config(filepath)
  File
"/home/sujith/MEL/toaster_MEL/poky/bitbake/lib/toaster/bldcontrol/management/commands/loadconf.py",
line 71, in _import_layer_config
    bvo.giturl = _read_git_url_from_local_repository(bvi['giturl'])
  File
"/home/sujith/MEL/toaster_MEL/poky/bitbake/lib/toaster/bldcontrol/management/commands/loadconf.py",
line 62, in _read_git_url_from_local_repository
    raise Exception("Error while looking for remote \"%s\" in \"%s\"" %
(remote_name, out))
Exception: Error while looking for remote "yocto" in "mel    ssh://
git@github.com/MentorEmbedded/meta-mentor.git (fetch)
mel    ssh://git@github.com/MentorEmbedded/meta-mentor.git (push)
"
-----------------------------



On Fri, Aug 7, 2015 at 6:28 PM, sujith h <sujith.h@gmail.com> wrote:

>
>
> On Fri, Aug 7, 2015 at 6:07 PM, Ed Bartosh <ed.bartosh@linux.intel.com>
> wrote:
>
>> On Fri, Aug 07, 2015 at 05:49:45PM +0530, sujith h wrote:
>> > On Fri, Aug 7, 2015 at 5:31 PM, sujith h <sujith.h@gmail.com> wrote:
>> >
>> > >
>> > >
>> > > On Fri, Aug 7, 2015 at 5:11 PM, Ed Bartosh <
>> ed.bartosh@linux.intel.com>
>> > > wrote:
>> > >
>> > >> Hi Sujith,
>> > >>
>> > >> It looks like your repository doesn't have 'origin' remote, which
>> > >> failing code is trying to find in 'git remote -v' output.
>> > >>
>> > >> For your repository git remote -v prints the following 2 lines:
>> > >> mel    ssh://git@github.com/MentorEmbedded/meta-mentor.git (fetch)
>> > >> mel    ssh://git@github.com/MentorEmbedded/meta-mentor.git (push)
>> > >>
>> > >> so, your remote name is 'mel'. My guess is that 'origin' is taken
>> from
>> > >> your toasterconfig.json. Unfortunately I can't
>> > >> reproduce this on my machine as I don't have your layers.
>> > >>
>> > >> I'd suggest to replace 'origin' with 'mel' in your config and try
>> again.
>> > >>
>> > >
>> > > Sure Ed, I would try to use mel instead of origin and I will update
>> the
>> > > result. Thanks for the pointer.
>> > >
>> >
>> > When I change to mel in the config file, the error I get is :
>> >
>>
>> This happened because of this db constraint for SourceLayer model:
>> unique_together = (('sourcetype', 'apiurl'), )
>>
>> Looks like you have duplicate apiurls in your config.
>>
>
> Yah you are right. So I cleaned up sqlite db. And restarted toaster,
> without importing toaster's default config. And then tried with my changes
> and its nice to see, changes getting included. I have attached the
> screenshot. Thanks Ed for the valuable support.
>
>
>
>>
>> Regards,
>> Ed
>>
>> > ----------
>> > (venv)sujith@kdekidd0:~/MEL/toaster_MEL$
>> > ./poky/bitbake/lib/toaster/manage.py loadconf
>> > /home/sujith/MEL/toaster_MEL/meta-mentor/toasterconf.json
>> > Traceback (most recent call last):
>> >   File "./poky/bitbake/lib/toaster/manage.py", line 10, in <module>
>> >     execute_from_command_line(sys.argv)
>> >   File
>> >
>> "/home/sujith/MEL/toaster_MEL/venv/local/lib/python2.7/site-packages/django/core/management/__init__.py",
>> > line 399, in execute_from_command_line
>> >     utility.execute()
>> >   File
>> >
>> "/home/sujith/MEL/toaster_MEL/venv/local/lib/python2.7/site-packages/django/core/management/__init__.py",
>> > line 392, in execute
>> >     self.fetch_command(subcommand).run_from_argv(self.argv)
>> >   File
>> >
>> "/home/sujith/MEL/toaster_MEL/venv/local/lib/python2.7/site-packages/django/core/management/base.py",
>> > line 242, in run_from_argv
>> >     self.execute(*args, **options.__dict__)
>> >   File
>> >
>> "/home/sujith/MEL/toaster_MEL/venv/local/lib/python2.7/site-packages/django/core/management/base.py",
>> > line 285, in execute
>> >     output = self.handle(*args, **options)
>> >   File
>> >
>> "/home/sujith/MEL/toaster_MEL/poky/bitbake/lib/toaster/bldcontrol/management/commands/loadconf.py",
>> > line 171, in handle
>> >     self._import_layer_config(filepath)
>> >   File
>> >
>> "/home/sujith/MEL/toaster_MEL/poky/bitbake/lib/toaster/bldcontrol/management/commands/loadconf.py",
>> > line 97, in _import_layer_config
>> >     apiurl = apiurl
>> >   File
>> >
>> "/home/sujith/MEL/toaster_MEL/venv/local/lib/python2.7/site-packages/django/db/models/manager.py",
>> > line 157, in create
>> >     return self.get_queryset().create(**kwargs)
>> >   File
>> >
>> "/home/sujith/MEL/toaster_MEL/venv/local/lib/python2.7/site-packages/django/db/models/query.py",
>> > line 319, in create
>> >     obj.save(force_insert=True, using=self.db)
>> >   File
>> > "/home/sujith/MEL/toaster_MEL/poky/bitbake/lib/toaster/orm/models.py",
>> line
>> > 740, in save
>> >     return super(LayerSource, self).save(*args, **kwargs)
>> >   File
>> >
>> "/home/sujith/MEL/toaster_MEL/venv/local/lib/python2.7/site-packages/django/db/models/base.py",
>> > line 545, in save
>> >     force_update=force_update, update_fields=update_fields)
>> >   File
>> >
>> "/home/sujith/MEL/toaster_MEL/venv/local/lib/python2.7/site-packages/django/db/models/base.py",
>> > line 573, in save_base
>> >     updated = self._save_table(raw, cls, force_insert, force_update,
>> using,
>> > update_fields)
>> >   File
>> >
>> "/home/sujith/MEL/toaster_MEL/venv/local/lib/python2.7/site-packages/django/db/models/base.py",
>> > line 654, in _save_table
>> >     result = self._do_insert(cls._base_manager, using, fields,
>> update_pk,
>> > raw)
>> >   File
>> >
>> "/home/sujith/MEL/toaster_MEL/venv/local/lib/python2.7/site-packages/django/db/models/base.py",
>> > line 687, in _do_insert
>> >     using=using, raw=raw)
>> >   File
>> >
>> "/home/sujith/MEL/toaster_MEL/venv/local/lib/python2.7/site-packages/django/db/models/manager.py",
>> > line 232, in _insert
>> >     return insert_query(self.model, objs, fields, **kwargs)
>> >   File
>> >
>> "/home/sujith/MEL/toaster_MEL/venv/local/lib/python2.7/site-packages/django/db/models/query.py",
>> > line 1511, in insert_query
>> >     return query.get_compiler(using=using).execute_sql(return_id)
>> >   File
>> >
>> "/home/sujith/MEL/toaster_MEL/venv/local/lib/python2.7/site-packages/django/db/models/sql/compiler.py",
>> > line 898, in execute_sql
>> >     cursor.execute(sql, params)
>> >   File
>> >
>> "/home/sujith/MEL/toaster_MEL/venv/local/lib/python2.7/site-packages/django/db/backends/util.py",
>> > line 69, in execute
>> >     return super(CursorDebugWrapper, self).execute(sql, params)
>> >   File
>> >
>> "/home/sujith/MEL/toaster_MEL/venv/local/lib/python2.7/site-packages/django/db/backends/util.py",
>> > line 53, in execute
>> >     return self.cursor.execute(sql, params)
>> >   File
>> >
>> "/home/sujith/MEL/toaster_MEL/venv/local/lib/python2.7/site-packages/django/db/utils.py",
>> > line 99, in __exit__
>> >     six.reraise(dj_exc_type, dj_exc_value, traceback)
>> >   File
>> >
>> "/home/sujith/MEL/toaster_MEL/venv/local/lib/python2.7/site-packages/django/db/backends/util.py",
>> > line 53, in execute
>> >     return self.cursor.execute(sql, params)
>> >   File
>> >
>> "/home/sujith/MEL/toaster_MEL/venv/local/lib/python2.7/site-packages/django/db/backends/sqlite3/base.py",
>> > line 450, in execute
>> >     return Database.Cursor.execute(self, query, params)
>> > django.db.utils.IntegrityError: UNIQUE constraint failed:
>> > orm_layersource.name
>> > (venv)sujith@kdekidd0:~/MEL/toaster_MEL$
>> > ----------
>> >
>> > >
>> > >
>> > >> Regards,
>> > >> Ed
>> > >>
>> > >>
>> > >> On Fri, Aug 07, 2015 at 02:24:44PM +0530, sujith h wrote:
>> > >> > On Thu, Aug 6, 2015 at 6:11 PM, sujith h <sujith.h@gmail.com>
>> wrote:
>> > >> >
>> > >> > > Hi all,
>> > >> > >
>> > >> > > At Mentor we provide already cloned layers ( like poky,
>> meta-mentor
>> > >> etc ).
>> > >> > > In meta-mentor layer we have a setup-environment script which
>> when
>> > >> run from
>> > >> > > command line along with arguments like machine name ( eg:
>> qemuarm,
>> > >> minnow
>> > >> > > etc ) would create a build folder with local.conf and
>> bblayers.conf.
>> > >> The
>> > >> > > bblayers.conf will include all the layers which are dependent for
>> > >> machine
>> > >> > > to be built. So I was thinking of creating a separate
>> > >> toasterconf.json file
>> > >> > > for meta-mentor so that it will include all the layers which are
>> > >> required
>> > >> > > for us to use toaster.
>> > >> > >
>> > >> > > So my query here is, should I add toasterconf.json file in
>> meta-mentor
>> > >> > > layer so that toaster can pick it up? Or should it be in a
>> different
>> > >> > > location which toaster can read it from there.
>> > >> > >
>> > >> > >
>> > >> > > Let me know if my query needs more inputs.
>> > >> > >
>> > >> >
>> > >> > I figured out a way to use toasterconf.json file which I created in
>> > >> > meta-mentor layer, using command:
>> > >> > ---------
>> > >> > ./poky/bitbake/lib/toaster/manage.py loadconf
>> > >> meta-mentor/toasterconf.json
>> > >> > ---------
>> > >> >
>> > >> >
>> > >> > When I execute the above command below is the error I get:
>> > >> >
>> > >> > --------------
>> > >> > (venv)sujith@kdekidd0:~/MEL/toaster_MEL$
>> > >> > ./poky/bitbake/lib/toaster/manage.py loadconf
>> > >> meta-mentor/toasterconf.json
>> > >> > Traceback (most recent call last):
>> > >> >   File "./poky/bitbake/lib/toaster/manage.py", line 10, in <module>
>> > >> >     execute_from_command_line(sys.argv)
>> > >> >   File
>> > >> >
>> > >>
>> "/home/sujith/MEL/toaster_MEL/venv/local/lib/python2.7/site-packages/django/core/management/__init__.py",
>> > >> > line 399, in execute_from_command_line
>> > >> >     utility.execute()
>> > >> >   File
>> > >> >
>> > >>
>> "/home/sujith/MEL/toaster_MEL/venv/local/lib/python2.7/site-packages/django/core/management/__init__.py",
>> > >> > line 392, in execute
>> > >> >     self.fetch_command(subcommand).run_from_argv(self.argv)
>> > >> >   File
>> > >> >
>> > >>
>> "/home/sujith/MEL/toaster_MEL/venv/local/lib/python2.7/site-packages/django/core/management/base.py",
>> > >> > line 242, in run_from_argv
>> > >> >     self.execute(*args, **options.__dict__)
>> > >> >   File
>> > >> >
>> > >>
>> "/home/sujith/MEL/toaster_MEL/venv/local/lib/python2.7/site-packages/django/core/management/base.py",
>> > >> > line 285, in execute
>> > >> >     output = self.handle(*args, **options)
>> > >> >   File
>> > >> >
>> > >>
>> "/home/sujith/MEL/toaster_MEL/poky/bitbake/lib/toaster/bldcontrol/management/commands/loadconf.py",
>> > >> > line 171, in handle
>> > >> >     self._import_layer_config(filepath)
>> > >> >   File
>> > >> >
>> > >>
>> "/home/sujith/MEL/toaster_MEL/poky/bitbake/lib/toaster/bldcontrol/management/commands/loadconf.py",
>> > >> > line 71, in _import_layer_config
>> > >> >     bvo.giturl = _read_git_url_from_local_repository(bvi['giturl'])
>> > >> >   File
>> > >> >
>> > >>
>> "/home/sujith/MEL/toaster_MEL/poky/bitbake/lib/toaster/bldcontrol/management/commands/loadconf.py",
>> > >> > line 62, in _read_git_url_from_local_repository
>> > >> >     raise Exception("Error while looking for remote \"%s\" in
>> \"%s\"" %
>> > >> > (remote_name, out))
>> > >> > Exception: Error while looking for remote "origin" in "mel
>> ssh://
>> > >> > git@github.com/MentorEmbedded/meta-mentor.git (fetch)
>> > >> > mel    ssh://git@github.com/MentorEmbedded/meta-mentor.git (push)
>> > >> > "
>> > >> > (venv)sujith@kdekidd0:~/MEL/toaster_MEL$
>> > >> > --------------
>> > >> >
>> > >> > The reason I believe is its checking for origin in the git branch
>> > >> output.
>> > >> > When I execute 'git branch -a' in meta-mentor layer we have, I get:
>> > >> >
>> > >> > ------------
>> > >> > sujith@kdekidd0:~/MEL/toaster_MEL/meta-mentor$ git branch -a
>> > >> > * (no branch)
>> > >> >   remotes/m/master -> mel/master
>> > >> >   remotes/mel/daisy
>> > >> >   remotes/mel/danny
>> > >> >   remotes/mel/dylan
>> > >> >   remotes/mel/fix-parse-cache-issue
>> > >> >   remotes/mel/layerscape
>> > >> >   remotes/mel/master
>> > >> >   remotes/mel/meibp/2013
>> > >> >   remotes/mel/mentor/atp
>> > >> >   remotes/mel/mentor/mel6
>> > >> >   remotes/mel/merge-and-update-master
>> > >> >   remotes/mel/release/2013.11
>> > >> >   remotes/mel/release/2013.11-adit
>> > >> >   remotes/mel/release/2014.05
>> > >> >   remotes/mel/release/2014.05-async1
>> > >> >   remotes/mel/release/2014.05-async1-lite
>> > >> >   remotes/mel/release/2014.05-async2
>> > >> >   remotes/mel/release/2014.05_fastboot_addon
>> > >> >   remotes/mel/release/2014.12
>> > >> >   remotes/mel/release/2014.12-async1
>> > >> >   remotes/mel/release/2014.12-birch
>> > >> >   remotes/mel/revert-471-sysroot-stage-dirs-undefined
>> > >> >   remotes/mel/sb-2727
>> > >> > sujith@kdekidd0:~/MEL/toaster_MEL/meta-mentor$
>> > >> > ------------
>> > >> >
>> > >> > Now this is another twist, which I would have to solve.
>> > >> >
>> > >> >
>> > >> > --
>> > >> > സുജിത് ഹരിദാസന്
>> > >> > Bangalore
>> > >> > <Project>Contributor to KDE project
>> > >> > http://fci.wikia.com/wiki/Anti-DRM-Campaign
>> > >> > <Blog> http://sujithh.info
>> > >>
>> > >> > --
>> > >> > _______________________________________________
>> > >> > toaster mailing list
>> > >> > toaster@yoctoproject.org
>> > >> > https://lists.yoctoproject.org/listinfo/toaster
>> > >>
>> > >>
>> > >> --
>> > >> --
>> > >> Regards,
>> > >> Ed
>> > >>
>> > >
>> > >
>> > >
>> > > --
>> > > സുജിത് ഹരിദാസന്
>> > > Bangalore
>> > > <Project>Contributor to KDE project
>> > > http://fci.wikia.com/wiki/Anti-DRM-Campaign
>> > > <Blog> http://sujithh.info
>> > >
>> >
>> >
>> >
>> > --
>> > സുജിത് ഹരിദാസന്
>> > Bangalore
>> > <Project>Contributor to KDE project
>> > http://fci.wikia.com/wiki/Anti-DRM-Campaign
>> > <Blog> http://sujithh.info
>>
>> --
>> --
>> Regards,
>> Ed
>>
>
>
>
> --
> സുജിത് ഹരിദാസന്
> Bangalore
> <Project>Contributor to KDE project
> http://fci.wikia.com/wiki/Anti-DRM-Campaign
> <Blog> http://sujithh.info
>



-- 
സുജിത് ഹരിദാസന്
Bangalore
<Project>Contributor to KDE project
http://fci.wikia.com/wiki/Anti-DRM-Campaign
<Blog> http://sujithh.info

[-- Attachment #1.2: Type: text/html, Size: 36857 bytes --]

[-- Attachment #2: toasterconf.json --]
[-- Type: application/json, Size: 6500 bytes --]

[-- Attachment #3: toasterconf.json_workingUI --]
[-- Type: application/octet-stream, Size: 6673 bytes --]

{
    "config": {
        "MACHINE"      : "mx6q",
        "DISTRO"       : "mel",
        "IMAGE_FSTYPES": "ext3 jffs2 tar.bz2",
        "IMAGE_INSTALL_append": "",
        "PACKAGE_CLASSES": "package_ipk package_qa sourcery",
        "SDKMACHINE"   : "x86_64"
    },
    "layersources": [
        {
            "name": "Local Yocto Project",
            "sourcetype": "local",
            "apiurl": "../../",
            "branches": ["HEAD", "master", "fido", "dizzy"],
            "layers": [
                {
                    "name": "openembedded-core",
                    "local_path": "toaster_MEL/poky/meta",
                    "vcs_url": "/home/sujith/MEL/toaster_MEL/poky",
                    "dirpath": "meta"
                },
                {
                    "name": "meta-yocto",
                    "local_path": "toaster_MEL/poky/meta-yocto",
                    "vcs_url": "/home/sujith/MEL/toaster_MEL/poky",
                    "dirpath": "meta-yocto"
                },
                {
                    "name": "meta-yocto-bsp",
                    "local_path": "toaster_MEL/poky/meta-yocto-bsp",
                    "vcs_url": "/home/sujith/MEL/toaster_MEL/poky",
                    "dirpath": "meta-yocto-bsp"
                },
                {
                    "name": "meta-mentor-private",
                    "local_path": "toaster_MEL/meta-mentor-private",
                    "vcs_url": "/home/sujith/MEL/toaster_MEL/meta-mentor-private",
                    "dirpath": "meta-mentor-private"
                },
                {
                    "name": "meta-mel",
                    "local_path": "toaster_MEL/meta-mentor/meta-mel",
                    "vcs_url": "/home/sujith/MEL/toaster_MEL/meta-mentor",
                    "dirpath": "meta-mel"
                },
                {
                    "name": "meta-mx6q",
                    "local_path": "toaster_MEL/meta-mx6q",
                    "vcs_url": "/home/sujith/MEL/toaster_MEL/meta-mx6q",
                    "dirpath": "meta-mx6q"
                },
                {
                    "name": "meta-mentor-staging",
                    "local_path": "toaster_MEL/meta-mentor/meta-mentor-staging",
                    "vcs_url": "/home/sujith/MEL/toaster_MEL/meta-mentor-staging",
                    "dirpath": "meta-mentor-staging"
                },
                {
                    "name": "meta-python",
                    "local_path": "toaster_MEL/meta-oe/meta-python",
                    "vcs_url": "/home/sujith/MEL/toaster_MEL/meta-oe",
                    "dirpath": "meta-python"
                },
                {
                    "name": "meta-multimedia",
                    "local_path": "toaster_MEL/meta-oe/meta-multimedia",
                    "vcs_url": "/home/sujith/MEL/toaster_MEL/meta-oe",
                    "dirpath": "meta-multimedia"
                },
                {
                    "name": "meta-filesystems",
                    "local_path": "toaster_MEL/meta-oe/meta-filesystems",
                    "vcs_url": "/home/sujith/MEL/toaster_MEL/meta-oe",
                    "dirpath": "meta-filesystems"
                },
                {
                    "name": "meta-networking",
                    "local_path": "toaster_MEL/meta-oe/meta-networking",
                    "vcs_url": "/home/sujith/MEL/toaster_MEL/meta-oe",
                    "dirpath": "meta-networking"
                },
                {
                    "name": "meta-fsl-arm",
                    "local_path": "toaster_MEL/meta-fsl-arm",
                    "vcs_url": "/home/sujith/MEL/toaster_MEL/meta-fsl-arm",
                    "dirpath": "meta-fsl-arm"
                },
                {
                    "name": "meta-mel-support",
                    "local_path": "toaster_MEL/meta-mentor/meta-mel-support",
                    "vcs_url": "/home/sujith/MEL/toaster_MEL/meta-mentor",
                    "dirpath": "meta-mel-support"
                },
                {
                    "name": "meta-sourcery",
                    "local_path": "toaster_MEL/meta-sourcery",
                    "vcs_url": "/home/sujith/MEL/toaster_MEL/meta-sourcery",
                    "dirpath": "meta-sourcery"
                },
                {
                    "name": "meta-tracing",
                    "local_path": "toaster_MEL/meta-tracing",
                    "vcs_url": "/home/sujith/MEL/toaster_MEL/meta-tracing",
                    "dirpath": "meta-tracing"
                },
                {
                    "name": "meta-oe",
                    "local_path": "toaster_MEL/meta-oe/meta-oe",
                    "vcs_url": "/home/sujith/MEL/toaster_MEL/meta-oe",
                    "dirpath": "meta-oe"
                }

            ]
        },
        {
            "name": "OpenEmbedded",
            "sourcetype": "layerindex",
            "apiurl": "http://layers.openembedded.org/layerindex/api/",
            "branches": ["master", "fido", "dizzy"]
        },
        {
            "name": "Imported layers",
            "sourcetype": "imported",
            "apiurl": "",
            "branches": ["master", "fido", "dizzy", "HEAD"]

        }
    ],
    "bitbake" : [
        {
            "name": "master",
            "giturl": "remote:mel",
            "branch": "master",
            "dirpath": "bitbake"
        },
        {
            "name": "fido",
            "giturl": "remote:mel",
            "branch": "fido",
            "dirpath": "bitbake"
        },
        {
            "name": "dizzy",
            "giturl": "remote:mel",
            "branch": "dizzy",
            "dirpath": "bitbake"
        },
        {
            "name": "HEAD",
            "giturl": "remote:mel",
            "branch": "HEAD",
            "dirpath": "bitbake"
        }
    ],

    "defaultrelease": "local",

    "releases": [
        {
            "name": "local",
            "description": "Local Yocto Project",
            "bitbake": "HEAD",
            "branch": "HEAD",
            "defaultlayers": [ "openembedded-core", "meta-yocto", "meta-yocto-bsp", "meta-mentor-private", "meta-mel",  "meta-mx6q", "meta-mentor-staging", "meta-python", "meta-multimedia", "meta-filesystems", "meta-networking", "meta-fsl-arm", "meta", "meta-mel-support", "meta-sourcery", "meta-tracing", "meta-oe"],
            "layersourcepriority": { "Imported layers": 99, "Local Yocto Project" : 10, "OpenEmbedded" :  0 },
            "helptext": "Toaster will run your builds with the version of the Yocto Project you have cloned or downloaded to your computer."
        }
    ]
}

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Adding custom toasterconf.json file for Mentor
  2015-08-10  9:25             ` sujith h
@ 2015-08-10  9:56               ` sujith h
  2015-08-10 11:49                 ` sujith h
  0 siblings, 1 reply; 10+ messages in thread
From: sujith h @ 2015-08-10  9:56 UTC (permalink / raw)
  To: ed.bartosh; +Cc: toaster

[-- Attachment #1: Type: text/plain, Size: 29403 bytes --]

Hi,

I modified config file to have 'remote:yocto,mel' to see if it can verify
the url and proceed.
I guess I got the problem here. _read_git_url_from_local_repository reads
the url from where the config file resides. So this causes the issue.

Regards,
Sujith H

On Mon, Aug 10, 2015 at 2:55 PM, sujith h <sujith.h@gmail.com> wrote:

> Hi Ed,
>
> I have one more query. The toasterconf.json with which I got the view
> populated with the layers is attached with the
> mail(toasterconf.json_WorkingUI). I haven't provided vcs_url in that file
> correctly. Hence I got error when I tried to build an image:
> --------------------
> 2015-08-10 14:42:52,389 DEBUG localhostbecontroller, our git repos are
> {(u'/home/sujith/MEL/toaster_MEL/meta-fsl-arm', u'HEAD'): [(u'meta-fsl-arm',
>
> u'meta-fsl-arm')],
>  (u'/home/sujith/MEL/toaster_MEL/meta-mentor', u'HEAD'): [(u'meta-mel',
>                                                            u'meta-mel'),
>
> (u'meta-mel-support',
>
> u'meta-mel-support')],
>  (u'/home/sujith/MEL/toaster_MEL/meta-mentor-private', u'HEAD'):
> [(u'meta-mentor-private',
>
> u'meta-mentor-private')],
>  (u'/home/sujith/MEL/toaster_MEL/meta-mentor-staging', u'HEAD'):
> [(u'meta-mentor-staging',
>
> u'meta-mentor-staging')],
>  (u'/home/sujith/MEL/toaster_MEL/meta-mx6q', u'HEAD'): [(u'meta-mx6q',
>                                                          u'meta-mx6q')],
>  (u'/home/sujith/MEL/toaster_MEL/meta-oe', u'HEAD'): [(u'meta-python',
>                                                        u'meta-python'),
>                                                       (u'meta-multimedia',
>                                                        u'meta-multimedia'),
>                                                       (u'meta-filesystems',
>
> u'meta-filesystems'),
>                                                       (u'meta-networking',
>                                                        u'meta-networking'),
>                                                       (u'meta-oe',
>                                                        u'meta-oe')],
>  (u'/home/sujith/MEL/toaster_MEL/meta-sourcery', u'HEAD'):
> [(u'meta-sourcery',
>
> u'meta-sourcery')],
>  (u'/home/sujith/MEL/toaster_MEL/meta-tracing', u'HEAD'):
> [(u'meta-tracing',
>
> u'meta-tracing')],
>  (u'/home/sujith/MEL/toaster_MEL/poky', u'HEAD'): [(u'openembedded-core',
>                                                     u'meta'),
>                                                    (u'meta-yocto',
>                                                     u'meta-yocto'),
>                                                    (u'meta-yocto-bsp',
>                                                     u'meta-yocto-bsp')],
>  (u'ssh://git@github.com/MentorEmbedded/meta-mentor.git', u'HEAD'):
> [('bitbake',
>
> u'bitbake')]}
> 2015-08-10 14:42:52,390 DEBUG lbc_shellcmmd:
> (/home/sujith/MEL/toaster_MEL/venv) git remote -v
> 2015-08-10 14:42:52,393 WARNING localhostbecontroller: shellcmd error
> command: git remote -v
> fatal: Not a git repository (or any of the parent directories): .git
>
> 2015-08-10 14:42:52,394 DEBUG lbc_shellcmmd:
> (/home/sujith/MEL/toaster_MEL/meta-mentor-industrial) git remote -v
> 2015-08-10 14:42:52,440 DEBUG localhostbecontroller: shellcmd success
> 2015-08-10 14:42:52,440 DEBUG lbc_shellcmmd:
> (/home/sujith/MEL/toaster_MEL/meta-omap5-evm) git remote -v
> 2015-08-10 14:42:52,481 DEBUG localhostbecontroller: shellcmd success
> 2015-08-10 14:42:52,481 DEBUG lbc_shellcmmd:
> (/home/sujith/MEL/toaster_MEL/.repo) git remote -v
> 2015-08-10 14:42:52,485 WARNING localhostbecontroller: shellcmd error
> command: git remote -v
> fatal: Not a git repository (or any of the parent directories): .git
>
> 2015-08-10 14:42:52,486 DEBUG lbc_shellcmmd:
> (/home/sujith/MEL/toaster_MEL/manufacturing) git remote -v
> 2015-08-10 14:42:52,535 DEBUG localhostbecontroller: shellcmd success
> 2015-08-10 14:42:52,535 DEBUG lbc_shellcmmd:
> (/home/sujith/MEL/toaster_MEL/meta-arago-glsdk) git remote -v
> 2015-08-10 14:42:52,577 DEBUG localhostbecontroller: shellcmd success
> 2015-08-10 14:42:52,577 DEBUG lbc_shellcmmd:
> (/home/sujith/MEL/toaster_MEL/meta-mentor-amsdk) git remote -v
> 2015-08-10 14:42:52,609 DEBUG localhostbecontroller: shellcmd success
> 2015-08-10 14:42:52,609 DEBUG lbc_shellcmmd:
> (/home/sujith/MEL/toaster_MEL/poky) git remote -v
> 2015-08-10 14:42:52,613 DEBUG localhostbecontroller: shellcmd success
> 2015-08-10 14:42:52,614 DEBUG lbc_shellcmmd:
> (/home/sujith/MEL/toaster_MEL/meta-selinux) git remote -v
> 2015-08-10 14:42:52,636 DEBUG localhostbecontroller: shellcmd success
> 2015-08-10 14:42:52,636 DEBUG lbc_shellcmmd:
> (/home/sujith/MEL/toaster_MEL/meta-virtualization) git remote -v
> 2015-08-10 14:42:52,690 DEBUG localhostbecontroller: shellcmd success
> 2015-08-10 14:42:52,690 DEBUG lbc_shellcmmd:
> (/home/sujith/MEL/toaster_MEL/meta-mentor-mx6q-memf) git remote -v
> 2015-08-10 14:42:52,754 DEBUG localhostbecontroller: shellcmd success
> 2015-08-10 14:42:52,754 DEBUG lbc_shellcmmd:
> (/home/sujith/MEL/toaster_MEL/meta-mentor-glsdk) git remote -v
> 2015-08-10 14:42:52,774 DEBUG localhostbecontroller: shellcmd success
> 2015-08-10 14:42:52,774 DEBUG lbc_shellcmmd:
> (/home/sujith/MEL/toaster_MEL/toaster_build_artifacts) git remote -v
> 2015-08-10 14:42:52,779 WARNING localhostbecontroller: shellcmd error
> command: git remote -v
> fatal: Not a git repository (or any of the parent directories): .git
>
> 2015-08-10 14:42:52,779 DEBUG lbc_shellcmmd:
> (/home/sujith/MEL/toaster_MEL/meta-fastboot) git remote -v
> 2015-08-10 14:42:52,808 DEBUG localhostbecontroller: shellcmd success
> 2015-08-10 14:42:52,808 DEBUG lbc_shellcmmd:
> (/home/sujith/MEL/toaster_MEL/meta-tracing) git remote -v
> 2015-08-10 14:42:52,845 DEBUG localhostbecontroller: shellcmd success
> 2015-08-10 14:42:52,845 DEBUG lbc_shellcmmd:
> (/home/sujith/MEL/toaster_MEL/scripts) git remote -v
> 2015-08-10 14:42:52,876 DEBUG localhostbecontroller: shellcmd success
> 2015-08-10 14:42:52,877 DEBUG lbc_shellcmmd:
> (/home/sujith/MEL/toaster_MEL/meta-mentor-private) git remote -v
> 2015-08-10 14:42:52,893 DEBUG localhostbecontroller: shellcmd success
> 2015-08-10 14:42:52,893 DEBUG lbc_shellcmmd:
> (/home/sujith/MEL/toaster_MEL/meta-mentor-xilinx) git remote -v
> 2015-08-10 14:42:52,915 DEBUG localhostbecontroller: shellcmd success
> 2015-08-10 14:42:52,915 DEBUG lbc_shellcmmd:
> (/home/sujith/MEL/toaster_MEL/meta-mentor-security) git remote -v
> 2015-08-10 14:42:52,943 DEBUG localhostbecontroller: shellcmd success
> 2015-08-10 14:42:52,944 DEBUG lbc_shellcmmd:
> (/home/sujith/MEL/toaster_MEL/meta-dra7xx-evm) git remote -v
> 2015-08-10 14:42:52,976 DEBUG localhostbecontroller: shellcmd success
> 2015-08-10 14:42:52,976 DEBUG lbc_shellcmmd:
> (/home/sujith/MEL/toaster_MEL/meta-fsl-ppc) git remote -v
> 2015-08-10 14:42:52,998 DEBUG localhostbecontroller: shellcmd success
> 2015-08-10 14:42:52,999 DEBUG lbc_shellcmmd:
> (/home/sujith/MEL/toaster_MEL/meta-qt5-mel) git remote -v
> 2015-08-10 14:42:53,016 DEBUG localhostbecontroller: shellcmd success
> 2015-08-10 14:42:53,016 DEBUG lbc_shellcmmd:
> (/home/sujith/MEL/toaster_MEL/meta-intel) git remote -v
> 2015-08-10 14:42:53,028 DEBUG localhostbecontroller: shellcmd success
> 2015-08-10 14:42:53,028 DEBUG lbc_shellcmmd:
> (/home/sujith/MEL/toaster_MEL/meta-erlang) git remote -v
> 2015-08-10 14:42:53,057 DEBUG localhostbecontroller: shellcmd success
> 2015-08-10 14:42:53,057 DEBUG lbc_shellcmmd:
> (/home/sujith/MEL/toaster_MEL/meta-qt5) git remote -v
> 2015-08-10 14:42:53,092 DEBUG localhostbecontroller: shellcmd success
> 2015-08-10 14:42:53,092 DEBUG lbc_shellcmmd:
> (/home/sujith/MEL/toaster_MEL/meta-fsl-arm) git remote -v
> 2015-08-10 14:42:53,123 DEBUG localhostbecontroller: shellcmd success
> 2015-08-10 14:42:53,123 DEBUG lbc_shellcmmd:
> (/home/sujith/MEL/toaster_MEL/meta-mentor-mx6solox-memf) git remote -v
> 2015-08-10 14:42:53,147 DEBUG localhostbecontroller: shellcmd success
> 2015-08-10 14:42:53,147 DEBUG lbc_shellcmmd:
> (/home/sujith/MEL/toaster_MEL/meta-oe) git remote -v
> 2015-08-10 14:42:53,162 DEBUG localhostbecontroller: shellcmd success
> 2015-08-10 14:42:53,162 DEBUG lbc_shellcmmd:
> (/home/sujith/MEL/toaster_MEL/meta-minnow) git remote -v
> 2015-08-10 14:42:53,185 DEBUG localhostbecontroller: shellcmd success
> 2015-08-10 14:42:53,185 DEBUG lbc_shellcmmd:
> (/home/sujith/MEL/toaster_MEL/meta-mentor-xilinx-memf) git remote -v
> 2015-08-10 14:42:53,213 DEBUG localhostbecontroller: shellcmd success
> 2015-08-10 14:42:53,214 DEBUG lbc_shellcmmd:
> (/home/sujith/MEL/toaster_MEL/meta-sourcery) git remote -v
> 2015-08-10 14:42:53,246 DEBUG localhostbecontroller: shellcmd success
> 2015-08-10 14:42:53,246 DEBUG lbc_shellcmmd:
> (/home/sujith/MEL/toaster_MEL/meta-ti-glsdk) git remote -v
> 2015-08-10 14:42:53,275 DEBUG localhostbecontroller: shellcmd success
> 2015-08-10 14:42:53,275 DEBUG lbc_shellcmmd:
> (/home/sujith/MEL/toaster_MEL/meta-mentor-iot) git remote -v
> 2015-08-10 14:42:53,291 DEBUG localhostbecontroller: shellcmd success
> 2015-08-10 14:42:53,291 DEBUG lbc_shellcmmd:
> (/home/sujith/MEL/toaster_MEL/meta-mentor-softing-opcua) git remote -v
> 2015-08-10 14:42:53,303 DEBUG localhostbecontroller: shellcmd success
> 2015-08-10 14:42:53,303 DEBUG lbc_shellcmmd:
> (/home/sujith/MEL/toaster_MEL/meta-xilinx) git remote -v
> 2015-08-10 14:42:53,316 DEBUG localhostbecontroller: shellcmd success
> 2015-08-10 14:42:53,317 DEBUG lbc_shellcmmd:
> (/home/sujith/MEL/toaster_MEL/meta-ti) git remote -v
> 2015-08-10 14:42:53,335 DEBUG localhostbecontroller: shellcmd success
> 2015-08-10 14:42:53,335 DEBUG lbc_shellcmmd:
> (/home/sujith/MEL/toaster_MEL/meta-fsl-networking) git remote -v
> 2015-08-10 14:42:53,355 DEBUG localhostbecontroller: shellcmd success
> 2015-08-10 14:42:53,355 DEBUG lbc_shellcmmd:
> (/home/sujith/MEL/toaster_MEL/poky_upstream) git remote -v
> 2015-08-10 14:42:53,398 DEBUG localhostbecontroller: shellcmd success
> 2015-08-10 14:42:53,398 DEBUG lbc_shellcmmd:
> (/home/sujith/MEL/toaster_MEL/meta-mentor-softing-ethernetip) git remote -v
> 2015-08-10 14:42:53,427 DEBUG localhostbecontroller: shellcmd success
> 2015-08-10 14:42:53,427 DEBUG lbc_shellcmmd:
> (/home/sujith/MEL/toaster_MEL/meta-mx6solox) git remote -v
> 2015-08-10 14:42:53,444 DEBUG localhostbecontroller: shellcmd success
> 2015-08-10 14:42:53,445 DEBUG lbc_shellcmmd:
> (/home/sujith/MEL/toaster_MEL/poky_mel) git remote -v
> 2015-08-10 14:42:53,459 DEBUG localhostbecontroller: shellcmd success
> 2015-08-10 14:42:53,459 DEBUG lbc_shellcmmd:
> (/home/sujith/MEL/toaster_MEL/meta-mentor) git remote -v
> 2015-08-10 14:42:53,463 DEBUG localhostbecontroller: shellcmd success
> 2015-08-10 14:42:53,464 DEBUG lbc_shellcmmd:
> (/home/sujith/MEL/toaster_MEL/meta-mx6q) git remote -v
> 2015-08-10 14:42:53,510 DEBUG localhostbecontroller: shellcmd success
> 2015-08-10 14:42:53,510 DEBUG lbc_shellcmmd:
> (/home/sujith/MEL/toaster_MEL/docs) git remote -v
> 2015-08-10 14:42:53,546 DEBUG localhostbecontroller: shellcmd success
> 2015-08-10 14:42:53,547 DEBUG localhostbecontroller: giturl
> /home/sujith/MEL/toaster_MEL/meta-mx6q:HEAD checking out in current
> directory /home/sujith/MEL/toaster_MEL/poky
> 2015-08-10 14:42:53,547 DEBUG lbc_shellcmmd:
> (/home/sujith/MEL/toaster_MEL/poky) git remote -v
> 2015-08-10 14:42:53,551 DEBUG localhostbecontroller: shellcmd success
> Traceback (most recent call last):
>   File
> "/home/sujith/MEL/toaster_MEL/poky/bitbake/lib/toaster/bldcontrol/management/commands/runbuilds.py",
> line 59, in schedule
>     bec.triggerBuild(br.brbitbake_set.all(), br.brlayer_set.all(),
> br.brvariable_set.all(), br.brtarget_set.all())
>   File
> "/home/sujith/MEL/toaster_MEL/poky/bitbake/lib/toaster/bldcontrol/localhostbecontroller.py",
> line 319, in triggerBuild
>     self.setLayers(bitbake, layers)
>   File
> "/home/sujith/MEL/toaster_MEL/poky/bitbake/lib/toaster/bldcontrol/localhostbecontroller.py",
> line 255, in setLayers
>     raise BuildSetupException("Existing git repository at %s, but with
> different remotes ('%s', expected '%s'). Toaster will not continue out of
> fear of damaging something." % (localdirname, ",
> ".join(localremotes.split("\n")), giturl))
> BuildSetupException: Existing git repository at
> /home/sujith/MEL/toaster_MEL/poky, but with different remotes ('yocto
> git://git.yoctoproject.org/poky.git (fetch), yocto    git://
> git.yoctoproject.org/poky.git (push), ', expected
> '/home/sujith/MEL/toaster_MEL/meta-mx6q'). Toaster will not continue out of
> fear of damaging something.
> --------------------
>
> After this I modified the config file which is also attached in the mail,
> where I have modified vcs_url field as remote:yocto or remote:mel. I have
> added it by verifying the output of git remote -v. Now the command :
> ./poky/bitbake/lib/toaster/manage.py loadconf meta-mentor/toasterconf.json
> fails,
>
> -----------------------------
> Traceback (most recent call last):
>   File "./poky/bitbake/lib/toaster/manage.py", line 10, in <module>
>     execute_from_command_line(sys.argv)
>   File
> "/home/sujith/MEL/toaster_MEL/venv/local/lib/python2.7/site-packages/django/core/management/__init__.py",
> line 399, in execute_from_command_line
>     utility.execute()
>   File
> "/home/sujith/MEL/toaster_MEL/venv/local/lib/python2.7/site-packages/django/core/management/__init__.py",
> line 392, in execute
>     self.fetch_command(subcommand).run_from_argv(self.argv)
>   File
> "/home/sujith/MEL/toaster_MEL/venv/local/lib/python2.7/site-packages/django/core/management/base.py",
> line 242, in run_from_argv
>     self.execute(*args, **options.__dict__)
>   File
> "/home/sujith/MEL/toaster_MEL/venv/local/lib/python2.7/site-packages/django/core/management/base.py",
> line 285, in execute
>     output = self.handle(*args, **options)
>   File
> "/home/sujith/MEL/toaster_MEL/poky/bitbake/lib/toaster/bldcontrol/management/commands/loadconf.py",
> line 171, in handle
>     self._import_layer_config(filepath)
>   File
> "/home/sujith/MEL/toaster_MEL/poky/bitbake/lib/toaster/bldcontrol/management/commands/loadconf.py",
> line 71, in _import_layer_config
>     bvo.giturl = _read_git_url_from_local_repository(bvi['giturl'])
>   File
> "/home/sujith/MEL/toaster_MEL/poky/bitbake/lib/toaster/bldcontrol/management/commands/loadconf.py",
> line 62, in _read_git_url_from_local_repository
>     raise Exception("Error while looking for remote \"%s\" in \"%s\"" %
> (remote_name, out))
> Exception: Error while looking for remote "yocto" in "mel    ssh://
> git@github.com/MentorEmbedded/meta-mentor.git (fetch)
> mel    ssh://git@github.com/MentorEmbedded/meta-mentor.git (push)
> "
> -----------------------------
>
>
>
> On Fri, Aug 7, 2015 at 6:28 PM, sujith h <sujith.h@gmail.com> wrote:
>
>>
>>
>> On Fri, Aug 7, 2015 at 6:07 PM, Ed Bartosh <ed.bartosh@linux.intel.com>
>> wrote:
>>
>>> On Fri, Aug 07, 2015 at 05:49:45PM +0530, sujith h wrote:
>>> > On Fri, Aug 7, 2015 at 5:31 PM, sujith h <sujith.h@gmail.com> wrote:
>>> >
>>> > >
>>> > >
>>> > > On Fri, Aug 7, 2015 at 5:11 PM, Ed Bartosh <
>>> ed.bartosh@linux.intel.com>
>>> > > wrote:
>>> > >
>>> > >> Hi Sujith,
>>> > >>
>>> > >> It looks like your repository doesn't have 'origin' remote, which
>>> > >> failing code is trying to find in 'git remote -v' output.
>>> > >>
>>> > >> For your repository git remote -v prints the following 2 lines:
>>> > >> mel    ssh://git@github.com/MentorEmbedded/meta-mentor.git (fetch)
>>> > >> mel    ssh://git@github.com/MentorEmbedded/meta-mentor.git (push)
>>> > >>
>>> > >> so, your remote name is 'mel'. My guess is that 'origin' is taken
>>> from
>>> > >> your toasterconfig.json. Unfortunately I can't
>>> > >> reproduce this on my machine as I don't have your layers.
>>> > >>
>>> > >> I'd suggest to replace 'origin' with 'mel' in your config and try
>>> again.
>>> > >>
>>> > >
>>> > > Sure Ed, I would try to use mel instead of origin and I will update
>>> the
>>> > > result. Thanks for the pointer.
>>> > >
>>> >
>>> > When I change to mel in the config file, the error I get is :
>>> >
>>>
>>> This happened because of this db constraint for SourceLayer model:
>>> unique_together = (('sourcetype', 'apiurl'), )
>>>
>>> Looks like you have duplicate apiurls in your config.
>>>
>>
>> Yah you are right. So I cleaned up sqlite db. And restarted toaster,
>> without importing toaster's default config. And then tried with my changes
>> and its nice to see, changes getting included. I have attached the
>> screenshot. Thanks Ed for the valuable support.
>>
>>
>>
>>>
>>> Regards,
>>> Ed
>>>
>>> > ----------
>>> > (venv)sujith@kdekidd0:~/MEL/toaster_MEL$
>>> > ./poky/bitbake/lib/toaster/manage.py loadconf
>>> > /home/sujith/MEL/toaster_MEL/meta-mentor/toasterconf.json
>>> > Traceback (most recent call last):
>>> >   File "./poky/bitbake/lib/toaster/manage.py", line 10, in <module>
>>> >     execute_from_command_line(sys.argv)
>>> >   File
>>> >
>>> "/home/sujith/MEL/toaster_MEL/venv/local/lib/python2.7/site-packages/django/core/management/__init__.py",
>>> > line 399, in execute_from_command_line
>>> >     utility.execute()
>>> >   File
>>> >
>>> "/home/sujith/MEL/toaster_MEL/venv/local/lib/python2.7/site-packages/django/core/management/__init__.py",
>>> > line 392, in execute
>>> >     self.fetch_command(subcommand).run_from_argv(self.argv)
>>> >   File
>>> >
>>> "/home/sujith/MEL/toaster_MEL/venv/local/lib/python2.7/site-packages/django/core/management/base.py",
>>> > line 242, in run_from_argv
>>> >     self.execute(*args, **options.__dict__)
>>> >   File
>>> >
>>> "/home/sujith/MEL/toaster_MEL/venv/local/lib/python2.7/site-packages/django/core/management/base.py",
>>> > line 285, in execute
>>> >     output = self.handle(*args, **options)
>>> >   File
>>> >
>>> "/home/sujith/MEL/toaster_MEL/poky/bitbake/lib/toaster/bldcontrol/management/commands/loadconf.py",
>>> > line 171, in handle
>>> >     self._import_layer_config(filepath)
>>> >   File
>>> >
>>> "/home/sujith/MEL/toaster_MEL/poky/bitbake/lib/toaster/bldcontrol/management/commands/loadconf.py",
>>> > line 97, in _import_layer_config
>>> >     apiurl = apiurl
>>> >   File
>>> >
>>> "/home/sujith/MEL/toaster_MEL/venv/local/lib/python2.7/site-packages/django/db/models/manager.py",
>>> > line 157, in create
>>> >     return self.get_queryset().create(**kwargs)
>>> >   File
>>> >
>>> "/home/sujith/MEL/toaster_MEL/venv/local/lib/python2.7/site-packages/django/db/models/query.py",
>>> > line 319, in create
>>> >     obj.save(force_insert=True, using=self.db)
>>> >   File
>>> > "/home/sujith/MEL/toaster_MEL/poky/bitbake/lib/toaster/orm/models.py",
>>> line
>>> > 740, in save
>>> >     return super(LayerSource, self).save(*args, **kwargs)
>>> >   File
>>> >
>>> "/home/sujith/MEL/toaster_MEL/venv/local/lib/python2.7/site-packages/django/db/models/base.py",
>>> > line 545, in save
>>> >     force_update=force_update, update_fields=update_fields)
>>> >   File
>>> >
>>> "/home/sujith/MEL/toaster_MEL/venv/local/lib/python2.7/site-packages/django/db/models/base.py",
>>> > line 573, in save_base
>>> >     updated = self._save_table(raw, cls, force_insert, force_update,
>>> using,
>>> > update_fields)
>>> >   File
>>> >
>>> "/home/sujith/MEL/toaster_MEL/venv/local/lib/python2.7/site-packages/django/db/models/base.py",
>>> > line 654, in _save_table
>>> >     result = self._do_insert(cls._base_manager, using, fields,
>>> update_pk,
>>> > raw)
>>> >   File
>>> >
>>> "/home/sujith/MEL/toaster_MEL/venv/local/lib/python2.7/site-packages/django/db/models/base.py",
>>> > line 687, in _do_insert
>>> >     using=using, raw=raw)
>>> >   File
>>> >
>>> "/home/sujith/MEL/toaster_MEL/venv/local/lib/python2.7/site-packages/django/db/models/manager.py",
>>> > line 232, in _insert
>>> >     return insert_query(self.model, objs, fields, **kwargs)
>>> >   File
>>> >
>>> "/home/sujith/MEL/toaster_MEL/venv/local/lib/python2.7/site-packages/django/db/models/query.py",
>>> > line 1511, in insert_query
>>> >     return query.get_compiler(using=using).execute_sql(return_id)
>>> >   File
>>> >
>>> "/home/sujith/MEL/toaster_MEL/venv/local/lib/python2.7/site-packages/django/db/models/sql/compiler.py",
>>> > line 898, in execute_sql
>>> >     cursor.execute(sql, params)
>>> >   File
>>> >
>>> "/home/sujith/MEL/toaster_MEL/venv/local/lib/python2.7/site-packages/django/db/backends/util.py",
>>> > line 69, in execute
>>> >     return super(CursorDebugWrapper, self).execute(sql, params)
>>> >   File
>>> >
>>> "/home/sujith/MEL/toaster_MEL/venv/local/lib/python2.7/site-packages/django/db/backends/util.py",
>>> > line 53, in execute
>>> >     return self.cursor.execute(sql, params)
>>> >   File
>>> >
>>> "/home/sujith/MEL/toaster_MEL/venv/local/lib/python2.7/site-packages/django/db/utils.py",
>>> > line 99, in __exit__
>>> >     six.reraise(dj_exc_type, dj_exc_value, traceback)
>>> >   File
>>> >
>>> "/home/sujith/MEL/toaster_MEL/venv/local/lib/python2.7/site-packages/django/db/backends/util.py",
>>> > line 53, in execute
>>> >     return self.cursor.execute(sql, params)
>>> >   File
>>> >
>>> "/home/sujith/MEL/toaster_MEL/venv/local/lib/python2.7/site-packages/django/db/backends/sqlite3/base.py",
>>> > line 450, in execute
>>> >     return Database.Cursor.execute(self, query, params)
>>> > django.db.utils.IntegrityError: UNIQUE constraint failed:
>>> > orm_layersource.name
>>> > (venv)sujith@kdekidd0:~/MEL/toaster_MEL$
>>> > ----------
>>> >
>>> > >
>>> > >
>>> > >> Regards,
>>> > >> Ed
>>> > >>
>>> > >>
>>> > >> On Fri, Aug 07, 2015 at 02:24:44PM +0530, sujith h wrote:
>>> > >> > On Thu, Aug 6, 2015 at 6:11 PM, sujith h <sujith.h@gmail.com>
>>> wrote:
>>> > >> >
>>> > >> > > Hi all,
>>> > >> > >
>>> > >> > > At Mentor we provide already cloned layers ( like poky,
>>> meta-mentor
>>> > >> etc ).
>>> > >> > > In meta-mentor layer we have a setup-environment script which
>>> when
>>> > >> run from
>>> > >> > > command line along with arguments like machine name ( eg:
>>> qemuarm,
>>> > >> minnow
>>> > >> > > etc ) would create a build folder with local.conf and
>>> bblayers.conf.
>>> > >> The
>>> > >> > > bblayers.conf will include all the layers which are dependent
>>> for
>>> > >> machine
>>> > >> > > to be built. So I was thinking of creating a separate
>>> > >> toasterconf.json file
>>> > >> > > for meta-mentor so that it will include all the layers which are
>>> > >> required
>>> > >> > > for us to use toaster.
>>> > >> > >
>>> > >> > > So my query here is, should I add toasterconf.json file in
>>> meta-mentor
>>> > >> > > layer so that toaster can pick it up? Or should it be in a
>>> different
>>> > >> > > location which toaster can read it from there.
>>> > >> > >
>>> > >> > >
>>> > >> > > Let me know if my query needs more inputs.
>>> > >> > >
>>> > >> >
>>> > >> > I figured out a way to use toasterconf.json file which I created
>>> in
>>> > >> > meta-mentor layer, using command:
>>> > >> > ---------
>>> > >> > ./poky/bitbake/lib/toaster/manage.py loadconf
>>> > >> meta-mentor/toasterconf.json
>>> > >> > ---------
>>> > >> >
>>> > >> >
>>> > >> > When I execute the above command below is the error I get:
>>> > >> >
>>> > >> > --------------
>>> > >> > (venv)sujith@kdekidd0:~/MEL/toaster_MEL$
>>> > >> > ./poky/bitbake/lib/toaster/manage.py loadconf
>>> > >> meta-mentor/toasterconf.json
>>> > >> > Traceback (most recent call last):
>>> > >> >   File "./poky/bitbake/lib/toaster/manage.py", line 10, in
>>> <module>
>>> > >> >     execute_from_command_line(sys.argv)
>>> > >> >   File
>>> > >> >
>>> > >>
>>> "/home/sujith/MEL/toaster_MEL/venv/local/lib/python2.7/site-packages/django/core/management/__init__.py",
>>> > >> > line 399, in execute_from_command_line
>>> > >> >     utility.execute()
>>> > >> >   File
>>> > >> >
>>> > >>
>>> "/home/sujith/MEL/toaster_MEL/venv/local/lib/python2.7/site-packages/django/core/management/__init__.py",
>>> > >> > line 392, in execute
>>> > >> >     self.fetch_command(subcommand).run_from_argv(self.argv)
>>> > >> >   File
>>> > >> >
>>> > >>
>>> "/home/sujith/MEL/toaster_MEL/venv/local/lib/python2.7/site-packages/django/core/management/base.py",
>>> > >> > line 242, in run_from_argv
>>> > >> >     self.execute(*args, **options.__dict__)
>>> > >> >   File
>>> > >> >
>>> > >>
>>> "/home/sujith/MEL/toaster_MEL/venv/local/lib/python2.7/site-packages/django/core/management/base.py",
>>> > >> > line 285, in execute
>>> > >> >     output = self.handle(*args, **options)
>>> > >> >   File
>>> > >> >
>>> > >>
>>> "/home/sujith/MEL/toaster_MEL/poky/bitbake/lib/toaster/bldcontrol/management/commands/loadconf.py",
>>> > >> > line 171, in handle
>>> > >> >     self._import_layer_config(filepath)
>>> > >> >   File
>>> > >> >
>>> > >>
>>> "/home/sujith/MEL/toaster_MEL/poky/bitbake/lib/toaster/bldcontrol/management/commands/loadconf.py",
>>> > >> > line 71, in _import_layer_config
>>> > >> >     bvo.giturl =
>>> _read_git_url_from_local_repository(bvi['giturl'])
>>> > >> >   File
>>> > >> >
>>> > >>
>>> "/home/sujith/MEL/toaster_MEL/poky/bitbake/lib/toaster/bldcontrol/management/commands/loadconf.py",
>>> > >> > line 62, in _read_git_url_from_local_repository
>>> > >> >     raise Exception("Error while looking for remote \"%s\" in
>>> \"%s\"" %
>>> > >> > (remote_name, out))
>>> > >> > Exception: Error while looking for remote "origin" in "mel
>>> ssh://
>>> > >> > git@github.com/MentorEmbedded/meta-mentor.git (fetch)
>>> > >> > mel    ssh://git@github.com/MentorEmbedded/meta-mentor.git (push)
>>> > >> > "
>>> > >> > (venv)sujith@kdekidd0:~/MEL/toaster_MEL$
>>> > >> > --------------
>>> > >> >
>>> > >> > The reason I believe is its checking for origin in the git branch
>>> > >> output.
>>> > >> > When I execute 'git branch -a' in meta-mentor layer we have, I
>>> get:
>>> > >> >
>>> > >> > ------------
>>> > >> > sujith@kdekidd0:~/MEL/toaster_MEL/meta-mentor$ git branch -a
>>> > >> > * (no branch)
>>> > >> >   remotes/m/master -> mel/master
>>> > >> >   remotes/mel/daisy
>>> > >> >   remotes/mel/danny
>>> > >> >   remotes/mel/dylan
>>> > >> >   remotes/mel/fix-parse-cache-issue
>>> > >> >   remotes/mel/layerscape
>>> > >> >   remotes/mel/master
>>> > >> >   remotes/mel/meibp/2013
>>> > >> >   remotes/mel/mentor/atp
>>> > >> >   remotes/mel/mentor/mel6
>>> > >> >   remotes/mel/merge-and-update-master
>>> > >> >   remotes/mel/release/2013.11
>>> > >> >   remotes/mel/release/2013.11-adit
>>> > >> >   remotes/mel/release/2014.05
>>> > >> >   remotes/mel/release/2014.05-async1
>>> > >> >   remotes/mel/release/2014.05-async1-lite
>>> > >> >   remotes/mel/release/2014.05-async2
>>> > >> >   remotes/mel/release/2014.05_fastboot_addon
>>> > >> >   remotes/mel/release/2014.12
>>> > >> >   remotes/mel/release/2014.12-async1
>>> > >> >   remotes/mel/release/2014.12-birch
>>> > >> >   remotes/mel/revert-471-sysroot-stage-dirs-undefined
>>> > >> >   remotes/mel/sb-2727
>>> > >> > sujith@kdekidd0:~/MEL/toaster_MEL/meta-mentor$
>>> > >> > ------------
>>> > >> >
>>> > >> > Now this is another twist, which I would have to solve.
>>> > >> >
>>> > >> >
>>> > >> > --
>>> > >> > സുജിത് ഹരിദാസന്
>>> > >> > Bangalore
>>> > >> > <Project>Contributor to KDE project
>>> > >> > http://fci.wikia.com/wiki/Anti-DRM-Campaign
>>> > >> > <Blog> http://sujithh.info
>>> > >>
>>> > >> > --
>>> > >> > _______________________________________________
>>> > >> > toaster mailing list
>>> > >> > toaster@yoctoproject.org
>>> > >> > https://lists.yoctoproject.org/listinfo/toaster
>>> > >>
>>> > >>
>>> > >> --
>>> > >> --
>>> > >> Regards,
>>> > >> Ed
>>> > >>
>>> > >
>>> > >
>>> > >
>>> > > --
>>> > > സുജിത് ഹരിദാസന്
>>> > > Bangalore
>>> > > <Project>Contributor to KDE project
>>> > > http://fci.wikia.com/wiki/Anti-DRM-Campaign
>>> > > <Blog> http://sujithh.info
>>> > >
>>> >
>>> >
>>> >
>>> > --
>>> > സുജിത് ഹരിദാസന്
>>> > Bangalore
>>> > <Project>Contributor to KDE project
>>> > http://fci.wikia.com/wiki/Anti-DRM-Campaign
>>> > <Blog> http://sujithh.info
>>>
>>> --
>>> --
>>> Regards,
>>> Ed
>>>
>>
>>
>>
>> --
>> സുജിത് ഹരിദാസന്
>> Bangalore
>> <Project>Contributor to KDE project
>> http://fci.wikia.com/wiki/Anti-DRM-Campaign
>> <Blog> http://sujithh.info
>>
>
>
>
> --
> സുജിത് ഹരിദാസന്
> Bangalore
> <Project>Contributor to KDE project
> http://fci.wikia.com/wiki/Anti-DRM-Campaign
> <Blog> http://sujithh.info
>



-- 
സുജിത് ഹരിദാസന്
Bangalore
<Project>Contributor to KDE project
http://fci.wikia.com/wiki/Anti-DRM-Campaign
<Blog> http://sujithh.info

[-- Attachment #2: Type: text/html, Size: 38032 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Adding custom toasterconf.json file for Mentor
  2015-08-10  9:56               ` sujith h
@ 2015-08-10 11:49                 ` sujith h
  0 siblings, 0 replies; 10+ messages in thread
From: sujith h @ 2015-08-10 11:49 UTC (permalink / raw)
  To: ed.bartosh; +Cc: toaster


[-- Attachment #1.1: Type: text/plain, Size: 33280 bytes --]

Hi,

With my updated config file when I ran ./poky/bitbake/lib/toaster/manage.py
loadconf meta-mentor/toasterconf.json
I didn't faced any error. I have attached my updated config file with the
mail. I had to modify
bitbake/lib/toaster/bldcontrol/management/commands/loadconf.py.
Below is the diff:

---------------------------
diff --git a/bitbake/lib/toaster/bldcontrol/management/commands/loadconf.py
b/bitbake/lib/toaster/bldcontrol/management/commands/loadconf.py
index 9163e9b..79dd6bb 100644
--- a/bitbake/lib/toaster/bldcontrol/management/commands/loadconf.py
+++ b/bitbake/lib/toaster/bldcontrol/management/commands/loadconf.py
@@ -41,19 +41,23 @@ class Command(BaseCommand):
         for i in ['bitbake', 'releases', 'defaultrelease', 'config',
'layersources']:
             assert i in data

-        def _read_git_url_from_local_repository(address):
+        def _read_git_url_from_local_repository(address,local_path=None):
             url = None
             # we detect the remote name at runtime
             import subprocess
             (remote, remote_name) = address.split(":", 1)
-            cmd = subprocess.Popen("git remote -v", shell=True, cwd =
os.path.dirname(filepath), stdout=subprocess.PIPE, stderr = subprocess.PIPE)
+            if local_path == None:
+               local_path = filepath
+            if not os.path.isdir(local_path):
+               local_path = os.path.dirname(local_path)
+            cmd = subprocess.Popen("git remote -v", shell=True, cwd =
local_path, stdout=subprocess.PIPE, stderr = subprocess.PIPE)
             (out,err) = cmd.communicate()
             if cmd.returncode != 0:
                 raise Exception("Error while importing layer vcs_url: git
error: %s" % err)
             for line in out.split("\n"):
                 try:
                     (name, path) = line.split("\t", 1)
-                    if name == remote_name:
+                    if name in remote_name.split(','):
                         url = path.split(" ")[0]
                         break
                 except ValueError:
@@ -115,7 +119,7 @@ class Command(BaseCommand):

                     lo.vcs_url = layerinfo['vcs_url']
                     if layerinfo['vcs_url'].startswith("remote:"):
-                        lo.vcs_url =
_read_git_url_from_local_repository(layerinfo['vcs_url'])
+                        lo.vcs_url =
_read_git_url_from_local_repository(layerinfo['vcs_url'],
layerinfo['local_path'])
                     else:
                         lo.vcs_url = layerinfo['vcs_url']

---------------------------

The reason to have giturl: "remote:yocto,mel", is because it was comparing
"yocto" in meta-mentor layer. Where in it wont get yocto ( git remote -v
command output ). So I modified it by adding mel. And hence I modified
loadconf.py accordingly. The image i have attached in the mail is what I
see when I load toaster in the browser. Any hint or clue would be helpful
for me to proceed further.

Thanks,
Sujith H

On Mon, Aug 10, 2015 at 3:26 PM, sujith h <sujith.h@gmail.com> wrote:

> Hi,
>
> I modified config file to have 'remote:yocto,mel' to see if it can verify
> the url and proceed.
> I guess I got the problem here. _read_git_url_from_local_repository reads
> the url from where the config file resides. So this causes the issue.
>
> Regards,
> Sujith H
>
> On Mon, Aug 10, 2015 at 2:55 PM, sujith h <sujith.h@gmail.com> wrote:
>
>> Hi Ed,
>>
>> I have one more query. The toasterconf.json with which I got the view
>> populated with the layers is attached with the
>> mail(toasterconf.json_WorkingUI). I haven't provided vcs_url in that file
>> correctly. Hence I got error when I tried to build an image:
>> --------------------
>> 2015-08-10 14:42:52,389 DEBUG localhostbecontroller, our git repos are
>> {(u'/home/sujith/MEL/toaster_MEL/meta-fsl-arm', u'HEAD'): [(u'meta-fsl-arm',
>>
>> u'meta-fsl-arm')],
>>  (u'/home/sujith/MEL/toaster_MEL/meta-mentor', u'HEAD'): [(u'meta-mel',
>>                                                            u'meta-mel'),
>>
>> (u'meta-mel-support',
>>
>> u'meta-mel-support')],
>>  (u'/home/sujith/MEL/toaster_MEL/meta-mentor-private', u'HEAD'):
>> [(u'meta-mentor-private',
>>
>> u'meta-mentor-private')],
>>  (u'/home/sujith/MEL/toaster_MEL/meta-mentor-staging', u'HEAD'):
>> [(u'meta-mentor-staging',
>>
>> u'meta-mentor-staging')],
>>  (u'/home/sujith/MEL/toaster_MEL/meta-mx6q', u'HEAD'): [(u'meta-mx6q',
>>                                                          u'meta-mx6q')],
>>  (u'/home/sujith/MEL/toaster_MEL/meta-oe', u'HEAD'): [(u'meta-python',
>>                                                        u'meta-python'),
>>                                                       (u'meta-multimedia',
>>
>> u'meta-multimedia'),
>>
>> (u'meta-filesystems',
>>
>> u'meta-filesystems'),
>>                                                       (u'meta-networking',
>>
>> u'meta-networking'),
>>                                                       (u'meta-oe',
>>                                                        u'meta-oe')],
>>  (u'/home/sujith/MEL/toaster_MEL/meta-sourcery', u'HEAD'):
>> [(u'meta-sourcery',
>>
>> u'meta-sourcery')],
>>  (u'/home/sujith/MEL/toaster_MEL/meta-tracing', u'HEAD'):
>> [(u'meta-tracing',
>>
>> u'meta-tracing')],
>>  (u'/home/sujith/MEL/toaster_MEL/poky', u'HEAD'): [(u'openembedded-core',
>>                                                     u'meta'),
>>                                                    (u'meta-yocto',
>>                                                     u'meta-yocto'),
>>                                                    (u'meta-yocto-bsp',
>>                                                     u'meta-yocto-bsp')],
>>  (u'ssh://git@github.com/MentorEmbedded/meta-mentor.git', u'HEAD'):
>> [('bitbake',
>>
>> u'bitbake')]}
>> 2015-08-10 14:42:52,390 DEBUG lbc_shellcmmd:
>> (/home/sujith/MEL/toaster_MEL/venv) git remote -v
>> 2015-08-10 14:42:52,393 WARNING localhostbecontroller: shellcmd error
>> command: git remote -v
>> fatal: Not a git repository (or any of the parent directories): .git
>>
>> 2015-08-10 14:42:52,394 DEBUG lbc_shellcmmd:
>> (/home/sujith/MEL/toaster_MEL/meta-mentor-industrial) git remote -v
>> 2015-08-10 14:42:52,440 DEBUG localhostbecontroller: shellcmd success
>> 2015-08-10 14:42:52,440 DEBUG lbc_shellcmmd:
>> (/home/sujith/MEL/toaster_MEL/meta-omap5-evm) git remote -v
>> 2015-08-10 14:42:52,481 DEBUG localhostbecontroller: shellcmd success
>> 2015-08-10 14:42:52,481 DEBUG lbc_shellcmmd:
>> (/home/sujith/MEL/toaster_MEL/.repo) git remote -v
>> 2015-08-10 14:42:52,485 WARNING localhostbecontroller: shellcmd error
>> command: git remote -v
>> fatal: Not a git repository (or any of the parent directories): .git
>>
>> 2015-08-10 14:42:52,486 DEBUG lbc_shellcmmd:
>> (/home/sujith/MEL/toaster_MEL/manufacturing) git remote -v
>> 2015-08-10 14:42:52,535 DEBUG localhostbecontroller: shellcmd success
>> 2015-08-10 14:42:52,535 DEBUG lbc_shellcmmd:
>> (/home/sujith/MEL/toaster_MEL/meta-arago-glsdk) git remote -v
>> 2015-08-10 14:42:52,577 DEBUG localhostbecontroller: shellcmd success
>> 2015-08-10 14:42:52,577 DEBUG lbc_shellcmmd:
>> (/home/sujith/MEL/toaster_MEL/meta-mentor-amsdk) git remote -v
>> 2015-08-10 14:42:52,609 DEBUG localhostbecontroller: shellcmd success
>> 2015-08-10 14:42:52,609 DEBUG lbc_shellcmmd:
>> (/home/sujith/MEL/toaster_MEL/poky) git remote -v
>> 2015-08-10 14:42:52,613 DEBUG localhostbecontroller: shellcmd success
>> 2015-08-10 14:42:52,614 DEBUG lbc_shellcmmd:
>> (/home/sujith/MEL/toaster_MEL/meta-selinux) git remote -v
>> 2015-08-10 14:42:52,636 DEBUG localhostbecontroller: shellcmd success
>> 2015-08-10 14:42:52,636 DEBUG lbc_shellcmmd:
>> (/home/sujith/MEL/toaster_MEL/meta-virtualization) git remote -v
>> 2015-08-10 14:42:52,690 DEBUG localhostbecontroller: shellcmd success
>> 2015-08-10 14:42:52,690 DEBUG lbc_shellcmmd:
>> (/home/sujith/MEL/toaster_MEL/meta-mentor-mx6q-memf) git remote -v
>> 2015-08-10 14:42:52,754 DEBUG localhostbecontroller: shellcmd success
>> 2015-08-10 14:42:52,754 DEBUG lbc_shellcmmd:
>> (/home/sujith/MEL/toaster_MEL/meta-mentor-glsdk) git remote -v
>> 2015-08-10 14:42:52,774 DEBUG localhostbecontroller: shellcmd success
>> 2015-08-10 14:42:52,774 DEBUG lbc_shellcmmd:
>> (/home/sujith/MEL/toaster_MEL/toaster_build_artifacts) git remote -v
>> 2015-08-10 14:42:52,779 WARNING localhostbecontroller: shellcmd error
>> command: git remote -v
>> fatal: Not a git repository (or any of the parent directories): .git
>>
>> 2015-08-10 14:42:52,779 DEBUG lbc_shellcmmd:
>> (/home/sujith/MEL/toaster_MEL/meta-fastboot) git remote -v
>> 2015-08-10 14:42:52,808 DEBUG localhostbecontroller: shellcmd success
>> 2015-08-10 14:42:52,808 DEBUG lbc_shellcmmd:
>> (/home/sujith/MEL/toaster_MEL/meta-tracing) git remote -v
>> 2015-08-10 14:42:52,845 DEBUG localhostbecontroller: shellcmd success
>> 2015-08-10 14:42:52,845 DEBUG lbc_shellcmmd:
>> (/home/sujith/MEL/toaster_MEL/scripts) git remote -v
>> 2015-08-10 14:42:52,876 DEBUG localhostbecontroller: shellcmd success
>> 2015-08-10 14:42:52,877 DEBUG lbc_shellcmmd:
>> (/home/sujith/MEL/toaster_MEL/meta-mentor-private) git remote -v
>> 2015-08-10 14:42:52,893 DEBUG localhostbecontroller: shellcmd success
>> 2015-08-10 14:42:52,893 DEBUG lbc_shellcmmd:
>> (/home/sujith/MEL/toaster_MEL/meta-mentor-xilinx) git remote -v
>> 2015-08-10 14:42:52,915 DEBUG localhostbecontroller: shellcmd success
>> 2015-08-10 14:42:52,915 DEBUG lbc_shellcmmd:
>> (/home/sujith/MEL/toaster_MEL/meta-mentor-security) git remote -v
>> 2015-08-10 14:42:52,943 DEBUG localhostbecontroller: shellcmd success
>> 2015-08-10 14:42:52,944 DEBUG lbc_shellcmmd:
>> (/home/sujith/MEL/toaster_MEL/meta-dra7xx-evm) git remote -v
>> 2015-08-10 14:42:52,976 DEBUG localhostbecontroller: shellcmd success
>> 2015-08-10 14:42:52,976 DEBUG lbc_shellcmmd:
>> (/home/sujith/MEL/toaster_MEL/meta-fsl-ppc) git remote -v
>> 2015-08-10 14:42:52,998 DEBUG localhostbecontroller: shellcmd success
>> 2015-08-10 14:42:52,999 DEBUG lbc_shellcmmd:
>> (/home/sujith/MEL/toaster_MEL/meta-qt5-mel) git remote -v
>> 2015-08-10 14:42:53,016 DEBUG localhostbecontroller: shellcmd success
>> 2015-08-10 14:42:53,016 DEBUG lbc_shellcmmd:
>> (/home/sujith/MEL/toaster_MEL/meta-intel) git remote -v
>> 2015-08-10 14:42:53,028 DEBUG localhostbecontroller: shellcmd success
>> 2015-08-10 14:42:53,028 DEBUG lbc_shellcmmd:
>> (/home/sujith/MEL/toaster_MEL/meta-erlang) git remote -v
>> 2015-08-10 14:42:53,057 DEBUG localhostbecontroller: shellcmd success
>> 2015-08-10 14:42:53,057 DEBUG lbc_shellcmmd:
>> (/home/sujith/MEL/toaster_MEL/meta-qt5) git remote -v
>> 2015-08-10 14:42:53,092 DEBUG localhostbecontroller: shellcmd success
>> 2015-08-10 14:42:53,092 DEBUG lbc_shellcmmd:
>> (/home/sujith/MEL/toaster_MEL/meta-fsl-arm) git remote -v
>> 2015-08-10 14:42:53,123 DEBUG localhostbecontroller: shellcmd success
>> 2015-08-10 14:42:53,123 DEBUG lbc_shellcmmd:
>> (/home/sujith/MEL/toaster_MEL/meta-mentor-mx6solox-memf) git remote -v
>> 2015-08-10 14:42:53,147 DEBUG localhostbecontroller: shellcmd success
>> 2015-08-10 14:42:53,147 DEBUG lbc_shellcmmd:
>> (/home/sujith/MEL/toaster_MEL/meta-oe) git remote -v
>> 2015-08-10 14:42:53,162 DEBUG localhostbecontroller: shellcmd success
>> 2015-08-10 14:42:53,162 DEBUG lbc_shellcmmd:
>> (/home/sujith/MEL/toaster_MEL/meta-minnow) git remote -v
>> 2015-08-10 14:42:53,185 DEBUG localhostbecontroller: shellcmd success
>> 2015-08-10 14:42:53,185 DEBUG lbc_shellcmmd:
>> (/home/sujith/MEL/toaster_MEL/meta-mentor-xilinx-memf) git remote -v
>> 2015-08-10 14:42:53,213 DEBUG localhostbecontroller: shellcmd success
>> 2015-08-10 14:42:53,214 DEBUG lbc_shellcmmd:
>> (/home/sujith/MEL/toaster_MEL/meta-sourcery) git remote -v
>> 2015-08-10 14:42:53,246 DEBUG localhostbecontroller: shellcmd success
>> 2015-08-10 14:42:53,246 DEBUG lbc_shellcmmd:
>> (/home/sujith/MEL/toaster_MEL/meta-ti-glsdk) git remote -v
>> 2015-08-10 14:42:53,275 DEBUG localhostbecontroller: shellcmd success
>> 2015-08-10 14:42:53,275 DEBUG lbc_shellcmmd:
>> (/home/sujith/MEL/toaster_MEL/meta-mentor-iot) git remote -v
>> 2015-08-10 14:42:53,291 DEBUG localhostbecontroller: shellcmd success
>> 2015-08-10 14:42:53,291 DEBUG lbc_shellcmmd:
>> (/home/sujith/MEL/toaster_MEL/meta-mentor-softing-opcua) git remote -v
>> 2015-08-10 14:42:53,303 DEBUG localhostbecontroller: shellcmd success
>> 2015-08-10 14:42:53,303 DEBUG lbc_shellcmmd:
>> (/home/sujith/MEL/toaster_MEL/meta-xilinx) git remote -v
>> 2015-08-10 14:42:53,316 DEBUG localhostbecontroller: shellcmd success
>> 2015-08-10 14:42:53,317 DEBUG lbc_shellcmmd:
>> (/home/sujith/MEL/toaster_MEL/meta-ti) git remote -v
>> 2015-08-10 14:42:53,335 DEBUG localhostbecontroller: shellcmd success
>> 2015-08-10 14:42:53,335 DEBUG lbc_shellcmmd:
>> (/home/sujith/MEL/toaster_MEL/meta-fsl-networking) git remote -v
>> 2015-08-10 14:42:53,355 DEBUG localhostbecontroller: shellcmd success
>> 2015-08-10 14:42:53,355 DEBUG lbc_shellcmmd:
>> (/home/sujith/MEL/toaster_MEL/poky_upstream) git remote -v
>> 2015-08-10 14:42:53,398 DEBUG localhostbecontroller: shellcmd success
>> 2015-08-10 14:42:53,398 DEBUG lbc_shellcmmd:
>> (/home/sujith/MEL/toaster_MEL/meta-mentor-softing-ethernetip) git remote -v
>> 2015-08-10 14:42:53,427 DEBUG localhostbecontroller: shellcmd success
>> 2015-08-10 14:42:53,427 DEBUG lbc_shellcmmd:
>> (/home/sujith/MEL/toaster_MEL/meta-mx6solox) git remote -v
>> 2015-08-10 14:42:53,444 DEBUG localhostbecontroller: shellcmd success
>> 2015-08-10 14:42:53,445 DEBUG lbc_shellcmmd:
>> (/home/sujith/MEL/toaster_MEL/poky_mel) git remote -v
>> 2015-08-10 14:42:53,459 DEBUG localhostbecontroller: shellcmd success
>> 2015-08-10 14:42:53,459 DEBUG lbc_shellcmmd:
>> (/home/sujith/MEL/toaster_MEL/meta-mentor) git remote -v
>> 2015-08-10 14:42:53,463 DEBUG localhostbecontroller: shellcmd success
>> 2015-08-10 14:42:53,464 DEBUG lbc_shellcmmd:
>> (/home/sujith/MEL/toaster_MEL/meta-mx6q) git remote -v
>> 2015-08-10 14:42:53,510 DEBUG localhostbecontroller: shellcmd success
>> 2015-08-10 14:42:53,510 DEBUG lbc_shellcmmd:
>> (/home/sujith/MEL/toaster_MEL/docs) git remote -v
>> 2015-08-10 14:42:53,546 DEBUG localhostbecontroller: shellcmd success
>> 2015-08-10 14:42:53,547 DEBUG localhostbecontroller: giturl
>> /home/sujith/MEL/toaster_MEL/meta-mx6q:HEAD checking out in current
>> directory /home/sujith/MEL/toaster_MEL/poky
>> 2015-08-10 14:42:53,547 DEBUG lbc_shellcmmd:
>> (/home/sujith/MEL/toaster_MEL/poky) git remote -v
>> 2015-08-10 14:42:53,551 DEBUG localhostbecontroller: shellcmd success
>> Traceback (most recent call last):
>>   File
>> "/home/sujith/MEL/toaster_MEL/poky/bitbake/lib/toaster/bldcontrol/management/commands/runbuilds.py",
>> line 59, in schedule
>>     bec.triggerBuild(br.brbitbake_set.all(), br.brlayer_set.all(),
>> br.brvariable_set.all(), br.brtarget_set.all())
>>   File
>> "/home/sujith/MEL/toaster_MEL/poky/bitbake/lib/toaster/bldcontrol/localhostbecontroller.py",
>> line 319, in triggerBuild
>>     self.setLayers(bitbake, layers)
>>   File
>> "/home/sujith/MEL/toaster_MEL/poky/bitbake/lib/toaster/bldcontrol/localhostbecontroller.py",
>> line 255, in setLayers
>>     raise BuildSetupException("Existing git repository at %s, but with
>> different remotes ('%s', expected '%s'). Toaster will not continue out of
>> fear of damaging something." % (localdirname, ",
>> ".join(localremotes.split("\n")), giturl))
>> BuildSetupException: Existing git repository at
>> /home/sujith/MEL/toaster_MEL/poky, but with different remotes ('yocto
>> git://git.yoctoproject.org/poky.git (fetch), yocto    git://
>> git.yoctoproject.org/poky.git (push), ', expected
>> '/home/sujith/MEL/toaster_MEL/meta-mx6q'). Toaster will not continue out of
>> fear of damaging something.
>> --------------------
>>
>> After this I modified the config file which is also attached in the mail,
>> where I have modified vcs_url field as remote:yocto or remote:mel. I have
>> added it by verifying the output of git remote -v. Now the command :
>> ./poky/bitbake/lib/toaster/manage.py loadconf meta-mentor/toasterconf.json
>> fails,
>>
>> -----------------------------
>> Traceback (most recent call last):
>>   File "./poky/bitbake/lib/toaster/manage.py", line 10, in <module>
>>     execute_from_command_line(sys.argv)
>>   File
>> "/home/sujith/MEL/toaster_MEL/venv/local/lib/python2.7/site-packages/django/core/management/__init__.py",
>> line 399, in execute_from_command_line
>>     utility.execute()
>>   File
>> "/home/sujith/MEL/toaster_MEL/venv/local/lib/python2.7/site-packages/django/core/management/__init__.py",
>> line 392, in execute
>>     self.fetch_command(subcommand).run_from_argv(self.argv)
>>   File
>> "/home/sujith/MEL/toaster_MEL/venv/local/lib/python2.7/site-packages/django/core/management/base.py",
>> line 242, in run_from_argv
>>     self.execute(*args, **options.__dict__)
>>   File
>> "/home/sujith/MEL/toaster_MEL/venv/local/lib/python2.7/site-packages/django/core/management/base.py",
>> line 285, in execute
>>     output = self.handle(*args, **options)
>>   File
>> "/home/sujith/MEL/toaster_MEL/poky/bitbake/lib/toaster/bldcontrol/management/commands/loadconf.py",
>> line 171, in handle
>>     self._import_layer_config(filepath)
>>   File
>> "/home/sujith/MEL/toaster_MEL/poky/bitbake/lib/toaster/bldcontrol/management/commands/loadconf.py",
>> line 71, in _import_layer_config
>>     bvo.giturl = _read_git_url_from_local_repository(bvi['giturl'])
>>   File
>> "/home/sujith/MEL/toaster_MEL/poky/bitbake/lib/toaster/bldcontrol/management/commands/loadconf.py",
>> line 62, in _read_git_url_from_local_repository
>>     raise Exception("Error while looking for remote \"%s\" in \"%s\"" %
>> (remote_name, out))
>> Exception: Error while looking for remote "yocto" in "mel    ssh://
>> git@github.com/MentorEmbedded/meta-mentor.git (fetch)
>> mel    ssh://git@github.com/MentorEmbedded/meta-mentor.git (push)
>> "
>> -----------------------------
>>
>>
>>
>> On Fri, Aug 7, 2015 at 6:28 PM, sujith h <sujith.h@gmail.com> wrote:
>>
>>>
>>>
>>> On Fri, Aug 7, 2015 at 6:07 PM, Ed Bartosh <ed.bartosh@linux.intel.com>
>>> wrote:
>>>
>>>> On Fri, Aug 07, 2015 at 05:49:45PM +0530, sujith h wrote:
>>>> > On Fri, Aug 7, 2015 at 5:31 PM, sujith h <sujith.h@gmail.com> wrote:
>>>> >
>>>> > >
>>>> > >
>>>> > > On Fri, Aug 7, 2015 at 5:11 PM, Ed Bartosh <
>>>> ed.bartosh@linux.intel.com>
>>>> > > wrote:
>>>> > >
>>>> > >> Hi Sujith,
>>>> > >>
>>>> > >> It looks like your repository doesn't have 'origin' remote, which
>>>> > >> failing code is trying to find in 'git remote -v' output.
>>>> > >>
>>>> > >> For your repository git remote -v prints the following 2 lines:
>>>> > >> mel    ssh://git@github.com/MentorEmbedded/meta-mentor.git (fetch)
>>>> > >> mel    ssh://git@github.com/MentorEmbedded/meta-mentor.git (push)
>>>> > >>
>>>> > >> so, your remote name is 'mel'. My guess is that 'origin' is taken
>>>> from
>>>> > >> your toasterconfig.json. Unfortunately I can't
>>>> > >> reproduce this on my machine as I don't have your layers.
>>>> > >>
>>>> > >> I'd suggest to replace 'origin' with 'mel' in your config and try
>>>> again.
>>>> > >>
>>>> > >
>>>> > > Sure Ed, I would try to use mel instead of origin and I will update
>>>> the
>>>> > > result. Thanks for the pointer.
>>>> > >
>>>> >
>>>> > When I change to mel in the config file, the error I get is :
>>>> >
>>>>
>>>> This happened because of this db constraint for SourceLayer model:
>>>> unique_together = (('sourcetype', 'apiurl'), )
>>>>
>>>> Looks like you have duplicate apiurls in your config.
>>>>
>>>
>>> Yah you are right. So I cleaned up sqlite db. And restarted toaster,
>>> without importing toaster's default config. And then tried with my changes
>>> and its nice to see, changes getting included. I have attached the
>>> screenshot. Thanks Ed for the valuable support.
>>>
>>>
>>>
>>>>
>>>> Regards,
>>>> Ed
>>>>
>>>> > ----------
>>>> > (venv)sujith@kdekidd0:~/MEL/toaster_MEL$
>>>> > ./poky/bitbake/lib/toaster/manage.py loadconf
>>>> > /home/sujith/MEL/toaster_MEL/meta-mentor/toasterconf.json
>>>> > Traceback (most recent call last):
>>>> >   File "./poky/bitbake/lib/toaster/manage.py", line 10, in <module>
>>>> >     execute_from_command_line(sys.argv)
>>>> >   File
>>>> >
>>>> "/home/sujith/MEL/toaster_MEL/venv/local/lib/python2.7/site-packages/django/core/management/__init__.py",
>>>> > line 399, in execute_from_command_line
>>>> >     utility.execute()
>>>> >   File
>>>> >
>>>> "/home/sujith/MEL/toaster_MEL/venv/local/lib/python2.7/site-packages/django/core/management/__init__.py",
>>>> > line 392, in execute
>>>> >     self.fetch_command(subcommand).run_from_argv(self.argv)
>>>> >   File
>>>> >
>>>> "/home/sujith/MEL/toaster_MEL/venv/local/lib/python2.7/site-packages/django/core/management/base.py",
>>>> > line 242, in run_from_argv
>>>> >     self.execute(*args, **options.__dict__)
>>>> >   File
>>>> >
>>>> "/home/sujith/MEL/toaster_MEL/venv/local/lib/python2.7/site-packages/django/core/management/base.py",
>>>> > line 285, in execute
>>>> >     output = self.handle(*args, **options)
>>>> >   File
>>>> >
>>>> "/home/sujith/MEL/toaster_MEL/poky/bitbake/lib/toaster/bldcontrol/management/commands/loadconf.py",
>>>> > line 171, in handle
>>>> >     self._import_layer_config(filepath)
>>>> >   File
>>>> >
>>>> "/home/sujith/MEL/toaster_MEL/poky/bitbake/lib/toaster/bldcontrol/management/commands/loadconf.py",
>>>> > line 97, in _import_layer_config
>>>> >     apiurl = apiurl
>>>> >   File
>>>> >
>>>> "/home/sujith/MEL/toaster_MEL/venv/local/lib/python2.7/site-packages/django/db/models/manager.py",
>>>> > line 157, in create
>>>> >     return self.get_queryset().create(**kwargs)
>>>> >   File
>>>> >
>>>> "/home/sujith/MEL/toaster_MEL/venv/local/lib/python2.7/site-packages/django/db/models/query.py",
>>>> > line 319, in create
>>>> >     obj.save(force_insert=True, using=self.db)
>>>> >   File
>>>> >
>>>> "/home/sujith/MEL/toaster_MEL/poky/bitbake/lib/toaster/orm/models.py", line
>>>> > 740, in save
>>>> >     return super(LayerSource, self).save(*args, **kwargs)
>>>> >   File
>>>> >
>>>> "/home/sujith/MEL/toaster_MEL/venv/local/lib/python2.7/site-packages/django/db/models/base.py",
>>>> > line 545, in save
>>>> >     force_update=force_update, update_fields=update_fields)
>>>> >   File
>>>> >
>>>> "/home/sujith/MEL/toaster_MEL/venv/local/lib/python2.7/site-packages/django/db/models/base.py",
>>>> > line 573, in save_base
>>>> >     updated = self._save_table(raw, cls, force_insert, force_update,
>>>> using,
>>>> > update_fields)
>>>> >   File
>>>> >
>>>> "/home/sujith/MEL/toaster_MEL/venv/local/lib/python2.7/site-packages/django/db/models/base.py",
>>>> > line 654, in _save_table
>>>> >     result = self._do_insert(cls._base_manager, using, fields,
>>>> update_pk,
>>>> > raw)
>>>> >   File
>>>> >
>>>> "/home/sujith/MEL/toaster_MEL/venv/local/lib/python2.7/site-packages/django/db/models/base.py",
>>>> > line 687, in _do_insert
>>>> >     using=using, raw=raw)
>>>> >   File
>>>> >
>>>> "/home/sujith/MEL/toaster_MEL/venv/local/lib/python2.7/site-packages/django/db/models/manager.py",
>>>> > line 232, in _insert
>>>> >     return insert_query(self.model, objs, fields, **kwargs)
>>>> >   File
>>>> >
>>>> "/home/sujith/MEL/toaster_MEL/venv/local/lib/python2.7/site-packages/django/db/models/query.py",
>>>> > line 1511, in insert_query
>>>> >     return query.get_compiler(using=using).execute_sql(return_id)
>>>> >   File
>>>> >
>>>> "/home/sujith/MEL/toaster_MEL/venv/local/lib/python2.7/site-packages/django/db/models/sql/compiler.py",
>>>> > line 898, in execute_sql
>>>> >     cursor.execute(sql, params)
>>>> >   File
>>>> >
>>>> "/home/sujith/MEL/toaster_MEL/venv/local/lib/python2.7/site-packages/django/db/backends/util.py",
>>>> > line 69, in execute
>>>> >     return super(CursorDebugWrapper, self).execute(sql, params)
>>>> >   File
>>>> >
>>>> "/home/sujith/MEL/toaster_MEL/venv/local/lib/python2.7/site-packages/django/db/backends/util.py",
>>>> > line 53, in execute
>>>> >     return self.cursor.execute(sql, params)
>>>> >   File
>>>> >
>>>> "/home/sujith/MEL/toaster_MEL/venv/local/lib/python2.7/site-packages/django/db/utils.py",
>>>> > line 99, in __exit__
>>>> >     six.reraise(dj_exc_type, dj_exc_value, traceback)
>>>> >   File
>>>> >
>>>> "/home/sujith/MEL/toaster_MEL/venv/local/lib/python2.7/site-packages/django/db/backends/util.py",
>>>> > line 53, in execute
>>>> >     return self.cursor.execute(sql, params)
>>>> >   File
>>>> >
>>>> "/home/sujith/MEL/toaster_MEL/venv/local/lib/python2.7/site-packages/django/db/backends/sqlite3/base.py",
>>>> > line 450, in execute
>>>> >     return Database.Cursor.execute(self, query, params)
>>>> > django.db.utils.IntegrityError: UNIQUE constraint failed:
>>>> > orm_layersource.name
>>>> > (venv)sujith@kdekidd0:~/MEL/toaster_MEL$
>>>> > ----------
>>>> >
>>>> > >
>>>> > >
>>>> > >> Regards,
>>>> > >> Ed
>>>> > >>
>>>> > >>
>>>> > >> On Fri, Aug 07, 2015 at 02:24:44PM +0530, sujith h wrote:
>>>> > >> > On Thu, Aug 6, 2015 at 6:11 PM, sujith h <sujith.h@gmail.com>
>>>> wrote:
>>>> > >> >
>>>> > >> > > Hi all,
>>>> > >> > >
>>>> > >> > > At Mentor we provide already cloned layers ( like poky,
>>>> meta-mentor
>>>> > >> etc ).
>>>> > >> > > In meta-mentor layer we have a setup-environment script which
>>>> when
>>>> > >> run from
>>>> > >> > > command line along with arguments like machine name ( eg:
>>>> qemuarm,
>>>> > >> minnow
>>>> > >> > > etc ) would create a build folder with local.conf and
>>>> bblayers.conf.
>>>> > >> The
>>>> > >> > > bblayers.conf will include all the layers which are dependent
>>>> for
>>>> > >> machine
>>>> > >> > > to be built. So I was thinking of creating a separate
>>>> > >> toasterconf.json file
>>>> > >> > > for meta-mentor so that it will include all the layers which
>>>> are
>>>> > >> required
>>>> > >> > > for us to use toaster.
>>>> > >> > >
>>>> > >> > > So my query here is, should I add toasterconf.json file in
>>>> meta-mentor
>>>> > >> > > layer so that toaster can pick it up? Or should it be in a
>>>> different
>>>> > >> > > location which toaster can read it from there.
>>>> > >> > >
>>>> > >> > >
>>>> > >> > > Let me know if my query needs more inputs.
>>>> > >> > >
>>>> > >> >
>>>> > >> > I figured out a way to use toasterconf.json file which I created
>>>> in
>>>> > >> > meta-mentor layer, using command:
>>>> > >> > ---------
>>>> > >> > ./poky/bitbake/lib/toaster/manage.py loadconf
>>>> > >> meta-mentor/toasterconf.json
>>>> > >> > ---------
>>>> > >> >
>>>> > >> >
>>>> > >> > When I execute the above command below is the error I get:
>>>> > >> >
>>>> > >> > --------------
>>>> > >> > (venv)sujith@kdekidd0:~/MEL/toaster_MEL$
>>>> > >> > ./poky/bitbake/lib/toaster/manage.py loadconf
>>>> > >> meta-mentor/toasterconf.json
>>>> > >> > Traceback (most recent call last):
>>>> > >> >   File "./poky/bitbake/lib/toaster/manage.py", line 10, in
>>>> <module>
>>>> > >> >     execute_from_command_line(sys.argv)
>>>> > >> >   File
>>>> > >> >
>>>> > >>
>>>> "/home/sujith/MEL/toaster_MEL/venv/local/lib/python2.7/site-packages/django/core/management/__init__.py",
>>>> > >> > line 399, in execute_from_command_line
>>>> > >> >     utility.execute()
>>>> > >> >   File
>>>> > >> >
>>>> > >>
>>>> "/home/sujith/MEL/toaster_MEL/venv/local/lib/python2.7/site-packages/django/core/management/__init__.py",
>>>> > >> > line 392, in execute
>>>> > >> >     self.fetch_command(subcommand).run_from_argv(self.argv)
>>>> > >> >   File
>>>> > >> >
>>>> > >>
>>>> "/home/sujith/MEL/toaster_MEL/venv/local/lib/python2.7/site-packages/django/core/management/base.py",
>>>> > >> > line 242, in run_from_argv
>>>> > >> >     self.execute(*args, **options.__dict__)
>>>> > >> >   File
>>>> > >> >
>>>> > >>
>>>> "/home/sujith/MEL/toaster_MEL/venv/local/lib/python2.7/site-packages/django/core/management/base.py",
>>>> > >> > line 285, in execute
>>>> > >> >     output = self.handle(*args, **options)
>>>> > >> >   File
>>>> > >> >
>>>> > >>
>>>> "/home/sujith/MEL/toaster_MEL/poky/bitbake/lib/toaster/bldcontrol/management/commands/loadconf.py",
>>>> > >> > line 171, in handle
>>>> > >> >     self._import_layer_config(filepath)
>>>> > >> >   File
>>>> > >> >
>>>> > >>
>>>> "/home/sujith/MEL/toaster_MEL/poky/bitbake/lib/toaster/bldcontrol/management/commands/loadconf.py",
>>>> > >> > line 71, in _import_layer_config
>>>> > >> >     bvo.giturl =
>>>> _read_git_url_from_local_repository(bvi['giturl'])
>>>> > >> >   File
>>>> > >> >
>>>> > >>
>>>> "/home/sujith/MEL/toaster_MEL/poky/bitbake/lib/toaster/bldcontrol/management/commands/loadconf.py",
>>>> > >> > line 62, in _read_git_url_from_local_repository
>>>> > >> >     raise Exception("Error while looking for remote \"%s\" in
>>>> \"%s\"" %
>>>> > >> > (remote_name, out))
>>>> > >> > Exception: Error while looking for remote "origin" in "mel
>>>> ssh://
>>>> > >> > git@github.com/MentorEmbedded/meta-mentor.git (fetch)
>>>> > >> > mel    ssh://git@github.com/MentorEmbedded/meta-mentor.git
>>>> (push)
>>>> > >> > "
>>>> > >> > (venv)sujith@kdekidd0:~/MEL/toaster_MEL$
>>>> > >> > --------------
>>>> > >> >
>>>> > >> > The reason I believe is its checking for origin in the git branch
>>>> > >> output.
>>>> > >> > When I execute 'git branch -a' in meta-mentor layer we have, I
>>>> get:
>>>> > >> >
>>>> > >> > ------------
>>>> > >> > sujith@kdekidd0:~/MEL/toaster_MEL/meta-mentor$ git branch -a
>>>> > >> > * (no branch)
>>>> > >> >   remotes/m/master -> mel/master
>>>> > >> >   remotes/mel/daisy
>>>> > >> >   remotes/mel/danny
>>>> > >> >   remotes/mel/dylan
>>>> > >> >   remotes/mel/fix-parse-cache-issue
>>>> > >> >   remotes/mel/layerscape
>>>> > >> >   remotes/mel/master
>>>> > >> >   remotes/mel/meibp/2013
>>>> > >> >   remotes/mel/mentor/atp
>>>> > >> >   remotes/mel/mentor/mel6
>>>> > >> >   remotes/mel/merge-and-update-master
>>>> > >> >   remotes/mel/release/2013.11
>>>> > >> >   remotes/mel/release/2013.11-adit
>>>> > >> >   remotes/mel/release/2014.05
>>>> > >> >   remotes/mel/release/2014.05-async1
>>>> > >> >   remotes/mel/release/2014.05-async1-lite
>>>> > >> >   remotes/mel/release/2014.05-async2
>>>> > >> >   remotes/mel/release/2014.05_fastboot_addon
>>>> > >> >   remotes/mel/release/2014.12
>>>> > >> >   remotes/mel/release/2014.12-async1
>>>> > >> >   remotes/mel/release/2014.12-birch
>>>> > >> >   remotes/mel/revert-471-sysroot-stage-dirs-undefined
>>>> > >> >   remotes/mel/sb-2727
>>>> > >> > sujith@kdekidd0:~/MEL/toaster_MEL/meta-mentor$
>>>> > >> > ------------
>>>> > >> >
>>>> > >> > Now this is another twist, which I would have to solve.
>>>> > >> >
>>>> > >> >
>>>> > >> > --
>>>> > >> > സുജിത് ഹരിദാസന്
>>>> > >> > Bangalore
>>>> > >> > <Project>Contributor to KDE project
>>>> > >> > http://fci.wikia.com/wiki/Anti-DRM-Campaign
>>>> > >> > <Blog> http://sujithh.info
>>>> > >>
>>>> > >> > --
>>>> > >> > _______________________________________________
>>>> > >> > toaster mailing list
>>>> > >> > toaster@yoctoproject.org
>>>> > >> > https://lists.yoctoproject.org/listinfo/toaster
>>>> > >>
>>>> > >>
>>>> > >> --
>>>> > >> --
>>>> > >> Regards,
>>>> > >> Ed
>>>> > >>
>>>> > >
>>>> > >
>>>> > >
>>>> > > --
>>>> > > സുജിത് ഹരിദാസന്
>>>> > > Bangalore
>>>> > > <Project>Contributor to KDE project
>>>> > > http://fci.wikia.com/wiki/Anti-DRM-Campaign
>>>> > > <Blog> http://sujithh.info
>>>> > >
>>>> >
>>>> >
>>>> >
>>>> > --
>>>> > സുജിത് ഹരിദാസന്
>>>> > Bangalore
>>>> > <Project>Contributor to KDE project
>>>> > http://fci.wikia.com/wiki/Anti-DRM-Campaign
>>>> > <Blog> http://sujithh.info
>>>>
>>>> --
>>>> --
>>>> Regards,
>>>> Ed
>>>>
>>>
>>>
>>>
>>> --
>>> സുജിത് ഹരിദാസന്
>>> Bangalore
>>> <Project>Contributor to KDE project
>>> http://fci.wikia.com/wiki/Anti-DRM-Campaign
>>> <Blog> http://sujithh.info
>>>
>>
>>
>>
>> --
>> സുജിത് ഹരിദാസന്
>> Bangalore
>> <Project>Contributor to KDE project
>> http://fci.wikia.com/wiki/Anti-DRM-Campaign
>> <Blog> http://sujithh.info
>>
>
>
>
> --
> സുജിത് ഹരിദാസന്
> Bangalore
> <Project>Contributor to KDE project
> http://fci.wikia.com/wiki/Anti-DRM-Campaign
> <Blog> http://sujithh.info
>



-- 
സുജിത് ഹരിദാസന്
Bangalore
<Project>Contributor to KDE project
http://fci.wikia.com/wiki/Anti-DRM-Campaign
<Blog> http://sujithh.info

[-- Attachment #1.2: Type: text/html, Size: 42805 bytes --]

[-- Attachment #2: toasterconf.json --]
[-- Type: application/json, Size: 6516 bytes --]

[-- Attachment #3: Toaster_Aug_10_NoLayers.png --]
[-- Type: image/png, Size: 184193 bytes --]

^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2015-08-10 11:50 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-08-06 12:41 Adding custom toasterconf.json file for Mentor sujith h
2015-08-07  8:54 ` sujith h
2015-08-07 11:41   ` Ed Bartosh
2015-08-07 12:01     ` sujith h
2015-08-07 12:19       ` sujith h
2015-08-07 12:37         ` Ed Bartosh
2015-08-07 12:58           ` sujith h
2015-08-10  9:25             ` sujith h
2015-08-10  9:56               ` sujith h
2015-08-10 11:49                 ` sujith h

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.