Uploaded image for project: 'Portal'
  1. Portal
  2. PORTAL-580

Portal can not start due to missing database 'portal'

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Highest Highest
    • Dublin Release
    • Dublin Release
    • None
    • OOM-Daily

      After deploying ONAP with Portal released version 2.5.0, portal-app doesn't come up:

       

      root@release-rancher:~# kubectl -n onap get pod |grep portal
      dev-portal-portal-app-56b7ffcfc7-zwsf5 0/2 Init:0/1 19 3h23m
      dev-portal-portal-cassandra-6447c65c44-cs27j 1/1 Running 0 3h23m
      dev-portal-portal-db-78c89d695b-ln5rh 1/1 Running 1 3h23m
      dev-portal-portal-db-config-4vfgj 0/2 Completed 0 3h13m
      dev-portal-portal-db-config-6zcfl 0/2 Completed 0 3h4m
      dev-portal-portal-db-config-d49r4 0/2 Completed 0 177m
      dev-portal-portal-db-config-fjfq6 0/2 Completed 0 3h23m
      dev-portal-portal-db-config-sm8lb 0/2 Completed 0 3h
      dev-portal-portal-db-config-vk4gg 0/2 Completed 0 3h12m
      dev-portal-portal-sdk-5cf94fdd65-4bg85 2/2 Running 0 3h23m
      dev-portal-portal-widget-7bf7f5f5cf-gxhhc 0/1 Running 55 3h23m
      dev-portal-portal-zookeeper-c8b47b95-jrwfp 1/1 Running 0 3h23m
      

       

      The issue seems to be caused by portal-db-config can not find database 'portal'

       

      root@release-rancher:~# kubectl -n onap logs dev-portal-portal-db-config-d49r4 portal-db-job | more
      ERROR 1049 (42000) at line 2: Unknown database 'portal' 
      

       

      Login to pod portal-db, there is no 'portal' database:

       

      root@dev-portal-portal-db-78c89d695b-ln5rh:/docker-entrypoint-initdb.d# mysql -u root -pAa123456 
      MariaDB [(none)]> show databases;
      +--------------------+
      | Database |
      +--------------------+
      | ecomp_sdk |
      | information_schema |
      | mysql |
      | performance_schema |
      | portal_os |
      +--------------------+
      

       

      In yesterday's ONAP staging deployment, where Portal image version is 2.5.0-STAGING-latest, database 'portal' shows in pod portal-db:

      root@dev-portal-portal-db-6cdbb54bd6-qpgqq:/# mysql -uroot -pAa123456
      Welcome to the MariaDB monitor. Commands end with ; or \g.
      MariaDB [(none)]> show databases;
      +--------------------+
      | Database |
      +--------------------+
      | ecomp_sdk |
      | information_schema |
      | mysql |
      | performance_schema |
      | portal |
      +--------------------+
      5 rows in set (0.004 sec)

       

      If an issue is found in the released portal image, please release a new image based on the latest staging asap.

            talasila talasila
            xuyang11 xuyang11
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: