Uploaded image for project: 'Unicycle'
  1. Unicycle
  2. UNI-1

Installing RC on a VM (UBUNTU 16.04)

    XMLWordPrintable

Details

    Description

      admin1@ubuntu:~$ sudo -i
      [sudo] password for admin1:
      root@ubuntu:~#
      root@ubuntu:~#
      root@ubuntu:~# mkdir -p /opt/akraino/region
      root@ubuntu:~# NEXUS_URL=https://nexus.akraino.org
      root@ubuntu:~# curl -L "$NEXUS_URL/service/local/artifact/maven/redirect?r=snapshots&g=org.akraino.regional_controller&a=regional_controller&v=0.0.2-SNAPSHOT&e=tgz" | tar -xozv -C /opt/akraino/region
      % Total % Received % Xferd Average Speed Time Time Time Current
      Dload Upload Total Spent Left Speed
      100 240 100 240 0 0 154 0 0:00:01 0:00:01 -::- 154
      100 4004 100 4004 0 0 2206 0 0:00:01 0:00:01 -::- 2206
      akrainorc
      akraino-workflow.service
      akraino-workflow.sh
      install_akraino_portal.sh
      README
      start_akraino_portal.sh
      version.properties
      root@ubuntu:~# cd /opt/akraino/region/
      root@ubuntu:/opt/akraino/region# ./start_akraino_portal.sh
      Loading values from /opt/akraino/region/akrainorc
      Installing regional controller software using the following artifact references:

      DB_IMAGE=nexus3.akraino.org:10003/akraino_schema_db:0.0.2-SNAPSHOT
      WF_IMAGE=nexus3.akraino.org:10003/akraino-camunda-workflow-engine:0.0.2-SNAPSHOT
      PT_IMAGE=nexus3.akraino.org:10003/akraino-portal:0.0.2-SNAPSHOT
      LD_IMAGE=openmicroscopy/apacheds

      NEXUS_URL=https://nexus.akraino.org
      PORTAL_URL=https://nexus.akraino.org/service/local/artifact/maven/redirect?r=snapshots&g=org.akraino&a=portal_user_interface&v=0.0.2-SNAPSHOT&e=war
      TEMPEST_URL=https://nexus.akraino.org/service/local/artifact/maven/redirect?r=snapshots&g=org.akraino.test_automation&a=test_automation&v=0.0.2-SNAPSHOT&e=tgz
      YAML_BUILDS_URL=https://nexus.akraino.org/service/local/artifact/maven/redirect?r=snapshots&g=org.akraino.yaml_builds&a=yaml_builds&v=0.0.2-SNAPSHOT&e=tgz
      ONAP_URL=https://nexus.akraino.org/service/local/artifact/maven/redirect?r=snapshots&g=org.akraino.addon-onap&a=onap-amsterdam-regional-controller-master&v=0.0.2-SNAPSHOT&e=tgz
      SAMPLE_VNF_URL=https://nexus.akraino.org/service/local/artifact/maven/redirect?r=snapshots&g=org.akraino.sample_vnf&a=sample_vnf&v=0.0.2-SNAPSHOT&e=tgz
      AIRSHIPINABOTTLE_URL=https://nexus.akraino.org/service/local/artifact/maven/redirect?r=snapshots&g=org.akraino.airshipinabottle_deploy&a=airshipinabottle_deploy&v=0.0.2-SNAPSHOT&e=tgz
      REDFISH_URL=https://nexus.akraino.org/service/local/artifact/maven/redirect?r=snapshots&g=org.akraino.redfish&a=redfish&v=0.0.2-SNAPSHOT&e=tgz

      192.168.56.102 ubuntu.ubuntu ubuntu
      Installing required software packages
      Ign:1 http://in.archive.ubuntu.com/ubuntu xenial InRelease
      Hit:2 http://in.archive.ubuntu.com/ubuntu xenial-updates InRelease
      Hit:4 http://security.ubuntu.com/ubuntu xenial-security InRelease
      Hit:5 http://in.archive.ubuntu.com/ubuntu xenial-backports InRelease
      Get:6 http://in.archive.ubuntu.com/ubuntu xenial Release [246 kB]
      Ign:7 http://ubuntu-cloud.archive.canonical.com/ubuntu xenial-updates/ocata InRelease
      Get:8 http://in.archive.ubuntu.com/ubuntu xenial Release.gpg [933 B]
      Hit:9 http://ubuntu-cloud.archive.canonical.com/ubuntu xenial-updates/ocata Release
      Hit:3 https://packages.cloud.google.com/apt kubernetes-xenial InRelease
      Fetched 247 kB in 1s (128 kB/s)
      Reading package lists...
      Reading package lists... Done
      Building dependency tree
      Reading state information... Done
      python-netaddr is already the newest version (0.7.18-1).
      python-yaml is already the newest version (3.11-3build1).
      unzip is already the newest version (6.0-20ubuntu1).
      sshpass is already the newest version (1.05-1).
      xorriso is already the newest version (1.4.2-4ubuntu1).
      apt-transport-https is already the newest version (1.2.32).
      python is already the newest version (2.7.12-1~16.04).
      python-jinja2 is already the newest version (2.8-1ubuntu0.1).
      python-pip is already the newest version (8.1.1-2ubuntu0.4).
      python-requests is already the newest version (2.12.4-1~cloud0).
      0 upgraded, 0 newly installed, 0 to remove and 25 not upgraded.
      Checking that docker is running
      CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
      Download DB files
      Unable to find image 'nexus3.akraino.org:10003/akraino_schema_db:0.0.2-SNAPSHOT' locally
      docker: Error response from daemon: Get https://nexus3.akraino.org:10003/v2/: read tcp 10.0.2.15:33550->162.253.55.36:10003: read: connection reset by peer.
      See 'docker run --help'.
      Download ldap files
      Archive: /tmp/portal_user_interface.war
      inflating: /opt/akraino/ldap/akrainousers.ldif
      inflating: /opt/akraino/ldap/config.ldif
      Unable to find image 'openmicroscopy/apacheds:latest' locally
      docker: Error response from daemon: Get https://registry-1.docker.io/v2/: EOF.
      See 'docker run --help'.
      Initialize ldap
      Error: No such container: akraino-ldap
      Initialize DB
      Error: No such container: akraino-postgres
      Setting up yaml builds content/repositories
      Unable to find image 'nexus3.akraino.org:10003/akraino-portal:0.0.2-SNAPSHOT' locally
      docker: Error response from daemon: Get https://nexus3.akraino.org:10003/v2/: read tcp 10.0.2.15:33634->162.253.55.36:10003: read: connection reset by peer.
      See 'docker run --help'.
      Updating portal configuration
      Error: No such container: akraino-portal
      Error: No such container: akraino-portal
      Error: No such container: akraino-portal
      Final portal configuration
      Error: No such container: akraino-portal
      Error: No such container: akraino-portal
      Unable to find image 'nexus3.akraino.org:10003/akraino-camunda-workflow-engine:0.0.2-SNAPSHOT' locally
      docker: Error response from daemon: Get https://nexus3.akraino.org:10003/v2/: read tcp 10.0.2.15:33636->162.253.55.36:10003: read: connection reset by peer.
      See 'docker run --help'.
      Error: No such container: akraino-workflow

      WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

      Installing java 11...
      Cannot add PPA: 'ppa:~openjdk-r/ubuntu/ppa'.
      ERROR: '~openjdk-r' user or team does not exist.
      Reading package lists... Done
      Building dependency tree
      Reading state information... Done
      E: Unable to locate package openjdk-11-jre
      openjdk version "1.8.0_222"
      OpenJDK Runtime Environment (build 1.8.0_222-8u222-b10-1ubuntu1~16.04.1-b10)
      OpenJDK 64-Bit Server VM (build 25.222-b10, mixed mode)
      Error: No such container:path: akraino-workflow:/config
      Error: No such container: akraino-workflow
      Error: No such container:path: akraino-workflow:/
      – Logs begin at Wed 2019-08-21 10:06:14 IST, end at Wed 2019-08-21 10:12:04 IST. –
      Aug 21 10:11:12 ubuntu systemd[1]: akraino-workflow.service: Service hold-off time over, scheduling restart.
      Aug 21 10:11:12 ubuntu systemd[1]: Stopped Akraino Workflow Engine.
      Aug 21 10:11:12 ubuntu systemd[1]: Started Akraino Workflow Engine.
      Aug 21 10:11:12 ubuntu akraino-workflow.sh[5912]: ls: cannot access '/opt/akraino/workflow/camunda_workflow-*jar': No such file or directory
      Aug 21 10:11:12 ubuntu akraino-workflow.sh[5912]: Unrecognized option: --server.port=8073
      Aug 21 10:11:12 ubuntu akraino-workflow.sh[5912]: Error: Could not create the Java Virtual Machine.
      Aug 21 10:11:12 ubuntu akraino-workflow.sh[5912]: Error: A fatal exception has occurred. Program will exit.
      Aug 21 10:11:12 ubuntu systemd[1]: akraino-workflow.service: Main process exited, code=exited, status=1/FAILURE
      Aug 21 10:11:12 ubuntu systemd[1]: akraino-workflow.service: Unit entered failed state.
      Aug 21 10:11:12 ubuntu systemd[1]: akraino-workflow.service: Failed with result 'exit-code'.
      Aug 21 10:11:18 ubuntu systemd[1]: akraino-workflow.service: Service hold-off time over, scheduling restart.
      Aug 21 10:11:18 ubuntu systemd[1]: Stopped Akraino Workflow Engine.
      Aug 21 10:11:18 ubuntu systemd[1]: Started Akraino Workflow Engine.
      Aug 21 10:11:18 ubuntu akraino-workflow.sh[5932]: ls: cannot access '/opt/akraino/workflow/camunda_workflow-*jar': No such file or directory
      Aug 21 10:11:18 ubuntu akraino-workflow.sh[5932]: Unrecognized option: --server.port=8073
      Aug 21 10:11:18 ubuntu akraino-workflow.sh[5932]: Error: Could not create the Java Virtual Machine.
      Aug 21 10:11:18 ubuntu akraino-workflow.sh[5932]: Error: A fatal exception has occurred. Program will exit.
      Aug 21 10:11:18 ubuntu systemd[1]: akraino-workflow.service: Main process exited, code=exited, status=1/FAILURE
      Aug 21 10:11:18 ubuntu systemd[1]: akraino-workflow.service: Unit entered failed state.
      Aug 21 10:11:18 ubuntu systemd[1]: akraino-workflow.service: Failed with result 'exit-code'.
      Aug 21 10:11:23 ubuntu systemd[1]: akraino-workflow.service: Service hold-off time over, scheduling restart.
      Aug 21 10:11:23 ubuntu systemd[1]: Stopped Akraino Workflow Engine.
      Aug 21 10:11:23 ubuntu systemd[1]: Started Akraino Workflow Engine.
      Aug 21 10:11:23 ubuntu akraino-workflow.sh[5940]: ls: cannot access '/opt/akraino/workflow/camunda_workflow-*jar': No such file or directory
      Aug 21 10:11:23 ubuntu akraino-workflow.sh[5940]: Unrecognized option: --server.port=8073
      Aug 21 10:11:23 ubuntu akraino-workflow.sh[5940]: Error: Could not create the Java Virtual Machine.
      Aug 21 10:11:23 ubuntu akraino-workflow.sh[5940]: Error: A fatal exception has occurred. Program will exit.
      Aug 21 10:11:23 ubuntu systemd[1]: akraino-workflow.service: Main process exited, code=exited, status=1/FAILURE
      Aug 21 10:11:23 ubuntu systemd[1]: akraino-workflow.service: Unit entered failed state.
      Aug 21 10:11:23 ubuntu systemd[1]: akraino-workflow.service: Failed with result 'exit-code'.
      Aug 21 10:11:28 ubuntu systemd[1]: akraino-workflow.service: Service hold-off time over, scheduling restart.
      Aug 21 10:11:28 ubuntu systemd[1]: Stopped Akraino Workflow Engine.
      Aug 21 10:11:28 ubuntu systemd[1]: Started Akraino Workflow Engine.
      Aug 21 10:11:28 ubuntu akraino-workflow.sh[5950]: ls: cannot access '/opt/akraino/workflow/camunda_workflow-*jar': No such file or directory
      Aug 21 10:11:28 ubuntu akraino-workflow.sh[5950]: Unrecognized option: --server.port=8073
      Aug 21 10:11:28 ubuntu akraino-workflow.sh[5950]: Error: Could not create the Java Virtual Machine.
      Aug 21 10:11:28 ubuntu akraino-workflow.sh[5950]: Error: A fatal exception has occurred. Program will exit.
      Aug 21 10:11:28 ubuntu systemd[1]: akraino-workflow.service: Main process exited, code=exited, status=1/FAILURE
      Aug 21 10:11:28 ubuntu systemd[1]: akraino-workflow.service: Unit entered failed state.
      Aug 21 10:11:28 ubuntu systemd[1]: akraino-workflow.service: Failed with result 'exit-code'.
      Aug 21 10:11:33 ubuntu systemd[1]: akraino-workflow.service: Service hold-off time over, scheduling restart.
      Aug 21 10:11:33 ubuntu systemd[1]: Stopped Akraino Workflow Engine.
      Aug 21 10:11:33 ubuntu systemd[1]: Started Akraino Workflow Engine.
      Aug 21 10:11:33 ubuntu akraino-workflow.sh[6007]: ls: cannot access '/opt/akraino/workflow/camunda_workflow-*jar': No such file or directory
      Aug 21 10:11:33 ubuntu akraino-workflow.sh[6007]: Unrecognized option: --server.port=8073
      Aug 21 10:11:33 ubuntu akraino-workflow.sh[6007]: Error: Could not create the Java Virtual Machine.
      Aug 21 10:11:33 ubuntu akraino-workflow.sh[6007]: Error: A fatal exception has occurred. Program will exit.
      Aug 21 10:11:33 ubuntu systemd[1]: akraino-workflow.service: Main process exited, code=exited, status=1/FAILURE
      Aug 21 10:11:33 ubuntu systemd[1]: akraino-workflow.service: Unit entered failed state.
      Aug 21 10:11:33 ubuntu systemd[1]: akraino-workflow.service: Failed with result 'exit-code'.
      Aug 21 10:11:39 ubuntu systemd[1]: akraino-workflow.service: Service hold-off time over, scheduling restart.
      Aug 21 10:11:39 ubuntu systemd[1]: Stopped Akraino Workflow Engine.
      Aug 21 10:11:39 ubuntu systemd[1]: Started Akraino Workflow Engine.
      Aug 21 10:11:39 ubuntu akraino-workflow.sh[6015]: ls: cannot access '/opt/akraino/workflow/camunda_workflow-*jar': No such file or directory
      Aug 21 10:11:39 ubuntu akraino-workflow.sh[6015]: Unrecognized option: --server.port=8073
      Aug 21 10:11:39 ubuntu akraino-workflow.sh[6015]: Error: Could not create the Java Virtual Machine.
      Aug 21 10:11:39 ubuntu akraino-workflow.sh[6015]: Error: A fatal exception has occurred. Program will exit.
      Aug 21 10:11:39 ubuntu systemd[1]: akraino-workflow.service: Main process exited, code=exited, status=1/FAILURE
      Aug 21 10:11:39 ubuntu systemd[1]: akraino-workflow.service: Unit entered failed state.
      Aug 21 10:11:39 ubuntu systemd[1]: akraino-workflow.service: Failed with result 'exit-code'.
      Aug 21 10:11:44 ubuntu systemd[1]: akraino-workflow.service: Service hold-off time over, scheduling restart.
      Aug 21 10:11:44 ubuntu systemd[1]: Stopped Akraino Workflow Engine.
      Aug 21 10:11:44 ubuntu systemd[1]: Started Akraino Workflow Engine.
      Aug 21 10:11:44 ubuntu akraino-workflow.sh[6064]: ls: cannot access '/opt/akraino/workflow/camunda_workflow-*jar': No such file or directory
      Aug 21 10:11:44 ubuntu akraino-workflow.sh[6064]: Unrecognized option: --server.port=8073
      Aug 21 10:11:44 ubuntu akraino-workflow.sh[6064]: Error: Could not create the Java Virtual Machine.
      Aug 21 10:11:44 ubuntu akraino-workflow.sh[6064]: Error: A fatal exception has occurred. Program will exit.
      Aug 21 10:11:44 ubuntu systemd[1]: akraino-workflow.service: Main process exited, code=exited, status=1/FAILURE
      Aug 21 10:11:44 ubuntu systemd[1]: akraino-workflow.service: Unit entered failed state.
      Aug 21 10:11:44 ubuntu systemd[1]: akraino-workflow.service: Failed with result 'exit-code'.
      Aug 21 10:11:49 ubuntu systemd[1]: akraino-workflow.service: Service hold-off time over, scheduling restart.
      Aug 21 10:11:49 ubuntu systemd[1]: Stopped Akraino Workflow Engine.
      Aug 21 10:11:49 ubuntu systemd[1]: Started Akraino Workflow Engine.
      Aug 21 10:11:49 ubuntu akraino-workflow.sh[6073]: ls: cannot access '/opt/akraino/workflow/camunda_workflow-*jar': No such file or directory
      Aug 21 10:11:49 ubuntu akraino-workflow.sh[6073]: Unrecognized option: --server.port=8073
      Aug 21 10:11:49 ubuntu akraino-workflow.sh[6073]: Error: Could not create the Java Virtual Machine.
      Aug 21 10:11:49 ubuntu akraino-workflow.sh[6073]: Error: A fatal exception has occurred. Program will exit.
      Aug 21 10:11:49 ubuntu systemd[1]: akraino-workflow.service: Main process exited, code=exited, status=1/FAILURE
      Aug 21 10:11:49 ubuntu systemd[1]: akraino-workflow.service: Unit entered failed state.
      Aug 21 10:11:49 ubuntu systemd[1]: akraino-workflow.service: Failed with result 'exit-code'.
      Aug 21 10:11:53 ubuntu systemd[1]: Stopped Akraino Workflow Engine.
      Aug 21 10:12:04 ubuntu systemd[1]: Started Akraino Workflow Engine.
      Aug 21 10:12:04 ubuntu akraino-workflow.sh[6549]: ls: cannot access '/opt/akraino/workflow/camunda_workflow-*jar': No such file or directory
      Aug 21 10:12:04 ubuntu akraino-workflow.sh[6549]: Unrecognized option: --server.port=8073
      Aug 21 10:12:04 ubuntu akraino-workflow.sh[6549]: Error: Could not create the Java Virtual Machine.
      Aug 21 10:12:04 ubuntu akraino-workflow.sh[6549]: Error: A fatal exception has occurred. Program will exit.
      Aug 21 10:12:04 ubuntu systemd[1]: akraino-workflow.service: Main process exited, code=exited, status=1/FAILURE
      Aug 21 10:12:04 ubuntu systemd[1]: akraino-workflow.service: Unit entered failed state.
      Aug 21 10:12:04 ubuntu systemd[1]: akraino-workflow.service: Failed with result 'exit-code'.
      Aug 21 10:12:09 ubuntu systemd[1]: akraino-workflow.service: Service hold-off time over, scheduling restart.
      Aug 21 10:12:09 ubuntu systemd[1]: Stopped Akraino Workflow Engine.
      Setting up tempest content/repositories
      Setting up ONAP content/repositories
      Setting up sample vnf content/repositories
      Setting up airshipinabottle content/repositories
      Setting up redfish tools content/repositories
      SUCCESS: Portal can be accessed at http://10.0.2.15:8080/AECPortalMgmt/
      SUCCESS: Portal install completed

      Note: We are trying to install a RC on VM (Ubuntu 16.04) but we are geeting an error because repositories are not properly mentioned in the script.

      Please help on this issue.

      Attachments

        Activity

          People

            Unassigned Unassigned
            davidplunkett David Plunkett
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: