In the event of an event that is not modeled by the IPMI sensors,
make sure that at least the health summary is correct. Add in
a known condition that is missed by IPMI sensor modeling for detail
as well.
Change-Id: I207e137c49b4321cf4040188a84de569f55c5707
XCC aggressively ages out a session. Check last
token refresh before deciding a session is viable,
discarding it if it is too old.
Change-Id: I490263edb4b2a8ddbd91d6b236d4a7e689f410c7
When doing a firmware update, a surprise flow leads to a potentially
misleading exception. Change to be more clearly obvious that there
is confusion.
Change-Id: Ib9aa2c0f357daf5af0462062733c2c83c7e25079
M.2 drive firmware is held in a different area in the API. Provide
that data along non-M.2 drives.
Change-Id: I94b85687b2f22bc45d6e37c9da855f7bbd426c2f
The XCC provides more detailed information. Augment the inventory
and firmware commands with this information.
Change-Id: Ib2cedc4176f18d82eea3a2a156ac3c7e5a16f3eb
Oldest XCCs return different data to unsupported APIs, so
modify to support three variants, no return, return 2, and
the latest that require support for the return code.
Change-Id: I8d04cfffa42ff9b70bd4a19e32b353c0c7be5544
CSRF scheme was refactored in recent FPC firmware, support the third
location where the CSRF tokens might be found.
Change-Id: I0a3a9310e399f77d2a40f4b9d815127b9a884d1d
This avoids having to fetch SDR for every since instance when
many instances have common SDR. This improves first-run performance
and reduces memory consumption.
Change-Id: I1283297b8f4635e096af962fa1a49d4c752e80ec
redfish has a concept of 'no news is good news', and firmware is
changing to use that. Support both old and new behavior.
Change-Id: I1b85359ee1236c7ad5f26b67640415839ad1073b
Upcoming XCC firmware update has an additional step to support in
order to successfully perform an update.
Change-Id: I08e1fccd25d40b290bbd818bdb57ef74131e76f7
The get_description call will now help describe the height of current
Lenovo dense portfolio chassis.
Change-Id: I7d7f53b71360f3e2227c08a06cac03ac0d407210
The python3 http support has some differences from python2. Provide
compatibility for both python 2 and python 3.
Change-Id: Idb8d5815b0a540fc7ae4183bd033a2725d889930
The storage functions were not leaving the web
session viable after a time. Correct by having
the storage functions logout on completion.
Change-Id: If0ccc40d0525de4a4f3690be478bd5fb0d7dcd3c
hacking is not capped in g-r and it is in
blacklist for requirement as hacking new version
can break the gate jobs.
Hacking can break gate jobs because of various
reasons:
- There might be new rule addition in hacking
- Some rules becomes default from non-default
- Updates in pycodestyle etc
That was the main reason it was not added in g-r
auto sync also. Most of the project maintained the
compatible and cap the hacking version in
test-requirements.txt and update to new version when
project is ready. Bumping new version might need code
fix also on project side depends on what new in that
version.
If project does not have cap the hacking version then,
there is possibility of gate failure whenever new hacking
version is released by QA team.
Example of such failure in recent release of hacking 1.1.0
- http://lists.openstack.org/pipermail/openstack-dev/2018-May/130282.html
Change-Id: I5f17ec6f67c7e7addfc5b2b2a3f17719402d9c0b
Some adapters do not provide this information explicitly. Handle
this discrepency by defaulting to an empty list.
Change-Id: I72c2e83a78c821e1d790972b253e9d7026a5f7ad
If mark_broken called early, it would incorrectly
fail due to self.socket not existing yet. Address
this by ensuring the attribute exists earlier and
ignoring the pool accounting if socket is not yet
assigned.
Additionally, fix a problem where the callback for
console could happen before console actually had
the ipmi_session attribute.
Change-Id: Idb93ca23d4a43760698bdc55d19418210daa7a62
There exists one set of FPCs and IMMs that share id. Compensate
by using the more direct IMM query first, then falling back
to the fpc id based.
Change-Id: Ibbaea1ffce6e5903523a8467280d168bb080daee
Some devices might experience a problem returning a useful response to
get device id under certain circumstance. Make failures due to
inability to lock into a device id transient rather than persistent.
Change-Id: Ie11155632c1a627a1c3303555a6ba10926c7efb0
Slot events should generically have the Slot/Connector number.
Fix this by clarifying the description and allowing it
for any offset. Additionally, the USB offset defined in
the spec is added.
Change-Id: I80dcb86ae58f47b794eab1571c292708edf83995
For inventory taking, the lack of common names for the same thing
is a problem. Provide a 'name' field to preserve the original
name that may be duplicate, but indicate multiple instances
of the same thing.
Change-Id: I02e9902f4c2d9d07982fd00b9a17617b96deb1ef
Rework the disk inventory to handle both firmware and hardware
style data, at least for XCC generation.
Change-Id: I195ab395b8f1905f548094bc5014200fb3a39e2a
For some settings, it is very helpful to be able to take wildcards.
Honor those and have those potentially replicate across multiple
matches.
Change-Id: I9ebfb2a4686b5f822527be9b05b59ca9df1e3caf
Reset to factory defaults is a relatively common request, provide
an extensible hook. Use the standard redfish method on current systems.
Change-Id: I92a17a7434eeab0d8f455cf609ca2db764fe4a17
The property is ASCII representation of decimal number that would result
from erroneously evaluating BCD as normal. Compensate by working back
to the hexadecimal representation and presenting that as a number.
Change-Id: I47ae2fe484c2eaaa4c103eae81c56f9561ac316c
Implement a function to call into whatever the appropriate method
for a vendor to provide diagnostic/support/service data to send
to their support staff.
Change-Id: I1e1d73ec0133aa413cb3d9d44101e7f22cb1a398
Make it easier to cope with burdens of long running execution by
providing a single-shot call to establish a persistent context
to run keepalives from.
Change-Id: I5ddbd647846daf119a4219d5c014682223657dfd