There's no RST file that uses ".. math" and thus
the pngmath Sphinx extension is not used and can
get removed.
Change-Id: I3ea4b529025c8ac3c4092f3720124647861e6668
This patch is adding a new parameter called "timeout" to the listen()
method of the Bmc class to allow configuring the right timeout for the
IPMI session. The default timeout continues to be 30 seconds, just like
it was when hardcoded.
Change-Id: Ie00d62157eea321747e02492b0a3d1d6ff991024
Lenovo System X systems offer up more inventory over agentless.
Provide this data when the possibility presents itself.
Change-Id: Ic377e951b5a6308157891f98dfdad6311337af48
When data steering was implemented to improve
performance, the server component was not updated
to be able to receive steered data. Update the server
component with the needed interfaces to be compatible
with the performance enhancement.
Change-Id: I251cfaaf80d7ae45b60f03e39a46a683d913396b
Agentless data may have information about firmware of
disks. This commit adds support for reading it when
available. Note that some devices may not appear,
depending on the drive controller in use and timing
factors.
Change-Id: I24033a4fe7ed056018dab2747e71845fdcaa5cf0
Some adapters present empty agentless fields. For
such scenarios, skip enumerating the key. This avoids
date parsing errors, among other things.
Change-Id: I3df5f1dd320aa2e915760b6d2cae0f04ec5e09c6
It is frequent that a client may hammer request
for firmware inventory. To facilitate this use case,
store and reuse data for 30 seconds, so long as the ipmi
session has not changed.
Change-Id: Ia356e3161a2ccf1c717eec09696e265263d8255b
IMM has an active, backup, and trusted image. Add
info about the trusted image to IMM inventory to
make that clear.
Change-Id: I771cee6831d11c2b7dbc780475582e9030d7e7b6
In the 'has_megarac' call, it erroneously was assumed that
any IpmiException reflected the BMC indicating explicitly that
it didn't understand something about the command. However
IpmiException is frequently used without a code to indicate
some harder error that can't relate to a system return code.
Address this by raising the exception if it didn't have a
BMC error code initialized. It may be possible to get even
more specific, but somewhat limited because we could be getting
a 'invalid command' or 'invalid command length' or some 0x80
neighborhood error code, some OEM response. Fortunately
things are limited since this code should only ever fire
against Lenovo equipment, but still keeping things open ended.
Change-Id: Ia84d1474f7d6787d162c6c7ef448f269d826cc2a
Other Lenovo equipment uses the 'get build id' command. This
switches to a facility more specifically designed to indicate
what class of Lenovo service processor is in play. As a result,
the firmware inventory function has to fend for itself.
Change-Id: Id0354ebd4dbf57a0ff59860df663195b93adba1c
A prerelease system was using 7154 vendor id internally,
but this is not going to be the case when released. Stop
hooking generic value to avoid being overly aggressive.
Change-Id: I19258e226c03b0158c9a4a3430eaa1de33c10648
IPv4-only environments may come in two forms. It
may not even have kernel support for AF_INET6, detect
and tolerate this by fallback to AF_INET. Secondly,
it may have AF_INET6 support, but not have any IPv6
addresses, including ::1, so fall back to IPv4 localhost
in that scenario.
Change-Id: I9e2f992afa9f6e71d1210701ac53080d8e788028
This commit adds support for fetching extended System X firmware
information. This includes, as supported by the model,
extended IMM info, backup IMM, UEFI (primary, backup, and pending),
as well as available firmware from agentless system x options.
Change-Id: Iea09af0dd54938dbfe54b64c0a1084cb7ad2264f
Some implementations are confused on the endianness of SOL port number.
Recognize both 623 and 28418 as the default. This poses a challenge
should the day come that non-standard port is desired, but it seems
very unlikely for that to come up...
Change-Id: Ib184a9102fd24a0c27d7a3f5adf86b8d1dca22ea
There was an oversimplified assumption in play. Provide
a method to enumerate the generated names as well as
the static names.
Change-Id: I08dbaaafd7c607869d185f57bae0ea70ebf1084e
MegaRAC does not support IPv6 standard destinations,
implement an OEM fallback for no standard IPv6, and
provide the MegaRAC backend for it.
Change-Id: I4732f47182df71607db57292a2b7de58623f0f45
Do not try to doubly use weakref in SDR,
and otherwise use a more transparent weakref.proxy,
since we are not hashing any values.
Change-Id: Ib1e0e59b2e52988d75830ffa5422407c53a68561
SDR and SDR entries had a cyclic reference to ipmicmd. Weaken
it so that it won't cause issues (whether real or just
complicating output of guppy)
Change-Id: Iad9c9726026f46c9a104c4a7464fad9b17d336ea
If an 'onlogon' handler is passed, discard it after being invoked. This allows
the objects to be garbage collected where otherwise they may not be.
Change-Id: I92488adca9150204512db5e4872e2b54bd0c076d
For now, use weakref to break a cyclic reference.
Longer term, probably refactor the needed 'xraw_command' to session and
pass session to the handler rather than the parent command handler.
Change-Id: If129ff6abf8666978aa05b6695ed7373070cd6b9
It was possible for a session to accumulate
a plurality of events per raw_command issued.
Alter the behavior of session to set and discard
*all* pending events on exit. This means that if
there are multiple commands waiting, then things
will be a tad more work than is strictly necessary,
but it's the simplest way to eliminate the leak,
the amount of senseless work is pretty small even
in some pretty tortuous cases, and it only has
any impact when many commands are being hit against
same target concurrently without coordination, which
is rare.
Change-Id: I3f023cee6fc7bb537c1a508d3113f2ff238828de
Other tools use DIMM serial numbers in hexadecimal. This
makes sense as the underlying format is unspecified, so
a hexadecimal value would make that more clear.
Change-Id: I724d76ea8af7d20ee8ff0e294a9f96ffb571e80e
Rather than use a lookup table (which requires maintenance),
implement the formula used to calculate the speed. This further
makes it a bit more robust in the face of minor timing tweaks
that might change the clock a megahertz up or down.
Change-Id: I6336bdc07af361a31b5a51698d0231d876791f16
It was possible for multiple command requests to be pending. While pending,
if a waiter was awoken first, *then* the satisfied command, then the waiter
will stall in the next iteration, recovering only after the failsafe mechanism kicks
in. Address by having the instance clearing incommand set() the next event in
line.
Change-Id: I8dbd08027596b4acccace6599f996ad547a47768
As a network configuration item, gateway mac addresses are rarely used. However,
some devices consider such a request an attempt to do arp, and will slow their response
trying to fill in a field that no one cares about. Allow calling code to disable fetching of
this frequently problematic data.
Change-Id: Ia9b434e2a74983d822c91d5248815a0312942c15
Provide a function for indicating a remote media by URI.
Implements the underpinniings with respect to MegaRAC
underpinnings.
Change-Id: Icbaa8f91fad26632834335cc29eff57d14ee6450
IPv6 interfaces tend to emphasize more open ended
use of aliases. To support this, have ipv6_addresses
manifest as a list, to allow for implementations to
extend to represent more complex situations.
Change-Id: Ia5727ff4830da58f847a7090e45dc819d4f216b2
Prior to IPv6 being pulled into the proper specification,
there were OEM commands to implement it. Pull in the AMI
OEM version for systems with TSMs present.
Change-Id: I137887fc57a3daa652f1e0a1bd50a806d3e42b13
Rework the thread behavior and raw_command to avoid
a ton of needless wakeups for unrelated concurrent execution.
It is saving about 20% of CPU time on ~50 node run.
The savings should scale proportionate to concurrency.
Change-Id: Iff3eaacd6c92d5734e1d1eb19e7be53e269e42cc
When logging in, the caller is released to submit a new command before
the session is actually logged in. Fix this by waiting for the appropriate
flag to go False.
Change-Id: I884b7da1b64c6786f673a18ee4c7d2ca69ec0bff
When doing the attempt to correct time, the sense of comparison was
incorrect and the timestamp field was neglected. Correct this
mistake and oversight.
Change-Id: Ia3ff187d0eaedcfea9f3b7d2c8f292162bb3bb50
Nextscale Fan/Power Controllers have several data
sources that would normally be considered 'sensors',
but are implemented through proprietary commands.
Extend the sensors data from these sources.
Change-Id: Ieaaae54b3edb409fac8f3932d51175c61ebdc44f
In order to have bdist_rpm output serviceable,
add the license field. This results in an rpm
that has all the fields desired.
Change-Id: I18f75f89385ac5022050372925c19f46206244f9