Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check in partition/lpar list that specified CPC exists #520

Merged
merged 1 commit into from
Feb 12, 2024

Conversation

andy-maier
Copy link
Member

@andy-maier andy-maier commented Nov 17, 2023

Tested the following manually, on both the A224 HMC (3 CPCs in DPM mode) and on the T28 HMC (4 CPCs in classic mode):

  • zhmc partition list --names-only
  • zhmc partition list --names-only # with use of list_permitted_partitions() disabled
  • zhmc partition list A224 --names-only
  • zhmc partition list XXX --names-only
  • zhmc lpar list --names-only
  • zhmc lpar list --names-only # with use of list_permitted_lpars() disabled
  • zhmc lpar list T28 --names-only
  • zhmc lpar list XXX --names-only

@coveralls
Copy link

coveralls commented Nov 17, 2023

Coverage Status

coverage: 37.115% (+0.09%) from 37.029%
when pulling 810fe15 on andy/check-managed-cpc
into 2e2e6af on master.

@andy-maier andy-maier force-pushed the andy/check-managed-cpc branch 2 times, most recently from 98eaf64 to 7cdaf90 Compare February 4, 2024 10:41
@andy-maier andy-maier force-pushed the andy/check-managed-cpc branch from 7cdaf90 to 4d10dd6 Compare February 11, 2024 13:49
@andy-maier andy-maier changed the title [WIP] Check that specified CPC exists Check in partition/lpar list that specified CPC exists Feb 11, 2024
@andy-maier andy-maier force-pushed the andy/check-managed-cpc branch 4 times, most recently from aca1e70 to 5c6399e Compare February 11, 2024 14:43
Details:

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

Signed-off-by: Andreas Maier <[email protected]>
@andy-maier andy-maier force-pushed the andy/check-managed-cpc branch from 5c6399e to 810fe15 Compare February 11, 2024 14:48
@andy-maier andy-maier merged commit a03e083 into master Feb 12, 2024
14 checks passed
@andy-maier andy-maier deleted the andy/check-managed-cpc branch February 12, 2024 06:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

List of adapters, LPARs and partitions succeeds if CPC is not managed by the targeted HMC
3 participants