Skip to content
  1. Mar 09, 2020
    • jayaprakash Mutyala's avatar
      Remove unused variables for setSensorsOverride · 397fd61f
      jayaprakash Mutyala authored
      Remove unused variables for setSensorsOverride and
      checkAndDoSensorsOverride methods
      
      Tested:
      1. Redfish validator - passed for this new change
      
      Case 1:
      1. Enable manufacturing mode by pressing power button while bmc booting
      2. Patch sensor values from Redfish.
      Redfish URI:
      PATCH https://<BMC-IP>/redfish/v1/Chassis/WC_Baseboard/Thermal
      Body:
      {
          "Temperatures": [
          {
              "MemberId": "SSB_Temp",
              "ReadingCelsius":112
          }
      ]
      }
      
      Response:
      {
        "@odata.id": "/redfish/v1/Chassis/WC_Baseboard/Thermal",
        "@odata.type": "#Thermal.v1_4_0.Thermal",
        "Fans": [],
        "Id": "Thermal",
        "Name": "Thermal",
        "Temperatures": []
      }
      
      3. Sensor value Overridden successfully
      
      Case 2: Varified for ValidationUnsecure mode.
      Case 3: Tested without SpecialMode mode
      1. Stop the specialmodemgr.service service
      2. Patch sensor values from Redfish.
      3. Sensor value Overridden successfully
      
      Case 4:
      1. Disable manufacturing mode
      Command: ipmitool raw 0x30 0xB4 3 0
      Response:            //Success
      2. Patch sensor values from Redfish.
      Redfish URI:
      PATCH https://<BMC-IP
      
      >/redfish/v1/Chassis/WC_Baseboard/Thermal
      Body:
      {
          "Temperatures": [
          {
              "MemberId": "SSB_Temp",
              "ReadingCelsius":112
          }
      ]
      }
      
      3. Returning proper error.
      Response :
      {
        "error": {
          "@Message.ExtendedInfo": [
            {
              "@odata.type": "/redfish/v1/$metadata#Message.v1_0_0.Message",
              "Message": "The action Overriding of Sensor Value for
                  non manufacturing mode is not supported by the resource.",
              "MessageArgs": [
                "Overriding of Sensor Value for non manufacturing mode"
              ],
              "MessageId": "Base.1.4.0.ActionNotSupported",
              "Resolution": "The action supplied cannot be resubmitted to
                 the implementation.  Perhaps the action was invalid, the
                 wrong resource was the target or the implementation
                 documentation may be of assistance.",
              "Severity": "Critical"
            }
          ],
          "code": "Base.1.4.0.ActionNotSupported",
          "message": "The action Overriding of Sensor Value for
                  non manufacturing mode is not supported by the resource."
        }
      }
      
      Signed-off-by: default avatarjayaprakash Mutyala <mutyalax.jayaprakash@intel.com>
      Change-Id: I0598f1ff16a391864cd1371e514fb8da1797d8d5
      397fd61f
    • jayaprakash Mutyala's avatar
      Allow sensor value override in mfg mode only · 70d1d0aa
      jayaprakash Mutyala authored
      Issue: User is able to override sensor value even though system is not
      in manufacturing mode
      
      Fix: Code changes are done to patch sensor values when system is only
      in manufacturing Mode.
      
      Tested:
      1. Redfish validator - passed for this new change
      
      Case 1:
      1. Enable manufacturing mode by pressing power button while bmc booting
      2. Patch sensor values from Redfish.
      Redfish URI:
      PATCH https://<BMC-IP>/redfish/v1/Chassis/WC_Baseboard/Thermal
      Body:
      {
          "Temperatures": [
          {
              "MemberId": "SSB_Temp",
              "ReadingCelsius":112
          }
      ]
      }
      
      Response:
      {
        "@odata.id": "/redfish/v1/Chassis/WC_Baseboard/Thermal",
        "@odata.type": "#Thermal.v1_4_0.Thermal",
        "Fans": [],
        "Id": "Thermal",
        "Name": "Thermal",
        "Temperatures": []
      }
      
      3. Sensor value Overridden successfully
      
      Case 2: Varified for ValidationUnsecure mode.
      Case 3: Tested without SpecialMode mode
      1. Stop the specialmodemgr.service service
      2. Patch sensor values from Redfish.
      3. Sensor value Overridden successfully
      
      Case 4:
      1. Disable manufacturing mode
      Command: ipmitool raw 0x30 0xB4 3 0
      Response:            //Success
      2. Patch sensor values from Redfish.
      Redfish URI:
      PATCH https://<BMC-IP
      
      >/redfish/v1/Chassis/WC_Baseboard/Thermal
      Body:
      {
          "Temperatures": [
          {
              "MemberId": "SSB_Temp",
              "ReadingCelsius":112
          }
      ]
      }
      
      3. Returning proper error.
      Response :
      {
        "error": {
          "@Message.ExtendedInfo": [
            {
              "@odata.type": "/redfish/v1/$metadata#Message.v1_0_0.Message",
              "Message": "The action Overriding of Sensor Value for
                  non manufacturing mode is not supported by the resource.",
              "MessageArgs": [
                "Overriding of Sensor Value for non manufacturing mode"
              ],
              "MessageId": "Base.1.4.0.ActionNotSupported",
              "Resolution": "The action supplied cannot be resubmitted to
                 the implementation.  Perhaps the action was invalid, the
                 wrong resource was the target or the implementation
                 documentation may be of assistance.",
              "Severity": "Critical"
            }
          ],
          "code": "Base.1.4.0.ActionNotSupported",
          "message": "The action Overriding of Sensor Value for
                  non manufacturing mode is not supported by the resource."
        }
      }
      
      Signed-off-by: default avatarjayaprakash Mutyala <mutyalax.jayaprakash@intel.com>
      Change-Id: I34cd53fba939fb367310c531a050792ef749dd70
      70d1d0aa
  2. Mar 06, 2020
    • Ed Tanous's avatar
      Implement a TODO(ed) · f7929c31
      Ed Tanous authored
      
      
      Aparently the static analysers have gotten smarter, as has my
      understanding of operator[] on std::array.  Fix the character array to
      not use c style arrays.
      
      Tested:
      Should have no impact.  Will test using webui to verify that sessions
      are still generated properly.
      
      Signed-off-by: default avatarEd Tanous <ed.tanous@intel.com>
      Change-Id: Iaa6cbac7594dfb0c83383ff62fc591dd1d786547
      f7929c31
  3. Mar 05, 2020
    • Gunnar Mills's avatar
      Update ManagerAccountCollection Privilege · f365910c
      Gunnar Mills authored
      For the ManagerAccountCollection resource,
      /redfish/v1/AccountService/Accounts/, allow a "ConfigureSelf"
      user to GET but only return the user's account if the user does
      not have ConfigureUsers privilege.
      
      Took this code from other places in account_service.
      https://github.com/openbmc/bmcweb/blob/61dbeef97168db1a1f7a351c5f95e09afd361e48/redfish-core/lib/account_service.hpp#L1528
      
      There was some question whether all accounts should be returned,
      Redfish clarified that only the user's account should be returned
      without ConfigureUsers privilege.
      
      https://redfishforum.com/thread/281/manageraccountcollection-change-allows-account-enumeration
      
      
      "we assumed that the Login privilege would only pertain to the
      current account and not allow viewing of other accounts"
      
      This fixes 2 Redfish validator errors if running the validator
      as a Readonly or Operator role.
      
      "ERROR - Accounts: GET of resource at URI
      /redfish/v1/AccountService/Accounts returned HTTP 403. Check URI."
      
      "ERROR - /redfish/v1/AccountService/Accounts:  URI could not be
      acquired: 403"
      
      This was changed in Redfish 2019.3, redfish issue 1914 explains
      more.
      
      Tested: Ran the validator as operator role and admin role.
              No errors.
      As root:
       curl -k https://${bmc}/redfish/v1/AccountService/Accounts/
      {
        "@odata.id": "/redfish/v1/AccountService/Accounts",
        "@odata.type": "#ManagerAccountCollection.ManagerAccountCollection",
        "Description": "BMC User Accounts",
        "Members": [
          {
            "@odata.id": "/redfish/v1/AccountService/Accounts/readonly"
          },
          {
            "@odata.id": "/redfish/v1/AccountService/Accounts/operator"
          },
          {
            "@odata.id": "/redfish/v1/AccountService/Accounts/JimHalpert"
          },
          {
            "@odata.id": "/redfish/v1/AccountService/Accounts/root"
          }
        ],
        "Members@odata.count": 4,
      
      As Operator:
      curl -k https://${bmc}/redfish/v1/AccountService/Accounts/
      {
        "@odata.id": "/redfish/v1/AccountService/Accounts",
        "@odata.type": "#ManagerAccountCollection.ManagerAccountCollection",
        "Description": "BMC User Accounts",
        "Members": [
          {
            "@odata.id": "/redfish/v1/AccountService/Accounts/operator"
          }
        ],
        "Members@odata.count": 1,
      
      Change-Id: I0694011ed3c4ecd3ea0c386fc24d086be39ac804
      Signed-off-by: default avatarGunnar Mills <gmills@us.ibm.com>
      f365910c
    • Przemyslaw Czarnowski's avatar
      Permission check for virtual media proxy mode · 250b0ebb
      Przemyslaw Czarnowski authored
      
      
      This patch enables checking of user permission for proxy mode, as start of
      this kind service is not triggered by redfish (which has permission check by
      default).
      Permission check is done in .onopen handler of websocket. For this reason
      another dbus call for user privileges is added to verify if user has
      "ConfigureManager" privilege.
      
      I have chosen this approach, as generic privilege check for all websockets
      introduces significant changes in connection upgrade flow which makes
      implementaion vague and caused some memory issues difficult to track down.
      
      It is worth noting that other websockets (eg. kvm) uses .required()
      function to set privilege but this information is lost during connection
      upgrade and is not checked anywhere in upgrade flow.
      
      Tested:
      Manual tests with opening websockets via web browser and dedicated nbd proxy
      utility. For users with/without appropriate permissions.
      Single request and burst of requests has been tested as well.
      
      Change-Id: I2a56bec606fa0e5f3d4232e48794c9055bf6095e
      Signed-off-by: default avatarPrzemyslaw Czarnowski <przemyslaw.hawrylewicz.czarnowski@intel.com>
      250b0ebb
  4. Mar 03, 2020
  5. Mar 02, 2020
    • James Feist's avatar
      Add Success to Crashdump response · 66afe4fa
      James Feist authored
      
      
      This adds the success message to the task when it is
      finished.
      
      Tested: Passed Validator
      
      Change-Id: Ib1010249157c0be713ccfd076e93d9502471fc65
      Signed-off-by: default avatarJames Feist <james.feist@linux.intel.com>
      66afe4fa
    • James Feist's avatar
      Add TaskService · 46229577
      James Feist authored
      
      
      This adds tasks service to Redfish and creates an
      example for crashdump. The TaskData object creates
      tasks that can be updated based on d-bus matches. It
      also has a configurable timeout using timers. Task
      Monitor uses these task objects to reply with a 202
      until the async task is done, then a 204 when it is
      either failed or completed.
      
      Messages support will come in future commit.
      
      Tested: Validator passed, wrote script to poll monitor,
      verified that got 202 with location header and retry-after
      set correctly, then 204, then 404.
      
      Change-Id: I109e671baa1c1eeff1a11ae578e7361bf6ef9f14
      Signed-off-by: default avatarJames Feist <james.feist@linux.intel.com>
      46229577
  6. Feb 27, 2020
  7. Feb 26, 2020
  8. Feb 25, 2020
  9. Feb 21, 2020
    • Gunnar Mills's avatar
      Validator Warning: Remove AccountProviderType · ba9dd4a8
      Gunnar Mills authored
      
      
      AccountProviderType was deprecated in AccountService.v1_5_0.
      The latest AccountService is 1.7.0. Move from 1.4.0 to 1.5.0.
      
      Fixes validator warnings:
      WARNING - LDAP.AccountProviderType: The given property is deprecated
      by revision: This property is deprecated because the account provider
      type is known when used in the LDAP and ActiveDirectory objects.
      
      WARNING - ActiveDirectory.AccountProviderType: The given property is
      deprecated by revision: This property is deprecated because the
      account provider type is known when used in the LDAP and
      ActiveDirectory objects.
      
      Although not sure if the validator should have thrown a
      warning since the version of AccountService in bmcweb still
      allowed this property.
      
      AccountProviderType is not used in the GUI or other places.
      
      Resolves openbmc/bmcweb#118
      
      Tested: Passed validator.
      Change-Id: Ifa15cdd2dfd0d740e42add778f30d00e7885ed4b
      Signed-off-by: default avatarGunnar Mills <gmills@us.ibm.com>
      ba9dd4a8
  10. Feb 20, 2020
    • Gunnar Mills's avatar
      message registry: Remove odata.context · aa9bb6b1
      Gunnar Mills authored
      
      
      Redfish made odata.context optional (1.6.0 of DSP0266) and
      has removed odata.context from example payloads in the
      specification (1.7.0 of DSP0266), removed it from the mockups,
      and Redfish recommended not using.
      
      This removes the last odata.type.
      
      Tested: Built this commit and the commits below and loaded on a
              Witherspoon. No validator errors.
      Change-Id: I4cff07b9196f7e9461ea49bb8bcc706e3945e033
      Signed-off-by: default avatarGunnar Mills <gmills@us.ibm.com>
      aa9bb6b1
    • Gunnar Mills's avatar
      Network protocol: Remove odata.context · a33a7e0e
      Gunnar Mills authored
      
      
      Redfish made odata.context optional (1.6.0 of DSP0266) and
      has removed odata.context from example payloads in the
      specification (1.7.0 of DSP0266), removed it from the mockups,
      and Redfish recommended not using.
      
      Change-Id: I1c4db167ba90f46e2b0ab1c1973d3323e233322a
      Signed-off-by: default avatarGunnar Mills <gmills@us.ibm.com>
      a33a7e0e
    • Gunnar Mills's avatar
      manager: Remove odata.context · aba8515b
      Gunnar Mills authored
      
      
      Redfish made odata.context optional (1.6.0 of DSP0266) and
      has removed odata.context from example payloads in the
      specification (1.7.0 of DSP0266), removed it from the mockups,
      and Redfish recommended not using.
      
      Change-Id: I1a229e996b30b4223036c58a111e4c3ab4b749c6
      Signed-off-by: default avatarGunnar Mills <gmills@us.ibm.com>
      aba8515b
    • Gunnar Mills's avatar
      pcie: Remove odata.context · 1e45fde4
      Gunnar Mills authored
      
      
      Redfish made odata.context optional (1.6.0 of DSP0266) and
      has removed odata.context from example payloads in the
      specification (1.7.0 of DSP0266), removed it from the mockups,
      and Redfish recommended not using.
      
      Change-Id: I262f21aac32634f8e87863cca7816e4b9236227a
      Signed-off-by: default avatarGunnar Mills <gmills@us.ibm.com>
      1e45fde4
    • Gunnar Mills's avatar
      sessions: Remove odata.context · c2621e8e
      Gunnar Mills authored
      
      
      Redfish made odata.context optional (1.6.0 of DSP0266, Sept 2018).
      Redfish has removed odata.context from example payloads in the
      specification (1.7.0 of DSP0266), removed it from the mockups,
      and Redfish recommended not using.
      
      Change-Id: Iffc75a7cb68f22d67548e5632d7ebfbdd67d6598
      Signed-off-by: default avatarGunnar Mills <gmills@us.ibm.com>
      c2621e8e
    • Gunnar Mills's avatar
      Roles: Remove odata.context · 2475db8b
      Gunnar Mills authored
      
      
      Redfish made odata.context optional (1.6.0 of DSP0266, Sept 2018).
      Redfish has removed odata.context from example payloads in the
      specification (1.7.0 of DSP0266), removed it from the mockups,
      and Redfish recommended not using.
      
      Change-Id: Ic267d8c9f1fbbec6087e61edf16e6bffe11c927e
      Signed-off-by: default avatarGunnar Mills <gmills@us.ibm.com>
      2475db8b
    • Gunnar Mills's avatar
      Sensors: Remove odata.context · 3463ce46
      Gunnar Mills authored
      
      
      Redfish made odata.context optional (1.6.0 of DSP0266, Sept 2018).
      Redfish has removed odata.context from example payloads in the
      specification (1.7.0 of DSP0266), removed it from the mockups,
      and Redfish recommended not using.
      
      The reason for making optional and removing from mockups/examples,
      "no one could figure out how to use it and it did not add value".
      
      Don't see value in it for our implementation.
      
      Change-Id: I8d1c91460ea5836cb793ba1a2774a97649da208a
      Signed-off-by: default avatarGunnar Mills <gmills@us.ibm.com>
      3463ce46
    • Gunnar Mills's avatar
      Service root: Remove odata.context · d5db5e3c
      Gunnar Mills authored
      
      
      Redfish made odata.context optional (1.6.0 of DSP0266, Sept 2018).
      Redfish has removed odata.context from example payloads in the
      specification (1.7.0 of DSP0266), removed it from the mockups,
      and Redfish recommended not using.
      
      The reason for making optional and removing from mockups/examples,
      "no one could figure out how to use it and it did not add value".
      
      Don't see value in it for our implementation.
      
      Change-Id: I94bac092a3abfec59721eed2c8f10371624dacb3
      Signed-off-by: default avatarGunnar Mills <gmills@us.ibm.com>
      d5db5e3c
    • Gunnar Mills's avatar
      Storage: Remove odata.context · 29a71820
      Gunnar Mills authored
      
      
      Redfish made odata.context optional (1.6.0 of DSP0266, Sept 2018).
      Redfish has removed odata.context from example payloads in the
      specification (1.7.0 of DSP0266), removed it from the mockups,
      and Redfish recommended not using.
      
      The reason for making optional and removing from mockups/examples,
      "no one could figure out how to use it and it did not add value".
      
      Don't see value in it for our implementation.
      
      Change-Id: I16b95a4923f4b764d82cf3bc71b2ca51896822ef
      Signed-off-by: default avatarGunnar Mills <gmills@us.ibm.com>
      29a71820
    • Gunnar Mills's avatar
      System: Remove odata.context · f20ee148
      Gunnar Mills authored
      
      
      Redfish made odata.context optional (1.6.0 of DSP0266, Sept 2018).
      Redfish has removed odata.context from example payloads in the
      specification (1.7.0 of DSP0266), removed it from the mockups,
      and Redfish recommended not using.
      
      The reason for making optional and removing from mockups/examples,
      "no one could figure out how to use it and it did not add value".
      
      Don't see value in it for our implementation.
      
      Change-Id: Iee73d72d56237e8787e839ed06b979779c97d2f3
      Signed-off-by: default avatarGunnar Mills <gmills@us.ibm.com>
      f20ee148
    • Gunnar Mills's avatar
      Update service: Remove odata.context · dcf46d44
      Gunnar Mills authored
      
      
      Redfish made odata.context optional (1.6.0 of DSP0266, Sept 2018).
      Redfish has removed odata.context from example payloads in the
      specification (1.7.0 of DSP0266), removed it from the mockups,
      and Redfish recommended not using.
      
      The reason for making optional and removing from mockups/examples,
      "no one could figure out how to use it and it did not add value".
      
      Don't see value in it for our implementation.
      
      Change-Id: I0dbf424c8fb91f448da19ce12b0dadb512880204
      Signed-off-by: default avatarGunnar Mills <gmills@us.ibm.com>
      dcf46d44
    • Gunnar Mills's avatar
      virtual media: Remove odata.context · 70c616d6
      Gunnar Mills authored
      
      
      Redfish made odata.context optional (1.6.0 of DSP0266, Sept 2018).
      Redfish has removed odata.context from example payloads in the
      specification (1.7.0 of DSP0266), removed it from the mockups,
      and Redfish recommended not using.
      
      The reason for making optional and removing from mockups/examples,
      "no one could figure out how to use it and it did not add value".
      
      Don't see value in it for our implementation.
      
      Change-Id: I3972fea43d89267ba91f5a0f7c0aac00a18e0f6c
      Signed-off-by: default avatarGunnar Mills <gmills@us.ibm.com>
      70c616d6
    • Andrew Geissler's avatar
      diag-mode: return InTest if host is in diag mode · 83935af9
      Andrew Geissler authored
      Per discussion with DMTF and clarification of InTest state within
      http://redfish.dmtf.org/schemas/v1/Resource.json#/definitions/Status
      
      
      it was determined that this would represent the situation where the host
      is collecting diagnostic data. This maps to the new DiagnosticMode
      state added to the xyz.openbmc_project.State.Host.HostState namespace.
      
      Tested:
      Verified that Redfish API returned expected result when in
      DiagnosticMode:
        "Status": {
          "Health": "OK",
          "HealthRollup": "OK",
          "State": "InTest"
        },
      
      Change-Id: I1c5deb5fdc251a5dcd4d1d01f4eedb6c507ded0a
      Signed-off-by: default avatarAndrew Geissler <geissonator@yahoo.com>
      83935af9
  11. Feb 19, 2020
    • Johnathan Mantey's avatar
      Fix KVM page to display the KVM session · b8c7eb23
      Johnathan Mantey authored
      
      
      Launching a KVM session on the KVM page stopped working. The websocket
      connection request began returning connection failure error
      codes. This change fixes the asynchronous connection request to allow
      it to succeed, and in turn display the KVM session.
      
      Tested:
      Connect to BMC using Chrome (FC31), selected Control->KVM sidebar.
      Witnessed the KVM session started, and interacted with the SUT while
      it was in UEFI.
      
      Connect to BMC using Chrome (Windows 10), selected Control->KVM
      sidebar. Witnessed the KVM session started, and interacted with the
      SUT while it was in UEFI. Events performed from the Windows browser were
      duplicated in the FC31 browser.
      
      Change-Id: Ib3721990dce2e2ba71235371d903fbf508075077
      Signed-off-by: default avatarJohnathan Mantey <johnathanx.mantey@intel.com>
      b8c7eb23
    • Johnathan Mantey's avatar
      Permit Redfish to enable/disable the network interface card · eeedda23
      Johnathan Mantey authored
      
      
      The InterfaceEnabled property for an EthernetInterfaces element was
      hardcoded to "true". This change gets the actual state of the NIC. It
      also permits the NIC to be enabled or disabled.
      
      Tested:
      GET sut_ip/redfish/v1/Managers/bmc/EthernetInterfaces/eth0 (and eth1)
      PATCH InterfaceEnabled to false
      GET sut_ip/redfish/v1/Managers/bmc/EthernetInterfaces/eth0 (and eth1)
      PATCH InterfaceEnabled to true
      GET sut_ip/redfish/v1/Managers/bmc/EthernetInterfaces/eth0 (and eth1)
      Confirmed the NIC was disabled from the BMC console using "ip link"
      Confirmed the Get NIC status reported the correct enabled state.
      
      Performed the tests above on a different network to confirm the second
      NIC can be controlled orthogonally.
      
      Passed service validator.
      
      Change-Id: I09b703118fe71765c7b1020688a803c74648c7c4
      Signed-off-by: default avatarJohnathan Mantey <johnathanx.mantey@intel.com>
      eeedda23
    • Gunnar Mills's avatar
      Account Service: Remove odata.context · 94400960
      Gunnar Mills authored
      Redfish made odata.context optional (1.6.0 of DSP0266).
      Redfish has removed odata.context from example payloads in the
      specification (1.7.0 of DSP0266), removed it from the mockups,
      and Redfish recommended not using.
      
      The reason for making optional and removing from mockups/examples,
      "no one could figure out how to use it and it did not add value".
      
      Don't see value in it for our implementation.
      
      From the Redfish issue removing it:
      "@odata.context provides little/no value. The common format we use
      provides no value/guidance. A generic odata client cannot use it
      because we don't return the specific version nor do we require it
      be changed with a query parameter. Between @odata.type and the
      metadata document and service document/service root, clients get
      all of the information they need. And the case where it is
      helpful (joins, etc) is something we never do."
      
      https://github.com/DMTF/Redfish-Service-Conformance-Check/pull/171
      
      
      removes from Redfish-Service-Conformance-Check.
      
      Tested: Ran service validator. No errors.
              Ran Redfish-Service-Conformance-Check. No additional errors.
      Change-Id: Ic2c33080604ea275cf487e5cd5b9f7948af07db9
      Signed-off-by: default avatarGunnar Mills <gmills@us.ibm.com>
      94400960
  12. Feb 14, 2020
    • Gunnar Mills's avatar
      log service: Remove odata.context · 890c1016
      Gunnar Mills authored
      
      
      Tested: Built this commit and the commits under it.
              Loaded on a Witherspoon and ran validator.
              No errors.
      Change-Id: Id54bc61319f500c4122213bd0e0d6ba140c7c690
      Signed-off-by: default avatarGunnar Mills <gmills@us.ibm.com>
      890c1016
    • Gunnar Mills's avatar
      ethernet: Remove odata.context · e59f968c
      Gunnar Mills authored
      
      
      Redfish made odata.context optional (1.6.0 of DSP0266),
      has removed odata.context from example payloads in the
      specification (1.7.0 of DSP0266), removed it from the mockups,
      and Redfish recommended not using.
      
      Change-Id: I5a78856c510f063df67999bb8196e77401c56aac
      Signed-off-by: default avatarGunnar Mills <gmills@us.ibm.com>
      e59f968c
    • Gunnar Mills's avatar
      chassis: Remove odata.context · 91cc52f9
      Gunnar Mills authored
      
      
      Redfish made odata.context optional (1.6.0 of DSP0266) and
      has removed odata.context from example payloads in the
      specification (1.7.0 of DSP0266), removed it from the mockups,
      and Redfish recommended not using.
      
      Change-Id: I96e8908f07d27696aaf2e2ba33f49411b8e51ec5
      Signed-off-by: default avatarGunnar Mills <gmills@us.ibm.com>
      91cc52f9
    • Gunnar Mills's avatar
      cpudimm: Remove odata.context · 73155d0e
      Gunnar Mills authored
      
      
      Redfish made odata.context optional (1.6.0 of DSP0266) and
      has removed odata.context from example payloads in the
      specification (1.7.0 of DSP0266), removed it from the mockups,
      and Redfish recommended not using.
      
      Change-Id: I4f9ce00b8cc6f413896879d8c8ec6e093279bd47
      Signed-off-by: default avatarGunnar Mills <gmills@us.ibm.com>
      73155d0e
    • Gunnar Mills's avatar
      certificate_service: Remove odata.context · 8c9ced1f
      Gunnar Mills authored
      
      
      Redfish made odata.context optional (1.6.0 of DSP0266, Sept 2018).
      Redfish has removed odata.context from example payloads in the
      specification (1.7.0 of DSP0266), removed it from the mockups,
      and Redfish recommended not using.
      
      The reason for making optional and removing from mockups/examples,
      "no one could figure out how to use it and it did not add value".
      
      Don't see value in it for our implementation.
      
      Change-Id: I3d634aa1a58072589e565f2361e010b459bfd3f5
      Signed-off-by: default avatarGunnar Mills <gmills@us.ibm.com>
      8c9ced1f
    • Gunnar Mills's avatar
      Move to latest Redfish Service version · 5b816f23
      Gunnar Mills authored
      The latest version of the Redfish Service is 1.9.0.
      Nothing preventing us from moving to it.
      Find the Redfish Specification (DSP0266) here:
      https://www.dmtf.org/dsp/DSP0266
      
      
      
      Looks like code is already trying to use some of the 1.7.0
      features:
      "Added "Password Management" clause to describe functional behavior
      for restricting access when an account requires a password change."
      Eventing mechanism and ApplyTime.
      
      Will want to use features like:
      odata.context optional, query parameter clarification, and eventing
      clarification.
      
      Tested: Redfish Validator. Not really a valid test though.
              Ran Redfish-Service-Conformance-Check, didn't see
              additional errors.
      
      Note: bmcweb still has a lot of Conformance Checker errors,
      we are not in 100% complicance with Redfish specification.
      
      Change-Id: I0acd28efa2aaa91149f53efddae530816fd41fff
      Signed-off-by: default avatarGunnar Mills <gmills@us.ibm.com>
      5b816f23
    • Johnathan Mantey's avatar
      Report NIC link status via netlink carrier state · aa05fb27
      Johnathan Mantey authored
      
      
      Update Redfish to use a DBus boolean value specifically intended for
      communicating the NIC link state. Existing Intel server boards have a
      NCSI channel with a speed value always assigned to 100Mbps. This makes
      identifying link state impossible via the network speed value. The
      DBus boolean uses the netlink carrier on/off state which is more
      accurate.
      
      Tested:
      
      BMC Console commands:
      ip link set down dev eth0
      Get managers/bmc/eth0 state   ;; LinkStatus is LinkDown
      
      ip link set up dev eth0
      Get managers/bmc/eth0 state   ;; LinkStatus is LinkUp
      
      Remove NIC cable from RJ45 connector
      Get managers/bmc/eth0 state   ;; LinkStatus is LinkDown
      
      Insert NIC cable into RJ45 connector
      Get managers/bmc/eth0 state   ;; LinkStatus is LinkUp
      
      Change-Id: I93d3f716a0afc563e3312e99b4a4163187985521
      Signed-off-by: default avatarJohnathan Mantey <johnathanx.mantey@intel.com>
      aa05fb27
    • James Feist's avatar
      Fix off by 1 error · 45b1b135
      James Feist authored
      
      
      i can increment > qs_kv_size with some inputs. Fix this
      by incrementing earlier in the loop instead so we don't
      have to increment after the loop and possibly go past
      max.
      
      Tested: Used bad string and no longer saw segfault
      
      Change-Id: Ia68cd9b24e9a0b16646197983c513d78df2239ed
      Signed-off-by: default avatarJames Feist <james.feist@linux.intel.com>
      45b1b135
  13. Feb 13, 2020
    • Gunnar Mills's avatar
      Redfish: Processor: Add new 2019.4 properties · f9dcc11c
      Gunnar Mills authored
      
      
      In 2019.4 was a new 1.7.0 Processor schema that included
      PartNumber, SerialNumber, and Version.
      
      Tested: Ran validator.
       curl -k  https://${bmc}/redfish/v1/Systems/system/Processors/cpu0
      {
        "@odata.context": "/redfish/v1/$metadata#Processor.Processor",
        "@odata.id": "/redfish/v1/Systems/system/Processors/cpu0",
        "@odata.type": "#Processor.v1_7_0.Processor",
        "Id": "cpu0",
        "InstructionSet": "PowerISA",
        "Manufacturer": "IBM",
        "Model": "",
        "Name": "Processor",
        "PartNumber": "02CY102",
        "ProcessorArchitecture": "Power",
        "ProcessorType": "CPU",
        "SerialNumber": "YA1934292547",
        "Status": {
          "Health": "OK",
          "State": "Enabled"
        },
        "TotalCores": 18,
        "Version": "22"
      }
      
      Change-Id: I6ad02eacf77640965d126a9db6c51cdfdb691978
      Signed-off-by: default avatarGunnar Mills <gmills@us.ibm.com>
      f9dcc11c
    • Gunnar Mills's avatar
      Move to 2019.4 · 09b9d45e
      Gunnar Mills authored
      Make changes to update_schemas.py needed for the move and run
      update_schemas.py.
      
      To see an overview of 2019.4 see
      https://www.dmtf.org/sites/default/files/Redfish_Release_2019.4_Overview.pdf
      
      
      
      Tested: Built bmcweb, loaded on a Witherspoon, and ran
              the validator. No errors.
      
      See new schemas:
       curl -k https://${bmc}/redfish/v1/JsonSchemas/VCATEntry
      {
          "@odata.context": "/redfish/v1/$metadata#JsonSchemaFile.JsonSchemaFile",
          "@odata.id": "/redfish/v1/JsonSchemas/VCATEntry",
          "@odata.type": "#JsonSchemaFile.v1_0_2.JsonSchemaFile",
          "Name": "VCATEntry Schema File",
          "Schema": "#VCATEntry.VCATEntry",
      
      Change-Id: I5ae6e3c655e44c82c4457515555bdb934dfb7763
      Signed-off-by: default avatarGunnar Mills <gmills@us.ibm.com>
      09b9d45e
Loading