<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>8818</bug_id>
          
          <creation_ts>2015-12-16 14:54:09 +0000</creation_ts>
          <short_desc>error in lsupdates when duplicate openembedded-core layers found</short_desc>
          <delta_ts>2016-04-27 16:18:32 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>Toaster</product>
          <component>toaster</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>OBSOLETE</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>2.2 M2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Michael Wood">michael.g.wood</reporter>
          <assigned_to name="Michael Wood">michael.g.wood</assigned_to>
          <cc>belen.barros.pena</cc>
    
    <cc>jessica.zhang</cc>
    
    <cc>stanciux.mihail</cc>
          
          <qa_contact name="Libertad">libertad.gonzalez.de.la.cruz</qa_contact>
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>57302</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Wood">michael.g.wood</who>
    <bug_when>2015-12-16 14:54:09 +0000</bug_when>
    <thetext>If a layer &quot;openembedded-core&quot; already exists in the system and we get another one added externally we currently fail to know which layer to update from the info from the layer index.

2015-12-15 11:42:28,368 WARNING ZZZZ: urllib2.urlopen: http://layers.openembedded.org/layerindex/api/layerItems/
Failure while trying to import the toaster config file /var/www/bia/yocto/poky/meta-yocto/conf/toasterconf.json: get() returned more than one Layer -- it returned 2!
Traceback (most recent call last):
  File &quot;/var/www/bia/toaster/poky/bitbake/lib/toaster/bldcontrol/management/commands/checksettings.py&quot;, line 114, in _verify_be
    call_command(&quot;lsupdates&quot;)
  File &quot;/var/www/bia/toaster/venv/local/lib/python2.7/site-packages/django/core/management/__init__.py&quot;, line 120, in call_command
    return command.execute(*args, **defaults)
  File &quot;/var/www/bia/toaster/venv/local/lib/python2.7/site-packages/django/core/management/base.py&quot;, line 445, in execute
    output = self.handle(*args, **options)
  File &quot;/var/www/bia/toaster/venv/local/lib/python2.7/site-packages/django/core/management/base.py&quot;, line 661, in handle
    return self.handle_noargs(**options)
  File &quot;/var/www/bia/toaster/poky/bitbake/lib/toaster/orm/management/commands/lsupdates.py&quot;, line 12, in handle_noargs
    ls.update()
  File &quot;/var/www/bia/toaster/poky/bitbake/lib/toaster/orm/models.py&quot;, line 948, in update
    oe_core_l =  Layer.objects.get(name=oe_core_layer)
  File &quot;/var/www/bia/toaster/venv/local/lib/python2.7/site-packages/django/db/models/manager.py&quot;, line 127, in manager_method
    return getattr(self.get_queryset(), name)(*args, **kwargs)
  File &quot;/var/www/bia/toaster/venv/local/lib/python2.7/site-packages/django/db/models/query.py&quot;, line 338, in get
    (self.model._meta.object_name, num)
MultipleObjectsReturned: get() returned more than one Layer -- it returned 2!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>61734</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Wood">michael.g.wood</who>
    <bug_when>2016-04-27 16:18:32 +0000</bug_when>
    <thetext>Not sure how to reproduce this one any more. Will re-open if it crops up again.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>