277 Commits

Author SHA1 Message Date
Yuta HIGUCHI
b4bf7c8965 Emit warning when buck artifact is the latest
Change-Id: If01b47f2aaebf5cf2cf3977ad05e1453c4a2ef57
2016-07-11 12:49:58 +00:00
Bob Lantz
a2ccaa5672 unpackONOS: check for failure when extracting tar archive
Change-Id: Iad44ac863449afdbf21d8766479af569f9ba9b6e
2016-06-30 20:58:13 +00:00
Bob Lantz
930138e306 Enable global port forwarding in root namespace
This should fix the problem seen in VirtualBox where you
may have some random interface which is host-only which needs
to have port forwarding set up on it.

Change-Id: Iacdbb129d52529783bdab1c3d768131f6eaf0364
2016-06-30 01:16:53 +00:00
Carmelo Cascone
977ae3f42d Varius updates to BMv2 mininet scripts
Most notably:
- Added support for onos.py's ONOSCluster controller (it works with
	"mn --custom onos.py,bmv2.py --switch onosbmv2 ...")
- Randomly select an open port for the Thrift RPC server

Change-Id: Ifa974741dc4a3693777f01866b1f6203d0e7e75e
2016-06-29 20:53:05 +00:00
Carmelo Cascone
785fada2fb Added Bmv2 demo scripts (mininet and netcfg)
Change-Id: I7471a9ebe55f74dbe8c63faef9a8685c48621862
2016-06-28 23:01:35 +00:00
Bob Lantz
55562ea677 Unpack/install all nodes before startup
Madan suggested that this might help vs. the pipelined
startup we were doing before, so let's try it.

We will unpack/install all nodes before we start up,
so that we can start the whole cluster at about the same
instant.

Note that this is probably closer to what we'd see in hardware.

The disadvantage is that we don't get a "clean" environment
with each invocation of start().

Change-Id: I0a45984f50e1ef25a7d8a836e46978fdbdff0bd0
2016-06-17 18:21:08 -07:00
Bob Lantz
c3de5152b3 Correctly print message if arping isn't installed
Change-Id: Ia8e6a305bebb51556974b72c83d86b472b6918e5
2016-06-17 17:14:46 -07:00
Bob Lantz
92d8e0510f Use ip route to determine default intf for port forwarding
We were using eth0 by default before, but this doesn't work if
your default interface isn't eth0.

Fixes port forwarding on Ubuntu 16.04.

Change-Id: I55baed7fd8952a9f6cab364e20e31a0632ddda6d
2016-06-17 23:34:51 +00:00
Bob Lantz
9ba19dce8f Use netstat for waitListening; client -h h1 "apps -a"
And fix do_log()

Change-Id: I04402fda9c409fa4cb41ae20cf1c551369b7669d
2016-06-17 14:13:44 -07:00
Thomas Vachuska
c35621013e Dropping jdvue from the main repo as it has been moved to its own.
Change-Id: I82bbbc213c875a9dba4e5b4c4edaafdd04cb77ea
2016-06-16 10:29:18 +00:00
Bob Lantz
c96e25824a add arp cmd; always return lists from checkLog
The arp CLI command sends gratuitous ARPs from all hosts - this
makes it easier for ONOS to discover hosts.

Previously checkLog returned None, None if the log file didn't
exist; now we return an empty list, to avoid breaking when we
take the len() of errors or warnings (which was happening before)
and to avoid having to check for None, None, which didn't seem to
add a lot of value to justify its complexity.

Change-Id: I84847fcf70525c82ac037d8a84cf40d21ab2a106
2016-06-13 21:40:25 -07:00
Bob Lantz
6438242617 Add status/error checks during ONOS startup
We check for:
- process exits
- log ERRORs
- log WARNings
- low memory

Also added a "status" CLI command to check for exits
and errors.

Change-Id: I6e65fe49619e338f1827fc616ca52a82de7ba470
2016-06-13 22:43:32 +00:00
Jon Hall
ee85e2f832 Update ONOS_INSTANCES when updating OCI
Change-Id: I416901175ba8662a07afe58ff2eb835cd51be242
2016-06-07 17:48:46 +00:00
alshabib
20a070bed7 allow applications to be installed by URL from REST API
Change-Id: I6c28d91e1bbc6e77eefba00b8f106fe22edc475b
2016-06-07 08:44:59 +00:00
Bob Lantz
569bbec710 Unset empty vars; pass IPs to onos-gen-partitions
We really don't need the OCx variables, but for now at
least we are unsetting the ones that are incorrect and
calling onos-gen-partitions with the explicit IP
addresses.

Change-Id: I8bd3d69bee4857e00070288b586255455c9c8adf
2016-06-06 15:28:12 +00:00
Madan Jampani
597282af90 Clean up references to the deprecated p0 storage partition
Change-Id: Ifdab952d2bef30104f57aff3cab342df99a20571
2016-06-04 21:16:00 +00:00
Charles Chan
4ba6b55ba3 Fix onos-setup-karaf IP parsing
Change-Id: If996c10396aecf39ab6d950178d1f6724976cdc2
2016-06-02 16:24:32 +00:00
Bob Lantz
4b51d5c32e Various minor fixes and improvements
- enable parameters for onos cli commands (e.g. onos:apps -a)
- don't depend on onos1's name
- reduce dependencies on unnecessary variables
- enable running if karaf isn't installed elsewhere
- make NAT an option

Change-Id: I3e8abd51aa8d3f5c7afab1c6b86e50707de20ef6
2016-05-31 22:26:58 +00:00
Ayaka Koshibe
98c3165710 use dialect-agnostic regexes in onos scripts
Change-Id: Ifd828fd2bc130598d796ac4d786c77ba31365d8e
2016-05-31 16:32:19 +00:00
alshabib
bdb7b37b00 adding a mininet vagrant box
Change-Id: I0c89c35a9e6768b3c3640c0895d405901e38799e
2016-05-26 22:23:38 +00:00
alshabib
4997cd7c9c Vagrant box for development use.
vagrant up onosdev sets up a vm with three lxc instances
which should be used with the lxc cell.

Change-Id: I18b5cc5366efc61f05063798b498559eb49a8eff
2016-05-26 22:22:42 +00:00
Bob Lantz
1451d7241b Run onos as ONOS_USER rather than root (!)
Change-Id: Ibe87b89a71d12665eb932b40a843c691c4cfa584
2016-05-17 14:44:14 -07:00
Bob Lantz
bb37d87ac7 Add port forwarding using iptables
By default, we now forward the following ports from
port on eth0 to port+N on onosN:

8101 (KarafPort)
8181 (GUIPort) (also REST)
6643 (OpenFlowPort)

Note: this will not work if your default interface is
called something other than eth0.

Also: added null topology so we can use onos.py to control
an external/hardware network.

Bugs: it seems that iptables isn't cleaned up completely -
Mininet's NAT element may be to blame.

Change-Id: I2197194100a77ebfddd0d38ad5194ad7569ceba3
2016-05-17 17:14:57 +00:00
Thomas Vachuska
fdeda92107 Clearing cell environment before borrowing and after returning cell.
Change-Id: Ia8da10406a25e9687cef5d7f8e31e9ceb11d8af9
2016-05-16 11:37:00 -07:00
Thomas Vachuska
5420ba371a Adding ability to balance load between different cell servers.
Adding ability to specify structure/size of the cell.

Change-Id: I5e87c99fe8812ba0a974d7815ab8ddc64193a608
2016-05-16 16:31:18 +00:00
Bob Lantz
1125848f95 Fix ipBase option misspelling
It's arguable that maybe might want to support 'ipbase' as well
since it's used in --ipbase and it's easier to type. However,
ipBase is the spelling used in Mininet, so we should be
consistent.

Change-Id: I2f61df0d2d09abf652c5f06ef9c734a55159a7de
2016-05-11 19:09:34 -07:00
Bob Lantz
087b5d93f2 onos.py: ONOS cluster and control network modeling in Mininet
This is intended to facilitate ONOS development and testing when
you require an ONOS cluster and a modeled control network. More
information is available in the file comments/module docstring.

Change-Id: I8a7338b61bd21eb82ea4e27adbf3cea15be312ee
2016-05-12 22:03:48 +00:00
Brian O'Connor
1314f8c818 Revert "Updating bin/karaf to fix ^D"
This change blocks ^C which is need to quit from log:tail

This reverts commit a84637c702a45e8e70f05f0437217f15930a7135.

Change-Id: Ifb0c2f67bb8719ca898ec1f9c7ad2d7f002db90a
2016-05-12 16:14:15 +00:00
Brian O'Connor
a84637c702 Updating bin/karaf to fix ^D
Karaf's ConsoleImpl does the wrong thing with ^D; the underlying
ConsoleReader already knows what to do.

Change-Id: I2276c34e4219894fb394b560cce5ff8a2503e95a
2016-05-10 19:16:53 -07:00
Jon Hall
7dc59d65fb Fix cell command for when -u is set in bash
Change-Id: Id51da2f92ff8b708fddfcffd0683736b9a74f6d3
2016-05-10 22:07:23 +00:00
Thomas Vachuska
f07ec2186a Reverting changes to onos-cell & cell
Change-Id: Ieb35fe2d51c1981f1d560bdfe072d5ccc6a26f90
2016-05-10 19:18:08 +00:00
Thomas Vachuska
a25cda2947 Removed defunct cell definitions
Moved implementation of the cell command into a script.

Change-Id: Iee307d1deca5d91fb0bdb548f67a7276bcf82f22
2016-05-09 23:34:46 +00:00
Thomas Vachuska
e91541fafe Modified warden to create borrowed cells on-demand and to scrap returned ones.
Change-Id: If32a0da18ff9d4c05645017e5cc7481bbd1ab0cd
2016-05-06 14:58:35 +00:00
Thomas Vachuska
e6185571d2 Changing bash_profile not to reserve a borrowed cell during sourcing.
Change-Id: I30bb38bd2a2e3d32c1c8019afe8198078bf9124e
2016-05-04 19:26:15 -07:00
Changhoon Yoon
a68e6f981a ONOS-4439 bug fixes for security mode init scripts
Change-Id: I7ba5d3f092a84b5b43434677aff0219aee60adcf
2016-05-04 21:40:05 +00:00
Thomas Vachuska
b826190142 Adding ability to get borrowed cell definition without changing the existing reservation.
Change-Id: Ib1fba430371f49f3c928998af98a6d347fabd93d
2016-05-04 17:57:06 +00:00
Thomas Vachuska
0d33700d45 Changed default borrow behaviour to simply get current cell definition if a reservation exists already.
Change-Id: I365233a78be6033d176e33c3c3b3ad33f791d85e
2016-05-04 17:50:46 +00:00
Thomas Vachuska
1eff3a603e Initial implementation of shared test cell warden.
Change-Id: Ia973d514fe1dd11ffe4cdb7c902cc43a9c2eb626
2016-05-03 21:02:41 +00:00
Bob Lantz
53228836e6 Respect ONOS_USER and ONOS_GROUP settings as intended.
Change-Id: I89936604434aa9c22d128350ac452e1aab763d5e
2016-04-16 00:48:49 +00:00
Brian O'Connor
7cbbbb7009 Adding Copyright notice to files that are missing it
Change-Id: Ic08aad8906dbd4dd062e7adcec7465475cf2bdda
2016-04-09 09:51:27 +00:00
Brian O'Connor
5ab426f9ff Updating copyrights
New format: 'Copyright .year-present Open Networking Laboratory'

Change-Id: I1a9e58b355b775e75245ad875a2d7a4df3f03098
2016-04-09 01:20:21 -07:00
Brian O'Connor
fa5e076873 Cleaning up karaf
Removing deprecated etc/samples
Removing unneeded featureRepos and features

Change-Id: Iad54774f6ecf74ca645accfd0745a42fcfb84a25
2016-04-09 02:01:11 +00:00
Brian O'Connor
9be2363757 Adding onos-buck file and buck alias
Change-Id: I548aade4802da87707d86c192e1800eb1edeb200
2016-04-08 18:43:36 -07:00
Jian Li
8bf6c44d00 Purge stale staged data directory to fix 500 error in web GUI
Change-Id: I1e2c42def84e981755965d31c092b169aec10091
2016-04-07 15:07:43 +00:00
Michele Santuari
91ee01b0e0 fix mci mcis commands
Change-Id: I0b1b91d52454fc94ca9b991b70480b26708f537f
2016-04-05 17:11:27 +00:00
Ray Milkey
33d81c6ba3 'o' command should not look at the buck-out tree
Change-Id: I76d0581ba1fd6f2c87232be69d70a0ae57f1cb71
2016-04-01 13:18:02 -07:00
Jian Li
cc752fa7a7 Try to remove stale localDB when commanding onos-setup-karaf clean
Change-Id: Ia8ec887d8236b87611c7ca1953e865780789a88d
2016-03-28 18:16:22 +00:00
Andrea Campanella
423962b157 [Goldeneye] ONOS-3939 Implementing Yang Sb XML utils
Change-Id: Ibf435f4c8e967ab793ec4a6d882df82b790f554f
2016-03-24 21:44:57 +00:00
HIGUCHI Yuta
709e4fe330 Prune first to speed up utility function 'o'
Change-Id: I22c46a0a8b690a58c18186aa85c0491e470c3c9b
2016-03-23 16:58:06 +00:00
Bob Lantz
e7b43039b1 Previously we were unsetting ONOS_USER and then checking whether
it was set, which doesn't make sense. The intent seems to be
to set a default and to respect existing settings of ONOS_USER,
and probably ONOS_GROUP as well.

Change-Id: I80dcbc2ccd80791c76b2497fd1da317765a6e66f
2016-03-03 19:40:03 +00:00