Commit Graph

11 Commits

Author SHA1 Message Date
Takashi Kajinami dc5da6722e Suppress logs from stevedore
The stevedore library tends to put large number of logs especially when
debug is enabled.

This suppresses from this library, as is done in oslo.log by default.

Change-Id: I8989bdf132e8498093cbe05a7858a9315e858994
2023-12-18 12:27:22 +09:00
Takashi Kajinami d7400b5dc4 Add optional healthcheck middleware
This change allows uses to enable the healthcheck middleware from
oslo.middleware in API pipeline, by setting the [healthcheck]/enabled
option. This middleware provides an API endpoint at /healthcheck path
which allows load balancers or monitoring applications to determine
a service is up using HTTP requests.

This change basically follows the same change merged in ironic[1] repo.

[1] 6f439414bdcef9fc02f844f475ec798d48d42558

Change-Id: Ic2ee2bca74ea2a5a0723ef54b10c531f77ea7b8d
2021-09-12 22:51:38 +09:00
Dmitry Tantsur 3243cac3fc Relax extra_hardware data validation by default
We've seen reports that extra data sometimes contains empty lists.
There is no point to discard everything in this case. This change
makes ironic-inspector log a warning for any item of incorrect length
by default. The old behavior can be returned via [extra_hardware]strict.

Also stops discarding the received data if parsing fails: maybe this
data is not for us?

Change-Id: I1af55fa4ec47b345479b9e5687ad480648e502ac
2020-07-28 12:48:33 +02:00
Dmitry Tantsur fe15db0e0d Silence debug logging from oslo_messaging
Change-Id: I5b2cede04ec2b76cbdd5ede192fa0eef833afefa
2020-05-06 10:31:06 +02:00
Harald Jensås 92e2d26f15 Port physical network CIDR map hook
The physnet_cidr_map hook adds functionality to
populate the physical_network of a baremetal port based
on a cidr-to-physnet mapping in configuration.

Related-Bug: #1870529
Change-Id: I43cdac5ccd8c46836b26f6e4bc0d4509958e2e79
2020-04-17 16:31:40 +02:00
Dmitry Tantsur 48a9fea661 Silence amqp DEBUG messages in logs
Change-Id: I8c060f7cb88697bb378e5e3cff98d2ae75db9766
2019-10-21 16:48:53 +02:00
Kaifeng Wang 1bed475409 Adds tooz locking driver
Adds tooz requirements, configuration options and locking support.

Story: 2001842
Task: 30376

Change-Id: I78ffdeeb502cbed0550152b19efbb224f47c65af
2019-08-02 09:58:10 +08:00
Dmitry Tantsur 85a3186d50 Use openstacksdk for accessing Swift
This change replaces the swiftclient dependency with openstacksdk.
The ultimate goal is to use only openstacksdk for all cross-service
interactions.

The configuration option max_retires has been broken for several
releases since commit 7e8cdc0d0f,
this change deprecates it.

Change-Id: I635519f88e90f4267ff7a9cb063a697ff39e4710
2019-06-19 14:49:03 +02:00
Dmitry Tantsur 258d7388a4 Expose baremetal-introspection endpoint via mdns
This change adds an option to publish the endpoint via mDNS on start
up and clean it up on tear down.

Story: #2005393
Task: #30384
Change-Id: Ia9407cb065979aac6761d3e4122d3884e45b559d
2019-05-22 13:58:55 +02:00
Kaifeng Wang da40b42bc4 Use set_defaults from cors
cors provides set_defaults method about 2.5 year ago [1],
let's call it a long debt gets paid.

[1] https://review.openstack.org/#/c/285368

Change-Id: I566eb874d401772255b45e36135592bd736528e5
2018-09-13 15:39:06 +08:00
Pavlo Shchelokovskyy 71a2bef7d9 Centralize config options
Consolidate all config options under ``conf`` directory.

New config modules should give a better picture of the configuration
options provided by the inspector.

Change-Id: I501ed0787ff4e1d91462f936e1a54de2c7abb35c
Related-Bug: #1561100
Co-Authored-By: Anton Arefiev <aarefiev@mirantis.com>
2018-01-04 20:43:58 -08:00