<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Hello Shakeeb,<br>
      <br>
      Typically there is a D-Bus object for each version and that
      implements the xyz.openbmc_project.Software.Version
      interface. /xyz/openbmc_project/software doesn't implement the
      interface.<br>
      <br>
      busctl tree xyz.openbmc_project.Software.BMC.Updater<br>
      └─/xyz<br>
        └─/xyz/openbmc_project<br>
          └─/xyz/openbmc_project/software<br>
            ├─/xyz/openbmc_project/software/6b6a7c53<br>
            └─/xyz/openbmc_project/software/76174d14</p>
    <p>I guess the upstream implementation of this command is broken
      with the latest version format. We discussed this in the
      community, work is not done yet.
      <a class="moz-txt-link-freetext" href="https://lists.ozlabs.org/pipermail/openbmc/2020-August/022598.html">https://lists.ozlabs.org/pipermail/openbmc/2020-August/022598.html</a><br>
    </p>
    Regards,<br>
    Tom
    <p><br>
    </p>
    <div class="moz-cite-prefix">On 06-11-2020 09:38, Shakeeb B K wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CABYu0WhSqhhxULpe+f9eq2e8Tv4uYzh2DaDRxfXe838pk4EP4Q@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <!-- BaNnErBlUrFlE-HeAdEr-start -->
      <meta name="viewport" content="width=device-width;
        initial-scale=1.0; maximum-scale=1.0; user-scalable=no;">
      <style>
      /* Mobile */
      @media screen and (max-width: 630px){
        * {-webkit-text-size-adjust: none}
        a[href^="x-apple-data-detectors:"] { color: inherit; text-decoration: none; }
        .pfptTitle { font-size:22px !important; line-height:26px !important; text-align: center !important; }
        .pfptSubtitle { font-size:14px !important; line-height:18px !important; text-align: center !important; }
        
        .pfptMainWrapper { margin-top: 0 !important; margin-right: 0 !important; margin-left: 0 !important; }
        th[class="pfptTableColumnLeft"] {width:100% !important; height:auto !important; display:block !important; text-align: center !important; }
        th[class="pfptTableColumnRight"] {width:100% !important; height:auto !important; display:block !important; text-align: center !important; }

        .pfptButton { font-size:16px !important; line-height:16px !important; width: 50% !important; display:block !important; margin-right: auto!important; margin-left: auto!important; }   
        .pfptButton a { font-size: 16px; } 
        .pfptButton span { font-size: 16px; }     
      }
      /* Tablet, Laptop, Desktop */
      @media screen and (min-width: 631px){
        th[class="pfptTableColumnLeft"] { width: 50% !important; height:auto !important; }
        th[class="pfptTableColumnRight"] { width: 50% !important; height:auto !important; text-align: right !important; } 
      }
      .pfptPreheader { display:none !important; visibility:hidden; mso-hide:all; font-size:1px; line-height:1px; max-height:0px; max-width:0px; opacity:0; overflow:hidden; }
    </style>
      <!-- BaNnErBlUrFlE-HeAdEr-end -->
      <!-- BaNnErBlUrFlE-BoDy-start -->
      <!-- Preheader Text : BEGIN --> <span class="pfptPreheader"
        style="display:none
!important;visibility:hidden;mso-hide:all;font-size:1px;color:#ffffff;line-height:1px;max-height:0px;max-width:0px;opacity:0;overflow:hidden;">
        Hi Tom, Thanks for the reply. But it doesn't seem to work as
        expected. I'm looking at... 
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
              </span>
      <!-- Preheader Text : END -->
      <!-- Email Banner : BEGIN -->
      <table style="width:100%;border-radius:4px;margin-bottom:16px;"
        width="100%" cellspacing="0" cellpadding="16" border="0"
        bgcolor="#9CA3A7">
        <tbody>
          <tr>
            <td align="center">
              <table class="pfptMainWrapper" style="width:100%;"
                width="100%" cellspacing="0" cellpadding="0" border="0"
                align="center">
                <tbody>
                  <tr>
                    <td style="border-radius:4px;" valign="top"
                      align="center">
                      <table style="max-width:100%; width:100%;"
                        width="100%" cellspacing="0" cellpadding="0"
                        border="0" bgcolor="#9CA3A7" align="center">
                        <tbody>
                          <tr>
                            <!-- Message : BEGIN --> <th
                              class="pfptTableColumnLeft"
style="font-weight:normal;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;width:100%;height:auto;"
                              valign="top">
                              <table
                                style="width:100%;height:auto;text-align:left;vertical-align:middle;"
                                width="100%" cellspacing="0"
                                cellpadding="0">
                                <tbody>
                                  <tr>
                                    <td> <span class="pfptTitle"
style="font-family:'Roboto','Helvetica','Arial',sans-serif;font-weight:bold;font-size:18px;line-height:20px;display:block;margin-bottom:4px;word-wrap:normal;">This
                                        Message Is From an External
                                        Sender</span> </td>
                                  </tr>
                                  <tr>
                                    <td> <span class="pfptSubtitle"
style="font-weight:normal;font-family:'Roboto','Helvetica','Arial',sans-serif;font-size:13px;line-height:16px;display:block;word-wrap:normal;">This
                                        message came from outside your
                                        organization.</span> </td>
                                  </tr>
                                </tbody>
                              </table>
                            </th>
                            <!-- Message : END --> </tr>
                        </tbody>
                      </table>
                    </td>
                  </tr>
                </tbody>
              </table>
            </td>
          </tr>
        </tbody>
      </table>
      <!-- Email Banner : END -->
      <!-- BaNnErBlUrFlE-BoDy-end -->
      <div dir="ltr">Hi Tom,
        <div><br>
        </div>
        <div>Thanks for the reply.</div>
        <div>But it doesn't seem to work as expected. I'm looking at the
          witherspoon-bmc on QEMU.</div>
        <div><br>
        </div>
        <div><font face="monospace">root@witherspoon:~# systemctl status
            xyz.openbmc_project.Software.BMC.Updater<br>
            * <b>xyz.openbmc_project.Software.BMC.Updater.service</b> -
            OpenBMC Software Update Manager<br>
                 Loaded: loaded
            (/lib/systemd/system/xyz.openbmc_project.Software.BMC.Updater.service;
            enabled; vendor preset: enabled)<br>
                Drop-In:
            /lib/systemd/system/xyz.openbmc_project.Software.BMC.Updater.service.d<br>
                         `-software-bmc-updater.conf<br>
                 Active: <b>active (running)</b> since Thu 2020-11-05
            14:10:57 UTC; 13h ago<br>
               Main PID: 387 (phosphor-image-)<br>
                 CGroup:
            /system.slice/xyz.openbmc_project.Software.BMC.Updater.service<br>
                         `-387 /usr/bin/phosphor-image-updater<br>
            <br>
            Nov 05 14:10:53 witherspoon systemd[1]: Starting OpenBMC
            Software Update Manager...<br>
            Nov 05 14:10:57 witherspoon systemd[1]: Started OpenBMC
            Software Update Manager.</font></div>
        <div><font face="monospace"><br>
            root@witherspoon:~# busctl get-property
            xyz.openbmc_project.State.BMC
            /xyz/openbmc_project/state/bmc0
            xyz.openbmc_project.State.BMC CurrentBMCState<br>
            s "<b>xyz.openbmc_project.State.BMC.BMCState.Ready</b>"<br>
            <br>
          </font></div>
        <div><font face="monospace"><b>root@witherspoon:~# busctl
              get-property xyz.openbmc_project.Software.Version
              /xyz/openbmc_project/software
              xyz.openbmc_project.Software.Version Version<br>
              Failed to get property Version on interface
              xyz.openbmc_project.Software.Version: Unknown interface
              xyz.openbmc_project.Software.Version or property Version.</b><br>
            <br>
          </font></div>
        <div><font face="monospace">root@witherspoon:~# busctl
            introspect --no-pager xyz.openbmc_project.Software.Version
            /xyz/openbmc_project/software <br>
            NAME                                TYPE      SIGNATURE
             RESULT/VALUE  FLAGS<br>
            org.freedesktop.DBus.Introspectable interface -          -  
                      -<br>
            .Introspect                         method    -          s  
                      -<br>
            org.freedesktop.DBus.ObjectManager  interface -          -  
                      -<br>
            .GetManagedObjects                  method    -        
             a{oa{sa{sv}}} -<br>
            .InterfacesAdded                    signal    oa{sa{sv}} -  
                      -<br>
            .InterfacesRemoved                  signal    oas        -  
                      -<br>
            org.freedesktop.DBus.Peer           interface -          -  
                      -<br>
            .GetMachineId                       method    -          s  
                      -<br>
            .Ping                               method    -          -  
                      -<br>
            org.freedesktop.DBus.Properties     interface -          -  
                      -<br>
            .Get                                method    ss         v  
                      -<br>
            .GetAll                             method    s        
             a{sv}         -<br>
            .Set                                method    ssv        -  
                      -<br>
            .PropertiesChanged                  signal    sa{sv}as   -  
                      -</font><br>
        </div>
        <div><font face="monospace"><br>
          </font></div>
        <div>
          <div><br>
          </div>
          <div>Thanks,</div>
          <div>Shakeeb</div>
        </div>
      </div>
      <br>
      <div class="gmail_quote">
        <div dir="ltr" class="gmail_attr">On Fri, Nov 6, 2020 at 8:37 AM
          TOM JOSEPH <<a href="mailto:tomjose@linux.vnet.ibm.com"
            moz-do-not-send="true">tomjose@linux.vnet.ibm.com</a>>
          wrote:<br>
        </div>
        <blockquote class="gmail_quote" style="margin:0px 0px 0px
          0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
          <div>
            <p>Hey Shakeeb,<br>
              <br>
              The service implementing the
              xyz.openbmc_project.Software.Version should be running in
              the case of a normal boot as well. In our systems the
              service is xyz.openbmc_project.Software.BMC.Updater and
              the Version property is populated when the BMCState is
              Ready.<br>
            </p>
            Regards,<br>
            Tom<br>
            <br>
            <div>On 05-11-2020 20:02, Shakeeb B K wrote:<br>
            </div>
            <blockquote type="cite"> <span
style="font-size:1px;color:rgb(255,255,255);line-height:1px;max-height:0px;max-width:0px;opacity:0;overflow:hidden;display:none">
                Hi All, Currently the ipmi handler for "mc info" command
                depends on the "Version"...                         
                                                                     
                                                                     
                                                                </span>
              <table
                style="width:100%;border-radius:4px;margin-bottom:16px"
                width="100%" cellspacing="0" cellpadding="16" border="0"
                bgcolor="#9CA3A7">
                <tbody>
                  <tr>
                    <td align="center">
                      <table style="width:100%" width="100%"
                        cellspacing="0" cellpadding="0" border="0"
                        align="center">
                        <tbody>
                          <tr>
                            <td style="border-radius:4px" valign="top"
                              align="center">
                              <table style="max-width:100%;width:100%"
                                width="100%" cellspacing="0"
                                cellpadding="0" border="0"
                                bgcolor="#9CA3A7" align="center">
                                <tbody>
                                  <tr>
                                    <th
                                      style="font-weight:normal;padding:0px;width:100%;height:auto"
                                      valign="top">
                                      <table
                                        style="width:100%;height:auto;text-align:left;vertical-align:middle"
                                        width="100%" cellspacing="0"
                                        cellpadding="0">
                                        <tbody>
                                          <tr>
                                            <td> <span
style="font-family:Roboto,Helvetica,Arial,sans-serif;font-weight:bold;font-size:18px;line-height:20px;display:block;margin-bottom:4px">This
                                                Message Is From an
                                                External Sender</span> </td>
                                          </tr>
                                          <tr>
                                            <td> <span
style="font-weight:normal;font-family:Roboto,Helvetica,Arial,sans-serif;font-size:13px;line-height:16px;display:block">This
                                                message came from
                                                outside your
                                                organization.</span> </td>
                                          </tr>
                                        </tbody>
                                      </table>
                                    </th>
                                  </tr>
                                </tbody>
                              </table>
                            </td>
                          </tr>
                        </tbody>
                      </table>
                    </td>
                  </tr>
                </tbody>
              </table>
              <div dir="ltr">Hi All,
                <div><br>
                </div>
                <div>Currently the ipmi handler for "mc info" command
                  depends on the "Version" property on
                  interface xyz.openbmc_project.Software.Version. </div>
                <div>But this is getting populated only on the image
                  update path by phosphor-bmc-code-mgmt.</div>
                <div>Shouldn't the version be set on a normal boot as
                  well? Is this a gap in current implementation? </div>
                <div><br>
                </div>
                <div>Thanks,</div>
                <div>Shakeeb</div>
              </div>
            </blockquote>
          </div>
        </blockquote>
      </div>
    </blockquote>
  </body>
</html>