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

FusionCloud 6.3.1.1 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).
Unintentional Deletion of Broker Stack

Unintentional Deletion of Broker Stack

Symptom

The broker stack is deleted unintentionally, and the service (to which the broker belongs) becomes unavailable.

Possible Causes

The broker stack has been deleted unintentionally.

Troubleshooting Method

  1. Obtain the guid of the service to which the broker belongs:

    1. Use PuTTY to log in to the om_core1_ip node.

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

    2. Run the following command to view the pod status of the database proxy:

      kubectl get pod -nmanage -owide | grep dbproxy

    3. Run the following command to log in to the database:

      sudo /opt/mysql/bin/mysql -h 172.16.5.5 --port=$(kubectl get secret appdb-csc -n manage -o yaml|grep port|awk '{print $2}'|base64 -d) -u ossdbuser -pChangeme_123 -Dsmgrdb

      In the preceding command, 172.16.5.5 indicates the IP address queried in 1.b. Set this parameter based on the actual situation. If there are multiple IP addresses, select any one of them.

      Changeme_123 indicates the password for logging in to the database. Set this parameter based on the actual situation.

    4. Run the following commands to query the guid:

      select guid from service where name='Service_name';

      Service_name indicates the name of service to which the broker belongs.

      Record the guid information.

  2. Create a new stack.

    1. Go to the ServiceStage tenant management zone.

      • If the service is published using the PaaS resource, log in to the console as the op_svc_cse tenant, and the default password is QAZ2wsx@123!

        Use a browser to log in to the ServiceStage tenant management zone.

        Login address: https://servicestage.console.type.com
        • In the domain name, servicestage.console is fixed.
        • In the domain name, type.com indicates the value of ManageOne_external_global_domain_name on the FCD Generated Parameters sheet of the parameter summary file (xxx_export_all.xlsm) exported after IaaS installation.
      • If the service is not published using the PaaS resource, log in to the console using the account of the service publisher.
        1. Use a browser to log in to ManageOne Operation Management Portal.
          • Login address in non-B2B scenarios: https://Address for accessing the console homepage, for example, https://console.type.com
          • Login address in B2B scenarios: https://tenant login address, for example, https://console.type.com
        2. Select a region and a project from the drop-down box in the upper left corner of the page.
        3. On the home page, choose Application Service > Container Application Platform.

          You can also choose Application Service > Container Application Platform on the console.

    2. Choose AppRelease > App Orchestration > Template from the main menu.
    3. Select the paasconsole-http template, and click Create Stack in the Operation column of the target version on the template details page.
    4. On the displayed page, enter the stack Basic Information and click Next Step.
    5. Configure the following parameters:
      • extend_info: set to the value of ResourcePool under the ServicePublish field in the yml configuration file (used during service publishing).
      • image_name: set to the address of the broker image.
      • pod_name: set to the stack name.
      • service_guid: set to the guid obtained in 1.d.
      • sso_info: set to a fixed value. Value format:

        {"iam_external_domain":"External IAM domain name","iam_external_addr":"IAM IP address","iam_internal_ip":"iam.kube-system.svc.cluster.local","iam_port":"31943"}

        To obtain the parameter values of External IAM domain name and IAM IP address, perform the following steps:

        1. Use PuTTY to log in to the om_core1_ip node.

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

        2. Query the CSC deployment file to obtain the parameter values of External IAM domain name and IAM IP address.

          kubectl edit deploy csc-apiserver -nmanage

          The External IAM domain name and IAM IP address parameters values are shown in the red box in the preceding figure.

    6. Click Next Step. On the Preview page, click Create to create the stack.

  3. Obtain the IP address and port number of the node where the stack instance resides.

    1. Click Parameter Configuration on the stack details page after the stack is created.

    2. Obtain and record the values of external_ssl_addr and ingress_domain included in the output parameters of the stack.

  4. Obtain the guid of the stack.

    1. Use PuTTY to log in to the om_core1_ip node.

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

    2. Run the following command to obtain the token of the op_svc_cse tenant.

      curl -k -i https://IAM IP address:31943/v3/auth/tokens -XPOST -d '{"auth": {"identity": {"methods": ["password"],"password": {"user": {"domain": {"name": "op_svc_cse"},"name": "op_svc_cse","password": "Huawei12#$"}}},"scope": {"project": {"name": "cse-system"}}}}'

      op_svc_cse: indicates the tenant. If the service is published using the PaaS resource, the tenant is op_svc_cse. Otherwise, the tenant of the service publisher is used. Huawei12#$ is the password of the tenant, and cse-system is the project for publishing services.

      The value of the X-Subject-Token field in the returned message is the token.

    3. Run the following command to obtain the guid of the stack created in 2.

      curl -k https://External IP address of svc of the aos-apiserver service:31800/v2/stacks?project_id=6cc8f9abcc1d434d9b51757bf28e76c1 -H "X-Auth-Token:Token"

      In the preceding command, Token indicates the token of the op_svc_cse tenant obtained in 4.b, 6cc8f9abcc1d434d9b51757bf28e76c1 indicates the ID of the project (to which the broker stack belongs), which can be obtained from the command output of 4.b, and the value of External IP address of svc of the aos-apiserver service can be obtained from the command output after the kubectl get svc -n manage|grep aos command is executed.

      Based on the stack name, find out the guid of the stack in the command output.

  5. Log in to the CSC database by referring to 1.c and run the following commands to update the stack guid and port number of the service to which the broker belongs:

    use smgrdb;

    update service_broker set app_id = 'stack_guid', url='stack_url', domain='domain' where service_guid='service_id';

    In the preceding command, stack_guid indicates the stack guid obtained in 4.c, stack_url indicates the value of external_ssl_addr obtained in 3 (in https://external_ssl_addr format), domain indicates the value of ingress_domain obtained in 3, and service_id indicates the service guid obtained in1.d.

Translation
Download
Updated: 2019-06-10

Document ID: EDOC1100063248

Views: 23101

Downloads: 37

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