<?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>15395</bug_id>
          
          <creation_ts>2024-02-09 16:02:09 +0000</creation_ts>
          <short_desc>Update Layer button does not display logs and creates two Update records in the database</short_desc>
          <delta_ts>2026-10-27 04:39:21 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>6</classification_id>
          <classification>Yocto Project Subprojects</classification>
          <product>Layer Index</product>
          <component>Layer Index</component>
          <version>5.0</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>6.2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Tim Orling">tim.orling</reporter>
          <assigned_to name="Tim Orling">tim.orling</assigned_to>
          
          
          <qa_contact name="apoorv sangal">apoorvsangal</qa_contact>
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Don&apos;t know</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>98180</commentid>
    <comment_count>0</comment_count>
    <who name="Tim Orling">tim.orling</who>
    <bug_when>2024-02-09 16:02:09 +0000</bug_when>
    <thetext>When you click on the Update Layer button, e.g. for meta-maker, you see the Task View page but no dynamic log is displayed. Perhaps only when the task completes very quickly, the Success is also not detected.

Previously, the Update Layer button would launch a task view that showed nothing because the layerscelery container on the server did not have the database credentials. This has now been fixed.

From the admin interface, we can see that two Update records are created:

The first one is the actual task and shows the log:
https://layers.openembedded.org/admin/layerindex/update/39273/change/

which shows a proper task view after the fact:
https://layers.openembedded.org/layerindex/task/3ff5cb35-3c45-45f3-b973-353a0763502e/

The second one is empty with no task id and no record of what triggered it:
https://layers.openembedded.org/admin/layerindex/update/39274/change/

The update command is run in
https://git.yoctoproject.org/layerindex-web/tree/layerindex/tasks.py#n40

The update is generated in:
https://git.yoctoproject.org/layerindex-web/tree/layerindex/views.py#n125

Also, we should should double check that the lock is being respected/checked for. If a systemd timer/cronjob update is already running, we should queue the task and wait until the lock is freed. Some UI indication of the wait would be nice.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>