<?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>13132</bug_id>
          
          <creation_ts>2019-01-10 14:37:51 +0000</creation_ts>
          <short_desc>Cannot force updates using srt manage</short_desc>
          <delta_ts>2019-03-04 17:02:13 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>6</classification_id>
          <classification>Yocto Project Subprojects</classification>
          <product>Security Response Tool</product>
          <component>General</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>2.7 M3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ross Burton">ross.burton</reporter>
          <assigned_to name="David Reyna">david.reyna</assigned_to>
          
          
          
          <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>82724</commentid>
    <comment_count>0</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2019-01-10 14:37:51 +0000</bug_when>
    <thetext>It looks like I should be able to force an update (ie from a cron, or manually) using srt manage.  However:

$ ./bin/srt manage lsupdates
SRT_MAIN_APP=yp
The system will manage.
Skipping datasource SRT database schema for command line tools (already loaded)
Skipping datasource Table of package keyword filters (already loaded)
Skipping datasource Table of notification categories (already loaded)
Skipping datasource NIST 2015 (already loaded)
Skipping datasource NIST 2016 (already loaded)
Skipping datasource NIST 2017 (already loaded)
Skipping datasource NIST 2018 (already loaded)
Skipping datasource NIST Modified Data (no init action)
Skipping datasource NIST Common Weakness Enumeration Data (already loaded)
Skipping datasource MITRE 2015 (already loaded)
Skipping datasource MITRE 2016 (already loaded)
Skipping datasource MITRE 2017 (already loaded)
Skipping datasource MITRE 2018 (already loaded)
Skipping datasource Debian (already loaded)
Skipping datasource RedHat (no init action)
Skipping datasource Yocto Project Product Table (already loaded)
Skipping datasource Sample User Table (already loaded)
Skipping datasource Local CVE (no init action)
Skipping datasource Weekly archive database backup (no init action)
Skipping datasource Daily archive database backup (no init action)
Skipping datasource Preset New CVEs (already loaded)
Skipping datasource Score CVEs (already loaded)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>82763</commentid>
    <comment_count>1</comment_count>
    <who name="David Reyna">david.reyna</who>
    <bug_when>2019-01-11 19:58:25 +0000</bug_when>
    <thetext>Hi,

The &quot;lsupdates&quot; is currently focused on the &quot;initialization&quot; phase, and in your example output you will observe that all of the datasources are already initialized.

The &quot;bin/common/srtool_utils.py&quot; is the tool that handles the &quot;updates&quot; and the CRON job connection. That tool is being ported to the current SRTool release (as per bug 13131). Once I have this working I will update the documentation on how to connect it to CRON jobs.

We discussed &quot;force an update&quot; facility in a different enhancement request. I will look at extending &quot;lsupdates&quot; (or another management tool) to support that.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>83182</commentid>
    <comment_count>2</comment_count>
    <who name="David Reyna">david.reyna</who>
    <bug_when>2019-03-04 17:02:13 +0000</bug_when>
    <thetext>This has been implemented. See &quot;./bin/srt manage update -h&quot;.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>