SONA set up environment

672 views
Skip to first unread message

Silvia Fichera

unread,
Jun 24, 2016, 6:41:15 AM6/24/16
to ONOS Discuss
Hi all,
I wanto to set up a SONA environment and I'm trying to follow your guide.
I think that the "easy" way to do it is using VMs.
You detailed the amount of RAM and CPU needed but there is no information about how many interfaces are needed (toward internet and between nodes).
I thought to use Ubuntu server as OS unless you have any suggestion.
Is it better firstly prepare the ONOS vm?

Thanks for your help

--
Silvia Fichera

Lee, Sangho

unread,
Jun 26, 2016, 7:54:00 PM6/26/16
to fiche...@gmail.com, onos-d...@onosproject.org, Sangho Shin, 박민철, Hyunsun Moon, Sangho Lee
Hi Silvia,

Yes, you are right! 

You can use VMs for following this guide - 

If you use VMs, you can have two options for network interfaces.
option.1) use 1 network interface : bridged mode  (for internet and nodes)
option.2) use 2 network interface : 1th NAT mode for internet, 2nd Host Only for nodes
- I use option.2. ;)

We recommend Ubuntu server as OS to develop and test SONA. 

If you are first time about ONOS, we recommend that you prepare the ONOS vm and become familiar with ONOS firstly. :)

Thank you for your interest!

- Sangho Lee - 

--
You received this message because you are subscribed to the Google Groups "ONOS Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to onos-discuss...@onosproject.org.
To post to this group, send email to onos-d...@onosproject.org.
Visit this group at https://groups.google.com/a/onosproject.org/group/onos-discuss/.
To view this discussion on the web visit https://groups.google.com/a/onosproject.org/d/msgid/onos-discuss/CAEFdjR0wDo0NLpvH-mySeUzUELW2p-awFs-vXuSfEnwXhXPTrg%40mail.gmail.com.

Silvia Fichera

unread,
Jun 27, 2016, 6:44:22 AM6/27/16
to Lee, Sangho, ONOS Discuss, Sangho Shin, 박민철, Hyunsun Moon
Hi Sangho,
thank you for your answer, I'm following your suggestion and using 2 network interfaces.
The network interface related to the NAT mode has the same ip address for all the VMs assigned by the DHCP. Should I assign it manually in order to have different IP for each VM?

Thanks,
best regards.

Silvia
--
Silvia Fichera

Lee, Sangho

unread,
Jun 27, 2016, 7:53:17 AM6/27/16
to Silvia Fichera, ONOS Discuss, Sangho Shin, 박민철, Hyunsun Moon, Sangho Lee
Hi Silvia,

Please, see below...

On Mon, Jun 27, 2016 at 7:44 PM, Silvia Fichera <fiche...@gmail.com> wrote:
Hi Sangho,
thank you for your answer, I'm following your suggestion and using 2 network interfaces.
The network interface related to the NAT mode has the same ip address for all the VMs assigned by the DHCP. Should I assign it manually in order to have different IP for each VM?

If you use 2 network interfaces, 
you don't need to assign different IP for NAT mode interface (1st).
The NAT mode interface is just for internet connection.

You need to have different IP for "Host Only mode interface (2nd)" of each VM.
We recommend to assign the IP manually in order to have different IP for each VM.

Hope this will help you.
Thank you,

- Sangho Lee - 

Alexandr Limonov

unread,
Jun 27, 2016, 12:10:48 PM6/27/16
to Lee, Sangho, Silvia Fichera, ONOS Discuss, Sangho Shin, 박민철, Hyunsun Moon
Hi everybody !

May I ask a question concerning SONA deployment as well ?
From my point I follow the manual , but probably I missing or misunderstand something.
In my deployment I have to nodes : openstack VM (Controller+compute 192.168.1.111) and ONOS VM (192.168.1.125)

step 1 : installing OpenVswitch and setting manager tcp:6640 
step 2: download and install networking-onos package 
    here i populated conf_onos.ini with 
     - user :onos
     - password : rocks 

step 3 : deploying devstack. I took template from wiki as an example, but set n-cpu key to enable (because i have single node deployment). Also I made all pasword as "admin" 

step4: downloaded onos source , bult(mvn clean install ), and started (ok clean)on build machine, and get onos prompt 

step:5 installed OVSD and Openstack applications. Finally I do have  such list of installed applications :
           onos> apps -s -a 
*  12 org.onosproject.dhcp                 1.6.0.SNAPSHOT DHCP App
*  13 org.onosproject.openstackswitching   1.6.0.SNAPSHOT SONA Openstack Networking Application
*  18 org.onosproject.lldpprovider         1.6.0.SNAPSHOT LLDP Link Provider
*  19 org.onosproject.mobility             1.6.0.SNAPSHOT Host Mobility App
*  22 org.onosproject.openflow-base        1.6.0.SNAPSHOT OpenFlow Provider
*  23 org.onosproject.hostprovider         1.6.0.SNAPSHOT Host Location Provider
*  24 org.onosproject.openflow             1.6.0.SNAPSHOT OpenFlow Meta App
*  28 org.onosproject.ovsdb-base           1.6.0.SNAPSHOT OVSDB Provider
*  29 org.onosproject.ovsdbhostprovider    1.6.0.SNAPSHOT ONOS information providers and control/management protocol adapter
*  30 org.onosproject.ovsdb                1.6.0.SNAPSHOT OVSDB Southbound Meta App
*  47 org.onosproject.openstacknode        1.6.0.SNAPSHOT OpenStack Node Bootstrap App
*  49 org.onosproject.openstackrouting     1.6.0.SNAPSHOT SONA Openstack Networking Application
*  53 org.onosproject.drivers.ovsdb        1.6.0.SNAPSHOT OVSDB Device Drivers
*  61 org.onosproject.drivers              1.6.0.SNAPSHOT Default Device Drivers
*  74 org.onosproject.fwd                  1.6.0.SNAPSHOT Reactive Forwarding App
*  77 org.onosproject.openstacknetworking  1.6.0.SNAPSHOT OpenStack Networking App
*  79 org.onosproject.openstackinterface   1.6.0.SNAPSHOT OpenStack Interface App
*  85 org.onosproject.proxyarp             1.6.0.SNAPSHOT Proxy ARP/NDP App

step6: sending netwok-config to ONOS api (192.168.1.125/network/configuration) using rest client

        {
  "apps": {
    "org.onosproject.openstacknode": {
      "openstacknode": {
        "nodes": [
          {
            "hostname": "compute-01",
            "ovsdbIp": "192.168.1.111",
            "ovsdbPort": "6640",
            "bridgeId": "of:0000000000000001",
            "openstackNodeType": "COMPUTENODE"
          }
        ]
      }
    },
    
    "org.onosproject.openstackinterface": {
      "openstackinterface": {
        "neutron_server": "http://192.168.1.125:9696/v2.0/",
        "keystone_server": "http://192.168.1.125:5000/v2.0/",
        "user_name": "admin",
        "password": "admin"
      }
    }
  },
  "ports": {},
  "hosts": {},
  "userDefined": {},
  "devices": {
    "of:0000000000000001": {
      "basic": {
        "driver": "sona"
      }
    }
  },
  "links": {}
}
    
7. After all I try to create.
But neutron raise an error  

2016-06-27 12:00:16.885 ERROR neutron.plugins.ml2.managers [req-e4474ba8-1ce9-4d0b-bbed-57f7087d25f8 admin 376db8bf80ca44d4a9208b5ab4952724] Mechanism driver 'onos_ml2' failed in create_network_postcommit

Did i do something wrong ? ))





--
The best from the best regards
Alexandr Limonov

Lee, Sangho

unread,
Jun 27, 2016, 8:22:13 PM6/27/16
to Alexandr Limonov, Silvia Fichera, ONOS Discuss, Sangho Shin, 박민철, Hyunsun Moon
Hi Alexandr,

Which ONOS version do you use now?

The format of configuration was changed. The tutorial document is not updated yet. We are sorry about that.

This is a sample network-cfg.json file for my ONOS 1.7.0-SNAPSHOT version.
If you use goldeneye or hummingbird (snapshot), please follow the below configuration format.

You can also see an sample configration files form ONOS source code.
 - ONOS_ROOT/apps/openstacknetworking/network-cfg.json 

I use 2 compute nodes and 1 gateway node.

 - compute node-1 : 192.168.10.11
 - compute node-2 : 192.168.10.12
 - gateway node-1 : 192.168.10.21

———

{
    "userDefined" : {
      "openstacknetworking" : {
        "config" : {
          "physicalRouterMac" : "92:b0:fc:e7:2a:d6",
          "gatewayBridgeId" : "of:0000000000000021",
          "gatewayExternalInterfaceName" : "veth0",
          "gatewayExternalInterfaceMac" : "00:00:00:00:00:21",
          "nodes" : [
          {
            "dataPlaneIp" : "192.168.10.11",
            "bridgeId" : "of:0000000000000011"
          },
          {
            "dataPlaneIp" : "192.168.10.12",
            "bridgeId" : "of:0000000000000012"
          },
          {
            "dataPlaneIp" : "192.168.10.21",
            "bridgeId" : "of:0000000000000021"
          }
        ]
      }
    }
      },
    "apps" : {
        "org.onosproject.openstackinterface" : {
            "openstackinterface" : {
                 "neutronServer" : "http://192.168.10.10:9696/v2.0/",
                 "keystoneServer" : "http://192.168.10.10:5000/v2.0/",
                 "userName" : "admin",
                 "password" : "nova"
            }
        }
    },
    "devices" : {
        "of:0000000000000011" : {
            "basic" : {
                "driver" : "sona"
            }
        },
        "of:0000000000000012" : {
            "basic" : {
                "driver" : "sona"
            }
        },
        "of:0000000000000021" : {
            "basic" : {
                "driver" : "ovs"
            }
        }
    }
}

——

If you have other questions, please let us know!

Hope this will help you,
Thank you,

- Sangho Lee -

Lee, Sangho

unread,
Jun 27, 2016, 8:36:20 PM6/27/16
to Alexandr Limonov, Silvia Fichera, ONOS Discuss, Sangho Shin, 박민철, Hyunsun Moon
Now, you use only a compute node.. maybe, you can try the below configuration information...
After ONOS falcon version, we provide the external traffic like internet connection from virtual machines by using a gateway node.

And, you need to check the neutronServer/keystoneServer's URL again. :)

-----

{
    "userDefined" : {
      "openstacknetworking" : {
        "config" : {
          "nodes" : [
          {
            "dataPlaneIp" : "192.168.1.111",      # Openstack compute node IP
            "bridgeId" : "of:0000000000000001"
          }
        ]
      }
    }
      },
    "apps" : {
        "org.onosproject.openstackinterface" : {
            "openstackinterface" : {
                 "neutronServer" : "http://192.168.1.111:9696/v2.0/", # Openstack Control IP
                 "keystoneServer" : "http://192.168.1.111:5000/v2.0/",  # Openstack Control IP
                 "userName" : "admin",
                 "password" : "nova"
            }
        }
    },
    "devices" : {
        "of:0000000000000001" : {
            "basic" : {
                "driver" : "sona"
            }
        }
    }
}

-----

Hope this will help you,
Thank you,

- Sangho Lee - 

Lee, Sangho

unread,
Jun 28, 2016, 7:02:25 AM6/28/16
to Alexandr Limonov, Silvia Fichera, ONOS Discuss, Sangho Shin, 박민철, Hyunsun Moon, Sangho Lee
"
I checked one more thing : when I got  ERROR neutron.plugins.ml2.managers [req-e4474ba8-1ce9-4d0b-bbed-57f7087d25f8 admin 376db8bf80ca44d4a9208b5ab4952724] Mechanism driver 'onos_ml2' failed in create_network_postcommit there was no requests from OS controller Node to ONOS. It looks like a neutron problem. I reinstalled onos-networking plugin, but it did not help.
"

You mean that neutron doesn't send any message to ONOS instance?
It's important point. Would you check it again to install openstack with ONOS plugin like below guide - https://wiki.onosproject.org/display/ONOS/How+to+set+up+environment

I hope you will try use Multiple-VMs for Openstack Controller Node and Compute Nodes.

Please, check the local.conf file about ONOS plugin 

"
Q_ML2_PLUGIN_MECHANISM_DRIVERS=onos_ml2
Q_PLUGIN_EXTRA_CONF_PATH=~/networking-onos/etc
Q_PLUGIN_EXTRA_CONF_FILES=(conf_onos.ini)
ML2_L3_PLUGIN=networking_onos.plugins.l3.driver.ONOSL3Plugin
"

Please, check configuring the onos ml2 plugin by editing the conf_onos.ini file in networking-onos/etc folder, which is just created

#Configuration options for ONOS driver
 
[onos]
# (StrOpt) ONOS ReST interface URL. This is a mandatory field.
 
# (StrOpt) Username for authentication. This is a mandatory field.
username = onos
 
# (StrOpt) Password for authentication. This is a mandatory field.
password = rocks

-----

When we create a VM on openstack,
we can check the ONOS plugin call at openstack netron log (q-svc.log)

----

vagrant@control:/opt/stack/logs$ cat q-svc.log | grep ONOS
2016-06-21 04:53:46.074 DEBUG neutron.manager [-] Loading service plugins: ['networking_onos.plugins.l3.driver.ONOSL3Plugin'] from (pid=9392) _load_service_plugins /opt/stack/neutron/neutron/manager.py:191
2016-06-21 04:53:46.074 INFO neutron.manager [-] Loading Plugin: networking_onos.plugins.l3.driver.ONOSL3Plugin
2016-06-21 04:53:46.115 DEBUG neutron.manager [-] Successfully loaded L3_ROUTER_NAT plugin. Description: L3 Router Service Plug-in for basic L3 forwarding using ONOS from (pid=9392) _load_service_plugins /opt/stack/neutron/neutron/manager.py:219
.....


2016-06-28 10:53:40.601 DEBUG networking_onos.plugins.ml2.driver [req-bf66308a-5063-4b66-b9fd-0814b6c678eb admin 17763065bd46424e8605970e0178ff14] networking_onos.plugins.ml2.driver.ONOSMechanismDriver method create_network_postcommit called with arguments (<neutron.plugins.ml2.driver_context.NetworkContext object at 0x7efe4951c350>,) {} from (pid=9406) wrapper /usr/local/lib/python2.7/dist-packages/oslo_log/helpers.py:45
2016-06-28 10:53:40.601 DEBUG networking_onos.common.utils [req-bf66308a-5063-4b66-b9fd-0814b6c678eb admin 17763065bd46424e8605970e0178ff14] Sending MSG_TYPE (post) URL (http://192.168.10.2:8181/onos/openstackswitching/networks) OBJECT ({'network': {'status': 'ACTIVE', 'subnets': [], 'name': u'private', 'provider:physical_network': None, 'admin_state_up': True, 'tenant_id': u'17763065bd46424
e8605970e0178ff14', 'mtu': 1450, 'router:external': False, 'shared': False, 'vlan_transparent': None, 'port_security_enabled': True, 'provider:network_type': u'vxlan', 'id': '097ec7db-b46b-47b4-8cf
4-9b6a638c97fd', 'provider:segmentation_id': 1043}}) BODY ({
  "network": {
    "status": "ACTIVE",
    "subnets": [],
    "name": "private",
    "provider:physical_network": null,
    "admin_state_up": true,
    "tenant_id": "17763065bd46424e8605970e0178ff14",
    "mtu": 1450,
    "router:external": false,
    "shared": false,
    "vlan_transparent": null,
    "port_security_enabled": true,
    "provider:network_type": "vxlan",
    "id": "097ec7db-b46b-47b4-8cf4-9b6a638c97fd",
    "provider:segmentation_id": 1043
  }
}) from (pid=9406) send_msg /usr/local/lib/python2.7/dist-packages/networking_onos/common/utils.py:33

-----

Neutron problem is very difficult. :(

Hope this will help you
Thank you,

- Sangho Lee -

On Tue, Jun 28, 2016 at 6:46 PM, Alexandr Limonov <alexander.lim...@gmail.com> wrote:
Hello again ;)
I made two RESTs (because if i try to put all this configuration into one request server return me an  bad request error (code 400)): 

1){
    "userDefined" : {
      "openstacknetworking" : {
        "config" : {
          "nodes" : [
          {
            "dataPlaneIp" : "192.168.1.111",
            "bridgeId" : "of:0000000000000001"
          }
        ]
      }
    }
      }
 } 

2)  {
    "apps" : {
        
        "org.onosproject.openstacknode" : {
            "openstacknode" : {
                "nodes" : [
                            {
                                    "hostname" : "host1",
                                    "ovsdbIp" : "192.168.1.111",
                                    "ovsdbPort" : "6640",
                                    "bridgeId" : "of:0000000000000001",
                                    "openstackNodeType" : "COMPUTENODE"
                            }
                ]
            }
        },
        "org.onosproject.openstackinterface" : {
            "openstackinterface" : {
                 "neutron_server" : "http://192.168.1.111:9696/v2.0/",
                 "keystone_server" : "http://192.168.1.111:5000/v2.0/",
                 "user_name" : "admin",
                 "password" : "admin"
             }
         }
    },
    "devices" : {
        "of:0000000000000001" : {
            "basic" : {
                "driver" : "sona"
            }
        
        }
    }
}


I still have the same output   ERROR neutron.plugins.ml2.managers [req-e4474ba8-1ce9-4d0b-bbed-57f7087d25f8 admin 376db8bf80ca44d4a9208b5ab4952724]

I checked one more thing : when I got  ERROR neutron.plugins.ml2.managers [req-e4474ba8-1ce9-4d0b-bbed-57f7087d25f8 admin 376db8bf80ca44d4a9208b5ab4952724] Mechanism driver 'onos_ml2' failed in create_network_postcommit there was no requests from OS controller Node to ONOS. It looks like a neutron problem. I reinstalled onos-networking plugin, but it did not help.







On Tue, Jun 28, 2016 at 11:46 AM, Alexandr Limonov <alexander.lim...@gmail.com> wrote:
Hi Sangho !
I use version 1.6
Should I use openstack.bootstrap app first in order to provision bridges for ovs   or  network-config you mentioned above will do this as well ?

Silvia Fichera

unread,
Jun 28, 2016, 11:49:48 AM6/28/16
to Lee, Sangho, Alexandr Limonov, ONOS Discuss, Sangho Shin, 박민철, Hyunsun Moon
Hi Sangho,
I'm facing an error while I run ./stack.sh in the controller node. The neutron service fails to start.
I've checked q-svc.log and, after few errors, I noticed:

KeyError: 'onos_ml2'
^[[01;31m2016-06-28 17:29:24.139 TRACE oslo.service.wsgi ^[[01;35m^[[00m
2016-06-28 17:29:24.141 ^[[01;31mERROR neutron.service [^[[00;36m-^[[01;31m] ^[[01;35m^[[01;31mUnrecoverable error: please check log for details.^[[00m
^[[01;31m2016-06-28 17:29:24.141 TRACE neutron.service ^[[01;35m^[[00mTraceback (most recent call last):
^[[01;31m2016-06-28 17:29:24.141 TRACE neutron.service ^[[01;35m^[[00m  File "/opt/stack/neutron/neutron/service.py", line 84, in serve_wsgi
^[[01;31m2016-06-28 17:29:24.141 TRACE neutron.service ^[[01;35m^[[00m    service.start()
^[[01;31m2016-06-28 17:29:24.141 TRACE neutron.service ^[[01;35m^[[00m  File "/opt/stack/neutron/neutron/service.py", line 60, in start
^[[01;31m2016-06-28 17:29:24.141 TRACE neutron.service ^[[01;35m^[[00m    self.wsgi_app = _run_wsgi(self.app_name)
^[[01;31m2016-06-28 17:29:24.141 TRACE neutron.service ^[[01;35m^[[00m  File "/opt/stack/neutron/neutron/service.py", line 285, in _run_wsgi
^[[01;31m2016-06-28 17:29:24.141 TRACE neutron.service ^[[01;35m^[[00m    app = config.load_paste_app(app_name)
^[[01;31m2016-06-28 17:29:24.141 TRACE neutron.service ^[[01;35m^[[00m  File "/opt/stack/neutron/neutron/common/config.py", line 284, in load_paste_app
^[[01;31m2016-06-28 17:29:24.141 TRACE neutron.service ^[[01;35m^[[00m    app = loader.load_app(app_name)



^[[01;31m2016-06-28 17:29:24.141 TRACE neutron ^[[01;35m^[[00m  File "/opt/stack/neutron/neutron/service.py", line 60, in start
^[[01;31m2016-06-28 17:29:24.141 TRACE neutron ^[[01;35m^[[00m    self.wsgi_app = _run_wsgi(self.app_name)
^[[01;31m2016-06-28 17:29:24.141 TRACE neutron ^[[01;35m^[[00m  File "/opt/stack/neutron/neutron/service.py", line 285, in _run_wsgi
^[[01;31m2016-06-28 17:29:24.141 TRACE neutron ^[[01;35m^[[00m    app = config.load_paste_app(app_name)
^[[01;31m2016-06-28 17:29:24.141 TRACE neutron ^[[01;35m^[[00m  File "/opt/stack/neutron/neutron/common/config.py", line 284, in load_paste_app
^[[01;31m2016-06-28 17:29:24.141 TRACE neutron ^[[01;35m^[[00m    app = loader.load_app(app_name)
^[[01;31m2016-06-28 17:29:24.141 TRACE neutron ^[[01;35m^[[00m  File "/usr/local/lib/python2.7/dist-packages/oslo_service/wsgi.py", line 356, in load_app
^[[01;31m2016-06-28 17:29:24.141 TRACE neutron ^[[01;35m^[[00m    raise PasteAppNotFound(name=name, path=self.config_path)
^[[01;31m2016-06-28 17:29:24.141 TRACE neutron ^[[01;35m^[[00mPasteAppNotFound: Could not load paste app 'neutron' from /etc/neutron/api-paste.ini


Should ONOS be already running when I install OpenStack?
I was exactly following your guide (thanks for the previous answers to the other guy, I will pay attention on that).
Thanks

Silvia
--
Silvia Fichera

Alexandr Limonov

unread,
Jun 28, 2016, 12:57:42 PM6/28/16
to Silvia Fichera, Lee, Sangho, ONOS Discuss, Sangho Shin, 박민철, Hyunsun Moon
Hi Silvia  ! 
I had such issue, when define wrong link to conf_onos.ini
so neutron service could not get started because of lack of configuration parameters(which are (seems like) get required because of networkig_onos plugin installation ).

Please try to check whether it's location corresponds to path you define in local.conf 

Silvia Fichera

unread,
Jun 29, 2016, 4:51:03 AM6/29/16
to Alexandr Limonov, Lee, Sangho, ONOS Discuss, Sangho Shin, 박민철, Hyunsun Moon
Hi Alexandr,
thank you for your answer.
I've checked the path and it is correct. I also tried to move the folder to another path, and it still does not work.

Any other hint?

Thanks
Silvia
--
Silvia Fichera

Lee, Sangho

unread,
Jun 29, 2016, 5:31:53 AM6/29/16
to Alexandr Limonov, ONOS Discuss, Sangho Shin, 박민철, Hyunsun Moon, fiche...@gmail.com
The local.conf file looks fine.

I mean that you need to check the configuration for openstack interface app is loaded before activating openstack networking app.

[ONOS LOG]

org.onosproject.onos-core-net - 1.7.0.SNAPSHOT | Application org.onosproject.openstackinterface has been activated

MacBookPro:netcfg sangholee$  onos-netcfg 192.168.10.2 ./openstackinterface-cfg.json

2016-06-21 18:42:28,452 | INFO  | event-dispatch-0 | OpenstackInterfaceManager        | 173 - org.onosproject.onos-apps-openstackinterface-app - 1.7.0.SNAPSHOT | Network configuration changed

You need to check the message "Network configuration changed", and then you can activate openstack networking app. Now.. this is un-comfortable. :( 

Hope this will help you
Thank you

Sangho Lee

On Wed, Jun 29, 2016 at 4:57 PM, Alexandr Limonov <alexander.lim...@gmail.com> wrote:
This is part of local.conf , which i used for deployment of control node, so I believe there is no mistake about that 

[[local|localrc]]
HOST_IP=192.168.1.111         #control node
SERVICE_HOST=$HOST_IP
RABBIT_HOST=$HOST_IP 
DATABASE_HOST=$HOST_IP 
Q_HOST=$HOST_IP
 
ADMIN_PASSWORD=admin
DATABASE_PASSWORD=$ADMIN_PASSWORD
RABBIT_PASSWORD=$ADMIN_PASSWORD
SERVICE_PASSWORD=$ADMIN_PASSWORD
SERVICE_TOKEN=$ADMIN_PASSWORD

On Wed, Jun 29, 2016 at 10:03 AM, Lee, Sangho <sangh...@atto-research.com> wrote:
This error message looks that ONOS failed to get token from Openstack KeyStone.

"
at org.onosproject.openstackinterface.impl.OpenstackInterfaceManager.getToken(OpenstackInterfaceManager.java:298)[191:org.onosproject.onos-app-openstackinterface-app:1.7.0.SNAPSHOT]
"

Would you check the openstack inerface configration before activating openstack-networking app, please?

onos-netcfg 192.168.10.2 ./openstackinterface-cfg.json

{
    "apps" : {
                
        "org.onosproject.openstackinterface" : {
            "openstackinterface" : {
                 "neutron_server" : "http://192.168.1.111:9696/v2.0/",
                 "keystone_server" : "http://192.168.1.111:5000/v2.0/",
                 "user_name" : "admin",
                 "password" : "admin"
             }
         }
    }
}

Hope this will help you
Thank you,

Sangho Lee

On Wed, Jun 29, 2016 at 2:39 PM, Alexandr Limonov <alexander.lim...@gmail.com> wrote:
configurations are generally the same   (except addressing of course)

{
    "apps" : {
                
        "org.onosproject.openstackinterface" : {
            "openstackinterface" : {
                 "neutron_server" : "http://192.168.1.111:9696/v2.0/",
                 "keystone_server" : "http://192.168.1.111:5000/v2.0/",
                 "user_name" : "admin",
                 "password" : "admin"
             }
         }
    }
}


{
    "userDefined" : {
      "openstacknetworking" : {
        "config" : {
         "physicalRouterMac" : "02:60:34:00:08:11",
          "gatewayBridgeId" : "of:0000000000000007",
          "gatewayExternalInterfaceName" : "eth0",
          "gatewayExternalInterfaceMac" : "02:60:00:00:09:10",
          "scalableGateway" : "true",
          "nodes" : [
          {
            "dataPlaneIp" : "192.168.1.113",
            "bridgeId" : "of:0000000000000003"
          },
          {
            "dataPlaneIp" : "192.168.1.130",
            "bridgeId" : "of:0000000000000007"
          }
        ]
      }
    }
      },
      
    "devices" : {
        "of:0000000000000003" : {
            "basic" : {
                "driver" : "sona"
            }
        
        },
        "of:0000000000000007" : {
            "basic" : {
                "driver" : "ovs"
            }
        
        }
    }
 } 



On Wed, Jun 29, 2016 at 8:37 AM, Alexandr Limonov <alexander.lim...@gmail.com> wrote:
Sangho, Could you take a look on this , please ?
I moved little bit further, but have URI not absolute again and some troubles with OS switching 

I got ONOS node(192.168.1.126), COntroller node(192.168.1.111), compute node(192.168.113) and gateway node(192.168.1.130).

2016-06-29 01:27:19,135 | ERROR | ing-config-event | Tools                            | 72 - org.onosproject.onlab-misc - 1.7.0.SNAPSHOT | Uncaught exception on onos-openstackswitching-config-event
javax.ws.rs.ProcessingException: URI is not absolute
at org.glassfish.jersey.client.ClientRuntime.invoke(ClientRuntime.java:264)
at org.glassfish.jersey.client.JerseyInvocation$2.call(JerseyInvocation.java:700)
at org.glassfish.jersey.internal.Errors.process(Errors.java:315)
at org.glassfish.jersey.internal.Errors.process(Errors.java:297)
at org.glassfish.jersey.internal.Errors.process(Errors.java:228)
at org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:444)
at org.glassfish.jersey.client.JerseyInvocation.invoke(JerseyInvocation.java:696)
at org.glassfish.jersey.client.JerseyInvocation$Builder.method(JerseyInvocation.java:448)
at org.glassfish.jersey.client.JerseyInvocation$Builder.post(JerseyInvocation.java:349)
at org.onosproject.openstackinterface.impl.OpenstackInterfaceManager.getToken(OpenstackInterfaceManager.java:298)
at org.onosproject.openstackinterface.impl.OpenstackInterfaceManager.getNetworks(OpenstackInterfaceManager.java:162)
at org.onosproject.openstackinterface.impl.OpenstackInterfaceManager.networks(OpenstackInterfaceManager.java:390)
at org.onosproject.openstacknetworking.switching.OpenstackSwitchingRulePopulator.<init>(OpenstackSwitchingRulePopulator.java:96)[193:org.onosproject.onos-app-openstackswitching:1.7.0.SNAPSHOT]
at org.onosproject.openstacknetworking.switching.OpenstackSwitchingManager.initializeFlowRules(OpenstackSwitchingManager.java:309)[193:org.onosproject.onos-app-openstackswitching:1.7.0.SNAPSHOT]
at org.onosproject.openstacknetworking.switching.OpenstackSwitchingManager.readConfiguration(OpenstackSwitchingManager.java:512)[193:org.onosproject.onos-app-openstackswitching:1.7.0.SNAPSHOT]
at org.onosproject.openstacknetworking.switching.OpenstackSwitchingManager.access$1100(OpenstackSwitchingManager.java:83)[193:org.onosproject.onos-app-openstackswitching:1.7.0.SNAPSHOT]
at org.onosproject.openstacknetworking.switching.OpenstackSwitchingManager$InternalConfigListener.lambda$event$0(OpenstackSwitchingManager.java:525)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[:1.8.0_91]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[:1.8.0_91]
at java.lang.Thread.run(Thread.java:745)[:1.8.0_91]
Caused by: java.lang.IllegalArgumentException: URI is not absolute
at java.net.URI.toURL(URI.java:1088)[:1.8.0_91]
at org.glassfish.jersey.client.internal.HttpUrlConnector._apply(HttpUrlConnector.java:340)
at org.glassfish.jersey.client.internal.HttpUrlConnector.apply(HttpUrlConnector.java:285)
at org.glassfish.jersey.client.ClientRuntime.invoke(ClientRuntime.java:255)
... 19 more
2016-06-29 01:27:19,142 | ERROR | routing-L3-event | Tools                            | 72 - org.onosproject.onlab-misc - 1.7.0.SNAPSHOT | Uncaught exception on onos-openstackrouting-L3-event
javax.ws.rs.ProcessingException: URI is not absolute
at org.glassfish.jersey.client.ClientRuntime.invoke(ClientRuntime.java:264)
at org.glassfish.jersey.client.JerseyInvocation$2.call(JerseyInvocation.java:700)
at org.glassfish.jersey.internal.Errors.process(Errors.java:315)
at org.glassfish.jersey.internal.Errors.process(Errors.java:297)
at org.glassfish.jersey.internal.Errors.process(Errors.java:228)
at org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:444)
at org.glassfish.jersey.client.JerseyInvocation.invoke(JerseyInvocation.java:696)
at org.glassfish.jersey.client.JerseyInvocation$Builder.method(JerseyInvocation.java:448)
at org.glassfish.jersey.client.JerseyInvocation$Builder.post(JerseyInvocation.java:349)
at org.onosproject.openstackinterface.impl.OpenstackInterfaceManager.getToken(OpenstackInterfaceManager.java:298)[191:org.onosproject.onos-app-openstackinterface-app:1.7.0.SNAPSHOT]
at org.onosproject.openstackinterface.impl.OpenstackInterfaceManager.getPorts(OpenstackInterfaceManager.java:192)[191:org.onosproject.onos-app-openstackinterface-app:1.7.0.SNAPSHOT]
at org.onosproject.openstackinterface.impl.OpenstackInterfaceManager.ports(OpenstackInterfaceManager.java:346)[191:org.onosproject.onos-app-openstackinterface-app:1.7.0.SNAPSHOT]
at org.onosproject.openstacknetworking.routing.OpenstackRoutingManager.lambda$reloadInitL3Rules$15(OpenstackRoutingManager.java:401)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[:1.8.0_91]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[:1.8.0_91]
at java.lang.Thread.run(Thread.java:745)[:1.8.0_91]
Caused by: java.lang.IllegalArgumentException: URI is not absolute
at java.net.URI.toURL(URI.java:1088)[:1.8.0_91]
at org.glassfish.jersey.client.internal.HttpUrlConnector._apply(HttpUrlConnector.java:340)
at org.glassfish.jersey.client.internal.HttpUrlConnector.apply(HttpUrlConnector.java:285)
at org.glassfish.jersey.client.ClientRuntime.invoke(ClientRuntime.java:255)
... 15 more


On Wed, Jun 29, 2016 at 8:18 AM, Lee, Sangho <sangh...@atto-research.com> wrote:
You are right. The error log is related to Openstack Network Node.
Historically, the network node is replaced by Gateway Node in SONA.

Please, see below guide for "Set up Gateway Node"

-----


Set up Gateway node

Instead of Neutron Network Node, SONA implements 'Gateway Node' to process all of requred functions (e.t.c, pnat, floactingIP, ...) based on 'pure' open vSwitch.
For now, in the Falcon release, SONA only supports a single Gateway Node. We will support multiple Gateway's which gives scalability in the Goldeneye release.

-----

So, I recommend that you will build your topology with 1 ONOS, 1 OS Controller, 1 Gateway Node, and 2 Compute Nodes.
That is same with my SONA dev environment. :)

Hope this will help you,
Thank you!

- Sangho Lee - 





On Wed, Jun 29, 2016 at 10:58 AM, Alexandr Limonov <alexander.lim...@gmail.com> wrote:
Wow :)
Thanks  for such descriptive information :)
 
Everything looks quite nice till  I apply   openstack-networking config  (for my environment without  network node)

{
    "userDefined" : {
      "openstacknetworking" : {
        "config" : {
          "nodes" : [
          {
            "dataPlaneIp" : "192.168.1.113",
            "bridgeId" : "of:0000000000000003"
          }
        ]
      }
    }
      },
      
    "devices" : {
        "of:0000000000000003" : {
            "basic" : {
                "driver" : "sona"
            }
        
        }
    }
 } 





In karaf log  I get 

2016-06-28 21:46:45,715 | ERROR | routing-L3-event | Tools                            | 72 - org.onosproject.onlab-misc - 1.6.0.SNAPSHOT | Uncaught exception on onos-openstackrouting-L3-event
java.lang.NullPointerException
at org.onosproject.net.packet.impl.PacketManager.pushRule(PacketManager.java:286)
at org.onosproject.net.packet.impl.PacketManager.access$400(PacketManager.java:79)
at org.onosproject.net.packet.impl.PacketManager$InternalStoreDelegate.requestPackets(PacketManager.java:398)
at org.onosproject.store.packet.impl.DistributedPacketStore$PacketRequestTracker.add(DistributedPacketStore.java:210)
at org.onosproject.store.packet.impl.DistributedPacketStore$PacketRequestTracker.access$100(DistributedPacketStore.java:194)
at org.onosproject.store.packet.impl.DistributedPacketStore.requestPackets(DistributedPacketStore.java:181)
at org.onosproject.net.packet.impl.PacketManager.requestPackets(PacketManager.java:205)
at org.onosproject.openstacknetworking.routing.OpenstackIcmpHandler.requestPacket(OpenstackIcmpHandler.java:100)[177:org.onosproject.onos-app-openstackrouting:1.6.0.SNAPSHOT]
at org.onosproject.openstacknetworking.routing.OpenstackRoutingManager.readConfiguration(OpenstackRoutingManager.java:584)[177:org.onosproject.onos-app-openstackrouting:1.6.0.SNAPSHOT]
at org.onosproject.openstacknetworking.routing.OpenstackRoutingManager.access$1500(OpenstackRoutingManager.java:82)[177:org.onosproject.onos-app-openstackrouting:1.6.0.SNAPSHOT]
at org.onosproject.openstacknetworking.routing.OpenstackRoutingManager$InternalConfigListener.lambda$event$0(OpenstackRoutingManager.java:601)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[:1.8.0_91]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[:1.8.0_91]
at java.lang.Thread.run(Thread.java:745)[:1.8.0_91]
2016-06-28 21:46:45,795 | ERROR | ing-config-event | Tools                            | 72 - org.onosproject.onlab-misc - 1.6.0.SNAPSHOT | Uncaught exception on onos-openstackswitching-config-event
javax.ws.rs.ProcessingException: URI is not absolute
at org.glassfish.jersey.client.ClientRuntime.invoke(ClientRuntime.java:264)
at org.glassfish.jersey.client.JerseyInvocation$2.call(JerseyInvocation.java:700)
at org.glassfish.jersey.internal.Errors.process(Errors.java:315)
at org.glassfish.jersey.internal.Errors.process(Errors.java:297)
at org.glassfish.jersey.internal.Errors.process(Errors.java:228)
at org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:444)
at org.glassfish.jersey.client.JerseyInvocation.invoke(JerseyInvocation.java:696)
at org.glassfish.jersey.client.JerseyInvocation$Builder.method(JerseyInvocation.java:448)
at org.glassfish.jersey.client.JerseyInvocation$Builder.post(JerseyInvocation.java:349)
at org.onosproject.openstackinterface.impl.OpenstackInterfaceManager.getToken(OpenstackInterfaceManager.java:298)
at org.onosproject.openstackinterface.impl.OpenstackInterfaceManager.getNetworks(OpenstackInterfaceManager.java:162)
at org.onosproject.openstackinterface.impl.OpenstackInterfaceManager.networks(OpenstackInterfaceManager.java:390)
at org.onosproject.openstacknetworking.switching.OpenstackSwitchingRulePopulator.<init>(OpenstackSwitchingRulePopulator.java:96)[176:org.onosproject.onos-app-openstackswitching:1.6.0.SNAPSHOT]
at org.onosproject.openstacknetworking.switching.OpenstackSwitchingManager.initializeFlowRules(OpenstackSwitchingManager.java:309)[176:org.onosproject.onos-app-openstackswitching:1.6.0.SNAPSHOT]
at org.onosproject.openstacknetworking.switching.OpenstackSwitchingManager.readConfiguration(OpenstackSwitchingManager.java:512)[176:org.onosproject.onos-app-openstackswitching:1.6.0.SNAPSHOT]
at org.onosproject.openstacknetworking.switching.OpenstackSwitchingManager.access$1100(OpenstackSwitchingManager.java:83)[176:org.onosproject.onos-app-openstackswitching:1.6.0.SNAPSHOT]
at org.onosproject.openstacknetworking.switching.OpenstackSwitchingManager$InternalConfigListener.lambda$event$0(OpenstackSwitchingManager.java:525)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[:1.8.0_91]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[:1.8.0_91]
at java.lang.Thread.run(Thread.java:745)[:1.8.0_91]
Caused by: java.lang.IllegalArgumentException: URI is not absolute
at java.net.URI.toURL(URI.java:1088)[:1.8.0_91]
at org.glassfish.jersey.client.internal.HttpUrlConnector._apply(HttpUrlConnector.java:340)
at org.glassfish.jersey.client.internal.HttpUrlConnector.apply(HttpUrlConnector.java:285)
at org.glassfish.jersey.client.ClientRuntime.invoke(ClientRuntime.java:255)
... 19 more

For me it seems  that  stucks because of absence of network node.
I will add network node to my topology and tell what I get ;)
If i face the same issue, I will move to 1.7 release 



On Wed, Jun 29, 2016 at 4:26 AM, Lee, Sangho <sangh...@atto-research.com> wrote:
This is my configurations.

MacBookPro:netcfg sangholee$ cat openstackinterface-cfg.json
{
   "apps" : {
       "org.onosproject.openstackinterface" : {
            "openstackinterface" : {
                 "neutronServer" : "http://192.168.10.10:9696/v2.0/",
                 "keystoneServer" : "http://192.168.10.10:5000/v2.0/",
                 "userName" : "admin",
                 "password" : "nova"
            }
        }
    }
}

MacBookPro:netcfg sangholee$ cat openstacknetworking-cfg.json
{
    "userDefined" : {
      "openstacknetworking" : {
        "config" : {
          "physicalRouterMac" : "92:b0:fc:e7:2a:d6",
          "gatewayBridgeId" : "of:0000000000000021",
          "gatewayExternalInterfaceName" : "veth0",
          "gatewayExternalInterfaceMac" : "00:00:00:00:00:21",
          "scalableGateway" : "true",
          "nodes" : [
          {
            "dataPlaneIp" : "192.168.10.11",
            "bridgeId" : "of:0000000000000011"
          },
          {
            "dataPlaneIp" : "192.168.10.12",
            "bridgeId" : "of:0000000000000012"
          },
          {
            "dataPlaneIp" : "192.168.10.21",
            "bridgeId" : "of:0000000000000021"
          }
            ]
        }
      }
    },
    "devices" : {
        "of:0000000000000011" : {
            "basic" : {
                "driver" : "sona"
            }
        },
        "of:0000000000000012" : {
            "basic" : {
                "driver" : "sona"
            }
        },
        "of:0000000000000021" : {
            "basic" : {
                "driver" : "ovs"
            }
        }
    }
}

Now, my dev env is 1.7.0-SNAPSHOT. So, there could be different issues between 1.6.0 and 1.7.0.
If you have any issue, please let us know!

Thanks!

Sangho Lee

On Wed, Jun 29, 2016 at 10:23 AM, Lee, Sangho <sangh...@atto-research.com> wrote:
This is my onos log for running SONA!

2016-06-21 18:33:33,029 | INFO  | ew I/O worker #3 | ntrollerImpl$OpenFlowSwitchAgent | 161 - org.onosproject.onos-protocols-openflow-ctl - 1.7.0.SNAPSHOT | Added switch 00:00:00:00:00:00:00:11
2016-06-21 18:33:33,079 | INFO  | ew I/O worker #3 | DeviceManager                    | 76 - org.onosproject.onos-core-net - 1.7.0.SNAPSHOT | Local role is MASTER for of:0000000000000011
2016-06-21 18:33:33,080 | INFO  | nos-topo-build-2 | TopologyManager                  | 76 - org.onosproject.onos-core-net - 1.7.0.SNAPSHOT | Topology DefaultTopology{time=270282756547489, creationTime=1466501612997, computeCost=161752, clusters=2, devices=2, links=0} changed
2016-06-21 18:33:33,081 | INFO  | event-dispatch-0 | FlowObjectiveManager             | 76 - org.onosproject.onos-core-net - 1.7.0.SNAPSHOT | Driver sona bound to device of:0000000000000011 ... initializing driver
2016-06-21 18:33:33,080 | INFO  | ew I/O worker #3 | DeviceManager                    | 76 - org.onosproject.onos-core-net - 1.7.0.SNAPSHOT | Device of:0000000000000011 connected
2016-06-21 18:33:33,083 | INFO  | ew I/O worker #3 | PortStatsCollector               | 162 - org.onosproject.onos-providers-openflow-device - 1.7.0.SNAPSHOT | Starting Port Stats collection thread for 00:00:00:00:00:00:00:11
2016-06-21 18:33:33,084 | INFO  | ew I/O worker #3 | GroupStatsCollector              | 165 - org.onosproject.onos-providers-openflow-group - 1.7.0.SNAPSHOT | Starting Group Stats collection thread for 00:00:00:00:00:00:00:11
2016-06-21 18:33:33,084 | INFO  | ew I/O worker #3 | MeterStatsCollector              | 166 - org.onosproject.onos-providers-openflow-meter - 1.7.0.SNAPSHOT | Starting Meter Stats collection thread for 00:00:00:00:00:00:00:11
2016-06-21 18:33:33,087 | INFO  | ew I/O worker #3 | OFChannelHandler                 | 161 - org.onosproject.onos-protocols-openflow-ctl - 1.7.0.SNAPSHOT | Processing 0 pending port status messages for 00:00:00:00:00:00:00:11
2016-06-21 18:33:33,088 | INFO  | ew I/O worker #3 | ntrollerImpl$OpenFlowSwitchAgent | 161 - org.onosproject.onos-protocols-openflow-ctl - 1.7.0.SNAPSHOT | Transitioned switch 00:00:00:00:00:00:00:11 to MASTER
2016-06-21 18:33:33,109 | INFO  | event-dispatch-0 | FlowObjectiveManager             | 76 - org.onosproject.onos-core-net - 1.7.0.SNAPSHOT | Driver sona bound to device of:0000000000000011 ... initializing driver
2016-06-21 18:33:33,223 | INFO  | nos-topo-build-3 | TopologyManager                  | 76 - org.onosproject.onos-core-net - 1.7.0.SNAPSHOT | Topology DefaultTopology{time=270282915709896, creationTime=1466501613156, computeCost=129067, clusters=3, devices=3, links=0} changed
2016-06-21 18:33:34,365 | INFO  | f-event-stats-12 | DistributedGroupStore            | 78 - org.onosproject.onos-core-dist - 1.7.0.SNAPSHOT | Group AUDIT: Setting device of:0000000000000021 initial AUDIT completed
2016-06-21 18:33:34,412 | INFO  | f-event-stats-14 | DistributedGroupStore            | 78 - org.onosproject.onos-core-dist - 1.7.0.SNAPSHOT | Group AUDIT: Setting device of:0000000000000012 initial AUDIT completed
2016-06-21 18:33:34,448 | INFO  | f-event-stats-16 | DistributedGroupStore            | 78 - org.onosproject.onos-core-dist - 1.7.0.SNAPSHOT | Group AUDIT: Setting device of:0000000000000011 initial AUDIT completed



[ONOS booted…]

[onos> app activate org.onosproject.dhcp]

2016-06-21 18:38:24,753 | INFO  | h for user karaf | FeaturesServiceImpl              | 20 - org.apache.karaf.features.core - 3.0.5 | Installing feature onos-apps-dhcp 1.7.0-SNAPSHOT
2016-06-21 18:38:24,755 | INFO  | h for user karaf | FeaturesServiceImpl              | 20 - org.apache.karaf.features.core - 3.0.5 | Found installed feature onos-api 1.7.0-SNAPSHOT
2016-06-21 18:38:24,766 | INFO  | h for user karaf | FeaturesServiceImpl              | 20 - org.apache.karaf.features.core - 3.0.5 | Found installed feature scr-condition-webconsole_0_0_0 3.0.5
2016-06-21 18:38:24,766 | INFO  | h for user karaf | FeaturesServiceImpl              | 20 - org.apache.karaf.features.core - 3.0.5 | Found installed feature standard-condition-webconsole_0_0_0 3.0.5
2016-06-21 18:38:24,768 | INFO  | h for user karaf | FeaturesServiceImpl              | 20 - org.apache.karaf.features.core - 3.0.5 | Found installed feature webconsole-condition-scr_0_0_0 3.0.5
2016-06-21 18:38:24,899 | WARN  | h for user karaf | KryoNamespace                    | 72 - org.onosproject.onlab-misc - 1.7.0.SNAPSHOT | (no name): long already registed as 7. Skipping 316.
2016-06-21 18:38:24,901 | WARN  | h for user karaf | KryoNamespace                    | 72 - org.onosproject.onlab-misc - 1.7.0.SNAPSHOT | (no name): class org.onlab.packet.Ip4Address already registed as 70. Skipping 317.
2016-06-21 18:38:24,914 | INFO  | h for user karaf | DistributedDhcpStore             | 171 - org.onosproject.onos-apps-dhcp-app - 1.7.0.SNAPSHOT | Started
2016-06-21 18:38:24,957 | INFO  | h for user karaf | DhcpManager                      | 171 - org.onosproject.onos-apps-dhcp-app - 1.7.0.SNAPSHOT | Started
2016-06-21 18:38:24,979 | INFO  | h for user karaf | DhcpUi                           | 171 - org.onosproject.onos-apps-dhcp-app - 1.7.0.SNAPSHOT | Started
2016-06-21 18:38:25,651 | INFO  | h for user karaf | HttpServiceFactoryImpl           | 110 - org.ops4j.pax.web.pax-web-runtime - 3.2.6 | Binding bundle: [org.onosproject.onos-apps-dhcp-app [171]] to http service
2016-06-21 18:38:25,663 | INFO  | h for user karaf | ApplicationManager               | 76 - org.onosproject.onos-core-net - 1.7.0.SNAPSHOT | Application org.onosproject.dhcp has been activated

[onos> app activate org.onosproject.openstackinterface]

2016-06-21 18:39:22,089 | INFO  | h for user karaf | FeaturesServiceImpl              | 20 - org.apache.karaf.features.core - 3.0.5 | Installing feature onos-apps-openstackinterface 1.7.0-SNAPSHOT
2016-06-21 18:39:22,090 | INFO  | h for user karaf | FeaturesServiceImpl              | 20 - org.apache.karaf.features.core - 3.0.5 | Found installed feature onos-api 1.7.0-SNAPSHOT
2016-06-21 18:39:22,106 | INFO  | h for user karaf | FeaturesServiceImpl              | 20 - org.apache.karaf.features.core - 3.0.5 | Found installed feature scr-condition-webconsole_0_0_0 3.0.5
2016-06-21 18:39:22,107 | INFO  | h for user karaf | FeaturesServiceImpl              | 20 - org.apache.karaf.features.core - 3.0.5 | Found installed feature standard-condition-webconsole_0_0_0 3.0.5
2016-06-21 18:39:22,107 | INFO  | h for user karaf | FeaturesServiceImpl              | 20 - org.apache.karaf.features.core - 3.0.5 | Found installed feature webconsole-condition-scr_0_0_0 3.0.5
2016-06-21 18:39:22,162 | INFO  | h for user karaf | OpenstackInterfaceManager        | 173 - org.onosproject.onos-apps-openstackinterface-app - 1.7.0.SNAPSHOT | started
2016-06-21 18:39:22,173 | INFO  | h for user karaf | ApplicationManager               | 76 - org.onosproject.onos-core-net - 1.7.0.SNAPSHOT | Application org.onosproject.openstackinterface has been activated

MacBookPro:netcfg sangholee$  onos-netcfg 192.168.10.2 ./openstackinterface-cfg.json

2016-06-21 18:42:28,452 | INFO  | event-dispatch-0 | OpenstackInterfaceManager        | 173 - org.onosproject.onos-apps-openstackinterface-app - 1.7.0.SNAPSHOT | Network configuration changed

[onos> app activate org.onosproject.openstacknetworking]

/// this is old log for normal openstacknetworking booting 

2016-06-19 12:17:37,500 | INFO  | -message-handler | FeaturesServiceImpl              | 20 - org.apache.karaf.features.core - 3.0.5 | Installing feature onos-app-openstacknetworking-app 1.7.0-SNAPSHOT
2016-06-19 12:17:37,500 | INFO  | -message-handler | FeaturesServiceImpl              | 20 - org.apache.karaf.features.core - 3.0.5 | Found installed feature onos-api 1.7.0-SNAPSHOT
2016-06-19 12:17:37,527 | INFO  | -message-handler | FeaturesServiceImpl              | 20 - org.apache.karaf.features.core - 3.0.5 | Found installed feature scr-condition-management_0_0_0 3.0.5
2016-06-19 12:17:37,527 | INFO  | -message-handler | FeaturesServiceImpl              | 20 - org.apache.karaf.features.core - 3.0.5 | Found installed feature scr-condition-webconsole_0_0_0 3.0.5
2016-06-19 12:17:37,528 | INFO  | -message-handler | FeaturesServiceImpl              | 20 - org.apache.karaf.features.core - 3.0.5 | Found installed feature standard-condition-webconsole_0_0_0 3.0.5
2016-06-19 12:17:37,528 | INFO  | -message-handler | FeaturesServiceImpl              | 20 - org.apache.karaf.features.core - 3.0.5 | Found installed feature webconsole-condition-scr_0_0_0 3.0.5
2016-06-19 12:17:37,912 | INFO  | -message-handler | HttpServiceFactoryImpl           | 107 - org.ops4j.pax.web.pax-web-runtime - 3.2.6 | Binding bundle: [org.onosproject.onos-app-openstacknetworking-web [200]] to http service
2016-06-19 12:17:37,956 | INFO  | -message-handler | ApplicationManager               | 76 - org.onosproject.onos-core-net - 1.7.0.SNAPSHOT | Application org.onosproject.openstacknetworking has been activated

2016-06-19 12:17:37,959 | INFO  | -message-handler | FeaturesServiceImpl              | 20 - org.apache.karaf.features.core - 3.0.5 | Installing feature onos-app-openstackswitching 1.7.0-SNAPSHOT
2016-06-19 12:17:37,962 | INFO  | -message-handler | FeaturesServiceImpl              | 20 - org.apache.karaf.features.core - 3.0.5 | Found installed feature onos-api 1.7.0-SNAPSHOT
2016-06-19 12:17:37,986 | INFO  | -message-handler | FeaturesServiceImpl              | 20 - org.apache.karaf.features.core - 3.0.5 | Found installed feature scr-condition-management_0_0_0 3.0.5
2016-06-19 12:17:37,993 | INFO  | -message-handler | FeaturesServiceImpl              | 20 - org.apache.karaf.features.core - 3.0.5 | Found installed feature scr-condition-webconsole_0_0_0 3.0.5
2016-06-19 12:17:37,994 | INFO  | -message-handler | FeaturesServiceImpl              | 20 - org.apache.karaf.features.core - 3.0.5 | Found installed feature standard-condition-webconsole_0_0_0 3.0.5
2016-06-19 12:17:37,995 | INFO  | -message-handler | FeaturesServiceImpl              | 20 - org.apache.karaf.features.core - 3.0.5 | Found installed feature webconsole-condition-scr_0_0_0 3.0.5
2016-06-19 12:17:39,112 | INFO  | -message-handler | OpenstackSwitchingManager        | 201 - org.onosproject.onos-app-openstackswitching - 1.7.0.SNAPSHOT | Started
2016-06-19 12:17:39,125 | INFO  | -message-handler | ApplicationManager               | 76 - org.onosproject.onos-core-net - 1.7.0.SNAPSHOT | Application org.onosproject.openstackswitching has been activated

2016-06-19 12:17:39,130 | INFO  | -message-handler | FeaturesServiceImpl              | 20 - org.apache.karaf.features.core - 3.0.5 | Installing feature onos-app-openstackrouting 1.7.0-SNAPSHOT
2016-06-19 12:17:39,136 | INFO  | -message-handler | FeaturesServiceImpl              | 20 - org.apache.karaf.features.core - 3.0.5 | Found installed feature onos-api 1.7.0-SNAPSHOT
2016-06-19 12:17:39,152 | INFO  | -message-handler | FeaturesServiceImpl              | 20 - org.apache.karaf.features.core - 3.0.5 | Found installed feature scr-condition-management_0_0_0 3.0.5
2016-06-19 12:17:39,152 | INFO  | -message-handler | FeaturesServiceImpl              | 20 - org.apache.karaf.features.core - 3.0.5 | Found installed feature scr-condition-webconsole_0_0_0 3.0.5
2016-06-19 12:17:39,153 | INFO  | -message-handler | FeaturesServiceImpl              | 20 - org.apache.karaf.features.core - 3.0.5 | Found installed feature standard-condition-webconsole_0_0_0 3.0.5
2016-06-19 12:17:39,156 | INFO  | -message-handler | FeaturesServiceImpl              | 20 - org.apache.karaf.features.core - 3.0.5 | Found installed feature webconsole-condition-scr_0_0_0 3.0.5
2016-06-19 12:17:39,376 | INFO  | -message-handler | OpenstackRoutingManager          | 202 - org.onosproject.onos-app-openstackrouting - 1.7.0.SNAPSHOT | OpenstackRouting configured
2016-06-19 12:17:39,377 | INFO  | -message-handler | OpenstackRoutingManager          | 202 - org.onosproject.onos-app-openstackrouting - 1.7.0.SNAPSHOT | started
2016-06-19 12:17:39,379 | INFO  | -message-handler | ApplicationManager               | 76 - org.onosproject.onos-core-net - 1.7.0.SNAPSHOT | Application org.onosproject.openstackrouting has been activated

MacBookPro:netcfg sangholee$ onos-netcfg 192.168.10.2 ./openstacknetworking-cfg.json

2016-06-19 12:19:56,700 | INFO  | routing-L3-event | OpenstackRoutingManager          | 202 - org.onosproject.onos-app-openstackrouting - 1.7.0.SNAPSHOT | OpenstackRouting configured


Hope this will help you!
thanks,

Sangho Lee

On Wed, Jun 29, 2016 at 10:15 AM, Lee, Sangho <sangh...@atto-research.com> wrote:
My SONA environment is below:

MacBookPro:onos sangholee$ env | grep ONOS
ONOS_APPS=drivers,openflow
ONOS_CELL=local_sangholee
ONOS_USER=sdn
ONOS_SCENARIOS=/Users/sangholee/sddc/onos/tools/test/scenarios
ONOS_INSTANCES=192.168.10.2
ONOS_WEB_USER=onos
ONOS_GROUP=sdn
ONOS_NIC=192.168.10.*
ONOS_ROOT=/Users/sangholee/sddc/onos
ONOS_WEB_PASS=rocks

MacBookPro:onos sangholee$ env | grep OC
OC1=192.168.10.2
OCI=192.168.10.2

MacBookPro:onos sangholee$ onos-install -f $OC1
Connection to 192.168.10.2 closed.
sudo: systemctl: command not found
Connection to 192.168.10.2 closed.
Connection to 192.168.10.2 closed.
onos start/running, process 12422
Connection to 192.168.10.2 closed.

[wait for ONOS booting…]

MacBookPro:onos sangholee$ onos
Logging in as karaf
Welcome to Open Network Operating System (ONOS)!
     ____  _  ______  ____
    / __ \/ |/ / __ \/ __/
   / /_/ /    / /_/ /\ \
   \____/_/|_/\____/___/

Documentation: wiki.onosproject.org
Tutorials:     tutorials.onosproject.org
Mailing lists: lists.onosproject.org

Come help out! Find out how at: contribute.onosproject.org

Hit '<tab>' for a list of available commands
and '[cmd] --help' for help on a specific command.
Hit '<ctrl-d>' or type 'system:shutdown' or 'logout' to shutdown ONOS.

onos> apps -a -s
*  15 org.onosproject.openflow-base        1.7.0.SNAPSHOT OpenFlow Provider
*  16 org.onosproject.hostprovider         1.7.0.SNAPSHOT Host Location Provider
*  17 org.onosproject.lldpprovider         1.7.0.SNAPSHOT LLDP Link Provider
*  18 org.onosproject.openflow             1.7.0.SNAPSHOT OpenFlow Meta App
*  25 org.onosproject.drivers              1.7.0.SNAPSHOT Default device drivers

onos> app activate org.onosproject.dhcp

onos> app activate org.onosproject.openstackinterface

[ you need to push openstackinterface config]

onos> app activate org.onosproject.openstacknetworking

[ you need to push openstacknetworking config]

onos> apps -a -s
*   3 org.onosproject.dhcp                 1.7.0.SNAPSHOT DHCP App
*   4 org.onosproject.openstackswitching   1.7.0.SNAPSHOT SONA Openstack Networking Application
*   5 org.onosproject.openstackrouting     1.7.0.SNAPSHOT SONA Openstack Networking Application
*   6 org.onosproject.openstacknetworking  1.7.0.SNAPSHOT OpenStack Networking App
*  27 org.onosproject.drivers              1.7.0.SNAPSHOT Default Device Drivers
*  68 org.onosproject.openstackinterface   1.7.0.SNAPSHOT OpenStack Interface App
*  71 org.onosproject.hostprovider         1.7.0.SNAPSHOT Host Location Provider
*  83 org.onosproject.openflow-base        1.7.0.SNAPSHOT OpenFlow Provider
*  84 org.onosproject.lldpprovider         1.7.0.SNAPSHOT LLDP Link Provider
*  85 org.onosproject.openflow             1.7.0.SNAPSHOT OpenFlow Meta App




On Wed, Jun 29, 2016 at 10:02 AM, Alexandr Limonov <alexander.lim...@gmail.com> wrote:
ok, I will try, but few couple more quetions before that
There are few default applications :drivers,openflow,fwd,proxyarp,mobility, Should deactivate them first ?



You need only "drivers,openflow".
 
To provision ovs bridges I should install openstack.bootstrap.app, right ? Should I do it in the last order ?


No. you don't need. It will automatically by openstack-networking app.
 
Previously I was using rest calls, instead of putting network-config.json file into onos directory. Can it cause problems or this is completely normal practice ? I saw such approach in some  manuals, but it mention quite seldom.


 As I know about configuration, using rest calls is normal practice. Using onos directory is just for comfortable development.

Thank you,

- Sangho Lee - 
 
Thanks ! 


On Wed, Jun 29, 2016 at 3:41 AM, Lee, Sangho <sangh...@atto-research.com> wrote:
I think that the openstack neutron with ONOS plugin is ready for SONA!
Now, we need to check the ONOS with openstack networking apps.

Actually, I also saw the error "URL is not absolute".
The reason was that the ONOS apps didn't have proper configurations.

Could you check the configuration file (network-cfg.json) and activate the below apps in order?

onos> app activate org.onosproject.dhcp
onos> app activate org.onosproject.openstackinterface
onos> app activate org.onosproject.openstacknetworking

Please, check the log messages if there are errors after activating each app.

Hope this will help you,
Thank you for your help about Silivia's config_onos.ini problem :)

- Sangho Lee - 


On Wed, Jun 29, 2016 at 1:36 AM, Alexandr Limonov <alexander.lim...@gmail.com> wrote:
I made new deplyment.
Seems I moved little bit further, but still far from having everything functional ;)))

I could create network and subnetwork, but can not instantiate a VM 

Now ONOS recieves requests from Neutron. In KARAF  log I can see 
2016-06-28 12:06:09,604 | ERROR | qtp327074569-422 | OpenstackPortWebResource         | 195 - org.onosproject.onos-app-openstacknetworking-web - 1.6.0.SNAPSHOT | Creates Port failed because of exception javax.ws.rs.ProcessingException: URI is not absolute

From q-svc logs it looks like

016-06-28 12:06:08.245 ^[[00;32mDEBUG networking_onos.common.utils [^[[01;36mreq-0d691195-8214-4409-b5f6-4cb80bfd79c6 ^[[00;36mneutron 213369de3d1046a9be0c943c9eed8869^[[00;32m] ^[[01;35m^[[00;32mSending MSG_TYPE (post) URL (http://192.168.1.125:8181/onos/openstackswitching/ports) OBJECT ({'port': {'status': 'DOWN', 'binding:host_id': u'host3', 'allowed_address_pairs': [], 'mac_address': 'fa:16:3e:d0:44:69', 'dns_assignment': [{'hostname': u'host-20-0-0-2', 'ip_address': u'20.0.0.2', 'fqdn': u'host-20-0-0-2.openstacklocal.'}], 'device_owner': u'compute:nova', 'port_security_enabled': True, 'binding:profile': {}, 'fixed_ips': [{'subnet_id': u'bc8ab13a-05e3-412f-8feb-ccb8b799d193', 'ip_address': u'20.0.0.2'}], 'id': '9d1be0f3-31e5-48d2-af7a-35dcc8e47f4c', 'security_groups': [u'0d9c5f40-3f40-401e-8039-137e7f9b05cc'], 'device_id': u'08de7b03-3fbb-4448-ad67-3eeb56f87328', 'name': '', 'admin_state_up': True, 'network_id': u'076dcef7-f135-479b-8d25-ca471c7ecea3', 'dns_name': '', 'binding:vif_details': {}, 'binding:vnic_type': 'normal', 'binding:vif_type': 'unbound', 'tenant_id': u'e025872537934e1a9a10ec3778553fef'}}) BODY ({
  "port": {
    "status": "DOWN",
    "binding:host_id": "host3",
    "allowed_address_pairs": [],
    "mac_address": "fa:16:3e:d0:44:69",
    "dns_assignment": [
      {
        "hostname": "host-20-0-0-2",
        "ip_address": "20.0.0.2",
        "fqdn": "host-20-0-0-2.openstacklocal."
      }
    ],
    "device_owner": "compute:nova",
    "port_security_enabled": true,
    "binding:profile": {},
    "fixed_ips": [
      {
        "subnet_id": "bc8ab13a-05e3-412f-8feb-ccb8b799d193",
        "ip_address": "20.0.0.2"
      }
    ],
    "id": "9d1be0f3-31e5-48d2-af7a-35dcc8e47f4c",
    "security_groups": [
      "0d9c5f40-3f40-401e-8039-137e7f9b05cc"
    ],
    "device_id": "08de7b03-3fbb-4448-ad67-3eeb56f87328",
    "name": "",
    "admin_state_up": true,
    "network_id": "076dcef7-f135-479b-8d25-ca471c7ecea3",
    "dns_name": "",
    "binding:vif_details": {},
    "binding:vnic_type": "normal",
    "binding:vif_type": "unbound",
    "tenant_id": "e025872537934e1a9a10ec3778553fef"
  }
})^[[00m ^[[00;33mfrom (pid=9856) send_msg /usr/lib/python2.7/site-packages/networking_onos/common/utils.py:33^[[00m
2016-06-28 12:06:08.268 ^[[01;31mERROR neutron.plugins.ml2.managers [^[[01;36mreq-0d691195-8214-4409-b5f6-4cb80bfd79c6 ^[[00;36mneutron 213369de3d1046a9be0c943c9eed8869^[[01;31m] ^[[01;35m^[[01;31mMechanism driver 'onos_ml2' failed in create_port_postcommit^[[00m

returns 405: Method Not Allowed










On Tue, Jun 28, 2016 at 3:42 PM, Alexandr Limonov <alexander.lim...@gmail.com> wrote:
OK,  many thanks, I will try !
But the plugin (networking-onos) should  be from master branch ? because git can not resolve it with "-b stable/liberty" option


On Tue, Jun 28, 2016 at 2:30 PM, Lee, Sangho <sangh...@atto-research.com> wrote:
Now, I use OpenStack Liberty version and devstack for Liberty stable version.

# git clone -b stable/liberty git://github.com/openstack-dev/devstack.git

Good luck for you! :)

Thank you,

- Sangho Lee - 



On Tue, Jun 28, 2016 at 8:11 PM, Alexandr Limonov <alexander.lim...@gmail.com> wrote:
Yes, exactly, OS simply do sent any request to ONOS, and  q-svc logs are not very discriptive(((

Ok,  I will rebuild devstack environment, I will do one controll node, one onos node and one compute node.
Is there any preference concerning DevStack  branch/release  for SONA? 

Lee, Sangho

unread,
Jun 29, 2016, 7:33:15 AM6/29/16
to Silvia Fichera, Alexandr Limonov, ONOS Discuss, Sangho Shin, 박민철, Hyunsun Moon
Silvia,

Please, check the ONOS ML2 plugin installation on OpenStack Controller Node again.

"Set up Control Node's Step 4 ~ 6"

-----

# Install onos ml2 plugin on OpenStack Controller Node

cd ~/
cd networking-onos
sudo python setup.py install

cat > ~/networking-onos/etc/conf_onos.ini <<EOF
#Configuration options for ONOS driver

[onos]
# (StrOpt) ONOS ReST interface URL. This is a mandatory field.
url_path = http://$onos_ip:8181/onos/openstackswitching

# (StrOpt) Username for authentication. This is a mandatory field.
username = onos

# (StrOpt) Password for authentication. This is a mandatory field.
password = rocks
EOF

-----

After then... please try to "./stack.sh" on OpenStack Controller Node.

Please, let us know the controller node's "~/networking-onos/etc/conf_onos.ini" file and the result for "./stack.sh" on Controller Node.

And.. I use OpenStack Liberty version and devstack for Liberty stable version.


# git clone -b stable/liberty git://github.com/openstack-dev/devstack.git

If you have same problems,
we recommend that you try OpenStack Liberty version. :)

Hope this will help you,
Thank you,

- Sangho Lee -

Silvia Fichera

unread,
Jun 29, 2016, 11:24:53 AM6/29/16
to Lee, Sangho, Alexandr Limonov, ONOS Discuss, Sangho Shin, 박민철, Hyunsun Moon
With Liberty the problem is biggest!
If I simply do ./stack.sh  the script says: 

[ERROR] ./stack.sh:177 If you wish to run this script anyway run with FORCE=yes


I tried with FORCE=yes and there is an error related to pip:

x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/include/python2.7 -c build/temp.linux-x86_64-2.7/_openssl.c -o build/temp.linux-x86_64-2.7/build/temp.linux-x86_64-2.7/_openssl.o
    build/temp.linux-x86_64-2.7/_openssl.c:697:6: error: conflicting types for 'BIO_new_mem_buf'
     BIO *BIO_new_mem_buf(void *, int);
          ^
    In file included from /usr/include/openssl/asn1.h:65:0,
                     from build/temp.linux-x86_64-2.7/_openssl.c:413:
    /usr/include/openssl/bio.h:692:6: note: previous declaration of 'BIO_new_mem_buf' was here
     BIO *BIO_new_mem_buf(const void *buf, int len);
          ^
    error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
    
    ----------------------------------------
Command "/usr/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip-build-Yh9CU5/cryptography/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-qWfRYq-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-Yh9CU5/cryptography
You are using pip version 7.1.2, however version 8.1.2 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
+ exit_trap
+ local r=1
++ jobs -p
+ jobs=
+ [[ -n '' ]]
+ kill_spinner
+ '[' '!' -z '' ']'
+ [[ 1 -ne 0 ]]
+ echo 'Error on exit'
Error on exit


I also tried in a fresh VM, so without previous stacking....

Thanks
Silvia
--
Silvia Fichera

Pete Birley

unread,
Jun 29, 2016, 12:04:02 PM6/29/16
to ONOS Discuss, sangh...@atto-research.com, alexander.lim...@gmail.com, san...@onlab.us, dan.mc...@gmail.com, hyunsu...@gmail.com
I'm also attempting to get SONA running with Neutron, and yielding little success: I'm using a single node packstack install on CentOS 7 as this is pretty close to our production environment. I've been using ONOS 1.6.1, with the openstacknode app to set up the bridge (I think successfully) though when I try and create a port to connect an instance to am hit by "javax.ws.rs.ProcessingException: URI is not absolute" suggesting I'm getting something wrong. I have gone through all the documentation I can find but must confess I'm at a bit of a loss on how to proceed without rolling my sleeves up and getting right into the source (no bad thing but time is precious...). Would you recommend using the current master for a POC deployment at this stage? I appreciate that the documentation is not ready yet, though I'd be very willing to help contribute in any way I can.

Also I've seen many people suggest http://forum.onosfw.com/ as a source of information, though this no longer seems to exist?

Hyunsun Moon

unread,
Jun 29, 2016, 1:11:06 PM6/29/16
to Pete Birley, ONOS Discuss, sangh...@atto-research.com, alexander.lim...@gmail.com, san...@onlab.us, dan.mc...@gmail.com
Hi Pete,

You need to push network config once ONOS and SONA apps are stared and stable.
Try the command below.
curl --user onos:rocks -X POST -H "Content-Type: application/json" http://onos-01:8181/onos/v1/network/configuration/ -d @network-cfg.json
We’re working on refactoring SONA to improve scalability and make it easy to deploy, which is targeted to Hummingbird release.
Any contribution would be welcome!

Hyunsun

Silvia Fichera

unread,
Jul 4, 2016, 11:08:36 AM7/4/16
to Hyunsun Moon, Pete Birley, ONOS Discuss, Sangho Lee, Alexandr Limonov, Sangho Shin, 박민철
Hi all,
I succeeded in installing Openstack (following the previous guide). Now I've seen that you have updated the wiki to configure SONA. I have few questions concerning the IP addresses.
In fact, the OpenStack controller has IP 10.134.231.28, but, when you prepare the local.conf related to the compute node, the service host has 162.243.x.x, that is not the controller address.
Moreover, the file network-cfg.json is the one in /onos/apps/openstacknetworking? And what IP addresses you put in it? Have you any network scheme? In this way it is quite confused.

Thanks

Silvia


--
You received this message because you are subscribed to the Google Groups "ONOS Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to onos-discuss...@onosproject.org.
To post to this group, send email to onos-d...@onosproject.org.
Visit this group at https://groups.google.com/a/onosproject.org/group/onos-discuss/.

Hyunsun Moon

unread,
Jul 5, 2016, 2:25:59 PM7/5/16
to Silvia Fichera, Pete Birley, ONOS Discuss, Sangho Lee, Alexandr Limonov, Sangho Shin, 박민철
Hi Silvia,

162.243.x.x is the public facing address of the OpenStack controller while 10.134.231.28 is the internal.
You can set the same IP address for all configurations if you want.
Specifically, if you set the “SERVICE_HOST” in DevStack local.conf public IP and set the other IPs private IP, you could access OpenStack or VM's web console from anywhere, while internal API calls, RPC calls or DB access among the OpenStack services could still happen in private.
Please note that the local.conf in the wiki is just one example and we’re not going to provide detailed guide to how to deploy OpenStack. I believe OpenStack community has more resources about how to deploying OpenStack and all the configurations.

About the network-config.json, you can use the example network config format in /onos/apps/openstacknetworking.
I have to say sorry for your inconvenience but we’re working on refactoring SONA and the network config format will be changed soon. Once it’s fixed, we’ll definitely add more details about each config fields.

Hyunsun

Carine Kanouo

unread,
Jul 13, 2016, 9:24:42 AM7/13/16
to ONOS Discuss
Hi everyone,

I'm trying to set up SONA and i encountered this issue. it seems that openstackswitching service is not available.

Can't read swagger JSON from http://192.168.56.20:8181/onos/v1/docs/apis/onos/openstackswitching/swagger.json

2016-07-09 03:22:44.341 TRACE neutron.plugins.ml2.managers HTTPError: 503 Server Error: Service Unavailable for url: http://192.168.56.20:8181/onos/openstackswitching/networks

what can i do to solve this problem?

Hyunsun Moon

unread,
Jul 13, 2016, 1:03:36 PM7/13/16
to Carine Kanouo, ONOS Discuss
Hi Carine,

Could you check if openstackSwitching app is activated in ONOS?
If it is not, try activate it.

onos> app activate org.onosproject.openstackswitching
onos> apps -a -s
*   9 org.onosproject.dhcp                 1.7.0.SNAPSHOT DHCP Server App
*  11 org.onosproject.openflow-base        1.7.0.SNAPSHOT OpenFlow Provider
*  12 org.onosproject.ovsdb-base           1.7.0.SNAPSHOT OVSDB Provider
*  13 org.onosproject.drivers.ovsdb        1.7.0.SNAPSHOT OVSDB Device Drivers
*  14 org.onosproject.openstacknode        1.7.0.SNAPSHOT OpenStack Node Bootstrap App
*  20 org.onosproject.drivers              1.7.0.SNAPSHOT Default device drivers
*  43 org.onosproject.openstackinterface   1.7.0.SNAPSHOT OpenStack Interface App
*  44 org.onosproject.openstackswitching   1.7.0.SNAPSHOT OpenStack Switching App

And we recommend you to upgrade SONA to the latest since we made a big change on SONA recently.

Hyunsun


--
You received this message because you are subscribed to the Google Groups "ONOS Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to onos-discuss...@onosproject.org.
To post to this group, send email to onos-d...@onosproject.org.
Visit this group at https://groups.google.com/a/onosproject.org/group/onos-discuss/.

Carine Kanouo

unread,
Jul 13, 2016, 1:28:59 PM7/13/16
to Hyunsun Moon, ONOS Discuss
Hi Hyunsun,
Thank you for your reply.
All thèse applications are activated (gui) and I want to precise that as soon as I activated openstackinterface, openstacknetworking and openstacknode, the configuration was generated automatically in network/configuration (rest api) like the current configuration on the wiki.

Should I use the config wich is said is not merged yet? I use a build versions of onos, snapshot 1.7.0

Hyunsun Moon

unread,
Jul 13, 2016, 1:45:11 PM7/13/16
to Carine Kanouo, ONOS Discuss
Hi Carine,

You just need to activate “openstackSwitching” application, and then all the dependent applications will be activated automatically.
I guess the old version of network-cfg.json is included in your ONOS package based on what your saying.
I recommend you to pull the latest master of ONOS, update the config to new format(I just updated the wiki), it should be under onos/package/config, and repackage onos.
The big change was merged yesterday, so if you already pulled today, just update the config file and repackage.

FYI, openstackRouting application, which provides Neutron L3 service plugin implementation, has not been finished yet.
We’ll update the wiki once it’s done.

Hyunsun

Carine Kanouo

unread,
Jul 13, 2016, 1:50:02 PM7/13/16
to Hyunsun Moon, ONOS Discuss
Oooh thank you Hyunsun,

I Will do it friday and give you a feed-back. Tomorrow is an holiday in France

Hyunsun Moon

unread,
Jul 13, 2016, 1:56:21 PM7/13/16
to Carine Kanouo, ONOS Discuss
Sure!

Silvia Fichera

unread,
Jul 14, 2016, 12:04:46 PM7/14/16
to Hyunsun Moon, Carine Kanouo, ONOS Discuss
Hi
I moved forward with the setup. 
I have installed ONOS following the ONOS from scratch guide, so I have the buil machine and the sdn machine (OC1).
Questions:
1- The network-cfg.json has to be in the build machine?
2- point 3 says a curl command. who is onos-01 of this command? the ip of the build machine or the other one? If it is the build machine I have a warning "could'n read data from file network-cfg.json" and the connection is refused. In the other case I have the same warning plus a code 400 message.

Thanks
Silvia


Sure!
--
You received this message because you are subscribed to the Google Groups "ONOS Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to onos-discuss...@onosproject.org.
To post to this group, send email to onos-d...@onosproject.org.
Visit this group at https://groups.google.com/a/onosproject.org/group/onos-discuss/.

Hyunsun Moon

unread,
Jul 14, 2016, 1:37:27 PM7/14/16
to Silvia Fichera, Carine Kanouo, ONOS Discuss
Hi Silvia,

The network-cfg.json can be packaged together with ONOS, and you can also have it in the build machine and push it via REST API whenever you update it.
SONA applications don’t read the network config automatically when it activates(intentionally), so you should push it via REST API once you activate the SONA apps.

"onos-01" in the command is not the build machine, it’s the ONOS machine.
I’ll update wiki.
If you get 400 error, there should be an error message about the network config format.

Hyunsun

Carine Kanouo

unread,
Jul 15, 2016, 10:38:23 AM7/15/16
to ONOS Discuss, carine...@gmail.com
Hi Hyunsun,

I'm so confused! i still have this error on Openstack. i updated my config in onos/tools/package/config and i activated the right apps (drivers, openflow-base, openstackswitching) correctly.


Auto Generated Inline Image 1

Hyunsun Moon

unread,
Jul 15, 2016, 3:37:16 PM7/15/16
to Carine Kanouo, ONOS Discuss
Hi Carine,
Looks like you should check several things.

1. Check ONOS logs if there’s any error.
"log:tail” from the ONOS karaf CLI or “onos-log” on the build machine.

If there’s no error, check the Neutron side.

1. Check Neutron server error log if you can to check the ml2 driver is set to onos_ml2 and the url_path to ONOS is correct.

Or you can check,
2. OpenStack controller: check "/etc/neutron/plugins/ml2/ml2_conf.ini” mechanism driver is set to onos_ml2 
mechanism_drivers = onos_ml2

3. OpenStack controller: check "networking-onos/etc/conf_onos.ini” all the settings are correct
username = onos
password = rocks

4. OpenStack controller: I don’t know how did you installed OpenStack but check your Neutron is running with additional onos_ml2 driver configs.
$ ps -aef | grep neutron
hyunsun  31237 31081  1 15:14 pts/10   00:00:03 /usr/bin/python /usr/local/bin/neutron-server --config-file /etc/neutron/neutron.conf --config-file /etc/neutron/plugins/ml2/ml2_conf.ini --config-file /opt/stack/networking-onos/etc/conf_onos.ini

Let me know the result.

Hyunsun



On Jul 15, 2016, at 7:38 AM, Carine Kanouo <carine...@gmail.com> wrote:

Hi Hyunsun,

I'm so confused! i still have this error on Openstack. i updated my config in onos/tools/package/config and i activated the right apps (drivers, openflow-base, openstackswitching) correctly.

<Auto Generated Inline Image 1.png>


--
You received this message because you are subscribed to the Google Groups "ONOS Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to onos-discuss...@onosproject.org.
To post to this group, send email to onos-d...@onosproject.org.
Visit this group at https://groups.google.com/a/onosproject.org/group/onos-discuss/.

Silvia Fichera

unread,
Jul 17, 2016, 1:04:28 PM7/17/16
to Hyunsun Moon, Carine Kanouo, ONOS Discuss
Hi Hynsun,
I still have problems. Why when I log in to the Onos GUI there are no devices?
And why ONOS does not see the ovs?
when I do 
sudo ovs-vsctl show

814d619d-9c38-41e6-9e82-7ed988830cec
    Manager "ptcp:6640"
    Bridge br-int
        Port "veth0"
            Interface "veth0"
        Port br-int
            Interface br-int
                type: internal


I've created the gtw node whene there was the previous wiki.

Thanks

Silvia


Hyunsun Moon

unread,
Jul 17, 2016, 7:32:06 PM7/17/16
to Silvia Fichera, Carine Kanouo, ONOS Discuss
Hi Silvia,

It looks like your “br-int” bridge does not have openflow connection with ONOS instance successfully.
If the bridge has the connection, you will see “Manager ptcp:onos_ip:6440”.
Could you check any errors or warnings in ONOS?

FYI, you don’t need gateway nodes for opesntack switching test.
And the network config format in the previous wiki won’t work anymore.

Hyunsun

Hyunsun Moon

unread,
Jul 17, 2016, 7:48:40 PM7/17/16
to Silvia Fichera, Carine Kanouo, ONOS Discuss
Hey, and did you do the following step on the compute node?
“host_ip" here should be your compute node IP address, which must be accessible from ONOS instance.

ovs-appctl -t ovsdb-server ovsdb-server/add-remote ptcp:6640:host_ip

And check the "netstat -ntl” (on the compute node), if it listen to the port “6640”.
Based on this setup, ONOS can create OVSDB session to the OVSDB server in your compute node and create bridge and ports there.
Sounds like your ONOS failed to create OVSDB connection to the compute node OVSDB server now.

Ignore the previous email, I confused OVSDB session with OpenFlow session below.
It should be “Controller tcp:onos_ip:6653” if the bridge has the OpenFlow connection.
Checking the logs might be a good idea, though.

Hyunsun

Carine Kanouo

unread,
Jul 18, 2016, 10:23:28 AM7/18/16
to ONOS Discuss, carine...@gmail.com

Hi Hyunsun

thank you for your reply.
All theses parameters are set correctly, and there is no error on onos.


ps -aef | grep neutron
stack@openstack:~$ ps -aef | grep neutron
stack    12833 12678  1 06:03 pts/8    00:00:04 /usr/bin/python /usr/local/bin/neutron-server --config-file /etc/neutron/neutron.conf --config-file /etc/neutro /plugins/ml2/ml2_conf.ini --config-file /opt/stack/networking-onos/etc/conf_onos.ini
stack    13003 12833  0 06:04 pts/8    00:00:00 /usr/bin/python /usr/local/bin/neutron-server --config-file /etc/neutron/neutron.conf --config-file /etc/neutro /plugins/ml2/ml2_conf.ini --config-file /opt/stack/networking-onos/etc/conf_onos.ini
stack    13004 12833  0 06:04 pts/8    00:00:00 /usr/bin/python /usr/local/bin/neutron-server --config-file /etc/neutron/neutron.conf --config-file /etc/neutro /plugins/ml2/ml2_conf.ini --config-file /opt/stack/networking-onos/etc/conf_onos.ini
stack    13005 12833  0 06:04 pts/8    00:00:00 /usr/bin/python /usr/local/bin/neutron-server --config-file /etc/neutron/neutron.conf --config-file /etc/neutro /plugins/ml2/ml2_conf.ini --config-file /opt/stack/networking-onos/etc/conf_onos.ini
stack    13006 12833  0 06:04 pts/8    00:00:00 /usr/bin/python /usr/local/bin/neutron-server --config-file /etc/neutron/neutron.conf --config-file /etc/neutro /plugins/ml2/ml2_conf.ini --config-file /opt/stack/networking-onos/etc/conf_onos.ini


i always have this error on q-svc.log: Is this URL normal?
openstackswitching/networks.


HTTPError: 503 Server Error: Service Unavailable for url: http://192.168.56.20:8181
/onos/openstackswitching/networks



I can't access openstackswitching swagger on onos/v1/docs (canoot be read)

I use Devstack for openstack controller and compute nodes. all bridges are created on compute nodes and gateway.

For this, is it compulsory to set these username and password? is it credentials of the build machine and onos-VM or it must just be onos web user and password?

Carine Kanouo

unread,
Jul 18, 2016, 12:11:29 PM7/18/16
to ONOS Discuss
Do you think proxy settings can cause problems? i tried to wget http://onos_ip:8181/onos/ui and i have service unavailable response but onos is active....

Hyunsun Moon

unread,
Jul 18, 2016, 1:44:18 PM7/18/16
to Carine Kanouo, ONOS Discuss
Hi Carine,

Yeah..the settings look all good. You’d better fix your environment first.
And about the question in your previous email, the username and the password are ONOS web user and password.

Hyunsun


On Jul 18, 2016, at 9:11 AM, Carine Kanouo <carine...@gmail.com> wrote:

Do you think proxy settings can cause problems? i tried to wget http://onos_ip:8181/onos/ui and i have service unavailable response but onos is active....

--
You received this message because you are subscribed to the Google Groups "ONOS Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to onos-discuss...@onosproject.org.
To post to this group, send email to onos-d...@onosproject.org.
Visit this group at https://groups.google.com/a/onosproject.org/group/onos-discuss/.

Carine Kanouo

unread,
Jul 19, 2016, 10:11:22 AM7/19/16
to ONOS Discuss, Hyunsun Moon
Hiiii Hyunsun,

It works!!! fails were because of proxy settings. Oh my God!! almost 1 month to solve it!!!

Thank you so much!

Hyunsun Moon

unread,
Jul 19, 2016, 1:10:07 PM7/19/16
to Carine Kanouo, ONOS Discuss
Hi Carine,

Great! You solved it!
Let us know if you have further questions :)

Hyunsun

Carine Kanouo

unread,
Jul 19, 2016, 2:47:34 PM7/19/16
to Hyunsun Moon, ONOS Discuss
I created a network and 3 vm via openstack. VM in the same compute node can ping each other but vm in different compute nodes can't. Why there is no link between ovs (Compute nodes and gateway node) ?


Thank you




Hyunsun Moon

unread,
Jul 19, 2016, 4:15:19 PM7/19/16
to Carine Kanouo, ONOS Discuss
Hi Carine,

Could you check “openstack-nodes” in ONOS to see all compute node is in complete state.
Don’t care about the gateway nodes now.
If so, could you paste the flow rules from one of your compute node?

$ sudo ovs-ofctl -O OpenFlow13 dump-flows br-int

Hyunsun

Carine Kanouo

unread,
Jul 20, 2016, 3:50:06 AM7/20/16
to ONOS Discuss
Hi Hyunsun,

I've checked openstack-nodes and they are all in complete state. I want to know if dataIp in network-cfg.json must belong to a specific network address. i put a 10.11.12.0/24 with doesn't represent any interface in compute nodes. should i create veth interfaces and address them in this network and put address of these veth interfaces in network-cfg.json?

here are results of sudo ovs-ofctl -O OpenFlow13 dump-flows br-int in my computes nodes

 
stack@compute-01:~$ sudo ovs-ofctl -O OpenFlow13 dump-flows br-int
OFPST_FLOW reply (OF1.3) (xid=0x2):
 cookie=0x100006cd4dc18, duration=464.521s, table=0, n_packets=2, n_bytes=84, send_flow_rem priority=40000,arp actions=CONTROLLER:65535
 cookie=0x100009b2081a6, duration=464.521s, table=0, n_packets=2, n_bytes=682, send_flow_rem priority=40000,udp,tp_src=68,tp_dst=67 actions=CONTROLLER:65535
 cookie=0x8000050ceb886, duration=462.431s, table=0, n_packets=15, n_bytes=1418, send_flow_rem priority=30000,ip,in_port=2 actions=set_field:0x441->tun_id,goto_table:1
 cookie=0x5e00008bf506ec, duration=464.521s, table=0, n_packets=6, n_bytes=468, send_flow_rem priority=0 actions=goto_table:1
 cookie=0x8000032c11abf, duration=462.431s, table=1, n_packets=0, n_bytes=0, send_flow_rem priority=30000,ip,tun_id=0x441,nw_dst=10.8.0.4 actions=write_actions(output:2),goto_table:2
 cookie=0x80000effd7d7b, duration=454.865s, table=1, n_packets=0, n_bytes=0, send_flow_rem priority=30000,ip,tun_id=0x441,nw_dst=10.8.0.3 actions=write_actions(set_field:10.11.12.2->tun_dst,output:1),goto_table:2
 cookie=0x800000a49011e, duration=451.181s, table=1, n_packets=0, n_bytes=0, send_flow_rem priority=30000,ip,tun_id=0x441,nw_dst=10.8.0.5 actions=write_actions(set_field:10.11.12.2->tun_dst,output:1),goto_table:2
 cookie=0x5e00005e1912a6, duration=464.521s, table=1, n_packets=21, n_bytes=1886, send_flow_rem priority=0 actions=drop
 cookie=0x8000046153c71, duration=444.856s, table=2, n_packets=0, n_bytes=0, send_flow_rem priority=30000,ip,nw_src=10.8.0.4 actions=drop
 cookie=0x80000de0282e7, duration=444.855s, table=2, n_packets=0, n_bytes=0, send_flow_rem priority=30000,ip,nw_src=10.8.0.3,nw_dst=10.8.0.4 actions=drop
 cookie=0x80000899d1cb2, duration=444.855s, table=2, n_packets=0, n_bytes=0, send_flow_rem priority=30000,ip,nw_src=10.8.0.5,nw_dst=10.8.0.4 actions=drop
 cookie=0x5e0000f3ff4ee3, duration=3.523s, table=2, n_packets=0, n_bytes=0, send_flow_rem priority=0 actions=clear_actions


stack@compute-02:~$ sudo ovs-ofctl -O OpenFlow13 dump-flows br-int
OFPST_FLOW reply (OF1.3) (xid=0x2):
 cookie=0x1000061aa8d19, duration=604.324s, table=0, n_packets=4, n_bytes=1364, send_flow_rem priority=40000,udp,tp_src=68,tp_dst=67 actions=CONTROLLER:65535
 cookie=0x5e0000bf16f712, duration=604.328s, table=0, n_packets=12, n_bytes=936, send_flow_rem priority=0 actions=goto_table:1
 cookie=0x800006c4aa44a, duration=601.111s, table=0, n_packets=47, n_bytes=4554, send_flow_rem priority=30000,ip,in_port=2 actions=set_field:0x441->tun_id,goto_table:1
 cookie=0x8000057481618, duration=597.474s, table=0, n_packets=22, n_bytes=2104, send_flow_rem priority=30000,ip,in_port=3 actions=set_field:0x441->tun_id,goto_table:1
 cookie=0x1000089729fee, duration=604.324s, table=0, n_packets=8, n_bytes=336, send_flow_rem priority=40000,arp actions=CONTROLLER:65535
 cookie=0x5e0000b61d576e, duration=604.327s, table=1, n_packets=42, n_bytes=3772, send_flow_rem priority=0 actions=drop
 cookie=0x8000088387e8b, duration=601.111s, table=1, n_packets=7, n_bytes=686, send_flow_rem priority=30000,ip,tun_id=0x441,nw_dst=10.8.0.3 actions=write_actions(output:2),goto_table:2
 cookie=0x80000946acefa, duration=597.463s, table=1, n_packets=25, n_bytes=2450, send_flow_rem priority=30000,ip,tun_id=0x441,nw_dst=10.8.0.4 actions=write_actions(set_field:10.11.12.1->tun_dst,output:1),goto_table:2
 cookie=0x800005b2facbe, duration=597.473s, table=1, n_packets=7, n_bytes=686, send_flow_rem priority=30000,ip,tun_id=0x441,nw_dst=10.8.0.5 actions=write_actions(output:3),goto_table:2
 cookie=0x5e00004913d62e, duration=2.176s, table=2, n_packets=0, n_bytes=0, send_flow_rem priority=0 actions=clear_actions
 cookie=0x80000ab7e7d9f, duration=591.241s, table=2, n_packets=0, n_bytes=0, send_flow_rem priority=30000,ip,nw_src=10.8.0.5 actions=drop
 cookie=0x80000c91205a0, duration=591.245s, table=2, n_packets=0, n_bytes=0, send_flow_rem priority=30000,ip,nw_src=10.8.0.3 actions=drop
 cookie=0x800009e9655ac, duration=591.220s, table=2, n_packets=0, n_bytes=0, send_flow_rem priority=30000,ip,nw_src=10.8.0.4,nw_dst=10.8.0.5 actions=drop
 cookie=0x8000047dbefbb, duration=591.248s, table=2, n_packets=0, n_bytes=0, send_flow_rem priority=30000,ip,nw_src=10.8.0.4,nw_dst=10.8.0.3 actions=drop
 cookie=0x800003e8688ec, duration=591.220s, table=2, n_packets=0, n_bytes=0, send_flow_rem priority=30000,ip,nw_src=10.8.0.3,nw_dst=10.8.0.5 actions=drop
 cookie=0x80000e432eee5, duration=591.220s, table=2, n_packets=0, n_bytes=0, send_flow_rem priority=30000,ip,nw_src=10.8.0.5,nw_dst=10.8.0.3 actions=drop


Thank you

Carine

Hyunsun Moon

unread,
Jul 20, 2016, 4:39:25 AM7/20/16
to Carine Kanouo, ONOS Discuss
Hi Carine,

You should be able to ping from one compute node to the other compute node with the “dataIp".
It is used to create vxlan tunnels between compute nodes, which is to carry data traffic to a VM running in a remote compute host.
So please pick data network interface IP address in your environment.
If you don’t have enough network in your environment, you can share the “managementIp" just for test.

Flow rules all look good.
I think it will work once you fix the dataIp.

Hyunsun


--
You received this message because you are subscribed to the Google Groups "ONOS Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to onos-discuss...@onosproject.org.
To post to this group, send email to onos-d...@onosproject.org.
Visit this group at https://groups.google.com/a/onosproject.org/group/onos-discuss/.

Carine Kanouo

unread,
Jul 20, 2016, 7:12:11 AM7/20/16
to ONOS Discuss, carine...@gmail.com
Thank you so much Hyunsun,

Every think works fine!

Carine

Carine Kanouo

unread,
Jul 20, 2016, 7:39:22 AM7/20/16
to ONOS Discuss, carine...@gmail.com
Hi Hyunsun,

Wich guide do i follow to test service fonction chaining? if it CORD VTN, i saw thaht it's not included in onos source anymore...

Carine

Hyunsun Moon

unread,
Jul 20, 2016, 12:31:41 PM7/20/16
to Carine Kanouo, ONOS Discuss
Hi Carine,
SONA implements the basic functionalities of Neutron ML2 and L3 service plugins with ONOS, which does not include service function chaining extension.
And CORD-VTN is part of opencord project(opencord.org), and moved its repository to opencord.
If you want to try CORD, https://wiki.opencord.org/display/CORD/Build+a+CORD+POD this guide would help.

Hyunsun


--
You received this message because you are subscribed to the Google Groups "ONOS Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to onos-discuss...@onosproject.org.
To post to this group, send email to onos-d...@onosproject.org.
Visit this group at https://groups.google.com/a/onosproject.org/group/onos-discuss/.

Silvia Fichera

unread,
Jul 20, 2016, 4:41:03 PM7/20/16
to Hyunsun Moon, Carine Kanouo, ONOS Discuss
Hi Hyunsun,
maybe I solved some past problems. Now I can see the 2 compure nodes and the gtw, but i cannot see the openstack controller.
Moreover, when I try to launch an instance in openstack there is this error:
 No valid host was found. There are not enough hosts available.

In the availability zone there are both compute nodes. And I noticed that the controller openstack has no OVS and bridges. Is it right? I don't think so because it should communicate also with the two nodes. 

Any suggestion?
Thanks

Silvia

Hyunsun Moon

unread,
Jul 20, 2016, 5:24:43 PM7/20/16
to Silvia Fichera, Carine Kanouo, ONOS Discuss
Hi Silvia,

What do you mean by “you cannot see the OpenStack controller”?
"No valid host error" is nothing to do with SONA, which means nova-scheduler fails to find a compute node for a requested VM.
Check “nova service-list” in the openstack controller if the nova-compute services on the compute nodes are all up and enabled.
If so, check if the compute nodes have enough compute resources, mostly RAM and CPU.

OVS and the bridges are required for the compute node, which is defined by the machine runs “nova-compute” service.
So, if your OpenStack controller node is not running “nova-compute” service, OVS and bridge are not required on that machine.

Hyunsun

Carine Kanouo

unread,
Jul 21, 2016, 7:50:33 AM7/21/16
to ONOS Discuss, carine...@gmail.com
Hi Hyunsun,

I'm working on a virtual server (16 GB Ram) where i've installed virtualbox and it's on virtualbox where i've set SONA plateform. I read server requirements for cord and i think i cannot try it.

i found this link. can use it?
https://github.com/openstack/networking-onos/blob/master/doc/source/devref/sfc_driver.rst

beside i also read this:

Phaneendra manda

Hi Rohit,

 

This will not work because ONOS 1.5 is released in Feb 16 and The new NSH patch is released in April 16.

 

The ONOS 1.5 is not updated with new NSH patch.

 

For SFC to work, you need to make L2 forwarding work with ONOS as ML2 plugin in Openstack. Once the L2 forwarding works fine, then need to install SFC.

 

Currently we are succeeded in testing SFC by adding the required extensions to ONOS as per the new OVS patch.

 

I am waiting for Loxi changes to come into master for merging the code in ONOS. 

 

I can share you the steps to create the env.

 

Thanks,

Phaneendra.

 


Carine

Silvia Fichera

unread,
Jul 21, 2016, 9:40:51 AM7/21/16
to Lee, Sangho, Alexandr Limonov, ONOS Discuss, Sangho Shin, 박민철, Hyunsun Moon
Hi all,
I found the error in the openstack logs and it is the firt one that Sangho itemize in the troubleshooting guide (https://wiki.onosproject.org/display/ONOS/Trouble+Shooting).

I have followed his suggestion installing apparmor-utils and runnig the command 
sudo aa-complain /etc/apparmor.d/*
but this is the output:

sudo aa-complain /etc/apparmor.d/*
Profile for /etc/apparmor.d/abstractions not found, skipping
Profile for /etc/apparmor.d/cache not found, skipping
Profile for /etc/apparmor.d/disable not found, skipping
Profile for /etc/apparmor.d/force-complain not found, skipping
Profile for /etc/apparmor.d/libvirt not found, skipping
Profile for /etc/apparmor.d/local not found, skipping
Profile for /etc/apparmor.d/lxc not found, skipping
Setting /etc/apparmor.d/lxc-containers to complain mode.

ERROR: /etc/apparmor.d/lxc-containers contains no profile


the folder marked as not found exist...
Any suggestion?
Thanks

2016-06-29 13:33 GMT+02:00 Lee, Sangho <sangh...@atto-research.com>:
Silvia,

Please, check the ONOS ML2 plugin installation on OpenStack Controller Node again.

"Set up Control Node's Step 4 ~ 6"

-----

# Install onos ml2 plugin on OpenStack Controller Node

cd ~/
cd networking-onos
sudo python setup.py install

cat > ~/networking-onos/etc/conf_onos.ini <<EOF
#Configuration options for ONOS driver

[onos]
# (StrOpt) ONOS ReST interface URL. This is a mandatory field.
url_path = http://$onos_ip:8181/onos/openstackswitching

# (StrOpt) Username for authentication. This is a mandatory field.
username = onos

# (StrOpt) Password for authentication. This is a mandatory field.
password = rocks
EOF

-----

After then... please try to "./stack.sh" on OpenStack Controller Node.

Please, let us know the controller node's "~/networking-onos/etc/conf_onos.ini" file and the result for "./stack.sh" on Controller Node.

And.. I use OpenStack Liberty version and devstack for Liberty stable version.

# git clone -b stable/liberty git://github.com/openstack-dev/devstack.git

If you have same problems,
we recommend that you try OpenStack Liberty version. :)

Hope this will help you,
Thank you,

- Sangho Lee -


On Wed, Jun 29, 2016 at 5:50 PM, Silvia Fichera <fiche...@gmail.com> wrote:
Hi Alexandr,
thank you for your answer.
I've checked the path and it is correct. I also tried to move the folder to another path, and it still does not work.

Any other hint?

Thanks
Silvia

2016-06-28 18:57 GMT+02:00 Alexandr Limonov <alexander.lim...@gmail.com>:
Hi Silvia  ! 
I had such issue, when define wrong link to conf_onos.ini
so neutron service could not get started because of lack of configuration parameters(which are (seems like) get required because of networkig_onos plugin installation ).

Please try to check whether it's location corresponds to path you define in local.conf 

On Tue, Jun 28, 2016 at 6:49 PM, Silvia Fichera <fiche...@gmail.com> wrote:
Hi Sangho,
I'm facing an error while I run ./stack.sh in the controller node. The neutron service fails to start.
I've checked q-svc.log and, after few errors, I noticed:

KeyError: 'onos_ml2'
^[[01;31m2016-06-28 17:29:24.139 TRACE oslo.service.wsgi ^[[01;35m^[[00m
2016-06-28 17:29:24.141 ^[[01;31mERROR neutron.service [^[[00;36m-^[[01;31m] ^[[01;35m^[[01;31mUnrecoverable error: please check log for details.^[[00m
^[[01;31m2016-06-28 17:29:24.141 TRACE neutron.service ^[[01;35m^[[00mTraceback (most recent call last):
^[[01;31m2016-06-28 17:29:24.141 TRACE neutron.service ^[[01;35m^[[00m  File "/opt/stack/neutron/neutron/service.py", line 84, in serve_wsgi
^[[01;31m2016-06-28 17:29:24.141 TRACE neutron.service ^[[01;35m^[[00m    service.start()
^[[01;31m2016-06-28 17:29:24.141 TRACE neutron.service ^[[01;35m^[[00m  File "/opt/stack/neutron/neutron/service.py", line 60, in start
^[[01;31m2016-06-28 17:29:24.141 TRACE neutron.service ^[[01;35m^[[00m    self.wsgi_app = _run_wsgi(self.app_name)
^[[01;31m2016-06-28 17:29:24.141 TRACE neutron.service ^[[01;35m^[[00m  File "/opt/stack/neutron/neutron/service.py", line 285, in _run_wsgi
^[[01;31m2016-06-28 17:29:24.141 TRACE neutron.service ^[[01;35m^[[00m    app = config.load_paste_app(app_name)
^[[01;31m2016-06-28 17:29:24.141 TRACE neutron.service ^[[01;35m^[[00m  File "/opt/stack/neutron/neutron/common/config.py", line 284, in load_paste_app
^[[01;31m2016-06-28 17:29:24.141 TRACE neutron.service ^[[01;35m^[[00m    app = loader.load_app(app_name)



^[[01;31m2016-06-28 17:29:24.141 TRACE neutron ^[[01;35m^[[00m  File "/opt/stack/neutron/neutron/service.py", line 60, in start
^[[01;31m2016-06-28 17:29:24.141 TRACE neutron ^[[01;35m^[[00m    self.wsgi_app = _run_wsgi(self.app_name)
^[[01;31m2016-06-28 17:29:24.141 TRACE neutron ^[[01;35m^[[00m  File "/opt/stack/neutron/neutron/service.py", line 285, in _run_wsgi
^[[01;31m2016-06-28 17:29:24.141 TRACE neutron ^[[01;35m^[[00m    app = config.load_paste_app(app_name)
^[[01;31m2016-06-28 17:29:24.141 TRACE neutron ^[[01;35m^[[00m  File "/opt/stack/neutron/neutron/common/config.py", line 284, in load_paste_app
^[[01;31m2016-06-28 17:29:24.141 TRACE neutron ^[[01;35m^[[00m    app = loader.load_app(app_name)
^[[01;31m2016-06-28 17:29:24.141 TRACE neutron ^[[01;35m^[[00m  File "/usr/local/lib/python2.7/dist-packages/oslo_service/wsgi.py", line 356, in load_app
^[[01;31m2016-06-28 17:29:24.141 TRACE neutron ^[[01;35m^[[00m    raise PasteAppNotFound(name=name, path=self.config_path)
^[[01;31m2016-06-28 17:29:24.141 TRACE neutron ^[[01;35m^[[00mPasteAppNotFound: Could not load paste app 'neutron' from /etc/neutron/api-paste.ini


Should ONOS be already running when I install OpenStack?
I was exactly following your guide (thanks for the previous answers to the other guy, I will pay attention on that).
Thanks

Silvia

2016-06-28 13:02 GMT+02:00 Lee, Sangho <sangh...@atto-research.com>:
"
I checked one more thing : when I got  ERROR neutron.plugins.ml2.managers [req-e4474ba8-1ce9-4d0b-bbed-57f7087d25f8 admin 376db8bf80ca44d4a9208b5ab4952724] Mechanism driver 'onos_ml2' failed in create_network_postcommit there was no requests from OS controller Node to ONOS. It looks like a neutron problem. I reinstalled onos-networking plugin, but it did not help.
"

You mean that neutron doesn't send any message to ONOS instance?
It's important point. Would you check it again to install openstack with ONOS plugin like below guide - https://wiki.onosproject.org/display/ONOS/How+to+set+up+environment

I hope you will try use Multiple-VMs for Openstack Controller Node and Compute Nodes.

Please, check the local.conf file about ONOS plugin 

"
Q_ML2_PLUGIN_MECHANISM_DRIVERS=onos_ml2
Q_PLUGIN_EXTRA_CONF_PATH=~/networking-onos/etc
Q_PLUGIN_EXTRA_CONF_FILES=(conf_onos.ini)
ML2_L3_PLUGIN=networking_onos.plugins.l3.driver.ONOSL3Plugin
"

Please, check configuring the onos ml2 plugin by editing the conf_onos.ini file in networking-onos/etc folder, which is just created

#Configuration options for ONOS driver
 
[onos]
# (StrOpt) ONOS ReST interface URL. This is a mandatory field.
 
# (StrOpt) Username for authentication. This is a mandatory field.
username = onos
 
# (StrOpt) Password for authentication. This is a mandatory field.
password = rocks

-----

When we create a VM on openstack,
we can check the ONOS plugin call at openstack netron log (q-svc.log)

----

vagrant@control:/opt/stack/logs$ cat q-svc.log | grep ONOS
2016-06-21 04:53:46.074 DEBUG neutron.manager [-] Loading service plugins: ['networking_onos.plugins.l3.driver.ONOSL3Plugin'] from (pid=9392) _load_service_plugins /opt/stack/neutron/neutron/manager.py:191
2016-06-21 04:53:46.074 INFO neutron.manager [-] Loading Plugin: networking_onos.plugins.l3.driver.ONOSL3Plugin
2016-06-21 04:53:46.115 DEBUG neutron.manager [-] Successfully loaded L3_ROUTER_NAT plugin. Description: L3 Router Service Plug-in for basic L3 forwarding using ONOS from (pid=9392) _load_service_plugins /opt/stack/neutron/neutron/manager.py:219
.....


2016-06-28 10:53:40.601 DEBUG networking_onos.plugins.ml2.driver [req-bf66308a-5063-4b66-b9fd-0814b6c678eb admin 17763065bd46424e8605970e0178ff14] networking_onos.plugins.ml2.driver.ONOSMechanismDriver method create_network_postcommit called with arguments (<neutron.plugins.ml2.driver_context.NetworkContext object at 0x7efe4951c350>,) {} from (pid=9406) wrapper /usr/local/lib/python2.7/dist-packages/oslo_log/helpers.py:45
2016-06-28 10:53:40.601 DEBUG networking_onos.common.utils [req-bf66308a-5063-4b66-b9fd-0814b6c678eb admin 17763065bd46424e8605970e0178ff14] Sending MSG_TYPE (post) URL (http://192.168.10.2:8181/onos/openstackswitching/networks) OBJECT ({'network': {'status': 'ACTIVE', 'subnets': [], 'name': u'private', 'provider:physical_network': None, 'admin_state_up': True, 'tenant_id': u'17763065bd46424
e8605970e0178ff14', 'mtu': 1450, 'router:external': False, 'shared': False, 'vlan_transparent': None, 'port_security_enabled': True, 'provider:network_type': u'vxlan', 'id': '097ec7db-b46b-47b4-8cf
4-9b6a638c97fd', 'provider:segmentation_id': 1043}}) BODY ({
  "network": {
    "status": "ACTIVE",
    "subnets": [],
    "name": "private",
    "provider:physical_network": null,
    "admin_state_up": true,
    "tenant_id": "17763065bd46424e8605970e0178ff14",
    "mtu": 1450,
    "router:external": false,
    "shared": false,
    "vlan_transparent": null,
    "port_security_enabled": true,
    "provider:network_type": "vxlan",
    "id": "097ec7db-b46b-47b4-8cf4-9b6a638c97fd",
    "provider:segmentation_id": 1043
  }
}) from (pid=9406) send_msg /usr/local/lib/python2.7/dist-packages/networking_onos/common/utils.py:33

-----

Neutron problem is very difficult. :(

Hope this will help you
Thank you,

- Sangho Lee -

On Tue, Jun 28, 2016 at 6:46 PM, Alexandr Limonov <alexander.lim...@gmail.com> wrote:
Hello again ;)
I made two RESTs (because if i try to put all this configuration into one request server return me an  bad request error (code 400)): 

1){
    "userDefined" : {
      "openstacknetworking" : {
        "config" : {
          "nodes" : [
          {
            "dataPlaneIp" : "192.168.1.111",
            "bridgeId" : "of:0000000000000001"
          }
        ]
      }
    }
      }
 } 

2)  {
    "apps" : {
        
        "org.onosproject.openstacknode" : {
            "openstacknode" : {
                "nodes" : [
                            {
                                    "hostname" : "host1",
                                    "ovsdbIp" : "192.168.1.111",
                                    "ovsdbPort" : "6640",
                                    "bridgeId" : "of:0000000000000001",
                                    "openstackNodeType" : "COMPUTENODE"
                            }
                ]
            }
        },
        "org.onosproject.openstackinterface" : {
            "openstackinterface" : {
                 "neutron_server" : "http://192.168.1.111:9696/v2.0/",
                 "keystone_server" : "http://192.168.1.111:5000/v2.0/",
                 "user_name" : "admin",
                 "password" : "admin"
             }
         }
    },
    "devices" : {
        "of:0000000000000001" : {
            "basic" : {
                "driver" : "sona"
            }
        
        }
    }
}


I still have the same output   ERROR neutron.plugins.ml2.managers [req-e4474ba8-1ce9-4d0b-bbed-57f7087d25f8 admin 376db8bf80ca44d4a9208b5ab4952724]

I checked one more thing : when I got  ERROR neutron.plugins.ml2.managers [req-e4474ba8-1ce9-4d0b-bbed-57f7087d25f8 admin 376db8bf80ca44d4a9208b5ab4952724] Mechanism driver 'onos_ml2' failed in create_network_postcommit there was no requests from OS controller Node to ONOS. It looks like a neutron problem. I reinstalled onos-networking plugin, but it did not help.







On Tue, Jun 28, 2016 at 11:46 AM, Alexandr Limonov <alexander.lim...@gmail.com> wrote:
Hi Sangho !
I use version 1.6
Should I use openstack.bootstrap app first in order to provision bridges for ovs   or  network-config you mentioned above will do this as well ?

On Tue, Jun 28, 2016 at 3:36 AM, Lee, Sangho <sangh...@atto-research.com> wrote:
Now, you use only a compute node.. maybe, you can try the below configuration information...
After ONOS falcon version, we provide the external traffic like internet connection from virtual machines by using a gateway node.

And, you need to check the neutronServer/keystoneServer's URL again. :)

-----

{
    "userDefined" : {
      "openstacknetworking" : {
        "config" : {
          "nodes" : [
          {
            "dataPlaneIp" : "192.168.1.111",      # Openstack compute node IP
            "bridgeId" : "of:0000000000000001"
          }
        ]
      }
    }
      },
    "apps" : {
        "org.onosproject.openstackinterface" : {
            "openstackinterface" : {
                 "neutronServer" : "http://192.168.1.111:9696/v2.0/", # Openstack Control IP
                 "keystoneServer" : "http://192.168.1.111:5000/v2.0/",  # Openstack Control IP
                 "userName" : "admin",
                 "password" : "nova"
            }
        }
    },
    "devices" : {
        "of:0000000000000001" : {
            "basic" : {
                "driver" : "sona"
            }
        }
    }
}

-----

Hope this will help you,
Thank you,

- Sangho Lee - 

On Tue, Jun 28, 2016 at 9:22 AM, Lee, Sangho <sangh...@atto-research.com> wrote:
Hi Alexandr,

Which ONOS version do you use now?

The format of configuration was changed. The tutorial document is not updated yet. We are sorry about that.

This is a sample network-cfg.json file for my ONOS 1.7.0-SNAPSHOT version.
If you use goldeneye or hummingbird (snapshot), please follow the below configuration format.

You can also see an sample configration files form ONOS source code.
 - ONOS_ROOT/apps/openstacknetworking/network-cfg.json 

I use 2 compute nodes and 1 gateway node.

 - compute node-1 : 192.168.10.11
 - compute node-2 : 192.168.10.12
 - gateway node-1 : 192.168.10.21

———

{
    "userDefined" : {
      "openstacknetworking" : {
        "config" : {
          "physicalRouterMac" : "92:b0:fc:e7:2a:d6",
          "gatewayBridgeId" : "of:0000000000000021",
          "gatewayExternalInterfaceName" : "veth0",
          "gatewayExternalInterfaceMac" : "00:00:00:00:00:21",
          "nodes" : [
          {
            "dataPlaneIp" : "192.168.10.11",
            "bridgeId" : "of:0000000000000011"
          },
          {
            "dataPlaneIp" : "192.168.10.12",
            "bridgeId" : "of:0000000000000012"
          },
          {
            "dataPlaneIp" : "192.168.10.21",
            "bridgeId" : "of:0000000000000021"
          }
        ]
      }
    }
      },
    "apps" : {
        "org.onosproject.openstackinterface" : {
            "openstackinterface" : {
                 "neutronServer" : "http://192.168.10.10:9696/v2.0/",
                 "keystoneServer" : "http://192.168.10.10:5000/v2.0/",
                 "userName" : "admin",
                 "password" : "nova"
            }
        }
    },
    "devices" : {
        "of:0000000000000011" : {
            "basic" : {
                "driver" : "sona"
            }
        },
        "of:0000000000000012" : {
            "basic" : {
                "driver" : "sona"
            }
        },
        "of:0000000000000021" : {
            "basic" : {
                "driver" : "ovs"
            }
        }
    }
}

——

If you have other questions, please let us know!

Hope this will help you,
Thank you,

- Sangho Lee -

On Tue, Jun 28, 2016 at 1:10 AM, Alexandr Limonov <alexander.lim...@gmail.com> wrote:
Hi everybody !

May I ask a question concerning SONA deployment as well ?
From my point I follow the manual , but probably I missing or misunderstand something.
In my deployment I have to nodes : openstack VM (Controller+compute 192.168.1.111) and ONOS VM (192.168.1.125)

step 1 : installing OpenVswitch and setting manager tcp:6640 
step 2: download and install networking-onos package 
    here i populated conf_onos.ini with 
     - user :onos
     - password : rocks 

step 3 : deploying devstack. I took template from wiki as an example, but set n-cpu key to enable (because i have single node deployment). Also I made all pasword as "admin" 

step4: downloaded onos source , bult(mvn clean install ), and started (ok clean)on build machine, and get onos prompt 

step:5 installed OVSD and Openstack applications. Finally I do have  such list of installed applications :
           onos> apps -s -a 
*  12 org.onosproject.dhcp                 1.6.0.SNAPSHOT DHCP App
*  13 org.onosproject.openstackswitching   1.6.0.SNAPSHOT SONA Openstack Networking Application
*  18 org.onosproject.lldpprovider         1.6.0.SNAPSHOT LLDP Link Provider
*  19 org.onosproject.mobility             1.6.0.SNAPSHOT Host Mobility App
*  22 org.onosproject.openflow-base        1.6.0.SNAPSHOT OpenFlow Provider
*  23 org.onosproject.hostprovider         1.6.0.SNAPSHOT Host Location Provider
*  24 org.onosproject.openflow             1.6.0.SNAPSHOT OpenFlow Meta App
*  28 org.onosproject.ovsdb-base           1.6.0.SNAPSHOT OVSDB Provider
*  29 org.onosproject.ovsdbhostprovider    1.6.0.SNAPSHOT ONOS information providers and control/management protocol adapter
*  30 org.onosproject.ovsdb                1.6.0.SNAPSHOT OVSDB Southbound Meta App
*  47 org.onosproject.openstacknode        1.6.0.SNAPSHOT OpenStack Node Bootstrap App
*  49 org.onosproject.openstackrouting     1.6.0.SNAPSHOT SONA Openstack Networking Application
*  53 org.onosproject.drivers.ovsdb        1.6.0.SNAPSHOT OVSDB Device Drivers
*  61 org.onosproject.drivers              1.6.0.SNAPSHOT Default Device Drivers
*  74 org.onosproject.fwd                  1.6.0.SNAPSHOT Reactive Forwarding App
*  77 org.onosproject.openstacknetworking  1.6.0.SNAPSHOT OpenStack Networking App
*  79 org.onosproject.openstackinterface   1.6.0.SNAPSHOT OpenStack Interface App
*  85 org.onosproject.proxyarp             1.6.0.SNAPSHOT Proxy ARP/NDP App

step6: sending netwok-config to ONOS api (192.168.1.125/network/configuration) using rest client

        {
  "apps": {
    "org.onosproject.openstacknode": {
      "openstacknode": {
        "nodes": [
          {
            "hostname": "compute-01",
            "ovsdbIp": "192.168.1.111",
            "ovsdbPort": "6640",
            "bridgeId": "of:0000000000000001",
            "openstackNodeType": "COMPUTENODE"
          }
        ]
      }
    },
    
    "org.onosproject.openstackinterface": {
      "openstackinterface": {
        "neutron_server": "http://192.168.1.125:9696/v2.0/",
        "keystone_server": "http://192.168.1.125:5000/v2.0/",
        "user_name": "admin",
        "password": "admin"
      }
    }
  },
  "ports": {},
  "hosts": {},
  "userDefined": {},
  "devices": {
    "of:0000000000000001": {
      "basic": {
        "driver": "sona"
      }
    }
  },
  "links": {}
}
    
7. After all I try to create.
But neutron raise an error  

2016-06-27 12:00:16.885 ERROR neutron.plugins.ml2.managers [req-e4474ba8-1ce9-4d0b-bbed-57f7087d25f8 admin 376db8bf80ca44d4a9208b5ab4952724] Mechanism driver 'onos_ml2' failed in create_network_postcommit

Did i do something wrong ? ))


On Mon, Jun 27, 2016 at 2:53 PM, Lee, Sangho <sangh...@atto-research.com> wrote:
Hi Silvia,

Please, see below...

On Mon, Jun 27, 2016 at 7:44 PM, Silvia Fichera <fiche...@gmail.com> wrote:
Hi Sangho,
thank you for your answer, I'm following your suggestion and using 2 network interfaces.
The network interface related to the NAT mode has the same ip address for all the VMs assigned by the DHCP. Should I assign it manually in order to have different IP for each VM?

If you use 2 network interfaces, 
you don't need to assign different IP for NAT mode interface (1st).
The NAT mode interface is just for internet connection.

You need to have different IP for "Host Only mode interface (2nd)" of each VM.
We recommend to assign the IP manually in order to have different IP for each VM.

Hope this will help you.
Thank you,

- Sangho Lee - 
 

Thanks,
best regards.

Silvia

2016-06-27 1:53 GMT+02:00 Lee, Sangho <sangh...@atto-research.com>:
Hi Silvia,

Yes, you are right! 

You can use VMs for following this guide - 

If you use VMs, you can have two options for network interfaces.
option.1) use 1 network interface : bridged mode  (for internet and nodes)
option.2) use 2 network interface : 1th NAT mode for internet, 2nd Host Only for nodes
- I use option.2. ;)

We recommend Ubuntu server as OS to develop and test SONA. 

If you are first time about ONOS, we recommend that you prepare the ONOS vm and become familiar with ONOS firstly. :)

Thank you for your interest!

- Sangho Lee - 

On Fri, Jun 24, 2016 at 7:41 PM, Silvia Fichera <fiche...@gmail.com> wrote:
Hi all,
I wanto to set up a SONA environment and I'm trying to follow your guide.
I think that the "easy" way to do it is using VMs.
You detailed the amount of RAM and CPU needed but there is no information about how many interfaces are needed (toward internet and between nodes).
I thought to use Ubuntu server as OS unless you have any suggestion.
Is it better firstly prepare the ONOS vm?

Thanks for your help

--
Silvia Fichera

--
You received this message because you are subscribed to the Google Groups "ONOS Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to onos-discuss...@onosproject.org.
To post to this group, send email to onos-d...@onosproject.org.
Visit this group at https://groups.google.com/a/onosproject.org/group/onos-discuss/.

--
You received this message because you are subscribed to the Google Groups "ONOS Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to onos-discuss...@onosproject.org.
To post to this group, send email to onos-d...@onosproject.org.
Visit this group at https://groups.google.com/a/onosproject.org/group/onos-discuss/.



--
The best from the best regards
Alexandr Limonov





--
The best from the best regards
Alexandr Limonov



--
The best from the best regards
Alexandr Limonov




--
Silvia Fichera



--
The best from the best regards
Alexandr Limonov



--
Silvia Fichera




--
Silvia Fichera

Hyunsun Moon

unread,
Jul 21, 2016, 1:51:52 PM7/21/16
to Carine Kanouo, ONOS Discuss
Hi Carine,
Of course you can try another implementation of VTN.
It provides SFC via Neutron SFC extension.

Hyunsun


--
You received this message because you are subscribed to the Google Groups "ONOS Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to onos-discuss...@onosproject.org.
To post to this group, send email to onos-d...@onosproject.org.
Visit this group at https://groups.google.com/a/onosproject.org/group/onos-discuss/.

Hyunsun Moon

unread,
Jul 22, 2016, 6:08:29 PM7/22/16
to Silvia Fichera, Lee, Sangho, Alexandr Limonov, ONOS Discuss, Sangho Shin, 박민철
Hi Silvia,

Sorry but we might not be a big help regarding the general OpenStack issues.
Anyway, I’m not familiar with appamor but after some googling, “sudo aa-complain /etc/appamor.d/*” command places all the profiles to complain mode.
But see the below, which is the appamor status in my running compute node.
No profiles are in complain mode.

$ sudo apparmor_status
apparmor module is loaded.
9 profiles are loaded.
9 profiles are in enforce mode.
   /sbin/dhclient
   /usr/lib/NetworkManager/nm-dhcp-client.action
   /usr/lib/connman/scripts/dhclient-script
   /usr/lib/libvirt/virt-aa-helper
   /usr/sbin/libvirtd
   /usr/sbin/mysqld
   /usr/sbin/tcpdump
   docker-default
   libvirt-677fb112-3fc8-437d-b7cd-11685c48c8db
0 profiles are in complain mode.
3 processes have profiles defined.
3 processes are in enforce mode.
   /usr/sbin/libvirtd (899)
   /usr/sbin/mysqld (4528)
   libvirt-677fb112-3fc8-437d-b7cd-11685c48c8db (1178)
0 processes are in complain mode.
0 processes are unconfined but have a profile defined.


I believe OpenStack guys can give you better answer but looks like the libvirtd does not have enough permission to configure openvswitch if you have exactly the same error in the wiki page you pointed. You can check multiple things like libvird is running with root user, /var/log/libvirt/libvirtd.log, and also check “cgroup_device_acl” from /etc/libvirt/qemu.conf has “dev/net/tun”.

But the thing is that DevStack is supposed to take care of all the system settings.
Sounds like your system is a little messed up.
I would re-create all the OpenStack VMs and try clean install.
DevStack is the easiest way to try OpenStack as far as I know.

Make sure if you use OpenStack “Liberty", you should check out “Liberty” version for DevStack. 
There is DevStack sample local.conf for the controller node and compute node for “stable/mitaka” version in the wiki.
You may want to try them if you don’t have any preference.

Hyunsun

Alexandr Limonov

unread,
Aug 9, 2016, 5:46:13 AM8/9/16
to ONOS Discuss, alexander.lim...@gmail.com, san...@onlab.us, dan.mc...@gmail.com, hyunsu...@gmail.com, fiche...@gmail.com
Hello Sangho !

Sorry for keeping silence for such a long time.

I tried to follow updated manual  and could  deploy VMs over openstack with onos.

Currently I have just one compute node, where are have two virtual machines.

[root@host2 devstack]# nova list 
+--------------------------------------+-------+--------+------------+-------------+---------------+
| ID                                   | Name  | Status | Task State | Power State | Networks      |
+--------------------------------------+-------+--------+------------+-------------+---------------+
| 9160d7b0-be63-4415-a81f-81e01842062e | test  | ACTIVE | -          | Running     | test=10.0.0.2 |
| 2f22c596-faa2-48d5-ab2c-7dbacc7a2501 | test2 | ACTIVE | -          | Running     | test=10.0.0.3 |
+--------------------------------------+-------+--------+------------+-------------+---------------+

Configuration  of ovs is also looks very promising 

[root@host2 ~]# ovs-vsctl show 
62d62bc3-0dfe-4314-88fe-183fdfe80fb4
    Bridge br-int
        Controller "tcp:192.168.1.125:6653"
            is_connected: true
        fail_mode: secure
        Port "tapfc48a330-3d"
            Interface "tapfc48a330-3d"
        Port "tap2c60af06-a1"
            Interface "tap2c60af06-a1"
        Port br-int
            Interface br-int
        Port vxlan
            Interface vxlan
                type: vxlan
                options: {key=flow, remote_ip=flow}
    ovs_version: "2.5.0"

But unfortunatelly I can not do ping between VM's

I checked dump-flows on ovs over compute node, and found that traffic between VM's is explicitly  forbidden

[root@host2 ~]# ovs-ofctl   dump-flows br-int 
NXST_FLOW reply (xid=0x4):
 cookie=0x10000a8ca7e32, duration=4005.705s, table=0, n_packets=5, n_bytes=210, idle_age=564, priority=40000,arp actions=CONTROLLER:65535
 cookie=0x10000e75dffb7, duration=4005.705s, table=0, n_packets=4, n_bytes=1346, idle_age=714, priority=40000,udp,tp_src=68,tp_dst=67 actions=CONTROLLER:65535
 cookie=0x120000aa22d1fd, duration=936.920s, table=0, n_packets=27, n_bytes=2594, idle_age=553, priority=30000,ip,in_port=2 actions=load:0x413->NXM_NX_TUN_ID[],resubmit(,1)
 cookie=0x1200001bafa01f, duration=727.882s, table=0, n_packets=27, n_bytes=2594, idle_age=553, priority=30000,ip,in_port=3 actions=load:0x413->NXM_NX_TUN_ID[],resubmit(,1)
 cookie=0x600000bda3f98c, duration=4005.705s, table=0, n_packets=12, n_bytes=936, idle_age=705, priority=0 actions=resubmit(,1)
 cookie=0x1200009daeda6b, duration=936.918s, table=1, n_packets=12, n_bytes=1176, idle_age=553, priority=30000,ip,tun_id=0x413,nw_dst=10.0.0.2 actions=resubmit(,2)
 cookie=0x120000d0efaaef, duration=727.879s, table=1, n_packets=12, n_bytes=1176, idle_age=553, priority=30000,ip,tun_id=0x413,nw_dst=10.0.0.3 actions=resubmit(,2)
 cookie=0x600000aae3686c, duration=4005.705s, table=1, n_packets=42, n_bytes=3772, idle_age=690, priority=0 actions=drop
 cookie=0x120000b258784e, duration=727.643s, table=2, n_packets=12, n_bytes=1176, idle_age=553, priority=30000,ip,nw_src=10.0.0.2,nw_dst=10.0.0.3 actions=drop
 cookie=0x120000d7945c23, duration=727.631s, table=2, n_packets=12, n_bytes=1176, idle_age=553, priority=30000,ip,nw_src=10.0.0.3,nw_dst=10.0.0.2 actions=drop
 cookie=0x1200000b53e905, duration=727.645s, table=2, n_packets=0, n_bytes=0, idle_age=727, priority=30000,ip,nw_src=10.0.0.3 actions=drop
 cookie=0x120000e3023465, duration=727.631s, table=2, n_packets=0, n_bytes=0, idle_age=727, priority=30000,ip,nw_src=10.0.0.2 actions=drop
 cookie=0x60000080a7a035, duration=4.928s, table=2, n_packets=0, n_bytes=0, idle_age=4, priority=0 actions=drop


I tried to modify security-groups in openstack (i deleted all default rules and explicitly permitted bidirectional icmp traffic ), but it made no difference.
Don't you know what could be the reason of issue ?

Many Thanks !




On Wednesday, June 29, 2016 at 12:31:53 PM UTC+3, Sangho Lee wrote:
The local.conf file looks fine.

I mean that you need to check the configuration for openstack interface app is loaded before activating openstack networking app.

[ONOS LOG]

org.onosproject.onos-core-net - 1.7.0.SNAPSHOT | Application org.onosproject.openstackinterface has been activated

MacBookPro:netcfg sangholee$  onos-netcfg 192.168.10.2 ./openstackinterface-cfg.json

2016-06-21 18:42:28,452 | INFO  | event-dispatch-0 | OpenstackInterfaceManager        | 173 - org.onosproject.onos-apps-openstackinterface-app - 1.7.0.SNAPSHOT | Network configuration changed

You need to check the message "Network configuration changed", and then you can activate openstack networking app. Now.. this is un-comfortable. :( 

Hope this will help you
Thank you

Sangho Lee

On Wed, Jun 29, 2016 at 4:57 PM, Alexandr Limonov <alexander.lim...@gmail.com> wrote:
This is part of local.conf , which i used for deployment of control node, so I believe there is no mistake about that 

[[local|localrc]]
HOST_IP=192.168.1.111         #control node
SERVICE_HOST=$HOST_IP
RABBIT_HOST=$HOST_IP 
DATABASE_HOST=$HOST_IP 
Q_HOST=$HOST_IP
 
ADMIN_PASSWORD=admin
DATABASE_PASSWORD=$ADMIN_PASSWORD
RABBIT_PASSWORD=$ADMIN_PASSWORD
SERVICE_PASSWORD=$ADMIN_PASSWORD
SERVICE_TOKEN=$ADMIN_PASSWORD

On Wed, Jun 29, 2016 at 10:03 AM, Lee, Sangho <sangh...@atto-research.com> wrote:
This error message looks that ONOS failed to get token from Openstack KeyStone.

"
at org.onosproject.openstackinterface.impl.OpenstackInterfaceManager.getToken(OpenstackInterfaceManager.java:298)[191:org.onosproject.onos-app-openstackinterface-app:1.7.0.SNAPSHOT]
"

Would you check the openstack inerface configration before activating openstack-networking app, please?

onos-netcfg 192.168.10.2 ./openstackinterface-cfg.json

{
    "apps" : {
                
        "org.onosproject.openstackinterface" : {
            "openstackinterface" : {
                 "neutron_server" : "http://192.168.1.111:9696/v2.0/",
                 "keystone_server" : "http://192.168.1.111:5000/v2.0/",
                 "user_name" : "admin",
                 "password" : "admin"
             }
         }
    }
}

Hope this will help you
Thank you,

Sangho Lee

On Wed, Jun 29, 2016 at 2:39 PM, Alexandr Limonov <alexander.lim...@gmail.com> wrote:
configurations are generally the same   (except addressing of course)

{
    "apps" : {
                
        "org.onosproject.openstackinterface" : {
            "openstackinterface" : {
                 "neutron_server" : "http://192.168.1.111:9696/v2.0/",
                 "keystone_server" : "http://192.168.1.111:5000/v2.0/",
                 "user_name" : "admin",
                 "password" : "admin"
             }
         }
    }
}


{
    "userDefined" : {
      "openstacknetworking" : {
        "config" : {
         "physicalRouterMac" : "02:60:34:00:08:11",
          "gatewayBridgeId" : "of:0000000000000007",
          "gatewayExternalInterfaceName" : "eth0",
          "gatewayExternalInterfaceMac" : "02:60:00:00:09:10",
          "scalableGateway" : "true",
          "nodes" : [
          {
            "dataPlaneIp" : "192.168.1.113",
            "bridgeId" : "of:0000000000000003"
          },
          {
            "dataPlaneIp" : "192.168.1.130",
            "bridgeId" : "of:0000000000000007"
          }
        ]
      }
    }
      },
      
    "devices" : {
        "of:0000000000000003" : {
            "basic" : {
                "driver" : "sona"
            }
        
        },
        "of:0000000000000007" : {
            "basic" : {
                "driver" : "ovs"
            }
        
        }
    }
 } 



On Wed, Jun 29, 2016 at 8:37 AM, Alexandr Limonov <alexander.lim...@gmail.com> wrote:
Sangho, Could you take a look on this , please ?
I moved little bit further, but have URI not absolute again and some troubles with OS switching 

I got ONOS node(192.168.1.126), COntroller node(192.168.1.111), compute node(192.168.113) and gateway node(192.168.1.130).

2016-06-29 01:27:19,135 | ERROR | ing-config-event | Tools                            | 72 - org.onosproject.onlab-misc - 1.7.0.SNAPSHOT | Uncaught exception on onos-openstackswitching-config-event
javax.ws.rs.ProcessingException: URI is not absolute
at org.glassfish.jersey.client.ClientRuntime.invoke(ClientRuntime.java:264)
at org.glassfish.jersey.client.JerseyInvocation$2.call(JerseyInvocation.java:700)
at org.glassfish.jersey.internal.Errors.process(Errors.java:315)
at org.glassfish.jersey.internal.Errors.process(Errors.java:297)
at org.glassfish.jersey.internal.Errors.process(Errors.java:228)
at org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:444)
at org.glassfish.jersey.client.JerseyInvocation.invoke(JerseyInvocation.java:696)
at org.glassfish.jersey.client.JerseyInvocation$Builder.method(JerseyInvocation.java:448)
at org.glassfish.jersey.client.JerseyInvocation$Builder.post(JerseyInvocation.java:349)
at org.onosproject.openstackinterface.impl.OpenstackInterfaceManager.getToken(OpenstackInterfaceManager.java:298)
at org.onosproject.openstackinterface.impl.OpenstackInterfaceManager.getNetworks(OpenstackInterfaceManager.java:162)
at org.onosproject.openstackinterface.impl.OpenstackInterfaceManager.networks(OpenstackInterfaceManager.java:390)
at org.onosproject.openstacknetworking.switching.OpenstackSwitchingRulePopulator.<init>(OpenstackSwitchingRulePopulator.java:96)[193:org.onosproject.onos-app-openstackswitching:1.7.0.SNAPSHOT]
at org.onosproject.openstacknetworking.switching.OpenstackSwitchingManager.initializeFlowRules(OpenstackSwitchingManager.java:309)[193:org.onosproject.onos-app-openstackswitching:1.7.0.SNAPSHOT]
at org.onosproject.openstacknetworking.switching.OpenstackSwitchingManager.readConfiguration(OpenstackSwitchingManager.java:512)[193:org.onosproject.onos-app-openstackswitching:1.7.0.SNAPSHOT]
at org.onosproject.openstacknetworking.switching.OpenstackSwitchingManager.access$1100(OpenstackSwitchingManager.java:83)[193:org.onosproject.onos-app-openstackswitching:1.7.0.SNAPSHOT]
at org.onosproject.openstacknetworking.switching.OpenstackSwitchingManager$InternalConfigListener.lambda$event$0(OpenstackSwitchingManager.java:525)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[:1.8.0_91]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[:1.8.0_91]
at java.lang.Thread.run(Thread.java:745)[:1.8.0_91]
Caused by: java.lang.IllegalArgumentException: URI is not absolute
at java.net.URI.toURL(URI.java:1088)[:1.8.0_91]
at org.glassfish.jersey.client.internal.HttpUrlConnector._apply(HttpUrlConnector.java:340)
at org.glassfish.jersey.client.internal.HttpUrlConnector.apply(HttpUrlConnector.java:285)
at org.glassfish.jersey.client.ClientRuntime.invoke(ClientRuntime.java:255)
... 19 more
2016-06-29 01:27:19,142 | ERROR | routing-L3-event | Tools                            | 72 - org.onosproject.onlab-misc - 1.7.0.SNAPSHOT | Uncaught exception on onos-openstackrouting-L3-event
javax.ws.rs.ProcessingException: URI is not absolute
at org.glassfish.jersey.client.ClientRuntime.invoke(ClientRuntime.java:264)
at org.glassfish.jersey.client.JerseyInvocation$2.call(JerseyInvocation.java:700)
at org.glassfish.jersey.internal.Errors.process(Errors.java:315)
at org.glassfish.jersey.internal.Errors.process(Errors.java:297)
at org.glassfish.jersey.internal.Errors.process(Errors.java:228)
at org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:444)
at org.glassfish.jersey.client.JerseyInvocation.invoke(JerseyInvocation.java:696)
at org.glassfish.jersey.client.JerseyInvocation$Builder.method(JerseyInvocation.java:448)
at org.glassfish.jersey.client.JerseyInvocation$Builder.post(JerseyInvocation.java:349)
at org.onosproject.openstackinterface.impl.OpenstackInterfaceManager.getToken(OpenstackInterfaceManager.java:298)[191:org.onosproject.onos-app-openstackinterface-app:1.7.0.SNAPSHOT]
at org.onosproject.openstackinterface.impl.OpenstackInterfaceManager.getPorts(OpenstackInterfaceManager.java:192)[191:org.onosproject.onos-app-openstackinterface-app:1.7.0.SNAPSHOT]
at org.onosproject.openstackinterface.impl.OpenstackInterfaceManager.ports(OpenstackInterfaceManager.java:346)[191:org.onosproject.onos-app-openstackinterface-app:1.7.0.SNAPSHOT]
at org.onosproject.openstacknetworking.routing.OpenstackRoutingManager.lambda$reloadInitL3Rules$15(OpenstackRoutingManager.java:401)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[:1.8.0_91]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[:1.8.0_91]
at java.lang.Thread.run(Thread.java:745)[:1.8.0_91]
Caused by: java.lang.IllegalArgumentException: URI is not absolute
at java.net.URI.toURL(URI.java:1088)[:1.8.0_91]
at org.glassfish.jersey.client.internal.HttpUrlConnector._apply(HttpUrlConnector.java:340)
at org.glassfish.jersey.client.internal.HttpUrlConnector.apply(HttpUrlConnector.java:285)
at org.glassfish.jersey.client.ClientRuntime.invoke(ClientRuntime.java:255)
... 15 more


On Wed, Jun 29, 2016 at 8:18 AM, Lee, Sangho <sangh...@atto-research.com> wrote:
You are right. The error log is related to Openstack Network Node.
Historically, the network node is replaced by Gateway Node in SONA.

Please, see below guide for "Set up Gateway Node"

-----


Set up Gateway node

Instead of Neutron Network Node, SONA implements 'Gateway Node' to process all of requred functions (e.t.c, pnat, floactingIP, ...) based on 'pure' open vSwitch.
For now, in the Falcon release, SONA only supports a single Gateway Node. We will support multiple Gateway's which gives scalability in the Goldeneye release.

-----

So, I recommend that you will build your topology with 1 ONOS, 1 OS Controller, 1 Gateway Node, and 2 Compute Nodes.
That is same with my SONA dev environment. :)

Hope this will help you,
Thank you!

- Sangho Lee - 





On Wed, Jun 29, 2016 at 10:58 AM, Alexandr Limonov <alexander.lim...@gmail.com> wrote:
Wow :)
Thanks  for such descriptive information :)
 
Everything looks quite nice till  I apply   openstack-networking config  (for my environment without  network node)

{
    "userDefined" : {
      "openstacknetworking" : {
        "config" : {
          "nodes" : [
          {
            "dataPlaneIp" : "192.168.1.113",
            "bridgeId" : "of:0000000000000003"
          }
        ]
      }
    }
      },
      
    "devices" : {
        "of:0000000000000003" : {
            "basic" : {
                "driver" : "sona"
            }
        
        }
    }
 } 





In karaf log  I get 

2016-06-28 21:46:45,715 | ERROR | routing-L3-event | Tools                            | 72 - org.onosproject.onlab-misc - 1.6.0.SNAPSHOT | Uncaught exception on onos-openstackrouting-L3-event
java.lang.NullPointerException
at org.onosproject.net.packet.impl.PacketManager.pushRule(PacketManager.java:286)
at org.onosproject.net.packet.impl.PacketManager.access$400(PacketManager.java:79)
at org.onosproject.net.packet.impl.PacketManager$InternalStoreDelegate.requestPackets(PacketManager.java:398)
at org.onosproject.store.packet.impl.DistributedPacketStore$PacketRequestTracker.add(DistributedPacketStore.java:210)
at org.onosproject.store.packet.impl.DistributedPacketStore$PacketRequestTracker.access$100(DistributedPacketStore.java:194)
at org.onosproject.store.packet.impl.DistributedPacketStore.requestPackets(DistributedPacketStore.java:181)
at org.onosproject.net.packet.impl.PacketManager.requestPackets(PacketManager.java:205)
at org.onosproject.openstacknetworking.routing.OpenstackIcmpHandler.requestPacket(OpenstackIcmpHandler.java:100)[177:org.onosproject.onos-app-openstackrouting:1.6.0.SNAPSHOT]
at org.onosproject.openstacknetworking.routing.OpenstackRoutingManager.readConfiguration(OpenstackRoutingManager.java:584)[177:org.onosproject.onos-app-openstackrouting:1.6.0.SNAPSHOT]
at org.onosproject.openstacknetworking.routing.OpenstackRoutingManager.access$1500(OpenstackRoutingManager.java:82)[177:org.onosproject.onos-app-openstackrouting:1.6.0.SNAPSHOT]
at org.onosproject.openstacknetworking.routing.OpenstackRoutingManager$InternalConfigListener.lambda$event$0(OpenstackRoutingManager.java:601)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[:1.8.0_91]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[:1.8.0_91]
at java.lang.Thread.run(Thread.java:745)[:1.8.0_91]
2016-06-28 21:46:45,795 | ERROR | ing-config-event | Tools                            | 72 - org.onosproject.onlab-misc - 1.6.0.SNAPSHOT | Uncaught exception on onos-openstackswitching-config-event
javax.ws.rs.ProcessingException: URI is not absolute
at org.glassfish.jersey.client.ClientRuntime.invoke(ClientRuntime.java:264)
at org.glassfish.jersey.client.JerseyInvocation$2.call(JerseyInvocation.java:700)
at org.glassfish.jersey.internal.Errors.process(Errors.java:315)
at org.glassfish.jersey.internal.Errors.process(Errors.java:297)
at org.glassfish.jersey.internal.Errors.process(Errors.java:228)
at org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:444)
at org.glassfish.jersey.client.JerseyInvocation.invoke(JerseyInvocation.java:696)
at org.glassfish.jersey.client.JerseyInvocation$Builder.method(JerseyInvocation.java:448)
at org.glassfish.jersey.client.JerseyInvocation$Builder.post(JerseyInvocation.java:349)
at org.onosproject.openstackinterface.impl.OpenstackInterfaceManager.getToken(OpenstackInterfaceManager.java:298)
at org.onosproject.openstackinterface.impl.OpenstackInterfaceManager.getNetworks(OpenstackInterfaceManager.java:162)
at org.onosproject.openstackinterface.impl.OpenstackInterfaceManager.networks(OpenstackInterfaceManager.java:390)
at org.onosproject.openstacknetworking.switching.OpenstackSwitchingRulePopulator.<init>(OpenstackSwitchingRulePopulator.java:96)[176:org.onosproject.onos-app-openstackswitching:1.6.0.SNAPSHOT]
at org.onosproject.openstacknetworking.switching.OpenstackSwitchingManager.initializeFlowRules(OpenstackSwitchingManager.java:309)[176:org.onosproject.onos-app-openstackswitching:1.6.0.SNAPSHOT]
at org.onosproject.openstacknetworking.switching.OpenstackSwitchingManager.readConfiguration(OpenstackSwitchingManager.java:512)[176:org.onosproject.onos-app-openstackswitching:1.6.0.SNAPSHOT]
at org.onosproject.openstacknetworking.switching.OpenstackSwitchingManager.access$1100(OpenstackSwitchingManager.java:83)[176:org.onosproject.onos-app-openstackswitching:1.6.0.SNAPSHOT]
at org.onosproject.openstacknetworking.switching.OpenstackSwitchingManager$InternalConfigListener.lambda$event$0(OpenstackSwitchingManager.java:525)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[:1.8.0_91]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[:1.8.0_91]
at java.lang.Thread.run(Thread.java:745)[:1.8.0_91]
Caused by: java.lang.IllegalArgumentException: URI is not absolute
at java.net.URI.toURL(URI.java:1088)[:1.8.0_91]
at org.glassfish.jersey.client.internal.HttpUrlConnector._apply(HttpUrlConnector.java:340)
at org.glassfish.jersey.client.internal.HttpUrlConnector.apply(HttpUrlConnector.java:285)
at org.glassfish.jersey.client.ClientRuntime.invoke(ClientRuntime.java:255)
... 19 more

For me it seems  that  stucks because of absence of network node.
I will add network node to my topology and tell what I get ;)
If i face the same issue, I will move to 1.7 release 



On Wed, Jun 29, 2016 at 4:26 AM, Lee, Sangho <sangh...@atto-research.com> wrote:
This is my configurations.

MacBookPro:netcfg sangholee$ cat openstackinterface-cfg.json
{
   "apps" : {
       "org.onosproject.openstackinterface" : {
            "openstackinterface" : {
                 "neutronServer" : "http://192.168.10.10:9696/v2.0/",
                 "keystoneServer" : "http://192.168.10.10:5000/v2.0/",
                 "userName" : "admin",
                 "password" : "nova"
            }
        }
    }
}

MacBookPro:netcfg sangholee$ cat openstacknetworking-cfg.json
{
    "userDefined" : {
      "openstacknetworking" : {
        "config" : {
          "physicalRouterMac" : "92:b0:fc:e7:2a:d6",
          "gatewayBridgeId" : "of:0000000000000021",
          "gatewayExternalInterfaceName" : "veth0",
          "gatewayExternalInterfaceMac" : "00:00:00:00:00:21",
          "scalableGateway" : "true",
          "nodes" : [
          {
            "dataPlaneIp" : "192.168.10.11",
            "bridgeId" : "of:0000000000000011"
          },
          {
            "dataPlaneIp" : "192.168.10.12",
            "bridgeId" : "of:0000000000000012"
          },
          {
            "dataPlaneIp" : "192.168.10.21",
            "bridgeId" : "of:0000000000000021"
          }
            ]
        }
      }
    },
    "devices" : {
        "of:0000000000000011" : {
            "basic" : {
                "driver" : "sona"
            }
        },
        "of:0000000000000012" : {
            "basic" : {
                "driver" : "sona"
            }
        },
        "of:0000000000000021" : {
            "basic" : {
                "driver" : "ovs"
            }
        }
    }
}

Now, my dev env is 1.7.0-SNAPSHOT. So, there could be different issues between 1.6.0 and 1.7.0.
If you have any issue, please let us know!

Thanks!

Sangho Lee

On Wed, Jun 29, 2016 at 10:23 AM, Lee, Sangho <sangh...@atto-research.com> wrote:
This is my onos log for running SONA!

2016-06-21 18:33:33,029 | INFO  | ew I/O worker #3 | ntrollerImpl$OpenFlowSwitchAgent | 161 - org.onosproject.onos-protocols-openflow-ctl - 1.7.0.SNAPSHOT | Added switch 00:00:00:00:00:00:00:11
2016-06-21 18:33:33,079 | INFO  | ew I/O worker #3 | DeviceManager                    | 76 - org.onosproject.onos-core-net - 1.7.0.SNAPSHOT | Local role is MASTER for of:0000000000000011
2016-06-21 18:33:33,080 | INFO  | nos-topo-build-2 | TopologyManager                  | 76 - org.onosproject.onos-core-net - 1.7.0.SNAPSHOT | Topology DefaultTopology{time=270282756547489, creationTime=1466501612997, computeCost=161752, clusters=2, devices=2, links=0} changed
2016-06-21 18:33:33,081 | INFO  | event-dispatch-0 | FlowObjectiveManager             | 76 - org.onosproject.onos-core-net - 1.7.0.SNAPSHOT | Driver sona bound to device of:0000000000000011 ... initializing driver
2016-06-21 18:33:33,080 | INFO  | ew I/O worker #3 | DeviceManager                    | 76 - org.onosproject.onos-core-net - 1.7.0.SNAPSHOT | Device of:0000000000000011 connected
2016-06-21 18:33:33,083 | INFO  | ew I/O worker #3 | PortStatsCollector               | 162 - org.onosproject.onos-providers-openflow-device - 1.7.0.SNAPSHOT | Starting Port Stats collection thread for 00:00:00:00:00:00:00:11
2016-06-21 18:33:33,084 | INFO  | ew I/O worker #3 | GroupStatsCollector              | 165 - org.onosproject.onos-providers-openflow-group - 1.7.0.SNAPSHOT | Starting Group Stats collection thread for 00:00:00:00:00:00:00:11
2016-06-21 18:33:33,084 | INFO  | ew I/O worker #3 | MeterStatsCollector              | 166 - org.onosproject.onos-providers-openflow-meter - 1.7.0.SNAPSHOT | Starting Meter Stats collection thread for 00:00:00:00:00:00:00:11
2016-06-21 18:33:33,087 | INFO  | ew I/O worker #3 | OFChannelHandler                 | 161 - org.onosproject.onos-protocols-openflow-ctl - 1.7.0.SNAPSHOT | Processing 0 pending port status messages for 00:00:00:00:00:00:00:11
2016-06-21 18:33:33,088 | INFO  | ew I/O worker #3 | ntrollerImpl$OpenFlowSwitchAgent | 161 - org.onosproject.onos-protocols-openflow-ctl - 1.7.0.SNAPSHOT | Transitioned switch 00:00:00:00:00:00:00:11 to MASTER
2016-06-21 18:33:33,109 | INFO  | event-dispatch-0 | FlowObjectiveManager             | 76 - org.onosproject.onos-core-net - 1.7.0.SNAPSHOT | Driver sona bound to device of:0000000000000011 ... initializing driver
2016-06-21 18:33:33,223 | INFO  | nos-topo-build-3 | TopologyManager                  | 76 - org.onosproject.onos-core-net - 1.7.0.SNAPSHOT | Topology DefaultTopology{time=270282915709896, creationTime=1466501613156, computeCost=129067, clusters=3, devices=3, links=0} changed
2016-06-21 18:33:34,365 | INFO  | f-event-stats-12 | DistributedGroupStore            | 78 - org.onosproject.onos-core-dist - 1.7.0.SNAPSHOT | Group AUDIT: Setting device of:0000000000000021 initial AUDIT completed
2016-06-21 18:33:34,412 | INFO  | f-event-stats-14 | DistributedGroupStore            | 78 - org.onosproject.onos-core-dist - 1.7.0.SNAPSHOT | Group AUDIT: Setting device of:0000000000000012 initial AUDIT completed
2016-06-21 18:33:34,448 | INFO  | f-event-stats-16 | DistributedGroupStore            | 78 - org.onosproject.onos-core-dist - 1.7.0.SNAPSHOT | Group AUDIT: Setting device of:0000000000000011 initial AUDIT completed



[ONOS booted…]

[onos> app activate org.onosproject.dhcp]

2016-06-21 18:38:24,753 | INFO  | h for user karaf | FeaturesServiceImpl              | 20 - org.apache.karaf.features.core - 3.0.5 | Installing feature onos-apps-dhcp 1.7.0-SNAPSHOT
2016-06-21 18:38:24,755 | INFO  | h for user karaf | FeaturesServiceImpl              | 20 - org.apache.karaf.features.core - 3.0.5 | Found installed feature onos-api 1.7.0-SNAPSHOT
2016-06-21 18:38:24,766 | INFO  | h for user karaf | FeaturesServiceImpl              | 20 - org.apache.karaf.features.core - 3.0.5 | Found installed feature scr-condition-webconsole_0_0_0 3.0.5
2016-06-21 18:38:24,766 | INFO  | h for user karaf | FeaturesServiceImpl              | 20 - org.apache.karaf.features.core - 3.0.5 | Found installed feature standard-condition-webconsole_0_0_0 3.0.5
2016-06-21 18:38:24,768 | INFO  | h for user karaf | FeaturesServiceImpl              | 20 - org.apache.karaf.features.core - 3.0.5 | Found installed feature webconsole-condition-scr_0_0_0 3.0.5
2016-06-21 18:38:24,899 | WARN  | h for user karaf | KryoNamespace                    | 72 - org.onosproject.onlab-misc - 1.7.0.SNAPSHOT | (no name): long already registed as 7. Skipping 316.
2016-06-21 18:38:24,901 | WARN  | h for user karaf | KryoNamespace                    | 72 - org.onosproject.onlab-misc - 1.7.0.SNAPSHOT | (no name): class org.onlab.packet.Ip4Address already registed as 70. Skipping 317.
2016-06-21 18:38:24,914 | INFO  | h for user karaf | DistributedDhcpStore             | 171 - org.onosproject.onos-apps-dhcp-app - 1.7.0.SNAPSHOT | Started
2016-06-21 18:38:24,957 | INFO  | h for user karaf | DhcpManager                      | 171 - org.onosproject.onos-apps-dhcp-app - 1.7.0.SNAPSHOT | Started
2016-06-21 18:38:24,979 | INFO  | h for user karaf | DhcpUi                           | 171 - org.onosproject.onos-apps-dhcp-app - 1.7.0.SNAPSHOT | Started
2016-06-21 18:38:25,651 | INFO  | h for user karaf | HttpServiceFactoryImpl           | 110 - org.ops4j.pax.web.pax-web-runtime - 3.2.6 | Binding bundle: [org.onosproject.onos-apps-dhcp-app [171]] to http service
2016-06-21 18:38:25,663 | INFO  | h for user karaf | ApplicationManager               | 76 - org.onosproject.onos-core-net - 1.7.0.SNAPSHOT | Application org.onosproject.dhcp has been activated

[onos> app activate org.onosproject.openstackinterface]

2016-06-21 18:39:22,089 | INFO  | h for user karaf | FeaturesServiceImpl              | 20 - org.apache.karaf.features.core - 3.0.5 | Installing feature onos-apps-openstackinterface 1.7.0-SNAPSHOT
2016-06-21 18:39:22,090 | INFO  | h for user karaf | FeaturesServiceImpl              | 20 - org.apache.karaf.features.core - 3.0.5 | Found installed feature onos-api 1.7.0-SNAPSHOT
2016-06-21 18:39:22,106 | INFO  | h for user karaf | FeaturesServiceImpl              | 20 - org.apache.karaf.features.core - 3.0.5 | Found installed feature scr-condition-webconsole_0_0_0 3.0.5
2016-06-21 18:39:22,107 | INFO  | h for user karaf | FeaturesServiceImpl              | 20 - org.apache.karaf.features.core - 3.0.5 | Found installed feature standard-condition-webconsole_0_0_0 3.0.5
2016-06-21 18:39:22,107 | INFO  | h for user karaf | FeaturesServiceImpl              | 20 - org.apache.karaf.features.core - 3.0.5 | Found installed feature webconsole-condition-scr_0_0_0 3.0.5
2016-06-21 18:39:22,162 | INFO  | h for user karaf | OpenstackInterfaceManager        | 173 - org.onosproject.onos-apps-openstackinterface-app - 1.7.0.SNAPSHOT | started
2016-06-21 18:39:22,173 | INFO  | h for user karaf | ApplicationManager               | 76 - org.onosproject.onos-core-net - 1.7.0.SNAPSHOT | Application org.onosproject.openstackinterface has been activated

MacBookPro:netcfg sangholee$  onos-netcfg 192.168.10.2 ./openstackinterface-cfg.json

2016-06-21 18:42:28,452 | INFO  | event-dispatch-0 | OpenstackInterfaceManager        | 173 - org.onosproject.onos-apps-openstackinterface-app - 1.7.0.SNAPSHOT | Network configuration changed

[onos> app activate org.onosproject.openstacknetworking]

/// this is old log for normal openstacknetworking booting 

2016-06-19 12:17:37,500 | INFO  | -message-handler | FeaturesServiceImpl              | 20 - org.apache.karaf.features.core - 3.0.5 | Installing feature onos-app-openstacknetworking-app 1.7.0-SNAPSHOT
2016-06-19 12:17:37,500 | INFO  | -message-handler | FeaturesServiceImpl              | 20 - org.apache.karaf.features.core - 3.0.5 | Found installed feature onos-api 1.7.0-SNAPSHOT
2016-06-19 12:17:37,527 | INFO  | -message-handler | FeaturesServiceImpl              | 20 - org.apache.karaf.features.core - 3.0.5 | Found installed feature scr-condition-management_0_0_0 3.0.5
2016-06-19 12:17:37,527 | INFO  | -message-handler | FeaturesServiceImpl              | 20 - org.apache.karaf.features.core - 3.0.5 | Found installed feature scr-condition-webconsole_0_0_0 3.0.5
2016-06-19 12:17:37,528 | INFO  | -message-handler | FeaturesServiceImpl              | 20 - org.apache.karaf.features.core - 3.0.5 | Found installed feature standard-condition-webconsole_0_0_0 3.0.5
2016-06-19 12:17:37,528 | INFO  | -message-handler | FeaturesServiceImpl              | 20 - org.apache.karaf.features.core - 3.0.5 | Found installed feature webconsole-condition-scr_0_0_0 3.0.5
2016-06-19 12:17:37,912 | INFO  | -message-handler | HttpServiceFactoryImpl           | 107 - org.ops4j.pax.web.pax-web-runtime - 3.2.6 | Binding bundle: [org.onosproject.onos-app-openstacknetworking-web [200]] to http service
2016-06-19 12:17:37,956 | INFO  | -message-handler | ApplicationManager               | 76 - org.onosproject.onos-core-net - 1.7.0.SNAPSHOT | Application org.onosproject.openstacknetworking has been activated

2016-06-19 12:17:37,959 | INFO  | -message-handler | FeaturesServiceImpl              | 20 - org.apache.karaf.features.core - 3.0.5 | Installing feature onos-app-openstackswitching 1.7.0-SNAPSHOT
2016-06-19 12:17:37,962 | INFO  | -message-handler | FeaturesServiceImpl              | 20 - org.apache.karaf.features.core - 3.0.5 | Found installed feature onos-api 1.7.0-SNAPSHOT
2016-06-19 12:17:37,986 | INFO  | -message-handler | FeaturesServiceImpl              | 20 - org.apache.karaf.features.core - 3.0.5 | Found installed feature scr-condition-management_0_0_0 3.0.5
2016-06-19 12:17:37,993 | INFO  | -message-handler | FeaturesServiceImpl              | 20 - org.apache.karaf.features.core - 3.0.5 | Found installed feature scr-condition-webconsole_0_0_0 3.0.5
2016-06-19 12:17:37,994 | INFO  | -message-handler | FeaturesServiceImpl              | 20 - org.apache.karaf.features.core - 3.0.5 | Found installed feature standard-condition-webconsole_0_0_0 3.0.5
2016-06-19 12:17:37,995 | INFO  | -message-handler | FeaturesServiceImpl              | 20 - org.apache.karaf.features.core - 3.0.5 | Found installed feature webconsole-condition-scr_0_0_0 3.0.5
2016-06-19 12:17:39,112 | INFO  | -message-handler | OpenstackSwitchingManager        | 201 - org.onosproject.onos-app-openstackswitching - 1.7.0.SNAPSHOT | Started
2016-06-19 12:17:39,125 | INFO  | -message-handler | ApplicationManager               | 76 - org.onosproject.onos-core-net - 1.7.0.SNAPSHOT | Application org.onosproject.openstackswitching has been activated

2016-06-19 12:17:39,130 | INFO  | -message-handler | FeaturesServiceImpl              | 20 - org.apache.karaf.features.core - 3.0.5 | Installing feature onos-app-openstackrouting 1.7.0-SNAPSHOT
2016-06-19 12:17:39,136 | INFO  | -message-handler | FeaturesServiceImpl              | 20 - org.apache.karaf.features.core - 3.0.5 | Found installed feature onos-api 1.7.0-SNAPSHOT
2016-06-19 12:17:39,152 | INFO  | -message-handler | FeaturesServiceImpl              | 20 - org.apache.karaf.features.core - 3.0.5 | Found installed feature scr-condition-management_0_0_0 3.0.5
2016-06-19 12:17:39,152 | INFO  | -message-handler | FeaturesServiceImpl              | 20 - org.apache.karaf.features.core - 3.0.5 | Found installed feature scr-condition-webconsole_0_0_0 3.0.5
2016-06-19 12:17:39,153 | INFO  | -message-handler | FeaturesServiceImpl              | 20 - org.apache.karaf.features.core - 3.0.5 | Found installed feature standard-condition-webconsole_0_0_0 3.0.5
2016-06-19 12:17:39,156 | INFO  | -message-handler | FeaturesServiceImpl              | 20 - org.apache.karaf.features.core - 3.0.5 | Found installed feature webconsole-condition-scr_0_0_0 3.0.5
2016-06-19 12:17:39,376 | INFO  | -message-handler | OpenstackRoutingManager          | 202 - org.onosproject.onos-app-openstackrouting - 1.7.0.SNAPSHOT | OpenstackRouting configured
2016-06-19 12:17:39,377 | INFO  | -message-handler | OpenstackRoutingManager          | 202 - org.onosproject.onos-app-openstackrouting - 1.7.0.SNAPSHOT | started
2016-06-19 12:17:39,379 | INFO  | -message-handler | ApplicationManager               | 76 - org.onosproject.onos-core-net - 1.7.0.SNAPSHOT | Application org.onosproject.openstackrouting has been activated

MacBookPro:netcfg sangholee$ onos-netcfg 192.168.10.2 ./openstacknetworking-cfg.json

2016-06-19 12:19:56,700 | INFO  | routing-L3-event | OpenstackRoutingManager          | 202 - org.onosproject.onos-app-openstackrouting - 1.7.0.SNAPSHOT | OpenstackRouting configured


Hope this will help you!
thanks,

Sangho Lee

On Wed, Jun 29, 2016 at 10:15 AM, Lee, Sangho <sangh...@atto-research.com> wrote:
My SONA environment is below:

MacBookPro:onos sangholee$ env | grep ONOS
ONOS_APPS=drivers,openflow
ONOS_CELL=local_sangholee
ONOS_USER=sdn
ONOS_SCENARIOS=/Users/sangholee/sddc/onos/tools/test/scenarios
ONOS_INSTANCES=192.168.10.2
ONOS_WEB_USER=onos
ONOS_GROUP=sdn
ONOS_NIC=192.168.10.*
ONOS_ROOT=/Users/sangholee/sddc/onos
ONOS_WEB_PASS=rocks

MacBookPro:onos sangholee$ env | grep OC
OC1=192.168.10.2
OCI=192.168.10.2

MacBookPro:onos sangholee$ onos-install -f $OC1
Connection to 192.168.10.2 closed.
sudo: systemctl: command not found
Connection to 192.168.10.2 closed.
Connection to 192.168.10.2 closed.
onos start/running, process 12422
Connection to 192.168.10.2 closed.

[wait for ONOS booting…]

MacBookPro:onos sangholee$ onos
Logging in as karaf
Welcome to Open Network Operating System (ONOS)!
     ____  _  ______  ____
    / __ \/ |/ / __ \/ __/
   / /_/ /    / /_/ /\ \
   \____/_/|_/\____/___/

Documentation: wiki.onosproject.org
Tutorials:     tutorials.onosproject.org
Mailing lists: lists.onosproject.org

Come help out! Find out how at:
...

Lee, Sangho

unread,
Aug 16, 2016, 3:11:02 AM8/16/16
to Alexandr Limonov, ONOS Discuss, Sangho Shin, 박민철, Hyunsun Moon, fiche...@gmail.com
Hi Alexandr,

It looks related security group issue.

Could you read this security group tutorial with ICMP : https://wiki.onosproject.org/display/ONOS/Security+Group+Tutorial+-+ICMP, please?
And, clean all VMs (destroy all VMs) and reboot ONOS with SONA application.
After then. try security group tutorial, please.

One tip, "ovs-ofctl dump-flows br-int -O OpenFlow13 " show more detail information about flow rules.

Hope this will help you,
Thank you

- Sangho Lee - 


--
You received this message because you are subscribed to the Google Groups "ONOS Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to onos-discuss+unsubscribe@onosproject.org.

To post to this group, send email to onos-d...@onosproject.org.
Visit this group at https://groups.google.com/a/onosproject.org/group/onos-discuss/.

Lee, Sangho

unread,
Aug 17, 2016, 9:46:47 PM8/17/16
to Alexandr Limonov, ONOS Discuss, Sangho Shin, 박민철, Hyunsun Moon, fiche...@gmail.com
Hi Alexandr,

In my environment, I also have a same issue. :(
That issue occur for VM which has 10.0.0.2.

It looks related dhcp app and we need to investigate the reason more.

So, now I recommend to create another VM which has 10.0.0.4 or use another subnet (e.g., 10.10.10.0/24).
In my case, I created another VM which has 10.0.0.4 and succeeded to ping from 10.0.0.3 to 10.0.0.4.

In the 10.0.0.3 VM, I see the different MAC address for VM 10.0.0.2 's real MAC (FA:16:3E:D6:3C:52)
So, 10.0.0.2 VM doesn't accept wrong DST MAC packet. OpenFlow rule send packets to VM's port.

Inline image 2

Inline image 1

Inline image 4

* table=1, output:7 is for 10.0.0.3 VM

Hope this wil help you,
Thank you,

- Sangho Lee -

On Tue, Aug 16, 2016 at 4:10 PM, Lee, Sangho <sangh...@atto-research.com> wrote:
Hi Alexandr,

It looks related security group issue.

Could you read this security group tutorial with ICMP : https://wiki.onosproject.org/display/ONOS/Security+Group+Tutorial+-+ICMP, please?
And, clean all VMs (destroy all VMs) and reboot ONOS with SONA application.
After then. try security group tutorial, please.

One tip, "ovs-ofctl dump-flows br-int -O OpenFlow13 " show more detail information about flow rules.

Hope this will help you,
Thank you

- Sangho Lee - 

Lee, Sangho

unread,
Aug 18, 2016, 12:14:38 AM8/18/16
to Alexandr Limonov, ONOS Discuss, Sangho Shin, 박민철, Hyunsun Moon, fiche...@gmail.com
Hi Alexandr and all,

The previous test is wrong, so please ignore it.
I did wrong test.. my environment was wrong... and now the issue is not reproduced.
I am so sorry about confusing you with wrong test result.

This is normal result: ping from 10.0.0.2 to 10.0.0.3 is succeeded.
--------------------------------------------------------------------------------------------
ubuntu@server-01:~$ ping 10.0.0.3
PING 10.0.0.3 (10.0.0.3) 56(84) bytes of data.
64 bytes from 10.0.0.3: icmp_seq=1 ttl=64 time=71.8 ms
64 bytes from 10.0.0.3: icmp_seq=2 ttl=64 time=3.39 ms

ubuntu@server-01:~$ ifconfig eth0
eth0      Link encap:Ethernet  HWaddr fa:16:3e:f2:ed:ea
          inet addr:10.0.0.2  Bcast:10.0.0.0  Mask:255.255.255.0
          inet6 addr: fe80::f816:3eff:fef2:edea/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:17 errors:0 dropped:0 overruns:0 frame:0
          TX packets:89 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:1738 (1.7 KB)  TX bytes:7442 (7.4 KB)
--------------------------------------------------------------------------------------------

Below are normal flow rules for VMs (10.0.0.2, 10.0.0.4) which are on a same compute node.
So, please refer these flow rules.

--------------------------------------------------------------------------------------------

<OpenFlow10> : sudo ovs-ofctl dump-flows br-int -O OpenFlow10

NXST_FLOW reply (xid=0x4):
 cookie=0x100009b2081a6, duration=1339.044s, table=0, n_packets=6, n_bytes=2052, idle_age=22, priority=40000,udp,tp_src=68,tp_dst=67 actions=CONTROLLER:65535
 cookie=0x100006cd4dc18, duration=1339.043s, table=0, n_packets=6, n_bytes=252, idle_age=22, priority=40000,arp actions=CONTROLLER:65535
 cookie=0x39000050ceb886, duration=1142.939s, table=0, n_packets=66, n_bytes=5260, idle_age=959, priority=30000,ip,in_port=2 actions=load:0x406->NXM_NX_TUN_ID[],resubmit(,1)
 cookie=0x3900003f32acbb, duration=58.782s, table=0, n_packets=12, n_bytes=904, idle_age=3, priority=30000,ip,in_port=3 actions=load:0x406->NXM_NX_TUN_ID[],resubmit(,1)
 cookie=0x5000008bf506ec, duration=1339.413s, table=0, n_packets=30, n_bytes=2488, idle_age=12, priority=0 actions=resubmit(,1)
 cookie=0x3900002127ff6d, duration=1142.952s, table=1, n_packets=2, n_bytes=196, idle_age=959, priority=30000,ip,tun_id=0x406,nw_dst=10.0.0.2 actions=resubmit(,2)
 cookie=0x3900002d932bca, duration=58.782s, table=1, n_packets=0, n_bytes=0, idle_age=58, priority=30000,ip,tun_id=0x406,nw_dst=10.0.0.4 actions=resubmit(,2)
 cookie=0x5000005e1912a6, duration=1339.372s, table=1, n_packets=104, n_bytes=8260, idle_age=3, priority=0 actions=drop
 cookie=0x39000091974a98, duration=5.380s, table=2, n_packets=0, n_bytes=0, idle_age=5, priority=30000,ip,nw_src=10.0.0.2 actions=drop
 cookie=0x390000ab448afe, duration=5.377s, table=2, n_packets=0, n_bytes=0, idle_age=5, priority=30000,ip,nw_src=10.0.0.4 actions=drop
 cookie=0x3900007b8fc465, duration=5.379s, table=2, n_packets=0, n_bytes=0, idle_age=5, priority=30000,ip,nw_src=10.0.0.4,nw_dst=10.0.0.2 actions=drop
 cookie=0x390000e9536f7a, duration=5.376s, table=2, n_packets=0, n_bytes=0, idle_age=5, priority=30000,ip,nw_src=10.0.0.2,nw_dst=10.0.0.4 actions=drop
 cookie=0x500000f3ff4ee3, duration=3.689s, table=2, n_packets=0, n_bytes=0, idle_age=3, priority=0 actions=drop

<OpenFlow13> : sudo ovs-ofctl dump-flows br-int -O OpenFlow13

OFPST_FLOW reply (OF1.3) (xid=0x2):
 cookie=0x100009b2081a6, duration=1493.908s, table=0, n_packets=7, n_bytes=2394, send_flow_rem priority=40000,udp,tp_src=68,tp_dst=67 actions=CONTROLLER:65535
 cookie=0x100006cd4dc18, duration=1493.907s, table=0, n_packets=8, n_bytes=336, send_flow_rem priority=40000,arp actions=CONTROLLER:65535
 cookie=0x39000050ceb886, duration=1297.803s, table=0, n_packets=66, n_bytes=5260, send_flow_rem priority=30000,ip,in_port=2 actions=set_field:0x406->tun_id,goto_table:1
 cookie=0x3900003f32acbb, duration=213.646s, table=0, n_packets=56, n_bytes=4440, send_flow_rem priority=30000,ip,in_port=3 actions=set_field:0x406->tun_id,goto_table:1
 cookie=0x5000008bf506ec, duration=1494.277s, table=0, n_packets=30, n_bytes=2488, send_flow_rem priority=0 actions=goto_table:1
 cookie=0x3900002127ff6d, duration=1297.816s, table=1, n_packets=2, n_bytes=196, send_flow_rem priority=30000,ip,tun_id=0x406,nw_dst=10.0.0.2 actions=write_actions(output:2),goto_table:2
 cookie=0x3900002d932bca, duration=213.646s, table=1, n_packets=0, n_bytes=0, send_flow_rem priority=30000,ip,tun_id=0x406,nw_dst=10.0.0.4 actions=write_actions(output:3),goto_table:2
 cookie=0x5000005e1912a6, duration=1494.236s, table=1, n_packets=148, n_bytes=11796, send_flow_rem priority=0 actions=drop
 cookie=0x39000091974a98, duration=160.244s, table=2, n_packets=0, n_bytes=0, send_flow_rem priority=30000,ip,nw_src=10.0.0.2 actions=drop
 cookie=0x390000ab448afe, duration=160.241s, table=2, n_packets=0, n_bytes=0, send_flow_rem priority=30000,ip,nw_src=10.0.0.4 actions=drop
 cookie=0x3900007b8fc465, duration=160.243s, table=2, n_packets=0, n_bytes=0, send_flow_rem priority=30000,ip,nw_src=10.0.0.4,nw_dst=10.0.0.2 actions=drop
 cookie=0x390000e9536f7a, duration=160.240s, table=2, n_packets=0, n_bytes=0, send_flow_rem priority=30000,ip,nw_src=10.0.0.2,nw_dst=10.0.0.4 actions=drop
 cookie=0x500000f3ff4ee3, duration=3.553s, table=2, n_packets=0, n_bytes=0, send_flow_rem priority=0 actions=clear_actions
--------------------------------------------------------------------------------------------

Alexandr,
If you have any progress or any question, please let us know.

Please this will help you,
Thank you,

- Sangho Lee -

Silvia Fichera

unread,
Aug 29, 2016, 5:37:23 AM8/29/16
to Lee, Sangho, Alexandr Limonov, ONOS Discuss, Sangho Shin, 박민철, Hyunsun Moon
Hi all,
I saw that you have updated the wiki. Thank you. 
I was on holiday since yesterday, so because of the new wiki I think that is better start from scratch.
First of all I have a question: you say that it is necessary "An ONOS clusters installed and running, one for SONA and the others for vRouter. ONOS for vRouter runs on every gateway node."
Do you mean that I should have a cluster with two ONOS instaces (e.g., OC1 and OC2)? And OC2 has to be placed in the VM that acts the role of gateway?

Thank you

Silvia

 
--
Silvia Fichera

Hyunsun Moon

unread,
Aug 29, 2016, 1:36:56 PM8/29/16
to Silvia Fichera, Lee, Sangho, Alexandr Limonov, ONOS Discuss, Sangho Shin, 박민철
Hi Silvia,

No, that means you have to run separate ONOS for SONA apps and vRouter app, and these ONOS are not in the same cluster.
If you have multiple gateways, 2 gateways for example, you need to run total three ONOS, one ONOS for SONA apps and two for vRouter app(each runs on the gateway node).
In the wiki, there is a guide and some useful script to help with running ONOS container for vRouter app on the gateway node.

Hyunsun


<????? ᅵᆫ샷 2016-08-18 오전 10.42.25.png>

<????? ᅵᆫ샷 2016-08-18 오전 10.34.57.png>

<????? ᅵᆫ샷 2016-08-18 오전 10.07.36.png>




--
Silvia Fichera

Silvia Fichera

unread,
Nov 12, 2016, 11:55:48 AM11/12/16
to Hyunsun Moon, Lee, Sangho, Alexandr Limonov, ONOS Discuss, Sangho Shin, 박민철
Hi guys,
I read that during the last ONOS Build in Paris there was a presentation related to SONA. Will you provides the slides?
Thanks

Silvia
--
Silvia Fichera

Andrea Campanella

unread,
Nov 12, 2016, 1:00:11 PM11/12/16
to Silvia Fichera, Hyunsun Moon, Lee, Sangho, Alexandr Limonov, ONOS Discuss, Sangho Shin, 박민철
Hi silvia, 

you can find the slides here:

On the ONOS website you will also find a blogpost regarding the whole event.

Cheers,
Andrea Campanella

and...@onlab.us




To unsubscribe from this group and stop receiving emails from it, send an email to onos-discuss...@onosproject.org.

To post to this group, send email to onos-d...@onosproject.org.
Visit this group at https://groups.google.com/a/onosproject.org/group/onos-discuss/.

Jorge Humberto Gomez Velasquez

unread,
Apr 10, 2017, 2:17:29 PM4/10/17
to ONOS Discuss, hyunsu...@gmail.com, carine...@gmail.com
Hi Carine

Which was exactly your problem with the proxy ?

Jorge Humberto Gomez Velasquez

unread,
Apr 10, 2017, 5:31:30 PM4/10/17
to ONOS Discuss, hyunsu...@gmail.com, carine...@gmail.com
Hi All,


In addition to the previous message.  When I type the installed versions in my ONOS deployment there is no such app called openstackswitching neither openstackrouting

onos> apps -s | grep open
   27 org.onosproject.openstacknode        1.10.0.SNAPSHOT OpenStack Node Bootstrap App
   32 org.onosproject.openflow-message     1.10.0.SNAPSHOT Control Message Stats Provider
   43 org.onosproject.openstacknetworking  1.10.0.SNAPSHOT OpenStack Networking App
*  47 org.onosproject.openflow-base        1.10.0.SNAPSHOT OpenFlow Provider
*  48 org.onosproject.openflow             1.10.0.SNAPSHOT OpenFlow Meta App


Where could I download such apps?

Thanks

Hyunsun Moon

unread,
Apr 10, 2017, 8:59:54 PM4/10/17
to Jorge Humberto Gomez Velasquez, ONOS Discuss, carine...@gmail.com
We merged openstackswitching and openstackrouting apps to openstacknetworking app recently.
And please note that openstacknetworking app does not support Buck build yet.

Hyunsun


--
You received this message because you are subscribed to the Google Groups "ONOS Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to onos-discuss...@onosproject.org.
To post to this group, send email to onos-d...@onosproject.org.
Visit this group at https://groups.google.com/a/onosproject.org/group/onos-discuss/.

Jorge Humberto Gomez Velasquez

unread,
Apr 11, 2017, 2:47:50 AM4/11/17
to ONOS Discuss
Hi Hyunsun


Sorry for my ignorance but what does it mean?

Will I not be able to use such app in ONOS 1.7 and newer given that the use Buck as building tool?

Hyunsun Moon

unread,
Apr 11, 2017, 3:15:43 AM4/11/17
to Jorge Humberto Gomez Velasquez, ONOS Discuss
No, you can still use SONA apps but you have to build ONOS with Maven as we did before not Buck to make the apps work properly.

Hyunsun
> --
> You received this message because you are subscribed to the Google Groups "ONOS Discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to onos-discuss...@onosproject.org.
> To post to this group, send email to onos-d...@onosproject.org.
> Visit this group at https://groups.google.com/a/onosproject.org/group/onos-discuss/.
> To view this discussion on the web visit https://groups.google.com/a/onosproject.org/d/msgid/onos-discuss/207d9fa0-d28b-4257-a02c-0047d12353d9%40onosproject.org.

Jorge Humberto Gomez Velasquez

unread,
Apr 11, 2017, 4:29:19 AM4/11/17
to ONOS Discuss, jorgego...@gmail.com

Hi Hyunsun,

Thanks for your replies

So should I download an older version of ONOS (1.6.0 or previous)  or how do I could build the lastest it using maven ?

Thanks

Hyunsun Moon

unread,
Apr 11, 2017, 6:20:09 AM4/11/17
to Jorge Humberto Gomez Velasquez, ONOS Discuss
You can still build the latest master with Maven.

Hyunsun


--
You received this message because you are subscribed to the Google Groups "ONOS Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to onos-discuss...@onosproject.org.
To post to this group, send email to onos-d...@onosproject.org.
Visit this group at https://groups.google.com/a/onosproject.org/group/onos-discuss/.

Andrea Campanella

unread,
Apr 11, 2017, 7:52:58 AM4/11/17
to Hyunsun Moon, Jorge Humberto Gomez Velasquez, ONOS Discuss
Hi  Hyunsun,

just a clarifying point ? could you build ONOS with buck, you apps via mvn and then push them to ONOS via .oar ? This might speed up you build time.

Cheers, 
Andrea Campanella

Member of Technical Staff at ON.Lab
Member of Ambassador Steering Team, ONOS and CORD Community


Jorge Humberto Gomez Velasquez

unread,
Apr 11, 2017, 11:41:28 AM4/11/17
to ONOS Discuss, hyunsu...@gmail.com, jorgego...@gmail.com
Hi Andrea and Hyunsun,

When I build ONOS wth buck and run it, on onos cli appeared openstacknetworking app as installed. As I previous showed show ?  Does it not mean that it was correctly build ?


So I followed your suggestion and builded ONOS 1.10 with maven ... However some 'strange' errors have appeared. Some of them I managed to solve, some still solving .... For instance now I get this error during Maven building  


[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-checkstyle-plugin:2.17:check (validate-checkstyle) on project onos-app-mapping-web: You have 1 Checkstyle violation. -> [Help 1]
[ERROR] 

... Why could some piece of code have a style error?.... I have not edited it...


As you may guess I'm integrating ONOS and Neutron. So far I get that networking-onos forwards nova REST API request to ONOS, where openstackswitching ( or openstacknetworking ) should process and do the necessary changes over the network ?


I also have problem with Openstack  ./stack script   ( Neutron seems not to start when I set ONOS ML2 plugin params). But for now I just want to be sure if there is any order between setting up ONOS or Openstack first?

Could I 'stack' openstack while ONOS is down ? 


I would apreciate any contribution

Thanks



Hyunsun Moon

unread,
Apr 11, 2017, 9:28:48 PM4/11/17
to Jorge Humberto Gomez Velasquez, ONOS Discuss
Andrea,
We should do full Maven build at least once to have all dependent ONOS core snapshot packages in the local Maven repo, and after that we can start build openstacknetworking app with Maven solely.

Jorge,
Buck built openstacknetworking app will throw an error when you try to activate it.
Maven build checking was removed from Jenkins jobs recently and Maven build fails with the master sometimes.
I’ll see if I can fix the checkstyle error.

See more comments inline.

Hyunsun

On 12 Apr 2017, at 12:41 AM, Jorge Humberto Gomez Velasquez <jorgego...@gmail.com> wrote:

Hi Andrea and Hyunsun,

When I build ONOS wth buck and run it, on onos cli appeared openstacknetworking app as installed. As I previous showed show ?  Does it not mean that it was correctly build ?


So I followed your suggestion and builded ONOS 1.10 with maven ... However some 'strange' errors have appeared. Some of them I managed to solve, some still solving .... For instance now I get this error during Maven building  


[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-checkstyle-plugin:2.17:check (validate-checkstyle) on project onos-app-mapping-web: You have 1 Checkstyle violation. -> [Help 1]
[ERROR] 

... Why could some piece of code have a style error?.... I have not edited it...


As you may guess I'm integrating ONOS and Neutron. So far I get that networking-onos forwards nova REST API request to ONOS, where openstackswitching ( or openstacknetworking ) should process and do the necessary changes over the network ?


Right. Make sure openstacknetworking app is activated before trying to do something with Neutron.


I also have problem with Openstack  ./stack script   ( Neutron seems not to start when I set ONOS ML2 plugin params). But for now I just want to be sure if there is any order between setting up ONOS or Openstack first?

Could I 'stack' openstack while ONOS is down ? 

Yes, you can run stack script when ONOS is down. Just make sure ONOS is up before you creating a network.

Hyunsun Moon

unread,
Apr 12, 2017, 1:56:26 AM4/12/17
to Jorge Humberto Gomez Velasquez, ONOS Discuss
Hi Jorge,

I made a fix for the checkstyle error but you will still see build error on LispMappingExtensionCodecRegistrator.java.
Until that gets fixed, as a short term workaround, can you try commenting out
  <module>lisp</module> in drivers/pom.xml

Hyunsun

Andrea Campanella

unread,
Apr 12, 2017, 4:14:15 AM4/12/17
to Hyunsun Moon, Jorge Humberto Gomez Velasquez, ONOS Discuss
Hi Hyunsyn,

Yes that is nefinetly needed. Just FYi I believe you can achieve the same result doing onos-buck-publish-local

you can also run  onos-buck publish --to-local-repo ${package} if what you need is not contained in publish-target-list file.

Cheers,
Andrea Campanella

Member of Technical Staff at ON.Lab
Member of Ambassador Steering Team, ONOS and CORD Community



-- 
You received this message because you are subscribed to the Google Groups "ONOS Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to onos-discuss...@onosproject.org.
To post to this group, send email to onos-d...@onosproject.org.
Visit this group at https://groups.google.com/a/onosproject.org/group/onos-discuss/.

Jorge Humberto Gomez Velasquez

unread,
Apr 12, 2017, 5:47:26 AM4/12/17
to ONOS Discuss, jorgego...@gmail.com
Hi Hyunsuun

Thanks for the reply

How do you fix the checkstyle error?  I downloaded again ONOS but Maven build  fails at the same point 


[INFO] onos-app-mapping-web ............................... FAILURE [  2.779 s]
[INFO] onos-app-mapping-mgr ............................... SKIPPED
[INFO] onos-app-mapping-cli ............................... SKIPPED
[INFO] onos-app-mapping ................................... SKIPPED
[INFO] onos-app-yang ...................................... SKIPPED
[INFO] onos-network-troubleshoot .......................... SKIPPED
[INFO] onos-network-troubleshoot-api ...................... SKIPPED
[INFO] onos-network-troubleshoot-cli ...................... SKIPPED
[INFO] onos-network-troubleshoot-core ..................... SKIPPED
[INFO] onos-network-troubleshoot-app ...................... SKIPPED
[INFO] onos-incubator-core ................................ SKIPPED
[INFO] onos-incubator-grpc-dependencies ................... SKIPPED
[INFO] onos-incubator-rpc ................................. SKIPPED
[INFO] onos-incubator-grpc ................................ SKIPPED
[INFO] onos-incubator-rpc-grpc ............................ SKIPPED
[INFO] onos-incubator-protobuf-nb ......................... SKIPPED
[INFO] onos-incubator-rpc-nb .............................. SKIPPED
[INFO] onos-features ...................................... SKIPPED
[INFO] onos-archetypes .................................... SKIPPED
[INFO] onos-api-archetype ................................. SKIPPED
[INFO] onos-bundle-archetype .............................. SKIPPED
[INFO] onos-cli-archetype ................................. SKIPPED
[INFO] onos-rest-archetype ................................ SKIPPED
[INFO] onos-ui-archetype .................................. SKIPPED
[INFO] onos-uitab-archetype ............................... SKIPPED
[INFO] onos-uitopo-archetype .............................. SKIPPED
[INFO] onos-branding ...................................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 26:52 min
[INFO] Finished at: 2017-04-12T11:22:44+02:00
[INFO] Final Memory: 194M/747M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-checkstyle-plugin:2.17:check (validate-checkstyle) on project onos-app-mapping-web: You have 1 Checkstyle violation. -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :onos-app-mapping-web


However after that I managed to build openstacknetworking app with Maven successfully.  Reinstalled is through the xxx.oar file and activated it in ONOS CLI.


So my question is. Even if the full ONOS Maven build fails at some point, but it managed to build some dependencies from openstacknetworking, could be this app successfully build ? From my result it seems to be true. But I just want to have any opinion/suggestion from you


Thanks



Hyunsun Moon

unread,
Apr 12, 2017, 6:10:44 AM4/12/17
to Jorge Humberto Gomez Velasquez, ONOS Discuss
It was merged an hour ago.
You might need to pull the latest again to get the patch but you already have Maven built openstacknetworking app.
Yes, you can use the oar.

Hyunsun
--
You received this message because you are subscribed to the Google Groups "ONOS Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to onos-discuss...@onosproject.org.
To post to this group, send email to onos-d...@onosproject.org.
Visit this group at https://groups.google.com/a/onosproject.org/group/onos-discuss/.

Hyunsun Moon

unread,
Apr 12, 2017, 6:22:26 AM4/12/17
to Andrea Campanella, Jorge Humberto Gomez Velasquez, ONOS Discuss
Hi Andrea,

Thanks for the information.
I will try the command.

Hyunsun

Jorge Humberto Gomez Velasquez

unread,
Apr 28, 2017, 6:45:30 AM4/28/17
to ONOS Discuss, and...@onlab.us, jorgego...@gmail.com
Hi


Was the app openstackinterface replaced ? I am trying to create tehe network-cfg.json file, but I realized that such application it not in ONOS apps folder, neither it's possible to download from internet ?


Additionally, my Openstack Deployment has already created br-int, br-ext and br-tun bridges on each compute an controlled node?
Should I delete them before I do the integration ?


Thanks in advance

Jorge

Hyunsun Moon

unread,
May 1, 2017, 10:30:34 PM5/1/17
to Jorge Humberto Gomez Velasquez, ONOS Discuss, and...@onlab.us
Yes, it is removed and we use third party library openstack4j instead.
And I recommend removing all stale bridges from your OpenStack compute nodes before trying SONA.

Hyunsun


--
You received this message because you are subscribed to the Google Groups "ONOS Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to onos-discuss...@onosproject.org.
To post to this group, send email to onos-d...@onosproject.org.
Visit this group at https://groups.google.com/a/onosproject.org/group/onos-discuss/.

Jorge Humberto Gomez Velasquez

unread,
May 2, 2017, 7:15:52 PM5/2/17
to ONOS Discuss, jorgego...@gmail.com, and...@onlab.us
Hi Hyunsun,

Thanks for the info.  But for me it is still not clear how SONA could retrieve info from Neutron using openstack4j, given that the Openstack credentials (and socket  for Neutron and Keystone ) are not stated anywhere, as it was with openstackinterface app?

Additionally , is it also possible to write the network configuration file through REST-API, namely with this command?  ... .Just to avoid a onos-package command, and onos cell deployment

 --user onos:rocks -X POST -H "Content-Type: application/json" http://localhost:8181/onos/v1/network/configuration/ -d @$ONOS_ROOT/tools/package/config/network-cfg.json

Best Regards,
Jorge

Hyunsun Moon

unread,
May 4, 2017, 3:16:09 AM5/4/17
to Jorge Humberto Gomez Velasquez, ONOS Discuss, and...@onlab.us
Hi Jorge,

SONA does not poll network states from Neutron anymore. Instead, ONOS Neutron ML2 driver(networking-onos) post-commits all network state updates to SONA, and SONA caches the states in the local distributed store for further use.

But just in case, SONA provides a method, the following CLI, to actively sync the states from Neutron. 
onos> openstack-sync-states http://controller:35357/v2.0 tenant_name user_name password

For the second question, yes, you can push network configuration via REST but due to the limitation of device driver configuration which is not updatable, it is recommended to include the configuration to the package.

    "devices" : {
        "of:00000000000000a1" : {
            "basic" : {
                "driver" "sona"
            }
        }

Hyunsun


--
You received this message because you are subscribed to the Google Groups "ONOS Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to onos-discuss...@onosproject.org.
To post to this group, send email to onos-d...@onosproject.org.
Visit this group at https://groups.google.com/a/onosproject.org/group/onos-discuss/.

Silvia Fichera

unread,
Jul 24, 2017, 12:06:23 PM7/24/17
to Hyunsun Moon, Jorge Humberto Gomez Velasquez, ONOS Discuss, Sangho Shin, Francesco Foresta
Hi all,
due to some networking changes in my lab I had to modify the management IPs of all my PCs and reinstall the whole system.
It seems that the OpenStack's branch stable/mitaka is no more available:

git clone -b stable/mitaka https://git.openstack.org/openstack-dev/devstack
Cloning into 'devstack'...
fatal: Remote branch stable/mitaka not found in upstream origin

Does SONA works also with Newton or Ocata? Maybe it's necessary to update the wiki page.

Thanks

Silvia

2017-05-04 9:16 GMT+02:00 Hyunsun Moon <hyunsu...@gmail.com>:
Hi Jorge,

SONA does not poll network states from Neutron anymore. Instead, ONOS Neutron ML2 driver(networking-onos) post-commits all network state updates to SONA, and SONA caches the states in the local distributed store for further use.

But just in case, SONA provides a method, the following CLI, to actively sync the states from Neutron. 
onos> openstack-sync-states http://controller:35357/v2.0 tenant_name user_name password

For the second question, yes, you can push network configuration via REST but due to the limitation of device driver configuration which is not updatable, it is recommended to include the configuration to the package.

    "devices" : {
        "of:00000000000000a1" : {
            "basic" : {
                "driver" "sona"
            }
        }

Hyunsun
On May 3, 2017, at 8:15 AM, Jorge Humberto Gomez Velasquez <jorgego...@gmail.com> wrote:

Hi Hyunsun,

Thanks for the info.  But for me it is still not clear how SONA could retrieve info from Neutron using openstack4j, given that the Openstack credentials (and socket  for Neutron and Keystone ) are not stated anywhere, as it was with openstackinterface app?

Additionally , is it also possible to write the network configuration file through REST-API, namely with this command?  ... .Just to avoid a onos-package command, and onos cell deployment

 --user onos:rocks -X POST -H "Content-Type: application/json" http://localhost:8181/onos/v1/network/configuration/ -d @$ONOS_ROOT/tools/package/config/network-cfg.json

Best Regards,
Jorge

--
You received this message because you are subscribed to the Google Groups "ONOS Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to onos-discuss+unsubscribe@onosproject.org.

--
You received this message because you are subscribed to the Google Groups "ONOS Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to onos-discuss+unsubscribe@onosproject.org.

To post to this group, send email to onos-d...@onosproject.org.
Visit this group at https://groups.google.com/a/onosproject.org/group/onos-discuss/.

Silvia Fichera

unread,
Jul 25, 2017, 4:37:03 AM7/25/17
to Hyunsun Moon, Jorge Humberto Gomez Velasquez, ONOS Discuss, Sangho Shin, Francesco Foresta
From the Openstack mailing list:

"mitaka is EOL.
you have to search it from other git repo intead upstream"

Silvia
--
Silvia Fichera
Reply all
Reply to author
Forward
0 new messages