Commit Graph

202 Commits

Author SHA1 Message Date
Debayan Ray b9229a0ab3 Add test cases parity for RIS init
Add test cases parity for RIS init compared to RIBCL

Change-Id: Ic75d1e00123a10383cbc8bcffb7bcaccf7e84875
2017-07-24 07:56:52 -04:00
Jenkins 88d8165e3b Merge "Add cpu virtualisation capability" 2017-07-24 10:10:54 +00:00
ankit 526ed7953c Add cpu virtualisation capability
This commit adds 'cpu virtualisation' capability
for redfish.

Change-Id: If6e7ee98be878f3a2fac0b0a5caa78eb559ed82e
2017-07-24 06:31:30 +00:00
kesper fb81af18d7 Redfish: [Fix] Set pending boot mode json payload
This commit modifies 'set_pending_boot_mode' by adding new
function for patch bios pending settings.

Change-Id: I684bff82487b623dcc645a83024f8f23942a7876
Closes-bug: #1705632
2017-07-21 07:59:32 +00:00
Debayan Ray ac0595ecf9 Remove sushy manager hack
Earlier we had included a temporary hack [0] for manager to pass
in 'manager_mock.py' file till the point a new Sushy version is
released with manager feature. This is to remove that temporary
hack as Sushy had been released recently.

Also pegged the version of Sushy to >=1.0.0 in requirements.

[0] https://review.openstack.org/#/c/473719/

Change-Id: I8eb2389730bb5d65338d2562fe2a9462bafc3479
2017-07-20 23:54:35 -04:00
Jenkins 108938591f Merge "Updated ChangeLog for proliantutils 2.3.1 release" 2017-07-20 19:08:03 +00:00
Debayan Ray d419a3e451 Updated ChangeLog for proliantutils 2.3.1 release
Updated ChangeLog as part of proliantutils 2.3.1 release

Change-Id: I315d5c0a72afad74ca3791124c8e1bc587f7aa25
2017-07-20 15:42:50 -04:00
vmud213 6416cf6597 Redfish: Adds secure_boot to server capabilities
This commit adds logic to include 'secure_boot' capabilitiy
to server capabilities.

Change-Id: Ia25d02f8d22f25ba6a3e864f72c9b0a17b80c214
2017-07-20 12:09:14 -07:00
Nisha Agarwal d7e6e73435 Redfish: Add trusted_boot capability
Change-Id: I0df4424f4030a13d25236018ec9f066217733be9
2017-07-20 11:40:41 -07:00
Nisha Agarwal 75b34b0355 Redfish: Add the nic_capacity attributes
This commit adds the "nic_capacity" attribute to
server capabilities.

Change-Id: Ia74825fcae03b5a926a79e56528e9b3ee743df9d
2017-07-20 11:14:22 -07:00
ankit df11e21349 Redfish: Adds server capabilities
This commit adds the following server capabilities
   1)ilo_firmware_version
   2)rom_firmware_version
   3)server_model

Change-Id: Ia6ab3937af33cc6789b95603d09ce088f30ceb25
2017-07-20 10:46:46 +00:00
vmud213 ff36d7d7d5 Redfish: Add secure boot API support
This commit adds secure boot support via redfish APIs.
Following methods are introduced on redfish ops:

    1) get_secure_boot_mode
    2) set_secure_boot_mode
    3) clear_secure_boot_keys
    4) reset_secure_boot_keys

Co-Authored-By: Debayan Ray <debayan.ray@gmail.com>
Partial-Bug: 1691955

Change-Id: I60384a1e8093a2e926fc4341e89b559218d10d4f
2017-07-20 15:21:09 +05:30
Aparna a999200227 Add 'sriov_enabled' capability
This commits adds 'sriov_enabled' capability
for redfish and ris.

Change-Id: Iade847df6257096db2ca4101b02537f994aae073
2017-07-19 12:49:06 +00:00
ankit 699bc6879c Redfish: Adds 'reset_bios_to_default' API
This commit provides functionality to reset bios settings
to default for redish based systems.

Change-Id: I3d9b997bb8683afd92264052e180d328c3e4d661
2017-07-19 10:49:55 +00:00
Nisha Agarwal ca5a0c973e Redfish: Add the get_server_capabilities() and pci_gpu_device attribute
This patch adds the routine get_server_capabilities()
and one of the capability 'pci_gpu_devices' which gives
the count of gpu devices.

Change-Id: Iff38aa201b7a1658723d926292707e163c22c34d
2017-07-19 08:15:25 +00:00
Jenkins d85ef6498c Merge "Redfish: Follow-up patch for update persistent device" 2017-07-19 06:17:04 +00:00
Jenkins c2523811e4 Merge "Redfish: Adds 'reset_ilo_credential' for redfish systems" 2017-07-19 03:34:36 +00:00
ankit 7708ef0f9c Redfish: Adds 'reset_ilo_credential' for redfish systems
This commit provides functionality to update credentials
on redish systems.

Change-Id: I110f0780d1b894ce9cd7f06d32a39c3a7738e4b6
2017-07-18 13:12:03 +00:00
kesper f7d5dedc56 Redfish: Follow-up patch for update persistent device
This commits modify 'update_persistent_device' by adding new
function for getting boot string for uefi target.

Change-Id: Iffbd42c1f52e9afd7339deb2f6cd2f9888a01038
2017-07-18 07:57:59 +00:00
Aparna 42dd7d6584 Redfish: Add 'refresh' method for HPEManager
This commit adds 'refresh' method to the HPEManager
to reset the manager resources

Change-Id: I3e56895dc05411c1192ef4eee8668c47afaf4863
2017-07-17 07:07:38 +00:00
kesper 289de798cc Redfish: Adding the ability to set boot mode and devices
This commits adds new function 'set_pending_boot_mode',
'update_persistent_boot' and 'set_one_time_boot' to
the server

Change-Id: I7609eac74143f4b529b011ed1cbab96b578770b8
2017-07-14 05:15:15 +00:00
Aparna 7488ae2048 Restructing redfish resource test files
This commit restructures the test files in
redfish/resources.
Also renaming the function 'get_member_from_device'
to 'get_member_device' in redfish virtual media
resource.

Change-Id: I6365d72c5f9f43747120c28b9dcef81a03cad4da
2017-07-13 05:19:42 +00:00
kesper 1ab6b07eb5 Redfish: Adding the ability to get persistent boot device
This commits adds new function 'get_persistent_boot_device' to
get persistent boot device for server.

Change-Id: Id8fcec3a821d9ff003ff0f80fd33215c2c08a90d
Depends-on: I85c1376457698bda81120b74f54e08e5236c9974
2017-07-12 13:09:25 +00:00
Anshul Jain e17153856b Redfish: Adds 'update_firmware' API support through redfish
This commit provides functionality to support firmware update
on redish systems.

Change-Id: I564f4cc69a8bb8b567e930082c1b68bb2046d747
2017-07-12 10:19:17 +00:00
Aparna ead74eadad Redfish: Add support for Virtual Media Operations
This commit adds support to perform virtual media
operations 'set_vm_status', 'eject_vmedia' and
'insert_vmedia'.

Change-Id: Ia4d7d4984808c0b0be87262837174090066e0f2a
Partial-Bug: 1691955
2017-07-12 07:00:09 +00:00
Anshul Jain ca8033177c Redfish: Adds 'activate_license' for redfish systems
This commit provides functionality to activate license
for redish based systems.

Change-Id: I398dbf229bf7cef6fce2927f4098642dcff326b8
2017-07-10 05:43:40 +00:00
kesper 09d869326a Redfish: Adding the ability to get current boot mode
This commit adds new function 'get_current_boot_mode' to get
current boot mode for server.

Change-Id: I85c1376457698bda81120b74f54e08e5236c9974
2017-07-07 09:43:44 +00:00
Jenkins 10fcea9ebc Merge "Redfish: Adding the ability to get pending boot mode" 2017-07-07 03:38:56 +00:00
kesper c7c07642e3 Redfish: Adding the ability to get pending boot mode
This commit adds new function 'get_pending_boot_mode' to
get pending boot mode for server.
Change-Id: If4f2b5ef9fff1c25b233621004c1a4efa2dd0f64
2017-07-06 13:12:07 +00:00
melissaml be67034aef Replace assertTrue(isinstance()) with assertIsInstance()
Some of tests use different method of assertTrue(isinstance(A, B)) or
assertEqual(type(A), B). The correct way is to use assertIsInstance(A,
B) provided by testtools.

Change-Id: I1a5462443bf3cec4a14945df036e924a50fd74b3
2017-07-06 12:51:49 +08:00
Jenkins 41ea204fc5 Merge "Using assertIsNone() instead of assertEqual(None)" 2017-07-06 03:48:27 +00:00
melissaml 34503e780f Using assertIsNone() instead of assertEqual(None)
Instead of using assertEqual(None, ***), developers should
use assertIsNone(***).

Change-Id: If91658da3acc621fd5e57b7d11e4f9aebeab50e7
2017-07-06 03:01:51 +08:00
Anshul Jain 5dab85a2a4 Redfish: Adds manager support for redfish API's.
This commit enables the support for all redfish API's to make
use of Manager features.
This patch also includes a temporary hack for manager as
'manager_mock.py' file which needs to be removed once new Sushy
version is released with manager feature. Added the 'utils' file
containing the utility function, ``get_subresource_path_by``.

Co-Authored-By: Aparna Vikraman <aparnavtce@gmail.com>
Co-Authored-By: Debayan Ray <debayan.ray@gmail.com>

Partial-Bug: 1691955

Change-Id: Iffec7e2e459455dba3b5bac817faa89341b4b9d3
2017-07-05 11:05:37 -04:00
Jenkins e39fd72626 Merge "Change Logs for proliantutils 2.3.0 release" 2017-06-22 16:19:36 +00:00
Aparna 7854b6c2d8 Change Logs for proliantutils 2.3.0 release
Updated Change logs as part of proliantutils 2.3.0
release.

Change-Id: I73d40e0fe7ae52b7b60e4f00e98dc3c24e35f611
2017-06-22 12:14:18 +00:00
Jenkins d8965e28d0 Merge "Redfish: Adding the ability to get one time boot" 2017-06-22 09:37:53 +00:00
kesper d03795e74d Redfish: Adding the ability to get one time boot
This commit adds new function 'get_one_time_boot' to get the one
time boot option for server.

Change-Id: Ibc2779680a1f740e8ef2eaa221657a4e8670b93e
2017-06-22 04:09:49 +00:00
Aparna 69f21a99aa Support to perform erase on all the disks(volumes and drives)
This commit adds change to perform generic IPA `erase_devices`
on success of Sanitize disk erase. Also, performs disk erase
by overwriting the disks with zero when Sanitize disk erase is
not supported.

Change-Id: I40e502a24dd2ae5f0ce4e24c4b239ce6b743f0af
Closes-Bug: #1666518
2017-06-20 04:20:39 +00:00
Jenkins 7baf09af8d Merge "Add upper-constraints to testenv setup" 2017-06-16 05:59:00 +00:00
Debayan Ray e2f1bb4167 Redfish: Add system push power button operations
This patch adds system power operations in proliantutils via
redfish way. These 2 methods are introduced on redfish ops:

    1) press_pwr_btn
    2) hold_pwr_btn

Change-Id: Ie6281b9ad608e50fc274a8e1b32d539b6a174e5d
Partial-Bug: 1691955
2017-06-09 07:28:07 -04:00
Jenkins 840f7d72f7 Merge "Add HPE extensions support to redfish connection lib" 2017-06-08 10:51:32 +00:00
vmud213 3ff2a0582f Add HPE extensions support to redfish connection lib
This commit adds support to have HPE root and system
resource extensions to redfish connection library.

Partial-Bug: #1691955
Change-Id: I65bf78d6471a5246465e0a6b226844748888ca73
2017-06-08 12:28:57 +05:30
Debayan Ray 7e3a0e4559 Redfish: Add system power operations
This patch adds system power operations in proliantutils via
redfish way. These 2 methods are introduced on redfish ops:

    1) reset_server
    2) set_host_power

Partial-Bug: 1691955
Change-Id: Ib8217cfe68c5ae5b647d5ece055251153054454d
2017-06-05 01:50:57 -04:00
Debayan Ray 100c058a09 Aligning redfish calls to new framework
This patch proposes a new framework to communicate on redfish
protocol in proliantutils.

Change-Id: I719ee8da74ba4109ac1c9dfffdf54baed67cd95c
Closes-Bug: 1646685
2017-06-01 02:35:04 -04:00
Jenkins 2932ddfe90 Merge "Set 'trusted_boot' capability only when TPM chip is present" 2017-05-16 10:17:29 +00:00
Aparna c0ca2d7126 Support to return logs for hpsum firmware update
This commit adds supports to return the log files
for the hpsum based firmware update as gzipped
and base64 encoded string.

Closes-Bug: #1673037
Change-Id: Ie9f165c75e6b47be29927864cbdf2d8b050ef887
2017-05-10 08:52:01 +00:00
Jenkins 93f6d17bd9 Merge "Instrumenting redfish into proliantutils' client" 2017-05-08 15:29:06 +00:00
Shivanand Tendulker f3c4ffc92b Set 'trusted_boot' capability only when TPM chip is present
Need to populate the 'trusted_boot' capability only when TPM chip
is present. These capabilities gets used during scheduling and
needs to be set only when corresponding feature is available.

Change-Id: I1113bc5025fa643dc2d1c6cb9fd8e91da1b0331f
Closes-Bug: #1688463
2017-05-08 07:56:45 -04:00
Debayan Ray 4db1e580e2 Instrumenting redfish into proliantutils' client
This patch introduces the instrumentation of redfish object's
method invocation from ``ilo.client.IloClient`` object. When
a method is invoked on client, based on the target hardware
the execution of that corresponding method bestows on RIBCL,
RIS or Redfish. Again, when the context is Redfish then there
RIBCL can remain enabled/disabled. In case of RIBCL enabled,
we fall back to RIBCL for any method invocation which is not
(yet) implemented in Redfish. For RIBCL being disabled, we
raise ``NotImplementedError``.

This also introduces a parameter in client constructor named
'use_redfish_only' which when set to True will force the use
of redfish. Default value is False.

Change-Id: Iaf261a17da137a6fa49e62d9ff2a7cf34c97c2e3
Partial-Bug: 1646685
2017-05-08 05:59:14 -04:00
kesper 86759d886b Adding capability to check NVDIMM_N availability
This commit adds a new capability to check NVDIMM_N
availability using the bios parameter on the ProLiant Servers.

Change-Id: I91206332562bc5929df06806884811af73738304
2017-05-08 05:07:00 +00:00