1488 Commits

Author SHA1 Message Date
Thomas Vachuska
f8d71b0538 Revert "Revert "Upgrading to stc 2.3""
This reverts commit 4590f260a5dc125f0b9e23ab376860e15892bbcc.

Change-Id: Ia01b0dec6992af51aafaad84733b4ff3a2817e45
2017-02-28 22:37:20 +00:00
Thomas Vachuska
4590f260a5 Revert "Upgrading to stc 2.3"
This reverts commit e0ee56cecfbd0029f18938fe4d2f35d1242fd772.

Change-Id: I348743fa1b409df1ec912e310207b67591b2fc39
2017-02-28 20:47:01 +00:00
Thomas Vachuska
e0ee56cecf Upgrading to stc 2.3
Change-Id: Ie14c78625cbe0fd0ba926e848f3820221ab01fb3
2017-02-28 12:34:00 -08:00
tjian
33917d353d [ONOS-6051] Use full path instead to fix the issue of "File or directory not found".
Change-Id: I727c94b9ff162e903eb624da74978151909f1678
2017-02-28 13:02:46 +00:00
Simon Hunt
5b4d665d11 Update regions bayarea config to have subregions use grid-layout data.
Change-Id: Ibdd59d0ebc36a03f2062c6234cadd69e567942ac
2017-02-27 20:53:18 +00:00
Jon Hall
1b92c79473 Force allocation of a tty in onos-wait-for-start
Change-Id: I1788fb2edfebbb33d2c97cf3aeea69486b98f7cc
2017-02-27 19:25:54 +00:00
Thomas Vachuska
1996d87200 Fixed issue with stc on initial bootstrap.
Change-Id: Ib29e2cbad776696d991016a288c041a50b992971
2017-02-27 18:29:58 +00:00
Jon Hall
e4a6100b96 Check logs on all nodes in stc dist tests
Change-Id: Ia98536940dc3d08b810a98f94f69fdc309d3fe67
2017-02-21 21:04:54 +00:00
Jon Hall
880b4e5f4b Check all nodes for app activation in stc
Check output in archetypes verification steps

Change-Id: I6d7d1133c007b769548ac92acbe61d60a5045398
2017-02-21 21:04:07 +00:00
Jon Hall
1d85439395 Fix missing stc dependencies
Change-Id: Ic5894de8d570cdb13e64623fa2e3b94b873c0da9
2017-02-21 19:09:33 +00:00
Jon Hall
da9fd4a436 Create setup and cleanup tests for stc dist tests
Change-Id: Ie977697a645be82e26ebf13d2510eb891a7c8b8c
(cherry picked from commit 4ad86cfda8f0dc2e87a1ef2ec0a48506c09274a0)
2017-02-21 18:56:26 +00:00
Jon Hall
ed2e6a8dbe Use UTC time format in onos-lib-gen
Also remove an extra space

Change-Id: Ia5a7636189be0cb5e961133f504c1d92c7a4445e
2017-02-18 03:07:52 +00:00
Simon Hunt
e9717e6a1a Allow associating a background map/sprite with the root layout.
Change-Id: I9216846e01d7126ffaad9125790f413d8ea8c496
2017-02-16 16:54:58 -08:00
Simon Hunt
bc30e68753 More plumbing of grid coordinates vs. geo coordinates.
- Added background reference parameter to layout command
- send correct location data to client for devices, hosts

Change-Id: Ic00bda76f4e4bc8d3e23e07a08f3bc5367ec85a9
2017-02-16 15:46:59 -08:00
Jon Hall
fb6009d215 Save stc temp logs in the stc folder
There was an issue when OCN was set to localhost. As part of Net-Smoke,
the command 'mn -c' is run which removes '/tmp/*.log'. This potentially
caused some tests to fail.

Change-Id: If68c184902b994e1ee38ea775c378ce29cdb891f
(cherry picked from commit a67dc45535c7b0b8ea6f246a10c1f2e4e18abb83)
2017-02-16 17:43:31 +00:00
Thiago Santos
9eb23c186f [ONOS-5287] onos-gen-partitions configure partition-size
- Add new '-s partition_size' argument to allow selecting the size of the
  partitions in a cluster
- Add new -n' argument to allow selecting the number of partitions in a
  cluster
- Use argparse to parse arguments
- Removed unused imports

Change-Id: Ie8ff4a9ef78bea023b32a4cf1c108ede478a8ba0
2017-02-15 19:05:30 +00:00
Simon Hunt
eb3cf54f31 Topo2: Add grid (x,y) option to null-provider devices and hosts (and basic element config).
Change-Id: Ia9eed66bda03174a6986d07fec40eb2a8f7728e3
2017-02-14 10:22:16 -08:00
Yuta HIGUCHI
c1e5f802bc onos-all: send CLI command to all cell nodes
Example:
$ onos-all set TRACE org.onosproject.net.intent.impl.compiler.ProtectedTransportIntentCompiler

Change-Id: I40dcf7b8a6e89b910eb5070eee6a1c312fb9689d
2017-02-13 16:49:59 -08:00
Ray Milkey
54a78514d2 Starting snapshot 1.10.0-SNAPSHOT
Change-Id: Icd6983be6a52293fb8a846a02d5e314c2c7aeaf0
2017-02-13 11:13:52 -08:00
Ray Milkey
57b510152e Starting snapshot 1.10-SNAPSHOT
Change-Id: I800d5d9e7f23793f5288457bca449ca382896723
2017-02-13 11:06:55 -08:00
Ray Milkey
de84cdde9a Starting snapshot 1.9.0-SNAPSHOT 2017-02-13 10:54:12 -08:00
Ray Milkey
8588c48114 Tagging 1.9.0-b3 2017-02-13 10:52:31 -08:00
Ray Milkey
2617e84fbf exclude SNAPSHOT reference
Change-Id: I2d8862a042be291820321cee4bf5ace47c7cfe5d
2017-02-13 10:17:58 -08:00
Ray Milkey
5782cf0cff add new SNAPSHOT exclusions
Change-Id: I84ab279c997ac861a9df1910486f91caa0182b48
2017-02-13 18:05:10 +00:00
Ray Milkey
5b03201444 Fix problem pubshing to non-snapshot repos - ONOS-5914
Change-Id: I52c8bfae5c85d2452ef26597e9849bac9a806af9
2017-02-08 13:37:56 -08:00
Ray Milkey
a3b7f5d133 Abort on publishing errors
Change-Id: Ie6f18a9340697ae65e5ae34df6f1ea3068dfba0d
2017-02-08 18:16:28 +00:00
Yuta HIGUCHI
3dcd286f3c Option to use rsync pushing bits
Use rsync to push bits (ONOS tar contents), when
environment variable USE_RSYNC is set to true.
This enables sending only changed .jar, now whole ONOS tar ball.

+ Minor optimization to reuse build machine to remote host ssh session

push bits:
 1) unpackage ONOS tar to tmp stage dir
 2) rsync local stage to remote stage /tmp/$ONOS_BITS
 3) package ONOS tar equivalent at remote node

push bits via proxy:
 1) rsync: build <=> proxy
 2)  scp :           proxy => cell nodes (tar packaged at proxy)
 3) rsync: build <==========> cell nodes (almost no-op)

Known limitation:
- rsync at Step 3 is triggered since
  repackaging same content remotely result in
  tar ball with different hash value.
  (Probably due to directory timestamp/uid difference)
- automatically installing rsync
  only supported for debian/ubuntu

Change-Id: Ibc9013b973c312798d2c36e7d25f5274f085b39f
2017-02-08 01:19:32 +00:00
Jian Li
43f103d4c9 [ONOS-5935] Bump up Jackson from 2.7.3 to 2.8.6
Change-Id: I995fb7d8f4dc99bbf2ba53d7a2ef3ec1c8942429
2017-02-03 21:13:31 +00:00
Jon Hall
b84df5deb9 Bump karaf from 3.0.5 to 3.0.8
Change-Id: Ic5bc130f5110f4ff9da6ec22d066a5dd3069288d
2017-02-02 23:22:40 +00:00
Ray Milkey
52e1127494 Don't try to close snapshot repos
Change-Id: I4ee927dc4e42cecdc8efa2fa4151ad0a99bf1880
2017-02-01 17:15:10 -08:00
Simon Hunt
433b30b642 Delete old test script for creating regions.
Change-Id: I6b03013f151dc16ab757ea87ffce8207e9634606
2017-01-30 18:53:35 +00:00
Ray Milkey
b40e945875 Fix STC for new intent CLI output format
Change-Id: I5892d8000f4f0a6bfdd1f22598b790966cb04a73
2017-01-27 23:08:40 +00:00
Ray Milkey
5c5454b414 Publish top level Maven POMs as part of release build
Change-Id: I6e10d4af4d8b59e3f5e15f001d160838a3c35266
2017-01-26 16:59:26 -08:00
Ray Milkey
2825d5e042 Build libgen from sources using buck
Change-Id: I438d02e86c34f8e5a7bd1203e1c67ba191c186c6
2017-01-27 00:47:09 +00:00
Ray Milkey
06f6e55519 Ignore files generated by the pom version update plugin
Change-Id: I0e96de2a26fd61b4f073cb6e03aba6254968334c
2017-01-26 18:29:33 +00:00
Thomas Vachuska
b3ef9d0684 Modified check-bits to show the listing of the actual tar.gz file rather than the sym-link.
Change-Id: I61ff5ffb3b37773fae192b2e02d723bb64dbbfb6
2017-01-26 08:51:11 -08:00
Luca Prete
3d402dcec4 Create stc net-setup topo for SDN-IP
Updated to latest routinglib version.

Change-Id: I939f5562cc88c30671f8f2f4b074699bd5367a79
2017-01-20 16:22:02 +00:00
Marc De Leenheer
f8e0283cd1 Fix for ONOS_APPS with dot in their name (ONOS-5843).
Change-Id: I6321e9984df2ec2e11aa99edd2756d44c2273c90
2017-01-19 18:27:39 -08:00
Bob Lantz
d22c991c6a Improvements for init.d, upstart, and systemd-based systems
1. Change ownership of /onos/apps

onos-service needs write access to onos/apps/foo in order to activate
an app. This also means that ONOS itself could also activate/deactivate,
modify, or reinstall apps, which seems a bit dodgy but is probably
intended.

2. Fix sudo command line

The -b option was in the wrong place, breaking sudo on systems where
we use sudo to start onos (e.g. older debian or centos.)

3. Redirect stderr of 'type daemon' command

We want to detect whether the 'daemon' function/script is available
in init.d enviroments that support it, and we do so using the type
command. Previously we didn't redirect stderr, so this resulted
in a confusing error message being sent to stderr of whoever is
invoking the script.

4. onos.conf has changed to be more consistent with onos.initd

Previously onos.conf ignored $ONOS_GROUP and had a slightly different
structure.

5. onos.service has been added for systemd-based systems

This initial version of onos.service calls /etc/init.d/onos to start
and stop ONOS. In the future we may be able to call onos-service
directly, but we will need to make sure that permissions are set up
correctly so that onos-service can activate apps and so that ONOS
itself can write its log files.

6. A README has been added

7. Update the onos-install and onos-uninstall scripts

Related Jira issue: ONOS-5550

Change-Id: Ie72775f1d0a4082af9c5ea9b13999c427c15ffe0
2017-01-19 23:38:10 +00:00
Ray Milkey
287b4ae810 Starting snapshot 1.9.0-SNAPSHOT 2017-01-19 15:21:17 -08:00
Ray Milkey
2557ba3375 Tagging 1.9.0-b1b 2017-01-19 15:20:17 -08:00
Ray Milkey
f3aba5f665 Only push maven artifacts that are useful to external apps
Change-Id: I87e077334c69402f0e178aceb14116597760f351
2017-01-19 20:26:42 +00:00
Yuta HIGUCHI
2f39b54fd5 Fix shellcheck detected errors
- onos-package
  SC2071: > is for string comparisons. Use -gt instead.

- ./tools/build/onos-blackduck-zip
  SC1035: You need a space after the [ and before the ].

Change-Id: I409b4a181e9cd49795afbdaa68b68c26413b9401
2017-01-19 17:33:14 +00:00
Jian Li
b39bf9982e [ONOS-5846] Bump up jersey to 2.25 with corresponding deps updated
Change-Id: Id27332a221c1ae1df1bd0e42ba32aa258eef857f
2017-01-18 19:32:00 +00:00
Jonathan Hart
77daee891b Move Dockerfile to repository root.
It seems to be mandatory to have the Dockerfile here if we want to build
from the source in the repo in a Dockerhub automated build.

ONOS-5832

Change-Id: I01536ae9476987f20df03560834b1adcf0b6aec0
2017-01-17 15:29:59 +00:00
Jonathan Hart
2fd35b60e2 Test dockerfile for debugging
Change-Id: I1e69af15f6c28b6f0006f9f1afa0e86f2bdcc20c
2017-01-16 11:08:02 -08:00
Yuta HIGUCHI
0410712d63 ensure known_hosts exist
Locally running ONOS was failing on fresh machine
 where known_hosts doesn't exist yet.

Change-Id: I83beb0118f6f41e8b24eff1ab7cb53d2ca95f853
2017-01-16 16:40:06 +00:00
Yuta HIGUCHI
aa0cb506bf Clean up temporary files on exit
Change-Id: I3568c76529fe3f66a5d8b8e5bdaa365f56c589a8
2017-01-12 19:44:31 +00:00
Thomas Vachuska
cd443da270 Fixed tar-setup STC scenario to work with new packaging.
Change-Id: Ia02f4a40f58fcd94095c79e2a2b22c851b5dd872
2017-01-11 18:56:33 +00:00
Yuta HIGUCHI
5b4d47d7c7 Ensure symbolic link to buck artifacts are present
- stc, etc. relied on the behavior that source-ing
  envDefaults will create symlink to buck artifacts

Change-Id: Ic5039dbaf18f0eb36b1bb7a41dbecc8a5f974f19
2017-01-11 18:36:25 +00:00