Zhmcclient

Latest version: v1.16.1

Safety actively analyzes 638466 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 2 of 8

1.11.0

^^^^^^^^^^^^^^

This version contains all fixes up to version 1.10.1.

Released: 2024-05-18

**Incompatible changes:**

* cpc command dpm-export now adds additional meta information to the export
data (can be suppressed using --exclude-meta-fields). Export configuration
files created with this version of zhmc can only be imported using this
or any newer version of zhmc, too!

* cpc command dpm-import now honours the configuration file content regarding
the preserve-uris, preserve-wwpns, and adapter-mapping information. That
information was previously ignored, and always overwritten by zhmc before
import.

**Bug fixes:**

* Fixed safety issues up to 2024-05-17.

* In the Github Actions test workflow for Python 3.5, 3.6 and 3.7, changed
macos-latest back to macos-12 because macos-latest got upgraded from macOS 12
to macOS 14 which no longer supports these Python versions.

* Fixed an error in the 'cpc autostart add' command.

* Dev: Fixed new issue 'possibly-used-before-assignment' in Pylint 3.2.0.

* Docs: Fixed formatting of badges on README page by converting it to
Markdown. (issue 604)

**Enhancements:**

* Test: Added the option 'ignore-unpinned-requirements: False' to both
safety policy files because for safety 3.0, the default is to ignore
unpinned requirements (in requirements.txt).
Increased safety minimum version to 3.0 because the new option is not
tolerated by safety 2.x. Safety now runs only on Python >=3.7 because
that is what safety 3.0 requires.

* Changed safety run for install dependencies to use the exact minimum versions
of the dependent packages, by moving them into a separate
minimum-constraints-install.txt file that is included by the existing
minimum-constraints.txt file.

* The safety run for all dependencies now must succeed when the test workflow
is run for a release (i.e. branch name 'release_...').

* Improved performance of 'list' commands by pulling only the properties
needed for the output, instead of all of them. This reduced the time to list
CPCs from over 20 seconds to under 1 second on a test system.

* Improved performance of the 'partition list' command on newer HMCs, by using
the 'additional-properties' query parameter introduced in HMC version 2.16.0.
This improved the time for listing partitions on a test system with many
partitions from about 20 seconds to below 3 seconds.

* cpc command dpm-export now prints a summary of the exported configuration
data.

* cpc command dpm-import now prints summary information regarding the
preserve-uris, preserve-wwpns, and adapter-mapping fields. It also prints
a summary of the concrete configuration data that gets passed to the HMC
for import prior asking for confirmation.

1.10.0

^^^^^^^^^^^^^^

This version contains all fixes up to version 1.9.3.

Released: 2024-02-13

**Incompatible changes:**

* Dropped support for Python 2.7 and 3.5. These Python versions went out
of support by the PSF in 2020. If you still use these Python versions
today, you should seriously consider upgrading to a supported Python
version.
As far as the zhmccli package goes, you can still use versions up to
1.9.x on Python 2.7 and 3.5.

**Bug fixes:**

* Addressed safety issues up to 2024-02-11.

* Increased minimum version of 'prompt-toolkit' package to 3.0.13.

* Fixed missing 'CPC' argument in "zhmc cpc upgrade" command. (issue 487).

* Fixed that lpar ''--defined-capacity' option takes boolean argument.
(issue 534)

* Docs: Increased minimum Sphinx versions to 7.1.0 on Python 3.8 and to 7.2.0 on
Python >=3.9 and adjusted dependent package versions in order to fix a version
incompatibility between sphinxcontrib-applehelp and Sphinx.
Disabled Sphinx runs on Python <=3.7 in order to no longer having to deal
with older Sphinx versions. (issue 547)

* Fixed KeyError in "zhmc passwordrule characterrule list" command.
(issue 552)

* Fixed that the "zhmc user create --like ..." command passed the LDAP and MFA
related properties from the like user to the new user even for non-LDAP
and non-MFA users, which was rejected by the HMC. Fixed by omitting LDAP
related properties for non-LDAP users and MFA-related properties for non-MFA
users. In addition, omitted 'min-pw-change-time' for non-local users.
(issue 557)

* Fixed the call to pipdeptree in the test workflow to use 'python -m'
because otherwise it does not show the correct packages of the virtual env.
(issue 539)

**Enhancements:**

* Added support for Python 3.12. Had to increase the minimum versions of
setuptools to 66.1.0 and pip to 23.1.2 in order to address removal of the
long deprecated pkgutils.ImpImporter in Python 3.12, as well as the
minimum version of click-spinner to 0.1.10, as well as several
packages used only for development. (issue 497)

* Help: The options in the help for partition, lpar, and user create/update
commands have been grouped to be more easily identifiable. This required
adding the "click-option-group" Python package to the dependencies.

* Increased minimum zhmcclient version to 1.13.4 to pick up fixes and
functionality. (issues 510, 528)

* Tests: Added an environment variable TESTLOG to enable logging for end2end
tests. (issue 414)

* Added command group 'resetprofile' for operations on reset activation
profiles in classic mode CPCs.

* Added command group 'imageprofile' for operations on image activation
profiles in classic mode CPCs.

* Added command group 'loadprofile' for operations on load activation
profiles in classic mode CPCs.

* Added most of the remaining missing options to the "zhmc lpar update" command.

* Fixed an error in the "zhmc lpar update" command when updating the
zAware and SSC master passwords.

* Added support for retrievel of firmware from an FTP server to the
'cpc/console upgrade' commands. (issue 518)

* Added support for the remaining zAware and SSC related properties for the
commands:

- lpar update
- imageprofile create
- imageprofile update

* Added support for the 'fenced-book-list' properts in the 'resetprofile
create' command.

* Test: Added Python 3.8 with latest package levels to normal tests because
that is now the minimum version to run Sphinx. (related to issue 547)

* Added support for Lpar start command (issue 500)

* Added support for user patterns with a new 'zhmc userpattern' command group.
(issue 550)

* Added support for installation of single firmware updates on the SE with a
new 'zhmc cpc install-firmware' command. (issue 528)

* Added support for deletion of uninstalled firmware updates from the SE with a
new 'zhmc cpc delete-uninstalled-firmware' command. (issue 528)

* Added support for listing firmware levels of SE/CPC and HMC with new
commands 'zhmc cpc list-firmware' and 'zzhmc console list-firmware'.
(issue 564)

* Added support for showing/adding/removing crypto adapters and domains on
partitions with new commands 'zhmc partition show/add/remove-crypto'.
(issue 105)

* Added support for showing crypto configuration of partitions using a specific
crypto adapter with a new command 'zhmc adapter show-crypto'.
(issue 105)

* Added support for zeroizing crypto domains with a new
command 'zhmc partition zeroize-crypto'. (issue 502)

* Fail partition/lpar list commands if the specified CPC does not exist.
(issue 514)

* Added support for a new make target 'authors' that generates an AUTHORS.md
file from the git commit history. Added the invocation of 'make authors' to
the description of how to release a version in the development
documentation. (issue 541)

**Cleanup:**

* Fixed copyright statements (issue 542)

* Increased versions of GitHub Actions plugins to increase node.js runtime
to version 20.

1.9.0

^^^^^^^^^^^^^

This version contains all fixes up to version 1.8.1.

Released: 2023-10-13

**Incompatible changes:**

* Installation of this package using "setup.py" is no longer supported.
Use "pip" instead.

**Bug fixes:**

* Fixed TypeError in ldap show/delete/update commands. (issue 460)

* Fixed safety issues from 2023-08-27.

* Test: Circumvented a pip-check-reqs issue by excluding its version 2.5.0.

**Enhancements:**

* Test: Changed end2end tests to contribute coverage results to same data as
unit/function tests.

* Added the 'state' and 'physical-channel-status' properties to the output
of the "adapter list" command. Removed the redundant 'adapter-family' property
from the output. (issue 472)

* Added 'short-name' and 'reserved-resources' (only when usage options are used)
columns to the output of the 'partition list' command. (issue 468)

* Added 'description' column to the output of all list commands. (issue 468)

* Added support for missing property options for the 'partition create'
and 'partition update' commands. These commands now support options for
all properties of z16 HMCs.

* Added logging to a file as an additional log destination for the --log-dest
option (issue 415)

**Cleanup:**

* Dev: Increased minimum versins of some development packages and fixed
Makefile dependencies.

1.8.0

^^^^^^^^^^^^^

This version contains all fixes up to version 1.7.1.

Released: 2023-08-04

**Bug fixes:**

* Fixed automatic logoff: If a command (other than 'session create') creates a
new HMC session, the session is automatically deleted again at the end of the
command. (issue 421)

* Circumvented the removal of Python 2.7 from the Github Actions plugin
setup-python, by using the Docker container python:2.7.18-buster instead.

* Addressed safety issues from 6+7/2023, by increasing 'requests' to 2.31.0
on Python >=3.7, and by increasing other packages only needed for development.

* Increased minimum zhmcclient version to 1.9.1 to pick up fixes for
'console restart' and PyYAML install issue.

* Excluded certain PyYAML package versions to address the package install error
that happens due to the recently released Cython 3 when PyYAML has to build
its wheel archive during install.

**Enhancements:**

* Improved the end2end test cases for session management.

* Increased the minimum version of zhmcclient to 1.8.1 to pick up improvements
for session management.

* Added a 'zhmc console restart' command which restarts the targeted HMC.
Options are to force users, and to wait for restart with a timeout.

* Added support for upgrading HMC firmware to the 'zhmc console' command group
and for upgrading the SE firmware to the 'zhmc cpc' command group with
a new command 'upgrade'. Increased minimum zhmcclient version to 1.10.0.
(issue 440)

1.7.0

^^^^^^^^^^^^^

This version contains all fixes up to version 1.6.1.

Released: 2023-05-16

**Bug fixes:**

* Changed versions of packages used by zhmc:

- Increased zhmcclient to 1.8.0 to pick up fixes and functionality
- Increased jsonschema to 3.0.1, urllib3 to 1.26.5, requests to 2.25.0,
all for consistency with zhmcclient.

* Test: Fixed test_info.py test that broke with new urllib3 version 2.0.2.

* Fixed RTD docs build issue with OpenSSL by adding RTD config file that
specifies Ubuntu 22.04 for the OS.

* Fixed the incorrect representation of string values as floating point numbers
in the table output formats. (issue 391)

* Removed the option '--crypto-number' from the 'zhmc adapter update' command.
This is not an incompatible change, since it is not possible to change the
the crypto number of a Crypto Express adapter. (part of issue 108)

**Enhancements:**

* Added 'zhmc unmanaged_cpc' command group for dealing with unmanaged CPCs.

* Added support for changing the crypto type of Crypto Express adapters
and the type of FICON Express adapters to the 'zhmc adapter update'
command. (issue 108)

* Added a troubleshooting section to the docs.

* Added a hidden '--pdb' general option for having the zhmc command break right
before the invocation of the command. This can be used for debugging,
particularly in end2end tests.

* Added 'zhmc ldap' command group for managing LDAP server definitions.
(issue 393)

* Added initial support for end2end tests. For details, see the new
"Running end2end tests" section in the documentation.
A first end2end testcase for the 'zhmc session' command has been added.

* Added new commands to assign/unassign certificates to/from DPM partitions
and classic mode LPARs.

* Added new top level command group 'certificate'.

* Added two new commands 'console list-api-features' and 'cpc list-api-features'
to support the new "API features" concept.

1.6.0

^^^^^^^^^^^^^

This version contains all fixes up to version 1.5.1.

Released: 2023-03-27

**Incompatible changes:**

- cpc command dpm-import: the schema used for validating the adapter mapping file
(issue 362) didn't match the content in the corresponding documentation.
Both, documentation and schema were modified following the naming used
in the "Import DPM configuration" WSAPI endpoint specification.

- cpc command dpm-export: the default behavior when exporting the DPM
configuration has been changed to only include those adapters that are
referenced by other elements of the exported configuration data.
A new flag --include-unused-adapters was added to dpm-export to
allow for running an export that includes all adapters of the CPC. (369)

**Bug fixes:**

* Added tox and virtualenv to dependencies.

* Fixed TypeError exception in Click package when using 'cpc dpm-export' or
'cpc dpm-import' commands. (issue 370)

* Increased minimum version of zhmcclient to 1.7.0 to pick up required fixes.

**Enhancements:**

* Added missing environments to weekly full tests (Python 2.7,3.5,3.6 on Windows
and MacOS).

* Added some critical environments to normal PR tests (Python 3.6/min, 3.10/min).

* Changed to using the 'build' package for building the distribution archives
instead of 'setup.py' commands, following the recommendation of the Python
packaging community
(see https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html).

* Addressed issues reported by safety by increasing package versions. (349)

* Changed JSON output for dpm-export to be sorted and properly indented (363)

* Added support for Python 3.11.

**Cleanup:**

* Increased minimum versions of pip, setuptools, wheel to more recent versions.

Page 2 of 8

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.