Uploaded image for project: 'Active and Available Inventory'
  1. Active and Available Inventory
  2. AAI-136

AAI containers fail cloud-init.sh during cloud-init using branch release-1.0.0 for 1.1 heat env templates

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Unresolved
    • Icon: High High
    • Amsterdam Release
    • Amsterdam Release
    • None

       the default onap_rackpace.env and onap_openstack*.env branch will not work for 1.1/R1 AA&I

      Problem: cloning aai/test-config fails on missing 1.0 branch - as expected

      The only thing that does not make sense is are there other 1.1 rackspace/openstack users seeing this.

       

      Since the new AA&I VMs were introduced post 1.0 - it make sense that they would not have a 1.0 branch - quick fix is to retroactively branch certain AAI repos

      I can't bring up the containers in both AAI servers for 1.1.0-SNAPSHOT/master unless i modify the heat env templates - as there is no release-1.0.0 for aai/test-config

      This does not affect the 1.0.0 version of AAI (a single VM)

        -gerrit_branch: release-1.0.0
        +gerrit_branch: master

      details

      root@vm1-aai-inst2:/opt#cat /var/log/cloud-init-output.log
      cgroup-lite start/running
      Processing triggers for libc-bin (2.19-0ubuntu6.13) ...
      Processing triggers for ureadahead (0.100.0-16) ...
        % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                       Dload  Upload   Total   Spent    Left  Speed
      100   617    0   617    0     0   9547      0 --:--:-- --:--:-- --:--:--  9640
      100 7857k  100 7857k    0     0  43.4M      0 --:--:-- --:--:-- --:--:-- 43.4M
      docker stop/waiting
      docker start/running, process 14242
      Cloning into 'test-config'...
      warning: Could not find remote branch release-1.0.0 to clone.
      fatal: Remote branch release-1.0.0 not found in upstream origin
      Unexpected end of command stream
      ./aai2_vm_init.sh: line 5: cd: /opt/test-config: No such file or directory
      fatal: Not a git repository (or any of the parent directories): .git
      ./aai2_vm_init.sh: line 13: ./deploy_vm2.sh: No such file or directory
      2017-08-05 12:30:27,826 - util.py[WARNING]: Failed running /var/lib/cloud/instance/scripts/part-001 [127]
      2017-08-05 12:30:27,827 - cc_scripts_user.py[WARNING]: Failed to run module scripts-user (scripts in /var/lib/cloud/instance/scripts)
      2017-08-05 12:30:27,827 - util.py[WARNING]: Running scripts-user (<module 'cloudinit.config.cc_scripts_user' from '/usr/lib/python2.7/dist-packages/cloudinit/config/cc_scripts_user.pyc'>) failed
      Cloud-init v. 0.7.5 finished at Sat, 05 Aug 2017 12:30:27 +0000. Datasource DataSourceConfigDriveNet [net,ver=2][source=/dev/xvdd].  Up 143.70 seconds
      root@vm1-aai-inst2:/opt#
      
      aai2_vm_init.sh should be using master

      With a master change i see the containers fine

       

      root@vm1-aai-inst1:~# docker ps
      CONTAINER ID        IMAGE                                           COMMAND                  CREATED             STATUS              PORTS                                                NAMES
      990cafe29c8a        nexus3.onap.org:10001/openecomp/aai-resources   "/bin/sh -c ./dock..."   6 minutes ago       Up 6 minutes        0.0.0.0:8447->8447/tcp                               testconfig_aai-resources.api.simpledemo.openecomp.org_1
      903b776aefff        attos/dmaap                                     "/bin/sh -c ./star..."   7 minutes ago       Up 7 minutes        0.0.0.0:3904-3905->3904-3905/tcp                     dockerfiles_dmaap_1
      3464d7b32ad0        dockerfiles_kafka                               "start-kafka.sh"         7 minutes ago       Up 7 minutes        0.0.0.0:9092->9092/tcp                               dockerfiles_kafka_1
      cd7951896575        wurstmeister/zookeeper                          "/bin/sh -c '/usr/..."   7 minutes ago       Up 7 minutes        22/tcp, 2888/tcp, 3888/tcp, 0.0.0.0:2181->2181/tcp   dockerfiles_zookeeper_1
      
      root@vm1-aai-inst2:~# docker ps
      CONTAINER ID        IMAGE                    COMMAND                   CREATED             STATUS              PORTS                                                                                                                                                                                               NAMES
      ccd0f430b336        elasticsearch:2.4.1      "/docker-entrypoin..."    13 minutes ago      Up 13 minutes       0.0.0.0:9200->9200/tcp, 9300/tcp                                                                                                                                                                    elasticsearch
      f4b7018f0805        aaionap/gremlin-server   "/bin/sh -c \"/dock..."   14 minutes ago      Up 14 minutes       0.0.0.0:8182->8182/tcp                                                                                                                                                                              testconfig_aai.gremlinserver.simpledemo.openecomp.org_1
      0f415ac5d17a        harisekhon/hbase         "/bin/sh -c \"/entr..."   15 minutes ago      Up 15 minutes       0.0.0.0:2181->2181/tcp, 0.0.0.0:8080->8080/tcp, 0.0.0.0:8085->8085/tcp, 0.0.0.0:9090->9090/tcp, 0.0.0.0:16000->16000/tcp, 0.0.0.0:16010->16010/tcp, 9095/tcp, 0.0.0.0:16201->16201/tcp, 16301/tcp   testconfig_aai.hbase.simpledemo.openecomp.org_1

       

       

      Checked history - was fixed on June 30 by Marco.  My branch is from Aug 3rd though - so for some reason I was still seeing the openecomp folder instead of the renamed onap

      docker moves from 1.0 to 1.1, dcae moves to 1.1, gerritt moves to master from 1.0

      a pull fixed it

      obrienbiometrics:demo michaelobrien$ git pull

      Warning: Permanently added '[gerrit.openecomp.org]:29418,[198.145.29.92]:29418' (RSA) to the list of known hosts.

      First, rewinding head to replay your work on top of it...

      Fast-forwarded master to a94e309943d51a2d56e9aa19a582ac9eb40966e6.

       

      This tree was removed after 20170804 - it is now onap not openecomp

      https://gerrit.onap.org/r/gitweb?p=demo.git;a=tree;f=heat/OpenECOMP;hb=HEAD

      use

      https://gerrit.onap.org/r/gitweb?p=demo.git;a=tree;f=heat/ONAP;hb=master

       

       

            michaelobrien michaelobrien
            michaelobrien michaelobrien
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: