1
0
-1

Hi,


I have gone through the documentation for "ONAP Installation in Vanilla OpenStack". But there are lot of contents missing.

For Example:

  1. Do we need to populate both the below url or only ubuntu 16 is sufficient.
                           ubuntu_1404_image: PUT THE UBUNTU 14.04 IMAGE NAME HERE
  2. how can we retrieve below details.

    horizon_url: PUT THE HORIZON URL HERE

    keystone_url: PUT THE KEYSTONE URL HERE

    aai1_float_ip: PUT A&AI INSTANCE 1 FLOATING IP HERE
    aai2_float_ip: PUT A&AI INSTANCE 2 FLOATING IP HERE
    appc_float_ip: PUT APP-C FLOATING IP HERE
    dcae_float_ip: PUT DCAE FLOATING IP HERE

    dns_float_ip: PUT DNS FLOATING IP HERE
    mso_float_ip: PUT MSO FLOATING IP HERE
    mr_float_ip: PUT MESSAGE ROUTER FLOATING IP HERE
    policy_float_ip: PUT POLICY FLOATING IP HERE
    portal_float_ip: PUT PORTAL FLOATING IP HERE
    robot_float_ip: PUT ROBOT FLOATING IP HERE
    sdc_float_ip: PUT SDC FLOATING IP HERE
    sdnc_float_ip: PUT SDN-C FLOATING IP HERE
    vid_float_ip: PUT VID FLOATING IP HERE

  3. after these entries are updated in the env file what next needs to be done.

So i am looking for steps who have installed ONAP on a server where packstack was installed.


Regards,

Gaurav

    CommentAdd your comment...

    4 answers

    1.  
      1
      0
      -1

      Gaurav its simple,

      1. ONAP VMs uses both ubuntu 16 and ubuntu 14 . So you need to provide the image name or id for both.
      2. Give your openstack environment horizon url and keystone url. For the remaining ONAP VMs give the ip which you want to vms to be assigned. It will be your external network ips which has internet access.
      3. create the stack on openstack environment using env and yaml files.
      1. Gaurav Mittal

        Thanks a lot Sir, for the response.

        1. I will download the ubuntu 14.04 cloud image and upload in openstack.
        2. To login to dashboard i use below URL. 
          http://10.211.2.191/dashboard/auth/login/?next=/dashboard/
          So will be the Horizon_URL and KEYSTONE_URL.
        3. I have created 5 floatingIP and that I have given to below variables.

          dcae_coll_float_ip: 172.24.4.2
          dcae_db_float_ip: 172.24.4.4
          dcae_hdp1_float_ip: 172.24.4.10
          dcae_hdp2_float_ip: 172.24.4.12
          dcae_hdp3_float_ip: 172.24.4.15

        4. what I need to give for the below parameters and how will i find the values for them.

          aai1_float_ip: PUT A&AI INSTANCE 1 FLOATING IP HERE
          aai2_float_ip: PUT A&AI INSTANCE 2 FLOATING IP HERE
          appc_float_ip: PUT APP-C FLOATING IP HERE
          dcae_float_ip: PUT DCAE FLOATING IP HERE

          dns_float_ip: PUT DNS FLOATING IP HERE
          mso_float_ip: PUT MSO FLOATING IP HERE
          mr_float_ip: PUT MESSAGE ROUTER FLOATING IP HERE
          policy_float_ip: PUT POLICY FLOATING IP HERE
          portal_float_ip: PUT PORTAL FLOATING IP HERE
          robot_float_ip: PUT ROBOT FLOATING IP HERE
          sdc_float_ip: PUT SDC FLOATING IP HERE
          sdnc_float_ip: PUT SDN-C FLOATING IP HERE
          vid_float_ip: PUT VID FLOATING IP HERE

        Thanks again for taking out time and helping me.


        Regards,

        Gaurav

      2. Chandrakiran Barad

        In the same range 172.24.4.XX provide ips to the onap vms. Those ips will be generated assigned when stack is created in the openstack environment . Note that fixed floating IP assignment via Heat template is not supported in OpenStack Kilo and older releases as mentioned here : ONAP Installation in Vanilla OpenStack

      3. Gaurav Mittal

        Thanks Sir.


        As per your suggestion, I have assigned below IP in the env file. They currently are not created in the open stack, but i think they will be created once the ONAP is up.

        Let me know if this is OK. My public network is 172.124.4.0/24

        aai1_float_ip: 172.24.4.100
        aai2_float_ip: 172.24.4.101
        appc_float_ip: 172.24.4.102
        dcae_float_ip: 172.24.4.103
        dcae_coll_float_ip: 172.24.4.2
        dcae_db_float_ip: 172.24.4.4
        dcae_hdp1_float_ip: 172.24.4.10
        dcae_hdp2_float_ip: 172.24.4.12
        dcae_hdp3_float_ip: 172.24.4.15
        dns_float_ip: 172.24.4.112
        mso_float_ip: 172.24.4.104
        mr_float_ip: 172.24.4.105
        policy_float_ip: 172.24.4.106
        portal_float_ip: 172.24.4.107
        robot_float_ip: 172.24.4.108
        sdc_float_ip: 172.24.4.109
        sdnc_float_ip: 172.24.4.110
        vid_float_ip: 172.24.4.111

        Also, can you kindly help me what URL should i put for Horizon_URL and KEYSTONE_URL. To login to dashboard i use below URL. 

        http://10.211.2.191/dashboard/auth/login/?next=/dashboard/


        Regards,

        Gaurav

      4. Gaurav Mittal

        Please attached the ENV file. I have used the same and the YAML file as attached and used the below command. I am getting the error as:

        # source keystonerc_admin

        # openstack stack create -t heat-OpenECOMP-onap_openstack_float.yaml -e heat-OpenECOMP-onap_openstack_float.env ONAP
        ERROR: The resource could not be found.
        [root@openstack onap]#

        heat-OpenECOMP-onap_openstack_float.yaml

        heat-OpenECOMP-onap_openstack_float.env

        keystonerc_admin

        Please Help

      5. Chandrakiran Barad

        horizon_url: http://ipaddress/horizon
        keystone_url: you can get keystone link from dashboard.

        Change both URL and give a try.


      6. Gaurav Mittal

        Sir,

        I updated the below URL in the env file as :
        horizon_url: http://10.211.2.191/horizon
        keystone_url: http://10.211.2.191:5000/v3

        Still it gives the same error.

        [root@openstack onap]# openstack stack create -t heat-OpenECOMP-onap_openstack_float.yaml -e heat-OpenECOMP-onap_openstack_float.env ONAP
        ERROR: The resource could not be found.
        [root@openstack onap]#

        When I run with the debug command, I see:
        RESP: [404] Date: Wed, 21 Jun 2017 11:33:01 GMT Server: Apache/2.4.6 (CentOS) Vary: X-Auth-Token x-openstack-request-id: req-088f6a17-8bd1-4537-8614-95f856f3d3c3 Content-Length: 93 Connection: close Content-Type: application/json
        RESP BODY: {"error": {"message": "The resource could not be found.", "code": 404, "title": "Not Found"}}

        POST call to orchestration for http://10.211.2.191:5000/v3/stacks used request id req-088f6a17-8bd1-4537-8614-95f856f3d3c3
        ERROR: The resource could not be found.
        Traceback (most recent call last):
        File "/usr/lib/python2.7/site-packages/cliff/app.py", line 400, in run_subcommand
        result = cmd.run(parsed_args)
        File "/usr/lib/python2.7/site-packages/osc_lib/command/command.py", line 41, in run
        return super(Command, self).run(parsed_args)
        File "/usr/lib/python2.7/site-packages/cliff/display.py", line 112, in run
        column_names, data = self.take_action(parsed_args)
        File "/usr/lib/python2.7/site-packages/heatclient/osc/v1/stack.py", line 184, in take_action
        stack = client.stacks.create(**fields)['stack']
        File "/usr/lib/python2.7/site-packages/heatclient/v1/stacks.py", line 172, in create
        data=kwargs, headers=headers)
        File "/usr/lib/python2.7/site-packages/keystoneauth1/adapter.py", line 223, in post
        return self.request(url, 'POST', **kwargs)
        File "/usr/lib/python2.7/site-packages/heatclient/common/http.py", line 318, in request
        raise exc.from_response(resp)
        HTTPNotFound: ERROR: The resource could not be found.
        clean_up CreateStack: ERROR: The resource could not be found.
        Traceback (most recent call last):
        File "/usr/lib/python2.7/site-packages/osc_lib/shell.py", line 135, in run
        ret_val = super(OpenStackShell, self).run(argv)
        File "/usr/lib/python2.7/site-packages/cliff/app.py", line 279, in run
        result = self.run_subcommand(remainder)
        File "/usr/lib/python2.7/site-packages/osc_lib/shell.py", line 180, in run_subcommand
        ret_value = super(OpenStackShell, self).run_subcommand(argv)
        File "/usr/lib/python2.7/site-packages/cliff/app.py", line 400, in run_subcommand
        result = cmd.run(parsed_args)
        File "/usr/lib/python2.7/site-packages/osc_lib/command/command.py", line 41, in run
        return super(Command, self).run(parsed_args)
        File "/usr/lib/python2.7/site-packages/cliff/display.py", line 112, in run
        column_names, data = self.take_action(parsed_args)
        File "/usr/lib/python2.7/site-packages/heatclient/osc/v1/stack.py", line 184, in take_action
        stack = client.stacks.create(**fields)['stack']
        File "/usr/lib/python2.7/site-packages/heatclient/v1/stacks.py", line 172, in create
        data=kwargs, headers=headers)
        File "/usr/lib/python2.7/site-packages/keystoneauth1/adapter.py", line 223, in post
        return self.request(url, 'POST', **kwargs)
        File "/usr/lib/python2.7/site-packages/heatclient/common/http.py", line 318, in request
        raise exc.from_response(resp)
        HTTPNotFound: ERROR: The resource could not be found.

        END return value: 1

        Regards,
        Gaurav

      7. kranthi guttikonda

        Gaurav Mittal You are using keystone v3

        keystone_url: http://10.211.2.191:5000/v3

        Instead try v2.0; which openstack version are you using? try to get keystone endpoint from "keystone endpoint-list" or "openstack endpoint list" or openrc file which you source (openrc/admin-openrc). If you use v3 then you need to add specific variables in openrc file like export OS_IDENTITY_API_VERSION='3'

      8. Gaurav Mittal

        Thanks a lot for the answer.


        Well i am using OCATA verion. I have update the keystone URL to version 2.0 and when i put that on browser i get the response also.

        http://10.211.2.191:5000/v2.0

        {"version": {"status": "deprecated", "updated": "2016-08-04T00:00:00Z", "media-types": [{"base": "application/json", "type": "application/vnd.openstack.identity-v2.0+json"}], "id": "v2.0", "links": [{"href": "http://10.211.2.191:5000/v2.0/", "rel": "self"}, {"href": "https://docs.openstack.org/", "type": "text/html", "rel": "describedby"}]}}

        but when I put the below url in browser for horizon http://10.211.2.191/horizon I get below error.

        The requested URL /horizon was not found on this server.

        not sure if the horizon url is correct. 

        Below is my rc file.

        cat keystonerc_admin
        unset OS_SERVICE_TOKEN
        export OS_USERNAME=admin
        export OS_PASSWORD=admin
        export OS_AUTH_URL=http://10.211.2.191:5000/v3
        # export PS1='[\u@\h \W(keystone_admin)]\$ '

        export OS_PROJECT_NAME=admin
        export OS_USER_DOMAIN_NAME=Default
        export OS_PROJECT_DOMAIN_NAME=Default
        export OS_IDENTITY_API_VERSION=3


      9. Gaurav Mittal

        So I have put the horizon URL as 

        http://10.211.2.191/dashboard

        Then i get the dashboard page.


        But when I execute the below command. I still get the same error.

        [root@openstack onap]# openstack stack create -t heat-OpenECOMP-onap_openstack_float.yaml -e heat-OpenECOMP-onap_openstack_float.env ONAP
        ERROR: The resource could not be found.
        [root@openstack onap]#

      10. kranthi guttikonda

        Gaurav Mittal please try v2.0 like below by creating keystonerc_admin_v2 file. Please login out and login to bash console then  source the new file.

        cat keystonerc_admin_v2
        unset OS_SERVICE_TOKEN
        export OS_USERNAME=admin
        export OS_PASSWORD=admin
        export OS_AUTH_URL=http://10.211.2.191:5000/v2.0/
        # export PS1='[\u@\h \W(keystone_admin)]\$ '

        export OS_PROJECT_NAME=admin
        export OS_USER_DOMAIN_NAME=Default
        export OS_PROJECT_DOMAIN_NAME=Default

        Before executing heat stack try "openstack stack list" and see if the command returns success.

        If you see failure again do

        openstack --debug stack  list

        openstack --debug stack create -t heat-OpenECOMP-onap_openstack_float.yaml -e heat-OpenECOMP-onap_openstack_float.env ONAP

      CommentAdd your comment...
    2.  
      2
      1
      0

      Hi Everyone,


      I was able to find the problem and the issue was the Heat component was not installed. This is came to know when I was tring to access orchestration tab from dashboard it said resource not found. Then I went ahead and update the parameter CONFIG_HEAT_INSTALL=y and re-executed the packstack command.

      after the successful completion of the command. I was able to execute the below command.

      [root@openstack onap]# openstack stack create -t heat-OpenECOMP-onap_openstack.yaml -e heat-OpenECOMP-onap_openstack.env ONAP
      +---------------------+------------------------------------------+
      | Field | Value |
      +---------------------+------------------------------------------+
      | id | f3a05d76-2e57-44d8-9ec3-f41566ee5ad1 |
      | stack_name | ONAP |
      | description | Heat template to install ONAP components |
      | creation_time | 2017-06-26T05:38:44Z |
      | updated_time | None |
      | stack_status | CREATE_IN_PROGRESS |
      | stack_status_reason | Stack CREATE started |
      +---------------------+------------------------------------------+
      [root@openstack onap]#

        CommentAdd your comment...
      1.  
        1
        0
        -1

        Gaurav Mittal Is this with devstack? Does the setup support cinder storage? If not you will have to modify the heat templates to not to use cinder but just use root disk for components. 

        For SDC something like this

        Comments the volume resources 

        #sdc_volume_data:
        # type: OS::Cinder::Volume
        # properties:
        # name: vol1-sdc-data
        # size: 100

        #sdc_volume_attachment:
        # type: OS::Cinder::VolumeAttachment
        # properties:
        # volume_id: { get_resource: sdc_volume_data }
        # instance_uuid: { get_resource: sdc_vm }
        # mountpoint: /dev/vdb


        Modify heat shell scripts (user-data) and just directly create /data directory. You may need to apply the same logic for other components as well.


        #sfdisk /dev/vdb < /opt/asdc_ext_volume_partitions.txt
        #mkfs -t ext4 /dev/vdb1
        mkdir -p /data
        #mount /dev/vdb1 /data
        #echo "/dev/vdb1 /data ext4 errors=remount-ro,noatime,barrier=0 0 1" >> /etc/fstab

          CommentAdd your comment...
        1.  
          1
          0
          -1

          Now the next level of the problem i am seeing is the creation is failing. and below is the error i See in the UI is 

          StatusCheck_Failed: Resource CHECK failed: ['NotFound: resources.sdc_volume_data: Volume None could not be found. (HTTP 404) (Request-ID: req-e3636edd-9a75-4a55-aaba-6a96078f8c33)', "Error: resources.appc_vm: 'status': expected 'ACTIVE', got 'ERROR'", 'NotFound: resources.aai2_vm: Instance None could not be found. (HTTP 404) (Request-ID: req-a66462a3-9814-4602-a42b-6373a4522752)', 'NotFound: resources.vid_vm: Instance None could not be found. (HTTP 404) (Request-ID: req-281a8bf0-8973-4177-8bb8-ff0d80ae1353)', "Error: resources.dcae_c_vm: 'status': expected 'ACTIVE', got 'ERROR'", "Error: resources.sdnc_vm: 'status': expected 'ACTIVE', got 'ERROR'", 'NotFound: resources.portal_vm: Instance None could not be found. (HTTP 404) (Request-ID: req-3f7b4336-1695-4060-89fe-5a3c55a1ef66)', 'NotFound: resources.policy_vm: Instance None could not be found. (HTTP 404) (Request-ID: req-1b70831a-2978-4722-a07c-0b0f367f896e)']. 'CHECK' not fully supported (see resources)


          Kindly suggest.

          1. Marco Platania

            Not sure this is still an open problem, but the issue is that in the meantime AAI changed the configuration, now having 2 VMs instead of 1. The latest templates in Gerrit fix the issue.

            Marco

          CommentAdd your comment...