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
Error on unrecognized and also check
for a longer list of possible actions
that we wouldn't mind using.
Change-Id: I947ce7e76d28fe1e9a296c5c2a1e5a99a1a285ec
TSM may be in a state that cannot
provide firmware information, raise
an exception in such an event.
Change-Id: I8706624f4b46e12b470a78949ea429469e2d9640
Since the autosuffix function can change the filename,
return the modified name so that the caller knows the
changed name.
Change-Id: I751d32d70f0d2c1813b1af081ee61b07a8faab90
Newer TSM requires JSON rather than form encoded auth.
Try the newer method and fallback to form for compatibility.
Change-Id: Ic0fd8fe949eb0bc328c57038e998d8c9570e7054
For one, improve the 'default' nic finding behaviors. This
allows a simplified view of even a somewhat complicated manager.
Additionally, add parameters so that multi-homed BMCs can actually
be managed.
Change-Id: I6b8f842a382cc32c80b7609e9ad574bcacf15b7a
DCMI uses ord on a buffer/memoryview. In python2 this
makes sense but in python3 it does not work. Switch to
use of bytearray which acts same under both.
Change-Id: I83ad3ec087db820a44e09edf0376b6237af9ca87
Accomodate python 2 and 3 names for urlencode and
consistently use binary bytes in processing the hpm
contents.
Change-Id: Id733e09c317135a04526e307d850d7c6bc399955
First normalize to bytes and then use byte to null
pad and finally use bytearray to normalize the
2 and 3 to behave the same on indexing and use that
for extending the command.
Change-Id: I9e3e89f5f8ac411c770f1a6371f9b365868e8c87