No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

HUAWEI CLOUD Stack 6.5.0 Troubleshooting Guide 02

Rate and give feedback :
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
Failure in Generating a Docker Login Command in the Image Repository

Failure in Generating a Docker Login Command in the Image Repository

Symptom

When FusionStage is interconnected with ManageOne and a project name contains Chinese characters, a docker login command fails to be generated in the image repository.

Possible Causes

The project name contains Chinese characters. The Chinese characters fail to be encoded when an HTTPS request is being sent. As a result, the request sending fails.

Troubleshooting Method

  1. Log in to ManageOne. Choose My Settings > Project List. On the Project List tab page, locate the project whose name contains Chinese characters, and record the project ID.

  2. Use PuTTY to log in to the manage_lb1_ip node.

    The default username is paas, and the default password is QAZ2wsx@123!.

  3. Run the following command to obtain the token of the corresponding project:

    curl -i -k -H 'Accept:application/json' -H 'Content-Type:application/json;charset=utf8' -X POST -d'{"auth": {"identity":{"methods": ["password"],"password":{"user": {"name": "$Username","password":"$Password","domain": {"name":"$Tenant name"}}}},"scope": {"project":{"id": "$Project ID"}}}}' https:// ${Floating IP address of API Gateway}/v3/auth/tokens

    X-Subject-Token: MIIESAYJKoZIhvcNAQcCoIIEOTCCBDUCAQExDTALBglghkgBZQMEAgEwggKWBgkqhkiG9w0BBwGgggKHBIICg3sidG9rZW4iOnsiZXhwaXJlc19hdCI6IjIwMTgtMDctMjVUMDE6NTQ6MzYuMzQ0MDAwWiIsIm1ldGhvZHMiOlsicGFzc3dvcmQiXSwiZG9tYWluIjp7Im5hbWUiOiJvcF9zZXJ2aWNlIiwiaWQiOiI2MDgxNjdiOWI3NDE0NGJlYWY4YjJjN2ZmNTUyMWIyZSJ9LCJyb2xlcyI6W3sibmFtZSI6InRlX2FnZW5j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UILRx-1CTloIJfBARyo3W+e0BHBajqQpK13fnYiK-mD1P4WNPVibjhH7LshWnv6tL5XKTrPZUlpzMZhS6dxYS-OHWi9vfx044yKosVzMpA=

    The value of X-Subject-Token in the command output is the token.

  4. Run the following command to set the token to variables:

    token={Token obtained in 3}

  5. Run the following command to obtain the secret in the docker login command:

    curl -v -k -H "X-Auth-Token: ${token}" https://${swr_url}/dockyard/v2/utils/secret -F "projectname=$Project ID"

    X-Swr-Dockerlogin: 
    docker login -u e06811bb34a6446c93fb52aa80b8a4a3@ZJXECMWNEKQVJ5FTSRN7 -p de275e5e26fc9580a2eb1d871e005eaff8381330274735ff41a1ac4d10ccf720

    The value of X-Swr-Dockerlogin in the command output is the secret in the docker login command.

  6. Add the swr_url address to the end of the X-Swr-Dockerlogin field to assemble the docker login command.

    The swr_url address is the address of the image repository in the corresponding environment, for example:

    docker login -u e06811bb34a6446c93fb52aa80b8a4a3@ZJXECMWNEKQVJ5FTSRN7 -p de275e5e26fc9580a2eb1d871e005eaff8381330274735ff41a1ac4d10ccf720 20.68.0.82:20202

  7. If the fault persists, contact technical support for assistance.

Translation
Download
Updated: 2019-06-01

Document ID: EDOC1100062375

Views: 1158

Downloads: 12

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Share
Previous Next