Layer7 API Management

 View Only
  • 1.  Change default tenant portal 4.5

    Posted Jul 03, 2020 07:32 AM
    Edited by Marco Zwetsloot Jul 03, 2020 10:38 AM
    Hi,
    We are installing portal 4.5 with offline installer 4.5.0.1 at a customer. The default tenant created is api.example.com (PORTAL_TENANT_ID.PORTAL_DOMAIN).
    The PORTAL_DOMAIN is set during with config.sh script dialogue.

    If we want to change the default to something else, we can do 2 thing:
    1. Add PORTAL_TENANT_ID=<new name> in de portal.conf file (~/conf).
    2. Change hard coded value "-apim" in the config.sh script line 568 into <new name>.

    Both of this results that after portal.sh script is finished that the shown URL is showing <new name>.example.com.
    When we run the status.sh script then this seems to be stuck at reporting the portal_dispatcher container status.
    We see with docker ps -a that this container status is "Exited" instead of "Up".

    If we want to use a new default tenant id, is there any other place we need to override the "apim" value or is there any other actions we need to perform to get this up and running ?

    ------------------------------
    Integration Consultant
    Enable-U
    Netherlands
    ------------------------------


  • 2.  RE: Change default tenant portal 4.5
    Best Answer

    Broadcom Employee
    Posted Jul 04, 2020 01:24 AM
    Hi Marco:

    If you are able to leave the default PORTAL_TENANT_ID of apim that would be preferable.  If you need it changed because of conflicts is there any way you can change the PORTAL_DOMAIN to provide uniqueness on the network?   If you do use PORTAL_TENANT_ID make sure that you follow the documented syntax rules for a this or it will cause problems, primarily because the OTK DB name is built on this and MySQL has some syntax restrictions.  See below which is documented in portal 4.5.

    The PORTAL_TENANT_ID (in portal.conf) or 
    user.defaultTenantId
     (in values.yaml) value observes the following restrictions:
    • No hyphens
    • No special characters
    • Lowercase characters only
    • 13 characters maximum
    The default value of 'apim' is recommended.

    Regards, Alex. 


    ------------------------------
    Broadcom
    ------------------------------