The pysnmp library is not maintained since 4 years now and it's
incompatible with recent libraries like pyasn1.
Its fork pysnmp-lextudio is regularly maintained, we should move
to that.
For more info see https://github.com/etingof/pysnmp/issues/429
Change-Id: Id6dbf28d69e60465e7c8a71d6afbe227378ee60a
This commit fixes incompatibility imported in
274dca0344 which
changes default value passed to requests module function.
Change-Id: I67663e6bd6e060f572e9c26cf504abd31ba49402
Currently there is an issue in pyghmi which is if the userid or password
passed to Command is string, the Command would not be initialized
correctly and the program will stuck if someone uses the same parameters
to create a Command object twice in a short time.
This issue can be work around by passing the utf-8 encoded userid and
password when creating a Command object.
Change-Id: Id99e61da0a40d64ac3a766b9868580d4d580b9d7
The names of SNMPv3 related keys used in driver_info have been changed
to mask passwords. This patch is a related change.
Change-Id: I9fdefbb539ecd0543156bafddb4caaa229e4a4ec
Currently the snmp module implemented by python-scciclient does not do
any v3 authentication. This will cause failure when using SNMPv3 to
communicate with servers.
This commit fixes the above issue.
Change-Id: I95537918702e37d98b57b07bca88ed638e879dd8
This patch adds functions & methods which have been used to connect
to iRMC via HTTPS to accept additional parameter.
With additional parameter, user is able to specify certification file.
Co-authored-by: Kobayashi Daisuke <kobayashi.da-06@fujitsu.com>
Change-Id: I51203e16207f8d3b1448b581942111bff60d0c86
iRMC dropped support of virtual floppy disk at specific
iRMC firmware version.
iRMC S4 supports virtual FD till version 9.21F and deprecates
it from version 9.62F
iRMC S5 supports virtual FD till version 1.25P and deprecates
it from version 1.60P
This commit adds functions which determine whether iRMC supports
virtual floppy disk based on iRMC firmware version.
Change-Id: I024b6fb09ebe3c3ffe7ccfff5cf8b2e5b844be94
This change will fix the case when Ironic tries to detach virtual CD if there is no ISO file attached.
This applies to virtual floppy case as well.
Change-Id: I4df5f6aa160fea0aff745fe929680aa61282c33e
Signed-off-by: Nguyen Quang Huy <huynq@vn.fujitsu.com>
Use unittest.mock instead of mock.
Because mock became part of standard library
and available as unittest.mock since Python 3.6
Change-Id: Ibfe27316c20fa2c8935b559fed7885a6e194d314
Because Python2.7 is last release of Python2.x series and
Python2.7 support stopped in 2020, we need to drop Python2.7
related things. This commit cleanups Python2.7 related contents.
Change-Id: I92eed041d993af924d93373977aef33cda0f7cf8
Switch from oslosphinx to openstackdocstheme
That's what the OpenStack community is using today. Also with newer
Sphinx versions, the current approach does no longer build.
Re-add docs and requirements tests.
Switch to xena standard jobs.
Change-Id: I3f93a400bb83f4a91bd77ebe69f609949cd43ca7
The assertItemsEqual method has been removed in Python 3.3 [1] but
it was kept alive by unittest2, imported by testtools. For better
compatibility, change to assertCountEqual.
[1] https://bugs.python.org/issue17866
Change-Id: Ia006ecb834f180dbaef5a617269fe8416769e109
Version 1.0.24 contains the fix for a typo in the ipmi submodule [1]
https: //opendev.org/x/pyghmi/commit/01ad6710c40be954b0da11fe24b1db31c05797e3
Change-Id: I9dd367671e6c80d39b0c93f2ecb0ec6434f1ea7f
Update tox.ini to be current.
Move some requirements from test-requirements directly to tox.ini.
Include a py27 constriants file for running py27 tox tests.
Remove lower-constraints.txt, it's not used anymore.
Use wallaby jobs.
Also fix some pep8 issues.
Change-Id: Ia29128ed6c12e1c51c0a34556051a3566c4f9bfd
In async mode, performing power on/off/reset will return
immediately. However, if we perform multiple power actions
in parallel or in a tight sequence, an Error 5 (Input/Output
error) will happen. This bug can be reproduced by doing
RAID config from Ironic CLI.
This patch adds a sleep of 3 seconds to make sure calling
code can't perform some power actions too quickly.
Change-Id: Iacf43a2ca34822b2b59683f4c5b08b78074e5b5f
In case of iRMC S5, there is no key named 'LogicalDrives' with no RAID
configuration. This patch changes to use ".get()" for this key.
Change-Id: Ia2de9d2025d317ff0fa87d9b82a9783e73874f05
Quotes around {posargs} cause the entire string to be combined into one
arg that gets passed to stestr. This prevents passing multiple args
(e.g. '--concurrency=16 some-regex')
Change-Id: I93bdc97f291d9b2df9f5cec7d907ffc66285ea08
Closes-Bug: #1801455
This change will implement firmware upgrade for
iRMC and BIOS along with suitable images.
Tested on Fujitsu TX2540M1 successfully.
Change-Id: I097997031eaf54f7634ba97d05786201fc8b1e9e
We want to default to running all tox environments under python 3, so
set the basepython value in each environment.
We do not want to specify a minor version number, because we do not
want to have to update the file every time we upgrade python.
We do not want to set the override once in testenv, because that
breaks the more specific versions used in default environments like
py35 and py36.
Change-Id: Ide1f5e82f123ff6b35fd141919e842738ac500a2
This patch fixes to specify project name directly and ignores cover/
directory in running 'tox -e cover'.
Change-Id: I76ed822a6143269ea1bc75c04164262360cde30a
In Python 3.7, async becomes a keyword, and therefore, scciclient was
failing. This patch renames async into do_async.
Change-Id: I030cd6d9f3e35a9850771b2c55943e043818309a
iRMC firmware versions 8.64F and 8.84F or newer
require bios config data provided with versions.
This patch updates the existing set_secure_boot_mode()
as it does not provide versions when setting.
Tested on servers with FW 8.43F, 8.64F and 8.84F.
Change-Id: I97aa13436c80be311738712a3c36cc4a8beb9e63
This path will process following items:
- Allow setting along with different iRMC versions.
- Fix bug which relate to boolean values during setting.
- Store string value when perform get BIOS setting.
- Remove .key() and allow working in python3.
NOTE: Integer value under string has accepted for BIOS
input already (tested).
e.g: {"name": "cpu_active_processor_cores","value": "2"}
Tested with TX2540 M1 successfully.
Change-Id: Ie79992b09754987d1891fffbf106ab1fdc3fc48b
eLCM API got requiring a profile version after an update. This patch
adds the profile version for avoiding this incompatibility.
Change-Id: I0165648a35645abc934243417a0890e89d96212a
The python-scciclient don't have APIs to support BIOS configuration.
This patch adds function set_bios_configuration and get_bios_settings
to support bios configuration on python-scciclient.
Co-Authored-By: Nguyen Van Trung <trungnv@vn.fujitsu.com>
Change-Id: I755e9412e4fadb74dff5e950e26c405512757b8b
Story: #1743674
According to Openstack summit session [1],
stestr is maintained project to which all Openstack projects should migrate.
Let's switch to stestr as other projects have already moved to it.
[1] https://etherpad.openstack.org/p/YVR-python-pti
Change-Id: I96505e8e9c08db43181fbb59a01ceaccdd436d37
This commit will move background initialization(BGI) into
foreground initialization (FGI). Due to safe opperation, we
need prevent any accessing during RAID configuration. Thus
FGI mechanism is suitable solution for us.
Change-Id: If90f2f79df1f7928c0177d1f8b22623d37e4bc0a