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

Errors with zhmc_partition module when object acess to adapters is missing #1059

Open
andy-maier opened this issue Aug 5, 2024 · 0 comments

Comments

@andy-maier
Copy link
Member

andy-maier commented Aug 5, 2024

From Klaus on the T313 HMC:

TASK [Ensure the partition is stopped] ********************************************************************************************************
fatal: [localhost]: FAILED! => {"changed": false, "msg": "HTTPError: 404,1: The API user does not have object-access permission to the adapter with object-id [b1a9d75c-3dd3-11ef-b51e-00106f2372f8]. [GET /api/adapters/b1a9d75c-3dd3-11ef-b51e-00106f2372f8/network-ports/1]"}
Der Fehler kommt am Ende des Moduls:
2024-08-05T13:37:17+0200 DEBUG zhmcclient.hmc 97223 Request: DELETE https://9.152.20.27:6794/api/sessions/this-session, headers: {'User-Agent': 'python-zhmcclient/1.17.0', 'Content-type': 'application/json', 'Accept': '*/*', 'X-API-Session': '********'}, content: None
2024-08-05T13:37:17+0200 DEBUG zhmcclient.hmc 97223 Respons: DELETE https://9.152.20.27:6794/api/sessions/this-session, status: 204, headers: {'Strict-Transport-Security': 'max-age=0', 'X-Frame-Options': 'SAMEORIGIN', 'X-Content-Type-Options': 'nosniff', 'Content-Security-Policy': "img-src * data:; frame-ancestors 'self'", 'x-request-id': 'Sx8b79dc68-45de-11ef-a9d2-00106f23f654.4d1 Rxe', 'Cache-control': 'no-cache', 'Date': 'Mon, 05 Aug 2024 11:37:16 GMT', 'Keep-Alive': 'timeout=20', 'Connection': 'keep-alive', 'Server': 'Hardware management console API web server / 2.0'}, content(0 B): ''
2024-08-05T13:37:17+0200 DEBUG zhmc_partition 97223 Module exit (failure): msg: HTTPError: 404,1: The API user does not have object-access permission to the adapter with object-id [b1a9d75c-3dd3-11ef-b51e-00106f2372f8]. [GET /api/adapters/b1a9d75c-3dd3-11ef-b51e-00106f2372f8/network-ports/1]

Reduce the authorization requirements for using the zhmc_partition module to not depend on CPC, adapters or vswitches.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant