Keep extended configuration utterly separate to ease confusion
by calling code as to what belongs to which category.
Change-Id: Ic97ad79fa796f63b8825db48059450a4c78f75c9
The use of ord against a bytes object is not supported
in python 3. Change to a bytearray for compatibility
with both python 2 and 3.
Change-Id: I583c83d88c063aac2c085ac6dac8a23211a2f3eb
The pycodestyle fixes that were submitted broke a few things.
One it removed the utf8 declaration for code that had utf8 in it, breaking python2.
It also introduced a circular import by moving an import to
unconditionally import rather than conditionally import.
Fix these two issues.
Change-Id: Ibfeccd5b649bd597b7f879bb6124d8bbcbc3ec69
There are evidently scenarios where an orphaned object could
be stuck in logging indefinitely. Place a cap and automatically
mark the object if it suffers from this.
Change-Id: I60733c1eabb56494ad848595b46240af82c186d3
Under Python3, indexing a bytes gets a number instead of a str,
adjust to bytearray which is number in both 2 and 3.
Change-Id: I249729c2287bb58dd764a627c298c74e5ebb50cc
With change I1b5ad99c89d8dec0abd18b1f794dabdb0aed13c3, parse module
has started using python-dateutil, but it's not been added to
requirements.
Change-Id: I779f654f4529e863b8feeaebc20ee7467176ad75
Closes-bug: #1855983
When given custom headers, webclient was persistently leaving
the Content-Length modified. Fix by making a private
copy before potentially modifying it.
Change-Id: I2de5268ffc35a725e7b9d360214eab498d2ac788
The 109 error code means the file was not
recognized, which can mean the file is incorrect
or that the update provided is not one that
supports remote update.
Change-Id: I4437916b5812b9cb0dfb9e92460a2f8a7c850849
tsma is shared between IPMI plugin and redfish.
Since IPMI doesn't provide fishclient and tsma doesn't use
it anyway, make it optional argument.
Change-Id: I0bd9e72c0aae713b96a8ef28244e7182dcc1e1a7
There were a couple of issues that are inadequately
explained and also a chance of failing during report
on the download.
Change-Id: Iac358f6f6b96925aa823d49fb94a320a99a90c23
If the fetch does not have 'Systems', it seems to
mean the redfish subsystem is not ready yet
on the target BMC.
Change-Id: I6935ab31d090185e1bcc43364e8fc306f5635975
The code no longer uses tmplist for anything. It has been observed
that select.select may return something other than a 3 member
tuple, so become apathetic about the nature of the return.
The fact this can happen is in all likelihood a bug in the select
implementation, however it's hard to nail down and easy enough
to tolerate.
Change-Id: Ib13a6dcce0809f9c2c4d9f02e19adc9de818f3fb
SR635/SR655 presents a distinct interface for getting support
information bundle. Implement that interface.
Change-Id: I38b2196b743a50f02702a6ffb3e538ddf0587984
If the session is dead, have the wc property function discard and
re-establish the connection, rather than passing the useless
stale session to the caller.
Change-Id: I701c396ac9eedc1749b13c196e19fb1c4e996001
Python 2.6 is dead since a while and we should move out from
Python 3.5 in favor of Python 3.6 and Python 3.7
Change-Id: I36ff0e1bc1db018bb7cce00a741682125aca4ac4
Some implementations require etag to set the identify light.
Some implementations do not provide the allowable reset values up
front and require chasing yet another url.
Fix an issue where a temperature sensor
without available reading caused an error.
Change-Id: Ie0b3c880b311438938d016857e4466c55447f7a3
Some redfish implementations do not handle such a request
gracefully. Avoid sending the command if the command allegedly
would have no effect.
Change-Id: I21b3ce18bb37747b71a67cbd0268d227ade6aad9
If a session is doing a best-effort 'logout' due
to a mark_broken scenario, do not activate the
timeout logic, which will cause it to endlessly
recurse into itself.
Change-Id: I9b84d3138f161cc982dd1107586d31be68523108
If we have an sol_handler, request SOL deactivation
on the way out. This works around issues on select
codebases where IPMI stack state gets corrupt if a
payload is active during ipmi logout.
Change-Id: Ie1bcada6206c340bb954e5d5c8a99678e1d3162c