Search code examples
ibm-cloud-infrastructure

SoftLayer Invalid login credentials provided


I tried SL account and my IBMid to login Softlayer portal (http://control.softlayer.com/), both work fine. But when I tried these account with SLcli (softlayer-python), it returns "Invalid login credentials provided".

Do anyone met this issue?

steve@k8s-1:~$ slcli -v config setup
Username [xxxxx]:
API Key or Password [xxxxxx]:

..............

Starting new HTTPS connection (1): api.softlayer.com
https://api.softlayer.com:443 "POST /xmlrpc/v3.1//SoftLayer_User_Customer HTTP/1.1" 200 236
=== RESPONSE ===
{'Content-Length': '236', 'Content-Encoding': 'gzip', 'Vary': 'Accept-Encoding', 'Server': 'Apache', 'Connection': 'close', 'ntCoent-Length': '420', 'Cache-Control': 'private', 'Date': 'Thu, 24 Nov 2016 06:07:03 GMT', 'X-Frame-Options': 'SAMEORIGIN', 'Content-Type': 'text/xml'}

.......

SoftLayerAPIError(SoftLayer_Exception_User_Customer_LoginFailed): Invalid login credentials provided.

Solution

  • This is an issue with the Python client, I reported the issue:

    https://github.com/softlayer/softlayer-python/issues/783

    As a workaround you can use, in the Python client, the username and APIKey displayed in the control portal for that:

    1. log on to the control portal
    2. Click on Account-> Users menu
    3. Click on the IBMid or username
    4. See API access information (Note the information will be displayed once your APIKey has been generated)

    enter image description here

    Let me know if you are still having issue with this.

    Regards