History log of /openbmc/bmcweb/redfish-core/ (Results 26 – 50 of 1981)
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
40e9b92e10-Sep-2024 Ed Tanous <etanous@nvidia.com>

Use SPDX identifiers

SPDX identifiers are simpler, and reduce the amount of cruft we have in
code files. They are recommended by linux foundation, and therefore we
should do as they allow.

This pa

Use SPDX identifiers

SPDX identifiers are simpler, and reduce the amount of cruft we have in
code files. They are recommended by linux foundation, and therefore we
should do as they allow.

This patchset does not intend to modify any intent on any existing
copyrights or licenses, only to standardize their inclusion.

[1] https://www.linuxfoundation.org/blog/blog/copyright-notices-in-open-source-software-projects

Change-Id: I935c7c0156caa78fc368c929cebd0f068031e830
Signed-off-by: Ed Tanous <etanous@nvidia.com>

show more ...


/openbmc/bmcweb/http/app.hpp
/openbmc/bmcweb/http/complete_response_fields.hpp
/openbmc/bmcweb/http/http2_connection.hpp
/openbmc/bmcweb/http/http_body.hpp
/openbmc/bmcweb/http/http_client.hpp
/openbmc/bmcweb/http/http_connection.hpp
/openbmc/bmcweb/http/http_request.hpp
/openbmc/bmcweb/http/http_response.hpp
/openbmc/bmcweb/http/http_server.hpp
/openbmc/bmcweb/http/logging.hpp
/openbmc/bmcweb/http/mutual_tls.cpp
/openbmc/bmcweb/http/mutual_tls.hpp
/openbmc/bmcweb/http/mutual_tls_meta.hpp
/openbmc/bmcweb/http/nghttp2_adapters.hpp
/openbmc/bmcweb/http/parsing.hpp
/openbmc/bmcweb/http/routing.hpp
/openbmc/bmcweb/http/routing/baserule.hpp
/openbmc/bmcweb/http/routing/dynamicrule.hpp
/openbmc/bmcweb/http/routing/ruleparametertraits.hpp
/openbmc/bmcweb/http/routing/sserule.hpp
/openbmc/bmcweb/http/routing/taggedrule.hpp
/openbmc/bmcweb/http/routing/websocketrule.hpp
/openbmc/bmcweb/http/server_sent_event.hpp
/openbmc/bmcweb/http/utility.hpp
/openbmc/bmcweb/http/verb.hpp
/openbmc/bmcweb/http/websocket.hpp
/openbmc/bmcweb/include/async_resolve.hpp
/openbmc/bmcweb/include/async_resp.hpp
/openbmc/bmcweb/include/authentication.hpp
/openbmc/bmcweb/include/boost_formatters.hpp
/openbmc/bmcweb/include/cookies.hpp
/openbmc/bmcweb/include/credential_pipe.hpp
/openbmc/bmcweb/include/dbus_monitor.hpp
/openbmc/bmcweb/include/dbus_privileges.hpp
/openbmc/bmcweb/include/dbus_singleton.hpp
/openbmc/bmcweb/include/dbus_utility.hpp
/openbmc/bmcweb/include/duplicatable_file_handle.hpp
/openbmc/bmcweb/include/event_service_store.hpp
/openbmc/bmcweb/include/file_test_utilities.hpp
/openbmc/bmcweb/include/forward_unauthorized.hpp
/openbmc/bmcweb/include/google/google_service_root.hpp
/openbmc/bmcweb/include/hostname_monitor.hpp
/openbmc/bmcweb/include/http_utility.hpp
/openbmc/bmcweb/include/human_sort.hpp
/openbmc/bmcweb/include/ibm/management_console_rest.hpp
/openbmc/bmcweb/include/ibm/utils.hpp
/openbmc/bmcweb/include/image_upload.hpp
/openbmc/bmcweb/include/json_formatters.hpp
/openbmc/bmcweb/include/json_html_serializer.hpp
/openbmc/bmcweb/include/kvm_websocket.hpp
/openbmc/bmcweb/include/login_routes.hpp
/openbmc/bmcweb/include/multipart_parser.hpp
/openbmc/bmcweb/include/obmc_console.hpp
/openbmc/bmcweb/include/openbmc_dbus_rest.hpp
/openbmc/bmcweb/include/ossl_random.hpp
/openbmc/bmcweb/include/pam_authenticate.hpp
/openbmc/bmcweb/include/persistent_data.hpp
/openbmc/bmcweb/include/security_headers.hpp
/openbmc/bmcweb/include/sessions.hpp
/openbmc/bmcweb/include/ssl_key_handler.hpp
/openbmc/bmcweb/include/str_utility.hpp
/openbmc/bmcweb/include/user_monitor.hpp
/openbmc/bmcweb/include/vm_websocket.hpp
/openbmc/bmcweb/include/webassets.hpp
/openbmc/bmcweb/include/webroutes.hpp
/openbmc/bmcweb/include/webserver_run.hpp
include/aggregation_utils.hpp
include/event_service_manager.hpp
include/filter_expr_executor.hpp
include/filter_expr_parser_ast.hpp
include/filter_expr_parser_grammar.hpp
include/filter_expr_printer.hpp
include/generated/enums/acceleration_function.hpp
include/generated/enums/account_service.hpp
include/generated/enums/action_info.hpp
include/generated/enums/aggregation_source.hpp
include/generated/enums/allow_deny.hpp
include/generated/enums/attribute_registry.hpp
include/generated/enums/battery.hpp
include/generated/enums/cable.hpp
include/generated/enums/certificate.hpp
include/generated/enums/chassis.hpp
include/generated/enums/circuit.hpp
include/generated/enums/collection_capabilities.hpp
include/generated/enums/component_integrity.hpp
include/generated/enums/composition_service.hpp
include/generated/enums/computer_system.hpp
include/generated/enums/connection.hpp
include/generated/enums/connection_method.hpp
include/generated/enums/container_image.hpp
include/generated/enums/control.hpp
include/generated/enums/coolant_connector.hpp
include/generated/enums/cooling_loop.hpp
include/generated/enums/cooling_unit.hpp
include/generated/enums/cxl_logical_device.hpp
include/generated/enums/drive.hpp
include/generated/enums/endpoint.hpp
include/generated/enums/endpoint_group.hpp
include/generated/enums/ethernet_interface.hpp
include/generated/enums/event.hpp
include/generated/enums/event_destination.hpp
include/generated/enums/event_service.hpp
include/generated/enums/external_account_provider.hpp
include/generated/enums/facility.hpp
include/generated/enums/host_interface.hpp
include/generated/enums/ip_addresses.hpp
include/generated/enums/job.hpp
include/generated/enums/key.hpp
include/generated/enums/key_policy.hpp
include/generated/enums/leak_detector.hpp
include/generated/enums/license.hpp
include/generated/enums/license_service.hpp
include/generated/enums/log_entry.hpp
include/generated/enums/log_service.hpp
include/generated/enums/manager.hpp
include/generated/enums/manager_account.hpp
include/generated/enums/manager_network_protocol.hpp
include/generated/enums/manifest.hpp
include/generated/enums/media_controller.hpp
include/generated/enums/memory.hpp
include/generated/enums/memory_chunks.hpp
include/generated/enums/memory_region.hpp
include/generated/enums/message_registry.hpp
include/generated/enums/metric_definition.hpp
include/generated/enums/metric_report_definition.hpp
include/generated/enums/network_device_function.hpp
include/generated/enums/network_port.hpp
include/generated/enums/open_bmc_computer_system.hpp
include/generated/enums/operating_system.hpp
include/generated/enums/outbound_connection.hpp
include/generated/enums/outlet.hpp
include/generated/enums/outlet_group.hpp
include/generated/enums/pcie_device.hpp
include/generated/enums/pcie_function.hpp
include/generated/enums/pcie_slots.hpp
include/generated/enums/physical_context.hpp
include/generated/enums/port.hpp
include/generated/enums/power.hpp
include/generated/enums/power_distribution.hpp
include/generated/enums/power_supply.hpp
include/generated/enums/privileges.hpp
include/generated/enums/processor.hpp
include/generated/enums/protocol.hpp
include/generated/enums/pump.hpp
include/generated/enums/redfish_extensions.hpp
include/generated/enums/redundancy.hpp
include/generated/enums/registered_client.hpp
include/generated/enums/reservoir.hpp
include/generated/enums/resolution_step.hpp
include/generated/enums/resource.hpp
include/generated/enums/resource_block.hpp
include/generated/enums/schedule.hpp
include/generated/enums/secure_boot.hpp
include/generated/enums/secure_boot_database.hpp
include/generated/enums/sensor.hpp
include/generated/enums/serial_interface.hpp
include/generated/enums/session.hpp
include/generated/enums/settings.hpp
include/generated/enums/signature.hpp
include/generated/enums/software_inventory.hpp
include/generated/enums/storage.hpp
include/generated/enums/storage_controller.hpp
include/generated/enums/task.hpp
include/generated/enums/task_service.hpp
include/generated/enums/telemetry_service.hpp
include/generated/enums/thermal.hpp
include/generated/enums/triggers.hpp
include/generated/enums/trusted_component.hpp
include/generated/enums/update_service.hpp
include/generated/enums/virtual_media.hpp
include/generated/enums/volume.hpp
include/generated/enums/zone.hpp
include/gzfile.hpp
include/privileges.hpp
include/query.hpp
include/redfish.hpp
include/redfish_aggregator.hpp
include/registries.hpp
include/registries/base_message_registry.hpp
include/registries/composition_message_registry.hpp
include/registries/environmental_message_registry.hpp
include/registries/ethernet_fabric_message_registry.hpp
include/registries/fabric_message_registry.hpp
include/registries/heartbeat_event_message_registry.hpp
include/registries/job_event_message_registry.hpp
include/registries/license_message_registry.hpp
include/registries/log_service_message_registry.hpp
include/registries/network_device_message_registry.hpp
include/registries/openbmc_message_registry.hpp
include/registries/platform_message_registry.hpp
include/registries/power_message_registry.hpp
include/registries/privilege_registry.hpp
include/registries/resource_event_message_registry.hpp
include/registries/sensor_event_message_registry.hpp
include/registries/storage_device_message_registry.hpp
include/registries/task_event_message_registry.hpp
include/registries/telemetry_message_registry.hpp
include/registries/update_message_registry.hpp
include/registries_selector.hpp
include/snmp_trap_event_clients.hpp
include/utils/chassis_utils.hpp
include/utils/collection.hpp
include/utils/dbus_utils.hpp
include/utils/hex_utils.hpp
include/utils/ip_utils.hpp
include/utils/json_utils.hpp
include/utils/pcie_util.hpp
include/utils/query_param.hpp
include/utils/sensor_utils.hpp
include/utils/stl_utils.hpp
include/utils/sw_utils.hpp
include/utils/systemd_utils.hpp
include/utils/telemetry_utils.hpp
include/utils/time_utils.hpp
lib/account_service.hpp
lib/aggregation_service.hpp
lib/bios.hpp
lib/cable.hpp
lib/certificate_service.hpp
lib/chassis.hpp
lib/environment_metrics.hpp
lib/ethernet.hpp
lib/event_service.hpp
lib/eventservice_sse.hpp
lib/fabric_adapters.hpp
lib/fan.hpp
lib/hypervisor_system.hpp
lib/led.hpp
lib/log_services.hpp
lib/manager_diagnostic_data.hpp
lib/manager_logservices_journal.hpp
lib/managers.hpp
lib/memory.hpp
lib/message_registries.hpp
lib/metadata.hpp
lib/metric_report.hpp
lib/metric_report_definition.hpp
lib/network_protocol.hpp
lib/odata.hpp
lib/pcie.hpp
lib/pcie_slots.hpp
lib/power.hpp
lib/power_subsystem.hpp
lib/power_supply.hpp
lib/processor.hpp
lib/redfish_sessions.hpp
lib/redfish_util.hpp
lib/redfish_v1.hpp
lib/roles.hpp
lib/sensors.hpp
lib/service_root.hpp
lib/storage.hpp
lib/systems.hpp
lib/systems_logservices_hostlogger.hpp
lib/systems_logservices_postcodes.hpp
lib/task.hpp
lib/telemetry_service.hpp
lib/thermal.hpp
lib/thermal_metrics.hpp
lib/thermal_subsystem.hpp
lib/trigger.hpp
lib/update_service.hpp
lib/virtual_media.hpp
src/filter_expr_executor.cpp
src/filter_expr_printer.cpp
src/redfish.cpp
src/registries.cpp
src/utils/dbus_utils.cpp
src/utils/json_utils.cpp
src/utils/time_utils.cpp
/openbmc/bmcweb/scripts/generate_schema_collections.py
/openbmc/bmcweb/scripts/generate_schema_enums.py
/openbmc/bmcweb/scripts/parse_registries.py
/openbmc/bmcweb/src/boost_asio.cpp
/openbmc/bmcweb/src/boost_asio_ssl.cpp
/openbmc/bmcweb/src/boost_beast.cpp
/openbmc/bmcweb/src/dbus_singleton.cpp
/openbmc/bmcweb/src/json_html_serializer.cpp
/openbmc/bmcweb/src/ossl_random.cpp
/openbmc/bmcweb/src/ssl_key_handler.cpp
/openbmc/bmcweb/src/webserver_cli.cpp
/openbmc/bmcweb/src/webserver_main.cpp
/openbmc/bmcweb/src/webserver_run.cpp
/openbmc/bmcweb/test/http/crow_getroutes_test.cpp
/openbmc/bmcweb/test/http/http2_connection_test.cpp
/openbmc/bmcweb/test/http/http_body_test.cpp
/openbmc/bmcweb/test/http/http_connection_test.cpp
/openbmc/bmcweb/test/http/http_response_test.cpp
/openbmc/bmcweb/test/http/mutual_tls.cpp
/openbmc/bmcweb/test/http/mutual_tls_meta.cpp
/openbmc/bmcweb/test/http/parsing_test.cpp
/openbmc/bmcweb/test/http/router_test.cpp
/openbmc/bmcweb/test/http/server_sent_event_test.cpp
/openbmc/bmcweb/test/http/utility_test.cpp
/openbmc/bmcweb/test/http/verb_test.cpp
/openbmc/bmcweb/test/include/async_resolve_test.cpp
/openbmc/bmcweb/test/include/credential_pipe_test.cpp
/openbmc/bmcweb/test/include/dbus_utility_test.cpp
/openbmc/bmcweb/test/include/google/google_service_root_test.cpp
/openbmc/bmcweb/test/include/http_utility_test.cpp
/openbmc/bmcweb/test/include/human_sort_test.cpp
/openbmc/bmcweb/test/include/ibm/configfile_test.cpp
/openbmc/bmcweb/test/include/json_html_serializer.cpp
/openbmc/bmcweb/test/include/multipart_test.cpp
/openbmc/bmcweb/test/include/openbmc_dbus_rest_test.cpp
/openbmc/bmcweb/test/include/ossl_random.cpp
/openbmc/bmcweb/test/include/ssl_key_handler_test.cpp
/openbmc/bmcweb/test/include/str_utility_test.cpp
/openbmc/bmcweb/test/redfish-core/include/filter_expr_executor_test.cpp
/openbmc/bmcweb/test/redfish-core/include/filter_expr_parser_test.cpp
/openbmc/bmcweb/test/redfish-core/include/privileges_test.cpp
/openbmc/bmcweb/test/redfish-core/include/redfish_aggregator_test.cpp
/openbmc/bmcweb/test/redfish-core/include/registries_test.cpp
/openbmc/bmcweb/test/redfish-core/include/utils/dbus_utils.cpp
/openbmc/bmcweb/test/redfish-core/include/utils/hex_utils_test.cpp
/openbmc/bmcweb/test/redfish-core/include/utils/ip_utils_test.cpp
/openbmc/bmcweb/test/redfish-core/include/utils/json_utils_test.cpp
/openbmc/bmcweb/test/redfish-core/include/utils/query_param_test.cpp
/openbmc/bmcweb/test/redfish-core/include/utils/sensor_utils_test.cpp
/openbmc/bmcweb/test/redfish-core/include/utils/stl_utils_test.cpp
/openbmc/bmcweb/test/redfish-core/include/utils/time_utils_test.cpp
/openbmc/bmcweb/test/redfish-core/lib/chassis_test.cpp
/openbmc/bmcweb/test/redfish-core/lib/log_services_dump_test.cpp
/openbmc/bmcweb/test/redfish-core/lib/manager_diagnostic_data_test.cpp
/openbmc/bmcweb/test/redfish-core/lib/metadata_test.cpp
/openbmc/bmcweb/test/redfish-core/lib/power_subsystem_test.cpp
/openbmc/bmcweb/test/redfish-core/lib/service_root_test.cpp
/openbmc/bmcweb/test/redfish-core/lib/system_test.cpp
/openbmc/bmcweb/test/redfish-core/lib/systems_logservices_postcode.cpp
/openbmc/bmcweb/test/redfish-core/lib/thermal_subsystem_test.cpp
/openbmc/bmcweb/test/redfish-core/lib/update_service_test.cpp
0309c21610-Jan-2025 Igor Kanyuka <ifelmail@gmail.com>

Improve subscriptions logging

If the event is not sent to the destination it
was supposed to be sent to, it's hard to find
out why it was not sent, and what was the message
content the code was work

Improve subscriptions logging

If the event is not sent to the destination it
was supposed to be sent to, it's hard to find
out why it was not sent, and what was the message
content the code was working with. Having additional
logging (mostly debug) helps with troubleshooting.

Tested:
Built an image with these changes, ran in QEMU,
enabled debug logging, setup subscription:
```
{
"@odata.id": "/redfish/v1/EventService/Subscriptions/3489160873",
"@odata.type": "#EventDestination.v1_14_1.EventDestination",
"Context": "127.0.0.1",
"DeliveryRetryPolicy": "RetryForever",
"Destination": "http://127.0.0.1:8888/events",
"EventFormatType": "Event",
"HeartbeatIntervalMinutes": 10,
"HttpHeaders": [],
"Id": "3489160873",
"MessageIds": [],
"MetricReportDefinitions": [],
"Name": "Event Destination 3489160873",
"Protocol": "Redfish",
"RegistryPrefixes": [],
"ResourceTypes": [],
"SendHeartbeat": false,
"SubscriptionType": "RedfishEvent",
"VerifyCertificate": true
}
```

and sent a message:
```
root@bmc:~# busctl call xyz.openbmc_project.Logging \
/xyz/openbmc_project/logging \
xyz.openbmc_project.Logging.Create \
Create 'ssa{ss}' \
OpenBMC.0.1.PowerButtonPressed \
xyz.openbmc_project.Logging.Entry.Level.Error 0

o "/xyz/openbmc_project/logging/entry/16"
```

Got this in the log:
```
Jan 13 04:13:13 bmc bmcwebd[823]: [DEBUG dbus_log_watcher.cpp:65]
Handling new DBus Event Log Entry
Jan 13 04:13:13 bmc bmcwebd[823]: [DEBUG dbus_log_watcher.cpp:74] Found
dbus interface org.freedesktop.DBus.Peer
Jan 13 04:13:13 bmc bmcwebd[823]: [DEBUG dbus_log_watcher.cpp:74] Found
dbus interface org.freedesktop.DBus.Introspectable
Jan 13 04:13:13 bmc bmcwebd[823]: [DEBUG dbus_log_watcher.cpp:74] Found
dbus interface org.freedesktop.DBus.Properties
Jan 13 04:13:13 bmc bmcwebd[823]: [DEBUG dbus_log_watcher.cpp:74] Found
dbus interface xyz.openbmc_project.Common.FilePath
Jan 13 04:13:13 bmc bmcwebd[823]: [DEBUG dbus_log_watcher.cpp:74] Found
dbus interface xyz.openbmc_project.Software.Version
Jan 13 04:13:13 bmc bmcwebd[823]: [DEBUG dbus_log_watcher.cpp:74] Found
dbus interface xyz.openbmc_project.Association.Definitions
Jan 13 04:13:13 bmc bmcwebd[823]: [DEBUG dbus_log_watcher.cpp:74] Found
dbus interface xyz.openbmc_project.Object.Delete
Jan 13 04:13:13 bmc bmcwebd[823]: [DEBUG dbus_log_watcher.cpp:74] Found
dbus interface xyz.openbmc_project.Logging.Entry
Jan 13 04:13:13 bmc bmcwebd[823]: [DEBUG dbus_log_watcher.cpp:59] Found
Event Log Entry Id=16, Timestamp=, Message=
Jan 13 04:13:13 bmc bmcwebd[823]: [DEBUG subscription.cpp:283]
Processing logEntry: 16, ''
Jan 13 04:13:13 bmc bmcwebd[823]: [DEBUG event_log.cpp:134]
formatEventLogEntry: could not find messageID '' for log entry 16 in
registry
Jan 13 04:13:13 bmc bmcwebd[823]: [WARNING subscription.cpp:292] Read
eventLog entry failed
Jan 13 04:13:13 bmc bmcwebd[823]: [DEBUG subscription.cpp:317] No log
entries available to be transferred.
```

Change-Id: I5cc8d48a0258f2419a7bd4f726f185abbd628110
Signed-off-by: Igor Kanyuka <ifelmail@gmail.com>

show more ...

6282bc7119-Aug-2024 Ed Tanous <etanous@nvidia.com>

Don't forward skip or only to aggregator

These two parameters are not idempotent, and are currently being run
first on the satellite, then again on the aggregator. This results in
errors and unexpe

Don't forward skip or only to aggregator

These two parameters are not idempotent, and are currently being run
first on the satellite, then again on the aggregator. This results in
errors and unexpected results.

This commit detects when we're parsing a top collection, and filters out
those two parameters from being applied to the satellite request.

To accomplish rewriting the URI, a new Request API needs added for
non-const access to the URI object.

Tested: Aggregator shows results as expected. Query params are not
forwarded to satellite

Change-Id: I99cbbb08da9fcd06c9ee10d371b253e32d01f59b
Signed-off-by: Ed Tanous <etanous@nvidia.com>

show more ...

60e995cd09-Dec-2024 Ed Tanous <etanous@nvidia.com>

Break out journal utils

A number of the journald utilities are distinct from Redfish, and could
be reused. Functions moved are copy/paste with no modifications.

Tested:
Journald LogService GET sti

Break out journal utils

A number of the journald utilities are distinct from Redfish, and could
be reused. Functions moved are copy/paste with no modifications.

Tested:
Journald LogService GET still functions correctly
Redfish service validator fails no new checks.

Change-Id: Icf1c28152e14f3e0c1c5203aac50c40d56bb272e
Signed-off-by: Ed Tanous <etanous@nvidia.com>

show more ...

f1137a9d06-Jan-2025 Ed Tanous <etanous@nvidia.com>

Remove base from journal calls

Base from the journal helper function. This is only ever used for
base10, and is only used in one spot. There's no need need to have this
as an argument. Just use d

Remove base from journal calls

Base from the journal helper function. This is only ever used for
base10, and is only used in one spot. There's no need need to have this
as an argument. Just use defaults.

Tested: Redfish service validator passes.
Journal entries at /redfish/v1/Managers/LogService/Journal/Entries
look correct

Change-Id: I427ddde1c1fc89cb8116fd9cb30b8fd799ba58b5
Signed-off-by: Ed Tanous <etanous@nvidia.com>

show more ...

56431b2903-Dec-2024 Alexander Hansen <alexander.hansen@9elements.com>

dbus event subscriptions: test dbus_log_watcher

Currently that code is still unfinished,
but we can already define some trivial testcases.

The main result of this function is populating EventLogObj

dbus event subscriptions: test dbus_log_watcher

Currently that code is still unfinished,
but we can already define some trivial testcases.

The main result of this function is populating EventLogObjectsType.

Tested: Unit tests pass.

Change-Id: I2e23147190be33192d41176413c16cd98c7bfd81
Signed-off-by: Alexander Hansen <alexander.hansen@9elements.com>

show more ...

546d078510-Jan-2025 Alexander Hansen <alexander.hansen@9elements.com>

dbus event subscription: add MessageId

Use dbus property 'Message' for the redfish Message Id.

The dbus property is not documented to be used for this purpose in the
interface definition [1] but th

dbus event subscription: add MessageId

Use dbus property 'Message' for the redfish Message Id.

The dbus property is not documented to be used for this purpose in the
interface definition [1] but the design [3] uses it. If there is no
valid MessageId, the event filtering code will drop the event anyways.

Tested: The code was already tested in this form in
[2] but found to perhaps not be compliant to the redfish specification

References:
[1] https://github.com/openbmc/phosphor-dbus-interfaces/blob/master/yaml/xyz/openbmc_project/Logging/Entry.interface.yaml[2] 6c58a03e1f6818c3cd0a521466f69ef9e869bf25
[3] https://github.com/openbmc/docs/blob/d886ce89fe66c128b3ab492e530ad48fa0c1b4eb/designs/event-logging.md?plain=1#L448

Change-Id: I4dfe0194e02dc657403d3c0c7162528ec7a597c2
Signed-off-by: Alexander Hansen <alexander.hansen@9elements.com>

show more ...

4a7a15c203-Dec-2024 Alexander Hansen <alexander.hansen@9elements.com>

dbus event subscription: add timestamp

Get the timestamp from dbus
xyz.openbmc_project.Logging.Entry 'Timestamp' property.

This is then transformed into 'EventTimestamp' property.

Tested: Manually

dbus event subscription: add timestamp

Get the timestamp from dbus
xyz.openbmc_project.Logging.Entry 'Timestamp' property.

This is then transformed into 'EventTimestamp' property.

Tested: Manually tested [1]

This is already done in this way for the polling api,
in log_services.hpp

1455 objectToFillOut["Created"] =
1456 redfish::time_utils::getDateTimeUintMs(entry.Timestamp);

using the same function. So there is nothing new here.

[1] https://discord.com/channels/775381525260664832/1285909954095616050/1327330501937205382

Change-Id: I49670b13d609ac54a5c9d21da9ff1697c7524b5d
Signed-off-by: Alexander Hansen <alexander.hansen@9elements.com>

show more ...

1c588de909-Jan-2025 Abiola Asojo <abiola.asojo@ibm.com>

Fix --buildtype=debug build error message

Fixes error:
.../bmcweb/redfish-core/include/event_service_manager.hpp:175:34:
...
potential null pointer dereference [-Werror=null-dereference]

Tested: No

Fix --buildtype=debug build error message

Fixes error:
.../bmcweb/redfish-core/include/event_service_manager.hpp:175:34:
...
potential null pointer dereference [-Werror=null-dereference]

Tested: No longer see this error with buildtype debug

Change-Id: Id245e09267eb52e8eac2bf4eb0e94489409eac2e
Signed-off-by: Abiola Asojo <abiola.asojo@ibm.com>

show more ...

a6bd55b013-Jan-2025 Gunnar Mills <gmills@us.ibm.com>

Add path of problem device to trace

Needed this to debug a problem. Makes this trace a lot more useful.

Tested: This now printed the devices causing the problems.

Change-Id: I0cb1529cfa9fec4334730

Add path of problem device to trace

Needed this to debug a problem. Makes this trace a lot more useful.

Tested: This now printed the devices causing the problems.

Change-Id: I0cb1529cfa9fec4334730cab1cf2010a00218b6e
Signed-off-by: Gunnar Mills <gmills@us.ibm.com>

show more ...

7da633f002-Dec-2024 Ed Tanous <etanous@nvidia.com>

Clang-tidy updates for 19

Update to add new checks that are now available to us. Fix the minor
issues we have. A few of our checks that we previously had enabled have
been renamed, so remove those

Clang-tidy updates for 19

Update to add new checks that are now available to us. Fix the minor
issues we have. A few of our checks that we previously had enabled have
been renamed, so remove those from the file as well.

Change-Id: Idbbfc3cb7ba42ac780e557554d7ae8ab190e7551
Signed-off-by: Ed Tanous <etanous@nvidia.com>

show more ...

f2656d1b13-Jan-2025 Alexander Hansen <alexander.hansen@9elements.com>

ci: fix ci ubasan failure

remove an unused std::shared_ptr<Subscription>& from
void Subscription::resHandler(...)

Since it was just a reference, it was non-owning anyways and removing it
should not

ci: fix ci ubasan failure

remove an unused std::shared_ptr<Subscription>& from
void Subscription::resHandler(...)

Since it was just a reference, it was non-owning anyways and removing it
should not have any impact to the lifetime of the managed object.

Tested: Inspection only.

Change-Id: Iab57e456d5a7ae32305e1a38ddcc37c0f0156ed4
Signed-off-by: Alexander Hansen <alexander.hansen@9elements.com>

show more ...

a5f87d4807-Jan-2025 Gunnar Mills <gmills@us.ibm.com>

SW: Don't log if no association

We define logging levels in DEVELOPING.md[1], an error is "Something
went wrong, and we weren't able to give the expected response. Service
is still operational. "err

SW: Don't log if no association

We define logging levels in DEVELOPING.md[1], an error is "Something
went wrong, and we weren't able to give the expected response. Service
is still operational. "error" should be used for unexpected conditions
that prevented bmcweb from fulfilling the request. "error" shall be used
for 5xx errors.".

This clearly isn't an error since we just ignore not having an
association and move on. Moved these traces to DEBUG. Andrew mentioned
these cluttering the journal when running CI.

[1]: https://github.com/openbmc/bmcweb/blob/master/DEVELOPING.md#logging-levels

Tested: This is changing a Logging Level only.

Change-Id: If9324ab32a1f30f446a1b6f359d8a76af899378a
Signed-off-by: Gunnar Mills <gmills@us.ibm.com>

show more ...

4ac7894602-Dec-2024 Ed Tanous <etanous@nvidia.com>

Add content type to HTTP events

Some receiving servers require that content-type be sent. The Redfish
specification does not clarify whether or not content-type should be
specified, but the HTTP RF

Add content type to HTTP events

Some receiving servers require that content-type be sent. The Redfish
specification does not clarify whether or not content-type should be
specified, but the HTTP RFC makees it clear, as does security
guidelines.

Tested: Set up Redfish-Event-Listener and modify to print headers.
Observe that application/json header is now set when events are
submitted to the server.

Change-Id: Idc96848e04f185743b14bd345d46418d38f5f5b1
Signed-off-by: Ed Tanous <etanous@nvidia.com>

show more ...

492ec93a09-Dec-2024 Ed Tanous <etanous@nvidia.com>

Refactor large lambda

Similar to other patches, refactor this large lambda into a normal
function.

Tested: Redfish service validator passes

Change-Id: I45e0b421f04ad8351de367bfdc7b8512bf10ca45
Sig

Refactor large lambda

Similar to other patches, refactor this large lambda into a normal
function.

Tested: Redfish service validator passes

Change-Id: I45e0b421f04ad8351de367bfdc7b8512bf10ca45
Signed-off-by: Ed Tanous <etanous@nvidia.com>

show more ...

58c7148819-Oct-2024 Ed Tanous <etanous@nvidia.com>

Transition to simpler trigger interface

Using this simpler interface allows us to simplify the unpacking code,
and remove the use of a variant containing a variant, which has caused
bugs in the past

Transition to simpler trigger interface

Using this simpler interface allows us to simplify the unpacking code,
and remove the use of a variant containing a variant, which has caused
bugs in the past. Splitting these apart allows us to replicate the
Redfish interfaces with less code.

Tested:

Discrete and Numeric triggers both create correctly
```
curl -k --user "root:0penBmc" -H "Content-Type: application/json" -X POST https://192.168.7.2/redfish/v1/TelemetryService/Triggers -d '{"Name": "eds", "NumericThresholds": {"LowerCritical": {"Reading": 1.0, "Activation": "Increasing", "DwellTime": "P1S"}}}'
curl -k --user "root:0penBmc" -H "Content-Type: application/json" -X POST https://192.168.7.2/redfish/v1/TelemetryService/Triggers -d '{"Name": "eds", "DiscreteTriggers": [{"DwellTime": "P1S", "Severity": "OK", "Value": "1234"}]}

```

Change-Id: If898e2285f90f78b22e47cc670e4206ba4368665
Signed-off-by: Ed Tanous <etanous@nvidia.com>

show more ...

e364803216-Oct-2024 Ed Tanous <etanous@nvidia.com>

Make trigger use common types

Trigger having its own variant causes us to duplicate code. This was
left out of the original refactoring because it was complex given
the variant of a variant status.

Make trigger use common types

Trigger having its own variant causes us to duplicate code. This was
left out of the original refactoring because it was complex given
the variant of a variant status.

This commit finally does the port.

Tested: Unclear what tests exist for triggers that would use this code
```
curl -k --user "root:0penBmc" -H "Content-Type: application/json" -X POST https://192.168.7.2/redfish/v1/TelemetryService/Triggers -d '{"Name": "eds", "NumericThresholds": {"LowerCritical": {"Reading": 1.0, "Activation": "Increasing", "DwellTime": "P1S"}}}'
```

Succeeds. GET on the resource results in:
{
"@odata.id": "/redfish/v1/TelemetryService/Triggers/eds",
"@odata.type": "#Triggers.v1_2_0.Triggers",
"Id": "eds",
"Links": {
"MetricReportDefinitions": []
},
"MetricProperties": [],
"MetricType": "Numeric",
"Name": "eds",
"NumericThresholds": {
"LowerCritical": {
"Activation": "Increasing",
"DwellTime": "PT1.000S",
"Reading": 1.0
}
},
"TriggerActions": []
}

Change-Id: I8f683cc9423ee2ba111d3ca1889e78f7d33433c9
Signed-off-by: Ed Tanous <etanous@nvidia.com>

show more ...

dac07cad31-Dec-2024 Boleslaw Ogonczyk Makowski <boleslawx.ogonczyk-makowski@intel.com>

Fix MRD patch request with overwriting metrics

Follow-up for [1]
Patch request with body:

{"Metrics": [{"MetricProperties": ["<path_to_sensor>"]}]}

updates metric properly, without appending to ol

Fix MRD patch request with overwriting metrics

Follow-up for [1]
Patch request with body:

{"Metrics": [{"MetricProperties": ["<path_to_sensor>"]}]}

updates metric properly, without appending to old "MetricProperties"
values

[1]: https://gerrit.openbmc.org/c/openbmc/bmcweb/+/76532

Change-Id: I9e2bbea28f3b17adeb61c7f3e54eec87c103ef54
Signed-off-by: Boleslaw Ogonczyk Makowski <boleslawx.ogonczyk-makowski@intel.com>

show more ...

b437a53520-Dec-2024 Asmitha Karunanithi <asmitk01@in.ibm.com>

account_service: Move to unpackproperty method

Change-Id: If677e2b4e9bd03b359913670d120f15d4a5f29b9
Signed-off-by: Asmitha Karunanithi <asmitk01@in.ibm.com>

a64919e812-Dec-2024 Boleslaw Ogonczyk Makowski <boleslawx.ogonczyk-makowski@intel.com>

Fix issues in MRD patch requests

After commit [1] 'null' value was being rejected with
[json_utils.hpp] Value for key Metrics was incorrect type: null
Using 'null' here seems to be one of the cases

Fix issues in MRD patch requests

After commit [1] 'null' value was being rejected with
[json_utils.hpp] Value for key Metrics was incorrect type: null
Using 'null' here seems to be one of the cases that [2] describes

Commit [3] fixed an issue where {} replaced "MetricProperties" of
a metric with an empty array but introduced a different one
- trying to replace a metric caused new values in "MetricProperties"
to get added to old ones.
if (metric.find("MetricProperties") == metric.end()) check was initially
present in [4] but got removed at some point,
re-adding it fixes the issue

Tested:
Patch request to [5] with body: {"Metrics": [null]} no longer fails
and deletes a metric
Patch request with {"Metrics": [{}]} leaves metric unchanged
Patch request with
{"Metrics": [{"MetricProperties": ["<path_to_sensor>"]}]}
updates metric properly,
without appending to old "MetricProperties" values
Patch requests containing mixed values also work correctly

[1]: b14f357f527eae05aa1bd7a115d3f6ed237a35bb
[2]: 8099c51796bf6f94ad5fbb1f6844d700f498d3bb
[3]: ba498310f761b3c0f475ecbdb293cf1386544a33
[4]: https://gerrit.openbmc.org/c/openbmc/bmcweb/+/72319
[5]: https://<bmcip>/redfish/v1/TelemetryService/MetricReportDefinitions/<existing_mrd_name>

Change-Id: Ia3d4699784f493bd63a2df4d6edf5053760221e1
Signed-off-by: Boleslaw Ogonczyk Makowski <boleslawx.ogonczyk-makowski@intel.com>

show more ...

770362fe16-Dec-2024 Milton D. Miller II <mdmii@outlook.com>

Use raw content URL

Replace the message registry URL with the official GitHub raw download
URL to give the json content not a web SCM GUI.

Change-Id: I0ac800ee3803c9bef3a6a799b20887df84c3c173
Signe

Use raw content URL

Replace the message registry URL with the official GitHub raw download
URL to give the json content not a web SCM GUI.

Change-Id: I0ac800ee3803c9bef3a6a799b20887df84c3c173
Signed-off-by: Milton Miller <mdmii@outlook.com>

show more ...

6e1a52fa15-Nov-2024 Ed Tanous <etanous@nvidia.com>

Fix setting gateways

There's a number of conditions in setting gateways that don't work
properly. Specifically, one of the issues is setting a gateway on an
address that already exists. It returns

Fix setting gateways

There's a number of conditions in setting gateways that don't work
properly. Specifically, one of the issues is setting a gateway on an
address that already exists. It returns a PropertyValueConflict error
on Ipv4Addresses/1/Gateway with Ipv4Addresses/1/Gateway

Obviously an address can't conflict with itself, so this is wrong.

To address this, move the gateway setting and selection code into a
routine outside of the main loop, after all the gateways are accounted
for, and so we can treat them separately.

Tested;
PATCH to an existing ip address works, and no longer returns the error.

More test cases likely needed.

Change-Id: I0339e02fc27164337416637153d0b0f744b64ad8
Signed-off-by: Ed Tanous <etanous@nvidia.com>

show more ...

81ee0e7420-Dec-2024 Chandramohan Harkude <Chandramohan.harkude@gmail.com>

Update Submit Test event feature to send custom data

Changes Added : Updated the submit test event feature to send test
data as per spec

https://www.dmtf.org/sites/default/files/standards/documents

Update Submit Test event feature to send custom data

Changes Added : Updated the submit test event feature to send test
data as per spec

https://www.dmtf.org/sites/default/files/standards/documents/
DSP2046_2019.1.pdf


Testing :

Tested sending custom test data
and same data received at the event listener
Change-Id: I2c2363a676aafd39c121c9fe4e16402c0f5961e2
Signed-off-by: Chandramohan Harkude <chandramohan.harkude@gmail.com>

show more ...

a8a5bc1b02-Dec-2024 Ed Tanous <etanous@nvidia.com>

Generate heartbeat registry

Generate the heartbeat registry, and adjust the #includes of the
other generated registries.

Tested: Redfish service validator succeeds.

Change-Id: Iedbf1ae8dc655966669

Generate heartbeat registry

Generate the heartbeat registry, and adjust the #includes of the
other generated registries.

Tested: Redfish service validator succeeds.

Change-Id: Iedbf1ae8dc6559666691f1feb71af08e856d5c80
Signed-off-by: Ed Tanous <etanous@nvidia.com>

show more ...

847deee302-Dec-2024 Ed Tanous <etanous@nvidia.com>

Generate resource event

Generate Resource event registry

Tested: On last patch of series. No behavior changes.

Change-Id: I924919db0e7fbde8ed698de6b59b86f788de9708
Signed-off-by: Ed Tanous <etano

Generate resource event

Generate Resource event registry

Tested: On last patch of series. No behavior changes.

Change-Id: I924919db0e7fbde8ed698de6b59b86f788de9708
Signed-off-by: Ed Tanous <etanous@nvidia.com>

show more ...

12345678910>>...80