PowerVC

PowerVC

Connect, learn, share, and engage with IBM Power.

 View Only
  • 1.  PowerVC 2.0.2: HTTP Error 500 when adding an HMC

    Posted Tue November 23, 2021 07:48 PM
    Edited by Anthony Cascianelli Tue November 23, 2021 08:29 PM
    Trying to get PowerVC 2.0.2 up and running and can't seem to get an HMC added.  I have a local service account that I used with PowerVC 1.4.4.0 that worked without a problem, but when trying to use the same account with PowerVC 2.0.2 I get the following errors:

    What's strange is that when I attempt to use my personal account that the HMC uses AD/LDAP with for authentication, that account works fine.

    I've tried looking through the PowerVC Redbook and other documentation, but I can't find any special instructions for how users need to be setup on the HMC.

    2021-11-23 19:41:30.873 114741 INFO powervc_oslo.k2.k2operator [req-8239632b-adb4-4ca2-bf63-0e6919533ab1 dce3d05220e641c39f4f820980445c93 584061c43853452cb5e1e0f4994fd208 - default default] logging on hmc.XXXXXXX.org
    2021-11-23 19:41:30.928 114741 ERROR powervc_discovery.registration.registrar [req-8239632b-adb4-4ca2-bf63-0e6919533ab1 dce3d05220e641c39f4f820980445c93 584061c43853452cb5e1e0f4994fd208 - default default] Error retrieving Connection info: HTTP error on Logon: 500 (): powervc_oslo.k2.k2operator.K2HttpError: HTTP error on Logon: 500 ()
    2021-11-23 19:41:30.930 114741 ERROR powervc_discovery.registration.registrar [req-8239632b-adb4-4ca2-bf63-0e6919533ab1 dce3d05220e641c39f4f820980445c93 584061c43853452cb5e1e0f4994fd208 - default default] HTTP error on Logon: 500 (): powervc_oslo.k2.k2operator.K2HttpError: HTTP error on Logon: 500 ()
    2021-11-23 19:41:30.930 114741 ERROR powervc_discovery.registration.registrar Traceback (most recent call last):
    2021-11-23 19:41:30.930 114741 ERROR powervc_discovery.registration.registrar File "/usr/lib/python3.6/site-packages/powervc_oslo/k2/k2operator.py", line 440, in _logon
    2021-11-23 19:41:30.930 114741 ERROR powervc_discovery.registration.registrar relogin=False, login=True)
    2021-11-23 19:41:30.930 114741 ERROR powervc_discovery.registration.registrar File "/usr/lib/python3.6/site-packages/powervc_oslo/k2/k2operator.py", line 417, in request
    2021-11-23 19:41:30.930 114741 ERROR powervc_discovery.registration.registrar raise K2HttpError(errmsg, k2resp)
    2021-11-23 19:41:30.930 114741 ERROR powervc_discovery.registration.registrar powervc_oslo.k2.k2operator.K2HttpError: HTTP error for PUT /rest/api/web/Logon: 500 ()
    2021-11-23 19:41:30.930 114741 ERROR powervc_discovery.registration.registrar
    2021-11-23 19:41:30.930 114741 ERROR powervc_discovery.registration.registrar During handling of the above exception, another exception occurred:
    2021-11-23 19:41:30.930 114741 ERROR powervc_discovery.registration.registrar
    2021-11-23 19:41:30.930 114741 ERROR powervc_discovery.registration.registrar Traceback (most recent call last):
    2021-11-23 19:41:30.930 114741 ERROR powervc_discovery.registration.registrar File "/usr/lib/python3.6/site-packages/powervc_discovery/registration/registrar.py", line 170, in establish_connection
    2021-11-23 19:41:30.930 114741 ERROR powervc_discovery.registration.registrar self._retrieve_connection_info(connect_info, config)
    2021-11-23 19:41:30.930 114741 ERROR powervc_discovery.registration.registrar File "/usr/lib/python3.6/site-packages/powervc_discovery/registration/compute/hmc_registrar.py", line 234, in _retrieve_connection_info
    2021-11-23 19:41:30.930 114741 ERROR powervc_discovery.registration.registrar config['access_ip'], config['user_id'], config['password'])
    2021-11-23 19:41:30.930 114741 ERROR powervc_discovery.registration.registrar File "/usr/lib/python3.6/site-packages/powervc_oslo/k2/k2operator.py", line 178, in __init__
    2021-11-23 19:41:30.930 114741 ERROR powervc_discovery.registration.registrar self._logon()
    2021-11-23 19:41:30.930 114741 ERROR powervc_discovery.registration.registrar File "/usr/lib/python3.6/site-packages/powervc_oslo/k2/k2operator.py", line 449, in _logon
    2021-11-23 19:41:30.930 114741 ERROR powervc_discovery.registration.registrar e.k2response)
    2021-11-23 19:41:30.930 114741 ERROR powervc_discovery.registration.registrar powervc_oslo.k2.k2operator.K2HttpError: HTTP error on Logon: 500 ()
    2021-11-23 19:41:30.930 114741 ERROR powervc_discovery.registration.registrar
    2021-11-23 19:41:30.931 114741 INFO nova.api.openstack.wsgi [req-8239632b-adb4-4ca2-bf63-0e6919533ab1 dce3d05220e641c39f4f820980445c93 584061c43853452cb5e1e0f4994fd208 - default default] HTTP exception thrown: Could not access the Hardware Management Console for an unknown reason. Refer to the /var/log/nova/nova-api.log file for more details.
    2021-11-23 19:41:30.933 114741 INFO nova.osapi_compute.wsgi.server [req-8239632b-adb4-4ca2-bf63-0e6919533ab1 dce3d05220e641c39f4f820980445c93 584061c43853452cb5e1e0f4994fd208 - default default] 10.1.210.45,127.0.0.1 "POST /v2.1/584061c43853452cb5e1e0f4994fd208/ibm-hmcs HTTP/1.1" status: 500 len: 624 time: 0.0993421

    Running RHEL 8.5

    ------------------------------
    Anthony Cascianelli
    ------------------------------


  • 2.  RE: PowerVC 2.0.2: HTTP Error 500 when adding an HMC

    Posted Tue November 23, 2021 09:42 PM
    I feel like an idiot...

    I figured it out.  It appears that PowerVC 2.0.2 does not play well with HMC users that have special characters in their passwords.  I think the two characters in questions were a ! and a &.

    ------------------------------
    Anthony Cascianelli
    ------------------------------



  • 3.  RE: PowerVC 2.0.2: HTTP Error 500 when adding an HMC

    Posted Wed November 24, 2021 10:11 AM
    Glad to hear you found the solution.  Needle in a haystack there.

    May I ask what log file you got that list from?

    ------------------------------
    Tom Komadowski
    ------------------------------



  • 4.  RE: PowerVC 2.0.2: HTTP Error 500 when adding an HMC

    Posted Wed November 24, 2021 10:16 AM
    The notification that popped up in the PowerVC web UI pointed me at /var/log/nova/nova-api.log.  Honestly that error was of 0 value.

    ------------------------------
    Anthony Cascianelli
    ------------------------------