<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/openstack/ironic-python-agent.git/ironic_python_agent/tests/unit/hardware_managers, branch master</title>
<subtitle>opendev.org: openstack/ironic-python-agent.git
</subtitle>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/openstack/ironic-python-agent.git/'/>
<entry>
<title>update NVIDIA NIC firmware images and settings by ironic-python-agent</title>
<updated>2023-01-11T14:00:07+00:00</updated>
<author>
<name>waleed mousa</name>
<email>waleedm@mellanox.com</email>
</author>
<published>2018-05-07T11:12:04+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/openstack/ironic-python-agent.git/commit/?id=2c7f95e3ace162118ef3249cdfedb60a7dc2d652'/>
<id>2c7f95e3ace162118ef3249cdfedb60a7dc2d652</id>
<content type='text'>
Add "update_nvidia_nic_firmware_image" and "update_nvidia_nic_firmware_settings"
clean steps to MellanoxDeviceHardwareManager.

By adding those two steps, we can update the firmware image and
firmware settings of NVIDIA NICs by ironic-python-agent using
manual cleaning command
The clean steps require mstflint package installed on the image.
The "update_nvidia_nic_firmware_image" clean step requires to pass
"images" parameter to the clean command
The "images" parameter is a json blob contains
a list of images, where each image contains a map of:
  * url: to firmware image (file://, http://)
  * checksum: checksum of the provided image
  * checksumType: md5/sha512/sha256
  * componentFlavor: PSID of the nic
  * version: version of the FW

The "update_nvidia_nic_firmware_settings" clean step requires to pass
"settings" parameter to the clean command
The "settings" parameter is a json blob contains
a list of settings, where each settings contains a map of:
  * deviceID: device ID
  * globalConfig: global config
  * function0Config: function 0 config
  * function1Config: function 1 config

Change-Id: Icfaffd7c58c3c73c3fa28cfc2a6c954d2c93c16e
Story: 2010228
Task: 46016
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add "update_nvidia_nic_firmware_image" and "update_nvidia_nic_firmware_settings"
clean steps to MellanoxDeviceHardwareManager.

By adding those two steps, we can update the firmware image and
firmware settings of NVIDIA NICs by ironic-python-agent using
manual cleaning command
The clean steps require mstflint package installed on the image.
The "update_nvidia_nic_firmware_image" clean step requires to pass
"images" parameter to the clean command
The "images" parameter is a json blob contains
a list of images, where each image contains a map of:
  * url: to firmware image (file://, http://)
  * checksum: checksum of the provided image
  * checksumType: md5/sha512/sha256
  * componentFlavor: PSID of the nic
  * version: version of the FW

The "update_nvidia_nic_firmware_settings" clean step requires to pass
"settings" parameter to the clean command
The "settings" parameter is a json blob contains
a list of settings, where each settings contains a map of:
  * deviceID: device ID
  * globalConfig: global config
  * function0Config: function 0 config
  * function1Config: function 1 config

Change-Id: Icfaffd7c58c3c73c3fa28cfc2a6c954d2c93c16e
Story: 2010228
Task: 46016
</pre>
</div>
</content>
</entry>
<entry>
<title>Increase version of hacking and pycodestyle</title>
<updated>2021-07-30T12:34:33+00:00</updated>
<author>
<name>Riccardo Pittau</name>
<email>elfosardo@gmail.com</email>
</author>
<published>2021-07-29T15:07:46+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/openstack/ironic-python-agent.git/commit/?id=efbbc86f53f8b6dc21a847088c3914e13a439017'/>
<id>efbbc86f53f8b6dc21a847088c3914e13a439017</id>
<content type='text'>
Fix H904 "Delay string interpolations at logging calls" errors

Change-Id: I331808d0132094faf739998a6984440787d3ebf8
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fix H904 "Delay string interpolations at logging calls" errors

Change-Id: I331808d0132094faf739998a6984440787d3ebf8
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix: make Intel CNA hardware manager none generic</title>
<updated>2020-09-23T10:24:26+00:00</updated>
<author>
<name>Qianbiao.NG</name>
<email>iampurse@vip.qq.com</email>
</author>
<published>2020-09-15T10:09:25+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/openstack/ironic-python-agent.git/commit/?id=4b0ef13d0812f4302e7b9ad08d94a04be4729583'/>
<id>4b0ef13d0812f4302e7b9ad08d94a04be4729583</id>
<content type='text'>
Currently, IntelCnaHardwareManager inherits GenericHardwareManager
which makes it a new "GenericHardwareManager" with "MAINLINE" priority.
This causes all other hardware-managers with lower priority than
"MAINLINE" never be used. To fix this, make IntelCnaHardwareManager
inherit basic HardwareManager.

Change-Id: I28b665d8841b0b2e83b132e1f25df95e03e7ba10
Story: 2008142
Task: 40882
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Currently, IntelCnaHardwareManager inherits GenericHardwareManager
which makes it a new "GenericHardwareManager" with "MAINLINE" priority.
This causes all other hardware-managers with lower priority than
"MAINLINE" never be used. To fix this, make IntelCnaHardwareManager
inherit basic HardwareManager.

Change-Id: I28b665d8841b0b2e83b132e1f25df95e03e7ba10
Story: 2008142
Task: 40882
</pre>
</div>
</content>
</entry>
<entry>
<title>Use unittest mock from standard library</title>
<updated>2020-04-06T12:35:50+00:00</updated>
<author>
<name>Riccardo Pittau</name>
<email>elfosardo@gmail.com</email>
</author>
<published>2020-04-06T10:28:30+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/openstack/ironic-python-agent.git/commit/?id=d5d62c8dbfcda305e17b8fa99dc10ac2b9d64bc9'/>
<id>d5d62c8dbfcda305e17b8fa99dc10ac2b9d64bc9</id>
<content type='text'>
Drop the third party mock library to use unittest mock from
standard library.

Change-Id: Ib64b661572e4869a24865c02a6c84a6603930394
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Drop the third party mock library to use unittest mock from
standard library.

Change-Id: Ib64b661572e4869a24865c02a6c84a6603930394
</pre>
</div>
</content>
</entry>
<entry>
<title>Stop using six library</title>
<updated>2019-11-29T09:18:14+00:00</updated>
<author>
<name>Riccardo Pittau</name>
<email>elfosardo@gmail.com</email>
</author>
<published>2019-11-28T16:10:40+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/openstack/ironic-python-agent.git/commit/?id=ca7a46b113c64edd87bfa7b9f56fdb97a0c96dd6'/>
<id>ca7a46b113c64edd87bfa7b9f56fdb97a0c96dd6</id>
<content type='text'>
Since we've dropped support for Python 2.7, it's time to look at
the bright future that Python 3.x will bring and stop forcing
compatibility with older versions.
This patch removes the six library from requirements, not
looking back.

Change-Id: I4795417aa649be75ba7162a8cf30eacbb88c7b5e
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Since we've dropped support for Python 2.7, it's time to look at
the bright future that Python 3.x will bring and stop forcing
compatibility with older versions.
This patch removes the six library from requirements, not
looking back.

Change-Id: I4795417aa649be75ba7162a8cf30eacbb88c7b5e
</pre>
</div>
</content>
</entry>
<entry>
<title>Replace assertEqual(True/False, expr) with assertTrue/assertFalse in tests</title>
<updated>2018-09-18T08:14:20+00:00</updated>
<author>
<name>Tao Li</name>
<email>litao3721@126.com</email>
</author>
<published>2018-09-17T03:10:40+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/openstack/ironic-python-agent.git/commit/?id=8a70f1243561a8f2a28d38e828d33cab09d3fcdd'/>
<id>8a70f1243561a8f2a28d38e828d33cab09d3fcdd</id>
<content type='text'>
In some cases, If the result of expr is a boolen value, we shoud use
assertTrue/assertFalse to instead. Beacause it is clear and simple.

Change-Id: Ie61369f6335a90b09bb24192282d33da5272c13f
Story: #2003785
Task: #26490
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
In some cases, If the result of expr is a boolen value, we shoud use
assertTrue/assertFalse to instead. Beacause it is clear and simple.

Change-Id: Ie61369f6335a90b09bb24192282d33da5272c13f
Story: #2003785
Task: #26490
</pre>
</div>
</content>
</entry>
<entry>
<title>mlnx hardware_manager: get mac address using netifaces</title>
<updated>2018-03-11T10:50:08+00:00</updated>
<author>
<name>Moshe Levi</name>
<email>moshele@mellanox.com</email>
</author>
<published>2018-03-05T08:24:36+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/openstack/ironic-python-agent.git/commit/?id=7631902ec76140aa00b2cbdee10d4a7a0d77d8cf'/>
<id>7631902ec76140aa00b2cbdee10d4a7a0d77d8cf</id>
<content type='text'>
Change-Id: I62e4ca6afb0f8a256ddf9bbc48225fbb96f9e817
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Change-Id: I62e4ca6afb0f8a256ddf9bbc48225fbb96f9e817
</pre>
</div>
</content>
</entry>
<entry>
<title>Execute error in _detect_cna_card</title>
<updated>2018-01-26T18:34:56+00:00</updated>
<author>
<name>yuan liang</name>
<email>leetpy2@gmail.com</email>
</author>
<published>2018-01-17T08:51:05+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/openstack/ironic-python-agent.git/commit/?id=f55b8a34c4b796632940652219091265498b60c5'/>
<id>f55b8a34c4b796632940652219091265498b60c5</id>
<content type='text'>
A list type parameter pass to utils.execute will raise OSError.

Change-Id: Ic5dd30f7e819e433d05bf9cc888902abe7a82def
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
A list type parameter pass to utils.execute will raise OSError.

Change-Id: Ic5dd30f7e819e433d05bf9cc888902abe7a82def
</pre>
</div>
</content>
</entry>
<entry>
<title>Have unit tests all derive from our base unit test class</title>
<updated>2017-10-18T18:06:30+00:00</updated>
<author>
<name>John L. Villalovos</name>
<email>john.l.villalovos@intel.com</email>
</author>
<published>2017-10-18T18:06:30+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/openstack/ironic-python-agent.git/commit/?id=265a072b7297b1516eb0db7f9eb821518b68a725'/>
<id>265a072b7297b1516eb0db7f9eb821518b68a725</id>
<content type='text'>
Have our unit tests derive from the base unit test class in
ironic_python_agent/tests/unit/base: IronicAgentTest

This is so if we add additional global common features to our base
test class, all of our tests will get those common features.

Change-Id: I5188112f06dcfda4f5b0fd41fa9b9dd270cde8d7
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Have our unit tests derive from the base unit test class in
ironic_python_agent/tests/unit/base: IronicAgentTest

This is so if we add additional global common features to our base
test class, all of our tests will get those common features.

Change-Id: I5188112f06dcfda4f5b0fd41fa9b9dd270cde8d7
</pre>
</div>
</content>
</entry>
<entry>
<title>Add missing 'autospec' argument to mock.patch</title>
<updated>2017-03-19T17:04:19+00:00</updated>
<author>
<name>John L. Villalovos</name>
<email>john.l.villalovos@intel.com</email>
</author>
<published>2017-03-19T15:30:25+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/openstack/ironic-python-agent.git/commit/?id=1695cb18c25f2afed27309fd4602dc91ba741864'/>
<id>1695cb18c25f2afed27309fd4602dc91ba741864</id>
<content type='text'>
Add missing 'autospec' keyword argument to mock.patch and
mock.patch.object calls. Use 'autospec=True' except for a few cases
where it fails because the mocked function is a @classmethod and it
doesn't work. In that case explicity set it to 'autospec=False'

Change-Id: I620dce91abaa4440e1803aeefb3e93c0b65d1419
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add missing 'autospec' keyword argument to mock.patch and
mock.patch.object calls. Use 'autospec=True' except for a few cases
where it fails because the mocked function is a @classmethod and it
doesn't work. In that case explicity set it to 'autospec=False'

Change-Id: I620dce91abaa4440e1803aeefb3e93c0b65d1419
</pre>
</div>
</content>
</entry>
</feed>
