summaryrefslogtreecommitdiffstats
path: root/static
Commit message (Collapse)AuthorAgeFilesLines
* Move to 2019.3Gunnar Mills2020-02-1034-388/+3138
| | | | | | | | | | | | | | | | | | | | | | | Make changes to update_schemas.py needed for the move and run update_schemas.py. old path (2019.2) DSP8010_2019.2/DSP8010_2019.2/json-schema/MemoryMetrics.v1_1_2.json DSP8010_2019.2/DSP8010_2019.2/openapi/Memory.v1_0_3.yaml DSP8010_2019.2/DSP8010_2019.2/csdl/AccelerationFunction_v1.xml new path (2019.3) DSP8010_2019.3/csdl/Memory_v1.xml DSP8010_2019.3/json-schema/UpdateService.v1_1_2.json DSP8010_2019.3/openapi/Zone.v1_3_1.yaml To see an overview of 2019.3 see https://www.dmtf.org/sites/default/files/Redfish_Release_2019.3_Overview.pdf Tested: Built bmcweb, loaded on a Witherspoon, and ran the validator. No errors. Change-Id: I0deaf88b884d65fffa31fcf66183ed61a930a073 Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
* Update update_schemas.py with new OemGunnar Mills2020-02-071-8/+8
| | | | | | | | | | | | | | | | | | | | | | Several Oem schemas have been added but the update_schemas.py has not been updated. Added them to the update_schemas.py so the static/redfish/v1/$metadata/index.xml is correctly built by update_schemas.py. This is needed to move us to 2019.3 and eventually 2019.4. Ideally, we would not just have a bunch of metadata_index.write to write the Oem schemas to $metadata/index.xml but this will do for now. https://github.com/openbmc/bmcweb/issues/32 is to improve this. Tested: Ran update_schemas.py and loaded that image on a Witherspoon and ran the validator. No errors. Change-Id: Iade028e690c31e25a72503d9352bc75eb7ee58dc Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
* Move Crashdump to OemCrashdumpGunnar Mills2020-02-074-13/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | All other Oem Schemas start with Oem. This is used by the update_schemas.py to determine an Oem schema and is a reasonable requirement for Oem schemas. https://github.com/openbmc/bmcweb/blob/a3268f98f308ca7c8660b1ace44d5b9a40be204b/scripts/update_schemas.py#L43 Tested: Ran the validator against this change on a Witherspoon with BMCWEB_ENABLE_REDFISH_CPU_LOG enabled and OemCheck true. Validator passed. Might be worth running on a system that actually uses BMCWEB_ENABLE_REDFISH_CPU_LOG. curl -k https://${bmc}/redfish/v1/Systems/system/LogServices/Crashdump { "@odata.context": "/redfish/v1/$metadata#LogService.LogService", "@odata.id": "/redfish/v1/Systems/system/LogServices/Crashdump", "@odata.type": "#LogService.v1_1_0.LogService", "Actions": { "#LogService.ClearLog": { "target": "/redfish/v1/Systems/system/LogServices/Crashdump/Actions/LogService.ClearLog" }, "Oem": { "#Crashdump.OnDemand": { "target": "/redfish/v1/Systems/system/LogServices/Crashdump/Actions/Oem/Crashdump.OnDemand" } } }, "Description": "Oem Crashdump Service", "Entries": { "@odata.id": "/redfish/v1/Systems/system/LogServices/Crashdump/Entries" }, "Id": "Oem Crashdump", "MaxNumberOfRecords": 3, "Name": "Open BMC Oem Crashdump Service", "OverWritePolicy": "WrapsWhenFull" } Change-Id: Iacc11be1284b99c2ed9a6c2ca0a936bd97855afb Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
* Add OemVirtualMedia schemaPrzemyslaw Czarnowski2020-01-273-0/+111
| | | | | | | | | | | | | | OEM Schema for VirtualMedia added. Also OpenBMC level has been added to OEM field in the code to conform to schema standard. Tested: Manually using full stack of VirtualMedia. * Inserting/ejecting media in both legacy and proxy mode * Redfish Service Validator 1.3.2 ran Change-Id: Iaa87dd767a4bf2062bd4e74dd790a2496aca96de Signed-off-by: Przemyslaw Czarnowski <przemyslaw.hawrylewicz.czarnowski@intel.com>
* Fix $metadata/index.xml parse errorJason M. Bills2019-12-171-0/+1
| | | | | | | | Tested: Can successfully load /redfish/v1/$metadata in Chrome. Change-Id: Id591ae3c03ffe3889d7f61299454407a9e9f1c23 Signed-off-by: Jason M. Bills <jason.m.bills@linux.intel.com>
* TLS method configurationZbigniew Kurzynski2019-11-122-0/+15
| | | | | | | | | | | | | | User is now able to turn on and off the TLS authentication method. Tested: No regression found in manual testing. By default everything works as before, and disabling TLS method prevents user to authenticate by it. Tested with Redfish Service Validator, version 1.2.8 Signed-off-by: Zbigniew Kurzynski <zbigniew.kurzynski@intel.com> Change-Id: Ib7be1af659db568caa7e5b97e3844617586d7754
* Auth methods configurationZbigniew Kurzynski2019-11-073-0/+177
| | | | | | | | | | | | | | | | | | | | | | | | | | Added Oem extension for AccountService allowing user to configure which authentication methods should be enabled. User is now able to turn on and off authentication methods like BasicAuth, XToken, etc. User is not allowed to turn off all of the methods at once - at least one method has to be active to prevent lock-out. This configuration is persistent, will be saved on file-system and will be loaded on bmcweb's restart. Tested: No regression found in manual testing. By default everything works as before, and disabling auth method prevents user to authenticate by it. Tested that user is not allowed to disable all the methods - either in one PATCH or by disabling them one at a time. ServiceValidator run with success. This change is a fix for this request: https://gerrit.openbmc-project.xyz/c/openbmc/bmcweb/+/23590/18 which was revert here: https://gerrit.openbmc-project.xyz/c/openbmc/bmcweb/+/26869 Signed-off-by: Zbigniew Kurzynski <zbigniew.kurzynski@intel.com> Change-Id: I66b5ad423746f1992070a14f2983a07b1320190e
* Revert "Auth methods configuration"James Feist2019-11-043-177/+0
| | | | | | | | | This reverts commit 0ff64dc2cd3a15b4204a477ad2eb5219d66e6110. Reason for revert: <breaks redfish validator, <edmx:Reference Uri="/redfish/v1/schema/OemAccountService_v1.xml"> but the file name unversioned static/redfish/v1/schema/OemAccountService.xml> Change-Id: I696dd09bf519e364f5f529a674e047a8eeead578 Signed-off-by: James Feist <james.feist@linux.intel.com>
* Auth methods configurationKowalski, Kamil2019-10-313-0/+177
| | | | | | | | | | | | | | | | | | | | | Added Oem extension for AccountService allowing user to configure which authentication methods should be enabled. User is now able to turn on and off authentication methods like BasicAuth, XToken, etc. User is not allowed to turn off all of the methods at once - at least one method has to be active to prevent lock-out. This configuration is persistent, will be saved on file-system and will be loaded on bmcweb's restart. Tested: No regression found in manual testing. By default everything works as before, and disabling auth method prevents user to authenticate by it. Tested that user is not allowed to disable all the methods - either in one PATCH or by disabling them one at a time. ServiceValidator run with success. Change-Id: I3a775d783ac05998d17b8e91800962bffd8cab52 Signed-off-by: Kowalski, Kamil <kamil.kowalski@intel.com> Signed-off-by: Zbigniew Kurzynski <zbigniew.kurzynski@intel.com>
* Added OemComputerSystems and properties for provisioningAppaRao Puli2019-10-303-0/+181
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Added OemComputerSystems Schema for provisioning properties - Added "ProvisioningStatus" Oem property with EnumType 1) NotProvisioned 2) ProvisionedButNotLocked 3) ProvisionedAndLocked Intel secures platform firmware components using Intel PFR mechanism. This may differ for other Oem's(non-intel platforms) but the properties like Provisioned, Locked states should be of generic as per NIST SP 800-193. Added build time flag to enable/disable PFR supported platforms. Tested: - By default provisioning feature is OFF, using GET method on below URI verified Oem Property and observed no such property. This is default behaviour on upstream. URI: /redfish/v1/Systems/system Response: No "Oem" property. - Enabled provisioning feature in Intel platforms and Verified using Systems URI. Ran the redfish validator tool and no new issues found due to this change. URI: /redfish/v1/Systems/system RESPONSE: ..... "Oem": { "OpenBmc": { "FirmwareProvisioning": { "ProvisioningStatus": "NotProvisioned" } } } ..... Signed-off-by: AppaRao Puli <apparao.puli@linux.intel.com> Change-Id: I674e6075263f4fa2962637d3add47393a1ff0c0b
* Add a Redfish schema for the Crashdump OEM ActionsJason M. Bills2019-10-294-0/+181
| | | | | | | | Tested: Passed the Redfish Service Validator Change-Id: Ib121346e3be031584eb522ceb8c8e4e3a350f13a Signed-off-by: Jason M. Bills <jason.m.bills@linux.intel.com>
* Update Redfish schemas to 2019.2Ed Tanous2019-10-11219-15855/+21751
| | | | | | | | | | | | | Note, the DMTF changed the format of the schema file pack yet again, so the script changes now to compensate for that. Tested: Ran schema validator. One unrelated failure in LogEntry, and 4 new warnings in PCIe devices (we're using a deprecated property). All other endpoints pass. Signed-off-by: Ed Tanous <ed.tanous@intel.com> Change-Id: I81c030a7c5a6a32cc12a5e7e02a9441b7891bc5d
* Add SetPointOffset To RefishJames Feist2019-07-302-1/+10
| | | | | | | | | | | | | | | | | | | | | | | | | This allows adding a threshold as a setpoint offset so that dynamic thresholds can be used to modify a setpoint. Tested: Get and Patch worked { "Oem": { "OpenBmc": { "Fan": { "PidControllers": { "CPU1_DIMM_ABC": { "SetPointOffset": "UpperThresholdCritical" } } } } } } Change-Id: If515971778a8041aba0ab51da87ec5b29ebc359d Signed-off-by: James Feist <james.feist@linux.intel.com>
* Redfish: fix warning in validatorEd Tanous2019-05-091-86/+86
| | | | | | | | | | | | | | | | The validator gives warnings like: URI acquired ends in slash: /redfish/v1/JsonSchemas/Zone These warnings don't actually result in warnings, because the trailing slash has always been a question in the spec, but we might as well do it correctly, even if most of the tools don't take an issue with it. Tested: Ran service validator, saw no new failures, and observed no errors mentioned above. Signed-off-by: Ed Tanous <ed.tanous@intel.com> Change-Id: I184422d7a14838339253c945d7a0c91878093e17
* Remove the static OpenBMC Message Registry fileJason M. Bills2019-05-082-143/+0
| | | | | | | | | | | | This change removes the static OpenBMC Message Registry file and replaces it with a compile-time structure. Tested: Verified the OpenBMC Message registry is correctly returned from the existing endpoints without using the static files. Change-Id: I60ab3ce0d23c9ac7e91ebb85f445fb9ca731983d Signed-off-by: Jason M. Bills <jason.m.bills@linux.intel.com>
* Remove the static Base Message Registry fileJason M. Bills2019-05-083-578/+0
| | | | | | | | | | | | | | | | This change removes the static Base Message Registry file and replaces it with a compile-time structure. A script is used to pull the Base Message Registry file from the DMTF and parse it into the .hpp structure. Tested: Verified that after running the script, I can get the same Redfish data back from the existing endpoints without using the static files. Change-Id: Ide3c61ecff62801c06619d5c3edc2229c945d8e7 Signed-off-by: Jason M. Bills <jason.m.bills@linux.intel.com>
* Fix OemManager schema for profilesJames Feist2019-05-042-41/+97
| | | | | | | | | | Make schema pass validator. Found quite a few missing fields and odata.id issues. Tested: Passes validator Change-Id: Ibba92018d07a2a9f2ba833c295a235fee7845a97 Signed-off-by: James Feist <james.feist@linux.intel.com>
* Fix DCPowerOff.NumberOfArgs Mandatory propGunnar Mills2019-04-021-3/+5
| | | | | | | | | | | | | | | | | | | | | The RedfishServiceValidator throws the following error: "ERROR - Messages.DCPowerOff.NumberOfArgs: Mandatory prop does not exist" for #MessageRegistry.v1_0_0.MessageRegistry. From https://redfish.dmtf.org/schemas/MessageRegistry.v1_0_0.json "required": [ "Description", "Message", "Severity", "NumberOfArgs", "Resolution" ], Tested: Loaded this change on a Witherspoon, ran RedfishServiceValidator and no longer observe the error. Change-Id: I9ccf3703bc6b06d2bd74f548e1bd4e2badd68c07 Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
* Add registry messages for DC power eventsNikhil Potade2019-03-181-0/+12
| | | | | | | System DC power On-Off events are added to the message registry Change-Id: Ib3cbe065a096dedde8b5eecb7ac29aec855cbbcb Signed-off-by: Nikhil Potade <nikhil.potade@linux.intel.com>
* Redfish: Fix incorrect reference tag added as part of update_schemas.py scriptMarri Devender Rao2019-03-111-1/+1
| | | | | Change-Id: I763534d54b7630aec30883d04e02b4f478c10ab4 Signed-off-by: Marri Devender Rao <devenrao@in.ibm.com>
* pid: add direction to stepwiseJames Feist2019-03-011-1/+5
| | | | | | | | | | We now have upper and lower clipping curves, add direction so we can tell which is which. Tested-by: GET and PATCH work Change-Id: I0cdfa159a3a27355a8e67c65e42e765f191f7719 Signed-off-by: James Feist <james.feist@linux.intel.com>
* Fix bad link in Redfish JsonSchemas IDEd Tanous2019-02-0686-172/+172
| | | | | Change-Id: I993ae392d87a19acd51fe093f8244a9c781dd339 Signed-off-by: Ed Tanous <ed.tanous@intel.com>
* Redfish: Update schema files to 2018.3Marri Devender Rao2019-02-02157-1509/+10900
| | | | | | | | | | | | Redfish schema 2018.3 was released on January 11th, 2019. While there aren't any plans to utilize any of the new services, it makes sense to keep up to date with the latest static data. This commit was largely done automatically using the update_schemas.py script. Change-Id: I74c6fac08d21629ca976ff8694fce011b5247e34 Signed-off-by: Marri Devender Rao <devenrao@in.ibm.com>
* Redfish Schema: Add Stepwise to Oem SchemaJames Feist2019-01-142-1/+183
| | | | | | | | | | | This adds the schema required for stepwise controllers. JSON is auto-created based on XML using redfish csdl to json script. Tested-by: Ran redfish validator and verified it passed Change-Id: Id933d248f55c98d858a7dccffa974f95b98b554e Signed-off-by: James Feist <james.feist@linux.intel.com>
* Update schema files to 2018.2Ed Tanous2019-01-07209-3117/+14852
| | | | | | | | | | | | Redfish schema 2018.2 was released on September 20th, 2018. While there aren't any plans to utilize any of the new services, it makes sense to keep up to date with the latest static data. This commit was largely done automatically using the update_schemas.py script. Change-Id: Ieaa9f1ab2a47244ef201cfe9a064744d7d156745 Signed-off-by: Ed Tanous <ed.tanous@intel.com>
* Add the Redfish message registriesJason M. Bills2018-11-165-0/+707
| | | | | | | | | | | | | | This change adds the message registries used by bmcweb. It includes the OEM OpenBMC.0.1.0 message registry and the DMTF Base.1.4.0 message registry for reference. Tested: Ran the Redfish Service Validator and got passing results for the MessageRegistryCollection and the two MessageRegsitryFiles. Change-Id: I3e5756103006f065530253b5dbc0d7720cf616b9 Signed-off-by: Jason M. Bills <jason.m.bills@linux.intel.com>
* Add Pid Oem Redfish SchemaJames Feist2018-10-293-0/+648
| | | | | | | | This adds a xml and generated json redfish schema for OemManager. Change-Id: Ic2d42c4326ba02a423ffecc0bfa8c6872c3b389b Signed-off-by: James Feist <james.feist@linux.intel.com>
* Fix JsonSchema indexesEd Tanous2018-10-16139-24925/+27008
| | | | | | | | | | | JsonSchema was throwing errors in the validator, so implement changes to the update script to add the appropiate indexes. Tested by: Schema validator passes on the JsonSchema Fields Change-Id: I6cb2737901b55c1089aef744d3ce3c3dfe13f17f Signed-off-by: Ed Tanous <ed.tanous@intel.com>
* Implement redfish LogServiceEd Tanous2018-10-091-0/+2
| | | | | | | | | | | This commit implements an optional LogService endpoint for debugging CPUs over Redish. It exposes both the ability to create a new log with the LogImmediate action, as well as to pull a stored log using the LogCollection schema. This feature is disabled by default, and should be enabled in the meta-x86 layer. Change-Id: Ied1d5e263a0857e09cd9a24fddec9c11a4066cd2 Signed-off-by: Ed Tanous <ed.tanous@intel.com>
* Implement JsonSchema endpointEd Tanous2018-09-1771-0/+25220
| | | | | | | | | | This patchset implements JsonSchema support, and automates our update of the XML metadata, and Json schema files in the future by way of a python script. Change-Id: Iec6f580d10736678149db18d87be2f140b535be9 Signed-off-by: Ed Tanous <ed.tanous@intel.com> Signed-off-by: James Feist <james.feist@linux.intel.com>
* Implement odata endpointEd Tanous2018-08-151-0/+55
| | | | | | | | | | | | | | As part of the Redfish standard, the /redfish/v1/odata endpoint is required to be implemented, to provide intial provisioning. At one point it was thought to be optional. Tested By: Reading /redfish/v1/odata and verifying the correct response is returned, as well as attempting running the interop tool from the DMTF website, which originally exposed the issue. Change-Id: I4775e4f23be0d6e76bc5da503f455f23f10d1364 Signed-off-by: Ed Tanous <ed.tanous@intel.com>
* Update sensors to reflect changes after switching to sdbusplusLewanczyk, Dawid2018-06-291-0/+3
| | | | | | | | - GetManagedObjects should be call only on service root path - additional fixes for RSV Change-Id: I4e345e57b081d7683fd8f3f4efa23fe4091ce41e Signed-off-by: Lewanczyk, Dawid <dawid.lewanczyk@intel.com>
* Update Redfish Schema to 2018.1Jason M. Bills2018-06-29107-9613/+20428
| | | | Change-Id: I4e5d5d49b4524c8a4d73ae0117fcf7e9aedfbb79
* Introduce ComputerSystem schemaLewanczyk, Dawid2018-06-296-597/+890
| | | | | | | | | | | | | | Initial commit which adds: - ComputerSchemaCollection GET method - ComputerSchema GET, PATCH methods Tested on x86 and aspeed - RSV pass for ComputerSchema - bmcweb interface no regression - smbios interface tested with demo app Change-Id: Ib64084c5888bc511a24f954a6bc062ca920addbe Signed-off-by: Lewanczyk, Dawid <dawid.lewanczyk@intel.com>
* Implement pretty printing json to HTMLEd Tanous2018-04-223-0/+380
| | | | | Change-Id: Ibe3cdc2cd53470ccd437b1b6e21bc7dd29c4b85e Signed-off-by: Ed Tanous <ed.tanous@intel.com>
* Add full index support to static files loaderEd Tanous2018-04-201-4/+4
| | | | | | | | ... and remove file spcific check for redfish $metadata. This allows the $metadata to be pre-gzip compressed if we choose. Change-Id: I697bd7f8a8f5dc1a7b448d699b2daf93a296c248 Signed-off-by: Ed Tanous <ed.tanous@intel.com>
* Add the redfish static files to the buildEd Tanous2017-10-24117-73033/+10848
| | | | | | | ...And delete the old webserver static files from the repo. Move $metadata to a static file, as that's really where it belongs. Change-Id: I2caeee7cd779b7c07cfc10cd693459105656671f
* Large updates to webserverEd Tanous2017-10-119-298/+186
| | | | | | Do not merge yet Change-Id: I38c56844c1b0e3e8e5493c2705e62e6db7ee2102
* Add System Configuration PageFeist, James2017-08-225-1/+46
| | | | | | Parses json file and writes entites to page. Change-Id: I486070deb48e0b447c904542148dbc3721f1facf
* Lots of updates to webserver.Ed Tanous2017-08-085-8/+12
| | | | | | | | | | | Make ssl keys consistent (and write to the correct location) Make sessions keyed by connection id Clean up logging frameworks Add new static files, and make firmware update work Make sensors work again Add better json handling Change-Id: I531a0fd7d583e049949cf27aa71544808fd7642d
* Fix issue in release builds for sensorControllerEd Tanous2017-06-281-48/+53
|
* update sensor pageEd Tanous2017-06-286-45/+656
|
* Make dbus connections allow multiple connectionsEd Tanous2017-06-263-10/+122
| | | | Fix static dependencies
* incrementalEd Tanous2017-06-221-6/+39
|
* fix typo with detecting uglify-jsEd Tanous2017-06-201-1/+1
|
* Make cssnano and uglifyjs optionalEd Tanous2017-06-191-6/+7
|
* switch to uglifyjs instead of closure compilerEd Tanous2017-06-151-5/+3
|
* incrementalEd Tanous2017-06-121-11/+20
|
* incrementalEd Tanous2017-06-0624-4721/+8280
|
* incrementalEd Tanous2017-05-115-2/+48
|
OpenPOWER on IntegriCloud