integration/packaging.git
7 years agoFix RPM extract_version unittests 03/53803/4
Daniel Farrell [Fri, 24 Mar 2017 17:13:09 +0000 (13:13 -0400)]
Fix RPM extract_version unittests

Update to use current autorelease examples, fix PEP8 violation.

Change-Id: Iec782dddd9f86e1a3b672cf46c8d07709ea49fc7
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
7 years agoEnable YAML Coala linting, fix problems 17/53817/1
Daniel Farrell [Fri, 24 Mar 2017 20:55:11 +0000 (16:55 -0400)]
Enable YAML Coala linting, fix problems

Change-Id: I7bc73817311879dfc2bf83f0bb8915094cadc7d0
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
7 years agoUse latest Int/Pack repo commit hash as sysd_commit var 71/53671/5
Akshita Jha [Fri, 24 Mar 2017 20:09:52 +0000 (01:39 +0530)]
Use latest Int/Pack repo commit hash as sysd_commit var

This adds logic to use the latest Int/Pack repo commit hash as sysd_commit
var unless passed by param.

Change-Id: I7b1e703648fb2eee6b8ed962532126276f7a12d9
Signed-off-by: Akshita Jha <zenith158@gmail.com>
7 years agoAdd coala linting to tox 13/49313/7
srisankethu [Tue, 13 Dec 2016 17:58:44 +0000 (23:28 +0530)]
Add coala linting to tox

Ignore most checks for now. Will enable as things are fixed.

Change-Id: I2b9bd627277ef04e6d2f72d07072c5448f1d3271
Signed-off-by: srisankethu <sanketh.uppalapati@research.iiit.ac.in>
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
7 years agoIgnore tmp dir created by coala 06/53806/1
Daniel Farrell [Fri, 24 Mar 2017 17:56:38 +0000 (13:56 -0400)]
Ignore tmp dir created by coala

Change-Id: I838a74c9b033016fd8ffcff035f27a4b76de9c7c
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
7 years agoUse current datetime as default for RPM changelog date 60/53660/4
Akshita Jha [Wed, 22 Mar 2017 09:44:38 +0000 (15:14 +0530)]
Use current datetime as default for RPM changelog date

The current datetime should be the default date for RPM changelog dates
but can still accept optional `changelog_date` param.

Change-Id: I8bcc579d27d63ca091fff536254d3f17752ae306
Signed-off-by: Akshita Jha <zenith158@gmail.com>
7 years agoAdd .rst files for readthedocs for Int/Pack 20/49720/11
Umesh Singla [Wed, 21 Dec 2016 23:07:09 +0000 (04:37 +0530)]
Add .rst files for readthedocs for Int/Pack

Change-Id: I37fa9706c36b57b8cb0118e2abed0b4c2369d073
Signed-off-by: Umesh Singla <umeshksingla@gmail.com>
7 years agoAdd example RPM repo config for latest-Carbon 81/52181/2
Daniel Farrell [Wed, 22 Feb 2017 17:37:49 +0000 (12:37 -0500)]
Add example RPM repo config for latest-Carbon

Change-Id: Ic70d17ca59786af257e284b62e86ed301988fdd0
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
7 years agoAdd RPM repo config for Carbon 82/52182/1
Daniel Farrell [Wed, 22 Feb 2017 17:41:21 +0000 (12:41 -0500)]
Add RPM repo config for Carbon

Note: Will not work until Carbon is released/built/pushed.

Change-Id: I9c45d7272a6658dc925f97fb79d704a770e053aa
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
7 years agoEnable scripted start/stop of key-value server 08/51208/2
Matt Welch [Mon, 30 Jan 2017 20:26:15 +0000 (12:26 -0800)]
Enable scripted start/stop of key-value server

Add scripts to repeatably start and stop key-value server in
docker-devstack cluster.

For related work, see:
https://github.com/mgkwill/docker-devstack
https://github.com/matt-welch/docker-devstack

Change-Id: I4cb5115d43f576fa95c4d3ca9897aedea3abe3f2
Signed-off-by: Matt Welch <matt.welch@intel.com>
7 years agoAdd OpenStack Containers 70/50570/8
Marcus G K Williams [Tue, 17 Jan 2017 17:57:04 +0000 (09:57 -0800)]
Add OpenStack Containers

Add OpenStack compute containers
for the purposes of
testing and developement.

Change-Id: I1b5717c2ed3665dae887b9ba15cf39d97aebeea0
Signed-off-by: Marcus G K Williams <marcus.williams@intel.com>
Co-Authored-By: Matt Welch <matt.welch@intel.com>
7 years agoCluster setup in one click - Docker & Vagrant 28/51528/2
Alexis de Talhouët [Tue, 7 Feb 2017 18:12:09 +0000 (13:12 -0500)]
Cluster setup in one click - Docker & Vagrant

TODO:
- add the ability to customize the IPs of the spwan containers through
the config.properties file

Change-Id: I450a596a5201c8a379080a82effe5c1d58f063d6
Signed-off-by: Alexis de Talhouët <adetalhouet89@gmail.com>
Signed-off-by: Jamo Luhrsen <jluhrsen@redhat.com>
7 years agoAdd ODL 5.1 and 5.2 Packer builds 85/50385/5
Daniel Farrell [Fri, 13 Jan 2017 02:16:56 +0000 (21:16 -0500)]
Add ODL 5.1 and 5.2 Packer builds

Change-Id: I8bbb67225349f0d46a8b053f19700362c63d805f
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
7 years agoAdd Fedora 25 Packer builds 84/50384/5
Daniel Farrell [Fri, 13 Jan 2017 02:15:49 +0000 (21:15 -0500)]
Add Fedora 25 Packer builds

Change-Id: Id9fb604c5d73479abbb14deb11187fc2329bd671
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
7 years agoUpdate Packer test Vagrantfile for F25, ODL 5.2 83/50383/5
Daniel Farrell [Fri, 13 Jan 2017 02:10:04 +0000 (21:10 -0500)]
Update Packer test Vagrantfile for F25, ODL 5.2

Change-Id: I519bbd3a977d9e72cef0df03f9ad229e8870b292
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
7 years agoFixs in Packer cleanup/minimize scripts 82/50382/4
Daniel Farrell [Fri, 13 Jan 2017 00:23:06 +0000 (19:23 -0500)]
Fixs in Packer cleanup/minimize scripts

* Need root, use sudo.
* Don't do yum remove of packages that aren't installed
* Fix shebang

Change-Id: I883d32898e60333530e2e976710dbd73399aba4b
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
7 years agoAdd Packer vars for CentOS 7.3.1611 29/50529/1
Daniel Farrell [Tue, 17 Jan 2017 00:31:10 +0000 (19:31 -0500)]
Add Packer vars for CentOS 7.3.1611

Change-Id: I99aded4dae03590b7b439ca9922413a146f4285e
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
7 years agoUpdate Ansible and Puppet submodule versions 86/50386/1
Daniel Farrell [Fri, 13 Jan 2017 02:19:41 +0000 (21:19 -0500)]
Update Ansible and Puppet submodule versions

Change-Id: I380fdf105116c3d00430e9e74f2700e68d13130c
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
7 years agoAdd example repo file for installing Boron SR2 RPM 80/50380/1
Daniel Farrell [Thu, 12 Jan 2017 23:26:25 +0000 (18:26 -0500)]
Add example repo file for installing Boron SR2 RPM

Change-Id: Iad4cf81d311ca687b5c5f946c5d34a47abf0986a
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
7 years agoAdd Boron-SR2 definitions 77/49777/2
Romanos Skiadas [Fri, 23 Dec 2016 10:04:44 +0000 (12:04 +0200)]
Add Boron-SR2 definitions

Change-Id: I208071b007b875002ed389e0a5ab4520c8af7cb7
Signed-off-by: Romanos Skiadas <rski@intracom-telecom.com>
7 years agoUse `extract_version()` to get version info in rpm build scripts 37/49837/4
Alok Anand [Tue, 27 Dec 2016 19:32:12 +0000 (01:02 +0530)]
Use `extract_version()` to get version info in rpm build scripts

Since version info can be extracted from download_url, this patch
removes unnecessary params from new/existing/snapshot builds. It
also removes version info from build_vars.yaml.

Adds license header to build_vars.yaml file.

Change-Id: I83c8aba231e8510013134cee8f252d2c05ec859e
Signed-off-by: Alok Anand <alok4nand@gmail.com>
7 years agostart using dnf instead of yum for fedora 88/49988/1
Jamo Luhrsen [Tue, 3 Jan 2017 22:04:49 +0000 (14:04 -0800)]
start using dnf instead of yum for fedora

Change-Id: Ie62ddf4b3e0038ccb81a6cd897c72d406ce5a776
Signed-off-by: Jamo Luhrsen <jluhrsen@redhat.com>
7 years agoMinimize docker image and vagrant box sizes 80/49880/2
srisankethu [Fri, 30 Dec 2016 00:52:48 +0000 (06:22 +0530)]
Minimize docker image and vagrant box sizes

Change-Id: I67bf3ab27774a294bdead989ad9f0d92697bc057
Signed-off-by: srisankethu <sanketh.uppalapati@research.iiit.ac.in>
7 years agoExtract version logic from URL in RPM Build Script 06/48106/30
Girish Sukhatankar [Tue, 8 Nov 2016 06:38:28 +0000 (23:38 -0700)]
Extract version logic from URL in RPM Build Script

Add extract_url() function to return ODL version parameters.

Add unit tests for version extraction logic, doc.

Add license headers.

Change-Id: Id765c2cca9ad10c88efb08c6ac2bb98b1b0ef4c8
Signed-off-by: Girish Sukhatankar <girish.sukhatankar@colorado.edu>
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
Signed-off-by: Alok Anand <alok4nand@gmail.com>
7 years agoFix YAML files, using coala 19/49319/3 release/boron-sr2
Umesh Singla [Tue, 13 Dec 2016 19:10:34 +0000 (00:40 +0530)]
Fix YAML files, using coala

Add .yamllint for linting YAML files, overriding default
rules of YAMLLintBear for line-length and truthy values

Change-Id: Ia37f5dc6b5394c15285de7e038d66c7bf9058576
Signed-off-by: Umesh Singla <umeshksingla@gmail.com>
7 years agoAdd function to build latest snapshot RPM 62/49262/3
Alok Anand [Wed, 14 Dec 2016 07:17:19 +0000 (12:47 +0530)]
Add function to build latest snapshot RPM

For a given major version find the latest
snapshot using url and build its .rpm.
Pass `--build-latest-snap` along with
required params to build.py.
For example:
./build.py --build-latest-snap --major 5

Change-Id: If8e86ff3d97e4551f8884a5b9583e4fe48793f5a
Signed-off-by: Alok Anand <alok4nand@gmail.com>
7 years agoFix .py files 18/49318/1
Umesh Singla [Tue, 13 Dec 2016 19:07:58 +0000 (00:37 +0530)]
Fix .py files

Fix/lint .py files according to PEP8, using coala

Change-Id: I63e6e3b3c62cd3737e1978d8be11b7f9e5dbbc9b
Signed-off-by: Umesh Singla <umeshksingla@gmail.com>
7 years agoFix json files 10/49310/1
Umesh Singla [Tue, 13 Dec 2016 16:31:01 +0000 (22:01 +0530)]
Fix json files

Clean up json indentation warnings generated by coala

Change-Id: Iaa806d2fb7d8662c1ad089953f9e4208036b40fa
Signed-off-by: Umesh Singla <umeshksingla@gmail.com>
7 years agoAdd .coafile 64/49164/4
srisankethu [Thu, 8 Dec 2016 13:23:59 +0000 (18:53 +0530)]
Add .coafile

It is a config file for coala.

To test, install coala and coala-bears.

Install dependencies as asked after running 'coala'.

For example:

sudo npm install -g remark-cli dockerfile_lint

Change-Id: Ia883b48d4d5b27768bd65dcb2cd5a5aa89a6b4ce
Signed-off-by: srisankethu <sanketh.uppalapati@research.iiit.ac.in>
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
7 years agoIncrease limit of open files for ODL service 41/48541/1
Michal Skalski [Mon, 21 Nov 2016 15:23:45 +0000 (16:23 +0100)]
Increase limit of open files for ODL service

On Ubuntu 16.04 with default limit of 4096 open files karaf.log included
error messages:

  java.io.IOException: Too many open files

New limit was taken from this change
https://gerrit.opnfv.org/gerrit/#/c/14171/

Change-Id: I247e58891294765f4c77a1258c87637a3edd3d62
Signed-off-by: Michal Skalski <mskalski@mirantis.com>
7 years agoRemove old RPM version docs 27/48427/1
Daniel Farrell [Wed, 16 Nov 2016 20:14:05 +0000 (15:14 -0500)]
Remove old RPM version docs

Change-Id: I2217bb4093d7e56e5d0af0075b58156f17a0665c
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
7 years agoAdd possibility to build packages inside docker 82/48382/9
Michal Skalski [Wed, 16 Nov 2016 00:34:27 +0000 (01:34 +0100)]
Add possibility to build packages inside docker

Also add recent RPM/.deb build_vars.yaml sections.

Change-Id: I7dc501d552d8e345c70612b88ab534e54dd81dc2
Signed-off-by: Michal Skalski <mskalski@mirantis.com>
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
7 years agoadd newline so tox will pass 84/48384/1
Jamo Luhrsen [Wed, 16 Nov 2016 04:40:06 +0000 (20:40 -0800)]
add newline so tox will pass

Change-Id: Ib8cbc0f1d334b9ad7227857c6df3b73af5cd6a52
Signed-off-by: Jamo Luhrsen <jluhrsen@redhat.com>
7 years agoFix Packer Vagrantfile libvirt box names, add 5.1 67/47967/1
Daniel Farrell [Fri, 4 Nov 2016 04:55:20 +0000 (00:55 -0400)]
Fix Packer Vagrantfile libvirt box names, add 5.1

Change-Id: I2e2032cc117716a18523e831ae7200a403771c7d
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
7 years agoAdd example RPM repo config for ODL 5.1 09/47909/1
Daniel Farrell [Thu, 3 Nov 2016 23:48:54 +0000 (19:48 -0400)]
Add example RPM repo config for ODL 5.1

Change-Id: I602519a8dcb9fb94c1701826e5b5e72dc2109124
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
7 years agoAvoid hitting Docker-breaking-Packer bug 04/47904/1 release/boron-sr1
Daniel Farrell [Thu, 3 Nov 2016 20:03:30 +0000 (16:03 -0400)]
Avoid hitting Docker-breaking-Packer bug

Docker removed a flag that broke Packer. Docker versions >1.12 fail with
force set to true.

Packer issue tracking it:

https://github.com/mitchellh/packer/issues/3771

PR that broke us:

https://github.com/docker/docker/pull/23090

Change-Id: I6f544e5d8353e997d2560fe96e7ae545761c2173
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
7 years agoAdd Packer config make ssh auth work by default 12/47712/2
Daniel Farrell [Fri, 28 Oct 2016 01:18:15 +0000 (21:18 -0400)]
Add Packer config make ssh auth work by default

Recent versions of Fedora don't use ssh-dss, which old versions of ODL
seem to offer by default. Can fix with a system config change like this
or by manually passing as option to ssh command. The csit and l2switch
tutorials do it by changing this configuration. vagrant-opendaylight's
connect.sh helper script is an example of passing the param to ssh CLI.

There might be a better way/place to fix this. Ideas encouraged.

Change-Id: Id143fa6bc864469926596dfaddb77902f6d8c68f
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
7 years agoUpdate Packer Vagrantfile for ODL 4.3/4.4/5, F24 11/47711/3
Daniel Farrell [Fri, 28 Oct 2016 00:21:05 +0000 (20:21 -0400)]
Update Packer Vagrantfile for ODL 4.3/4.4/5, F24

Change-Id: I6966a261c21beee30ac0f432c3f4f91530c727de
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
Signed-off-by: Jamo Luhrsen <jluhrsen@redhat.com>
7 years agoAdd ODL Be SR4 4.4 RPM build definition 10/47710/1
Daniel Farrell [Thu, 27 Oct 2016 23:26:30 +0000 (19:26 -0400)]
Add ODL Be SR4 4.4 RPM build definition

Note that a 4.4 RPM was built using Jenkins and pushed to the CentOS CBS
for consumption a while ago.

Change-Id: I5eb060df75c5798e03cbe33eab06b4d28304c631
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
7 years agoAdd Packer (Docker/Vagrant) build def for ODL 5.0 05/47705/2
Daniel Farrell [Thu, 27 Oct 2016 22:00:08 +0000 (18:00 -0400)]
Add Packer (Docker/Vagrant) build def for ODL 5.0

Change-Id: Ic6d9b8f715eb224a104936c65650bcb7aba7e66f
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
7 years agoAdd Packer (Docker/Vagrant) build def for ODL 4.4 04/47704/2
Daniel Farrell [Thu, 27 Oct 2016 21:59:42 +0000 (17:59 -0400)]
Add Packer (Docker/Vagrant) build def for ODL 4.4

Change-Id: I7dde61ad3e91f024719c0856a77b158e448e8abd
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
7 years agoIgnore file generated when Ansible fails 02/47702/2
Daniel Farrell [Thu, 27 Oct 2016 21:52:58 +0000 (17:52 -0400)]
Ignore file generated when Ansible fails

Change-Id: Ic1df372f7d46af20b6f806addb536a4d557bb596
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
7 years agoAdd Packer (Docker/Vagrant) build def for ODL 4.3 01/47701/2
Daniel Farrell [Thu, 27 Oct 2016 21:51:47 +0000 (17:51 -0400)]
Add Packer (Docker/Vagrant) build def for ODL 4.3

Change-Id: Ia0e82d386e265e92443e5ede9b583f83ff8a90ff
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
7 years agoUpdate Packer (Docker/Vagrant) builds F23->F24 03/47703/2
Daniel Farrell [Thu, 27 Oct 2016 21:55:03 +0000 (17:55 -0400)]
Update Packer (Docker/Vagrant) builds F23->F24

Change-Id: I4f35a3d764bc282dde51ee3a95efe110bd442bd2
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
7 years agoAdd Vagrantfile for quickly testing Packer builds 70/43670/3
Daniel Farrell [Thu, 11 Aug 2016 02:06:16 +0000 (22:06 -0400)]
Add Vagrantfile for quickly testing Packer builds

Allows testing box with `vagrant up <name>` after a build, without
having to do a manual `vagrant box add` and defining a Vagrantfile
that boots the newly added box.

Change-Id: Ib9b232daf55901169535823f6f71cd0d7b30e524
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
7 years agoFix opendaylight 4.2 var file 01/43201/2
Patrick Laurin [Fri, 5 Aug 2016 00:27:35 +0000 (20:27 -0400)]
Fix opendaylight 4.2 var file

Change-Id: Idaea06385ec758c5203a4c81c5d17c271e05cace
Signed-off-by: Patrick Laurin <plaurin@inocybe.ca>
7 years agoAdd Beryllium SR3 example RPM repo config 65/47365/2
Daniel Farrell [Fri, 21 Oct 2016 21:06:54 +0000 (17:06 -0400)]
Add Beryllium SR3 example RPM repo config

Change-Id: I4b45509b490fe1d7ef0f82d436ecf6714d2ff2dd
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
7 years agoAdd Beryllium SR4 example RPM repo config 66/47366/1
Daniel Farrell [Fri, 21 Oct 2016 21:08:07 +0000 (17:08 -0400)]
Add Beryllium SR4 example RPM repo config

Change-Id: Ie93a749a6c2885cbc7e114dca702689fa9eae30a
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
7 years agoCleanup tox.ini 79/47079/2 release/beryllium-sr4
Daniel Farrell [Mon, 17 Oct 2016 15:40:33 +0000 (11:40 -0400)]
Cleanup tox.ini

Update exclude rules for current repo structure.

Change-Id: I837638dd3d4cb142d4a06366e3b55f978a9957ae
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
7 years agoCleanup .gitignore 78/47078/3
Daniel Farrell [Mon, 17 Oct 2016 15:39:42 +0000 (11:39 -0400)]
Cleanup .gitignore

Remove old Integration pre-split rules, doc remaining rules.

Change-Id: I8aaaedfaeb6bc117a8e8ef87b99158513eb83704
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
7 years agoAdd Boron RPM definition 59/46659/1
Daniel Farrell [Fri, 7 Oct 2016 09:43:40 +0000 (05:43 -0400)]
Add Boron RPM definition

Change-Id: I3d3fe2ee61418147aeeb39bfd44437e3f78b5ff1
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
7 years agoRemove old Boron snapshot RPM builds 58/46658/1
Daniel Farrell [Fri, 7 Oct 2016 09:21:46 +0000 (05:21 -0400)]
Remove old Boron snapshot RPM builds

Change-Id: Idb0ace3da173c65e623deffcf550480fc9077393
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
7 years agoAdd vagrant box version 47/46147/2
Akshita Jha [Fri, 23 Sep 2016 17:15:26 +0000 (22:45 +0530)]
Add vagrant box version

Change-Id: I9aba0f170e1b72a566975ebee66fb5c27227ea30
Signed-off-by: Akshita Jha <zenith158@gmail.com>
7 years agoadd bridge networking and tweak vagrant user permissions for wireshark 53/46153/1
Jamo Luhrsen [Thu, 22 Sep 2016 20:58:42 +0000 (13:58 -0700)]
add bridge networking and tweak vagrant user permissions for wireshark

Change-Id: I5f92fce1cdea5987027a7d5887fd20ff8bff6ad2
Signed-off-by: Jamo Luhrsen <jluhrsen@redhat.com>
7 years agoadd single-vm vagrant for csit tutorial 45/45945/10
Jamo Luhrsen [Tue, 20 Sep 2016 23:41:20 +0000 (16:41 -0700)]
add single-vm vagrant for csit tutorial

Change-Id: I3bccdf1340d3f550d249d337c49902fc3df78e65
Signed-off-by: Jamo Luhrsen <jluhrsen@redhat.com>
7 years agoAdd 5-release example RPM .repo file 04/46004/1
Daniel Farrell [Wed, 21 Sep 2016 20:55:45 +0000 (16:55 -0400)]
Add 5-release example RPM .repo file

Change-Id: Ibb6e64226a278ba94cf0fb98985fd518d1d5f973
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
7 years agoUpdate pkg source info in deb Vagrantfile 39/45939/1
Daniel Farrell [Tue, 20 Sep 2016 22:17:14 +0000 (18:17 -0400)]
Update pkg source info in deb Vagrantfile

Breaks at apt-get install with 404s otherwise.

Change-Id: I66c1ac34b432b6843522d4ae7adacae55009ed04
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
7 years agoAdd information regarding the hosted debian packages for consumption 37/45937/2
Akshita Jha [Tue, 20 Sep 2016 20:43:49 +0000 (02:13 +0530)]
Add information regarding the hosted debian packages for consumption

Change-Id: I660cfca33c565785a9e613dc6320945468a2f533
Signed-off-by: Akshita Jha <zenith158@gmail.com>
7 years agoRemove `wget` logic from debian files 36/45936/1
Akshita Jha [Tue, 20 Sep 2016 20:41:23 +0000 (02:11 +0530)]
Remove `wget` logic from debian files

Since, `cache/cache.py` checks and downloads OpenDaylight's tarball,
wget in debian files is no longer needed.

Change-Id: Ic4dae6f7c4f9eb49caf982dce03dd9df57e1ea8d
Signed-off-by: Akshita Jha <zenith158@gmail.com>
7 years agoadd example repo for installing Boron 47/45847/1
Jamo Luhrsen [Mon, 19 Sep 2016 21:36:52 +0000 (14:36 -0700)]
add example repo for installing Boron

Change-Id: I558bf835a4f090a4d4705ed5aac54d5e517c9d72
Signed-off-by: Jamo Luhrsen <jluhrsen@redhat.com>
7 years agoAdds the feature to build ODL's .deb package from local tarball 41/45541/2 release/boron
Akshita Jha [Tue, 13 Sep 2016 15:07:59 +0000 (20:37 +0530)]
Adds the feature to build ODL's .deb package from local tarball

The file `cache/cache.py` caches the tarball required for the given
debian build. `build.py` now uses a local tar.gz file, if it exists;
otherwise `cache/cache.py` downloads the appropriate version of
OpenDaylight's release tarball.

This commit further removes all old debian files created during
previous debian packaging.

It also removes executable permission from `build_vars.yaml`.

Change-Id: Ida69d19b34751bd7f221b8756348b9a77c3decd0
Signed-off-by: Akshita Jha <zenith158@gmail.com>
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
7 years agoUse YAML+templates to define deb pkg builds 53/43253/19
Akshita Jha [Fri, 5 Aug 2016 17:26:17 +0000 (22:56 +0530)]
Use YAML+templates to define deb pkg builds

Adds deb pkg building helper script

The build.py script uses templates/build_debianfiles.py to
generate debian files for ODL .deb packages. To execute script:

  $ build.py -v <version_major> <version_minor> <version_patch> \
                <pkg_version>

build_debianfile.py reads build_vars.yaml and uses Jinja2 templates to
create debian files specific to a build.

The directory `templates` contains jinja2 templates for files
debian/control, debian/rules, debian/changelog. These files change
dynamically for every build. The other files are mostly the same for all
builds.

Also installs Python dependencies for build scripts in Vagrant env and
adds information in README.markdown for building Debs.

Change-Id: Iabba1d808c4fbb4a5832556c30dca4f9de13aaa4
Signed-off-by: Akshita Jha <zenith158@gmail.com>
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
7 years agoAdd ODL 5.0.0-0.1.20160815snap4347 RPM build def 03/44003/2
Daniel Farrell [Mon, 15 Aug 2016 18:33:01 +0000 (14:33 -0400)]
Add ODL 5.0.0-0.1.20160815snap4347 RPM build def

Change-Id: Ic9c683792f01ad7efd84f6cb5326d3c442e35aca
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
7 years agoSet RPM-building VM CPU/RAM for both LibVirt/VBox 04/44004/1
Daniel Farrell [Mon, 15 Aug 2016 18:34:13 +0000 (14:34 -0400)]
Set RPM-building VM CPU/RAM for both LibVirt/VBox

Allocate more RAM so ODL doesn't fail when starting and installing a few
features. Allocate more CPU to speed up RPM building.

Change-Id: I46db2f2a4e44860c12091b0d3edf25ca97b03cb0
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
7 years agoAdd Vagrantfile for L2Switch tutorial 10/41110/23
Girish Sukhatankar [Thu, 30 Jun 2016 01:44:01 +0000 (19:44 -0600)]
Add Vagrantfile for L2Switch tutorial

Defines a Vagrant env with OpenDaylight, OVS and Mininet, with ODL's
L2Switch and DLUX features installed and DLUX's port forwarded to the
host.

A user should be able to `vagrant up` this box, wait for provisioning,
connect to `localhost:8181/index.html`, login with `admin`/`admin` and
see ODL DLUX using L2Switch to show a Mininet topology.

Change-Id: Ifb717d64aedd62be066934aeb22339ce9fb5791e
Signed-off-by: Girish Sukhatankar <girish.sukhatankar@colorado.edu>
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
7 years agoDocumentation for the L2 Switch Tutorial 83/41183/25
Vamsi Viswanadha [Thu, 30 Jun 2016 23:51:51 +0000 (17:51 -0600)]
Documentation for the L2 Switch Tutorial

Change-Id: Ie6a39ecf4b4d19c81d690823dc21f13e7f1283a7
Signed-off-by: Vamsi Viswanadha <vavi0155@colorado.edu>
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
7 years agoSet expected ODL exit code to 143 in RPM unitfile 71/43571/2
Daniel Farrell [Tue, 9 Aug 2016 22:54:22 +0000 (18:54 -0400)]
Set expected ODL exit code to 143 in RPM unitfile

ODL's normal exit value seems to be 143. Tell systemd that this isn't an
error, but the code it should expect ODL to return. Will cause systemd
to start reporting ODL exits as successful.

Once this is merged, new releases for all current RPMs should be cut
with sysd_commit set to find this unitfile version.

Based on 40584 by Akshita Jha.

Change-Id: I95a18a58f6201d2e76402770557a7b90245830cd
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
7 years agoRemove old RPM defs, use new template for .specs 62/43562/1
Daniel Farrell [Tue, 9 Aug 2016 20:30:41 +0000 (16:30 -0400)]
Remove old RPM defs, use new template for .specs

Removed builds for which the artifacts have aged out, or have been
supplanted by official releases. Update other .specs with recent changes
to opendaylight.spec template.

Change-Id: I36d41323f3c9e0c1ec2af2db194b5ccaed10b716
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
7 years agoAdd 5.0.0-0.1.20160809snap4240 RPM definition 61/43561/2
Daniel Farrell [Tue, 9 Aug 2016 20:25:19 +0000 (16:25 -0400)]
Add 5.0.0-0.1.20160809snap4240 RPM definition

Moving to 0.n, vs n, for RPM version. Also proper snapshot version
format. Both described here:

http://fedoraproject.org/wiki/Packaging:Naming

Change-Id: I32c16d9911527b6675c3d8428f68eb91811320e5
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
7 years agoAdd ODL Beryllium SR3 RPM definition 60/43560/2
Daniel Farrell [Tue, 9 Aug 2016 20:17:16 +0000 (16:17 -0400)]
Add ODL Beryllium SR3 RPM definition

Change-Id: Ib901b7c5877818991ebec4dee12576463be19ee6
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
7 years agoForce ODL RPM tarball source name consistency 55/43555/3
Daniel Farrell [Tue, 9 Aug 2016 18:36:37 +0000 (14:36 -0400)]
Force ODL RPM tarball source name consistency

When we pass a URL to Source0, autosetup guesses the source tarball name
based on the last segment of the URL. Since distribution and autorelease
builds use different tarball name formats, we need force them to download
to the same format and explicitly use that for Source0.

Change-Id: Ic13c501c336a8cc752316ce63dea927c307597ed
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
7 years agoAdd Fedora 23 Vagrant base boxes 20/38120/14 release/beryllium-sr3
Patrick Laurin [Tue, 26 Apr 2016 16:40:53 +0000 (12:40 -0400)]
Add Fedora 23 Vagrant base boxes

Adds Fedora 23 boxes for ODL 3.4, 4.0 and 4.1. VirtualBox has been
tested, LibVirt and Docker builders have not.

Change-Id: I0f3ceebe6150379f50cbaac1399ab0a5ca541cbe
Signed-off-by: Patrick Laurin <plaurin@inocybe.com>
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
7 years agoAdd basic README for ODL Debian package 98/42998/2
Akshita Jha [Tue, 2 Aug 2016 18:24:01 +0000 (23:54 +0530)]
Add basic README for ODL Debian package

Change-Id: I450652f648957f0d4609878f2587a47b0dba66ff
Signed-off-by: Akshita Jha <zenith158@gmail.com>
7 years agoSync folders /packaging/deb/ and /vagrant 96/42996/1
Akshita Jha [Tue, 2 Aug 2016 18:10:53 +0000 (23:40 +0530)]
Sync folders /packaging/deb/ and /vagrant

Change-Id: Ic6a8e662993d0d40bf5bd9d58d0cfe70cd48bb18
Signed-off-by: Akshita Jha <zenith158@gmail.com>
7 years agoAdd basic/stub README for ODL Debian package 29/42929/4
Daniel Farrell [Mon, 1 Aug 2016 19:50:05 +0000 (15:50 -0400)]
Add basic/stub README for ODL Debian package

Change-Id: I40fd91afbfd5c5ff8782a0c2190d83dff19ab3f3
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
7 years agoAdd Vagrantfile for OpenDaylight .deb package 46/42846/5
Akshita Jha [Sun, 31 Jul 2016 11:58:54 +0000 (17:28 +0530)]
Add Vagrantfile for OpenDaylight .deb package

Change-Id: Ie012f0665cc33b6913cb53e021a45d35a8bd3a2d
Signed-off-by: Akshita Jha <zenith158@gmail.com>
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
Signed-off-by: Akshita Jha <zenith158@gmail.com>
7 years agoAdd ODL 4.3.0-1.1367 RPM build definition 83/42583/3
Daniel Farrell [Tue, 26 Jul 2016 15:55:13 +0000 (11:55 -0400)]
Add ODL 4.3.0-1.1367 RPM build definition

Change-Id: I7ec3177b5343730494518312a956c2c4a3c17c0e
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
7 years agoStart opendaylight without daemonizing it 97/41897/4
Akshita Jha [Fri, 15 Jul 2016 14:00:12 +0000 (19:30 +0530)]
Start opendaylight without daemonizing it

Change-Id: I4f3aa1463daac0e57224030cdff93342743fdd2d
Signed-off-by: Akshita Jha <zenith158@gmail.com>
7 years agoDelete /opt/opendaylight on opendaylight package purge 52/41852/8
Akshita Jha [Thu, 14 Jul 2016 19:07:13 +0000 (00:37 +0530)]
Delete /opt/opendaylight on opendaylight package purge

This patch adds a postrm script which deletes /opt/opendaylight/
on purge. This deletes user data and configuration. This patch
also corrects README.Debian, using the systemd unit to start OpenDaylight.

Change-Id: I558d9735d7904a5036f8538526b93a772a74b22d
Signed-off-by: Akshita Jha <zenith158@gmail.com>
7 years agoIgnore .tox dir in flake8 tests 87/42587/1
Daniel Farrell [Tue, 26 Jul 2016 16:50:41 +0000 (12:50 -0400)]
Ignore .tox dir in flake8 tests

Python verify jobs for (at least) Int/Test and Int/Pack recently started
failing with errors in the .tox dir.

Jobs that show the failure:

integration-test-verify-python-boron/1421
packaging-verify-python-master/93

Fixed job for Int/Test:

integration-test-verify-python-boron/1422

Int/Test Gerrit 42488 is to fix the same problem.

Change-Id: Ifce2a38547e261a4fa0eda15e688ab8dfcb06748
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
7 years agoAdd Java to ODL .deb package 59/41759/4
Akshita Jha [Wed, 13 Jul 2016 12:18:19 +0000 (17:48 +0530)]
Add Java to ODL .deb package

Change-Id: I8255837337b89ac0f604bb2ced66e56ee9e21e7c
Signed-off-by: Akshita Jha <zenith158@gmail.com>
7 years agoAdd ODL 4.3.0-1.1345 RPM build definition 72/41872/2
Daniel Farrell [Fri, 15 Jul 2016 03:35:41 +0000 (23:35 -0400)]
Add ODL 4.3.0-1.1345 RPM build definition

Change-Id: I1524e945ded7050976799dbcc94fcbda1f6595b9
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
7 years agoRemove old RPM builds for which artifacts are gone 70/41870/1
Daniel Farrell [Fri, 15 Jul 2016 03:29:59 +0000 (23:29 -0400)]
Remove old RPM builds for which artifacts are gone

Some old RPM builds can't be reproduced anymore because their artifacts
have been perged from ODL's Nexus. Remove those definitions.

Change-Id: Ifd4c61862e010469e85e33b4e7f4e4c6ee40a816
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
7 years agoFix bug in RPM .spec file tarball URL 69/41869/1
Daniel Farrell [Fri, 15 Jul 2016 03:03:24 +0000 (23:03 -0400)]
Fix bug in RPM .spec file tarball URL

Change-Id: If6f7af956e5b7654b9b73bbf35237b4426797a58
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
7 years agoAdd ability to build RPMs without defining in YAML 81/41081/4
Daniel Farrell [Wed, 29 Jun 2016 22:50:30 +0000 (18:50 -0400)]
Add ability to build RPMs without defining in YAML

Adds params to build.py that can define/build an RPM without adding
them to build_vars.yaml. This will allow builds via Jenkins jobs
without humans updating the YAML config.

Change-Id: Idda2049b418a6f3572152271ac7871a23310a2f7
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
7 years agoMake RPM changelog easier to pass from CLI 90/41090/3
Daniel Farrell [Wed, 29 Jun 2016 23:51:26 +0000 (19:51 -0400)]
Make RPM changelog easier to pass from CLI

On the route to building RPMs in Jenkins jobs, need to simplify
how we specify RPM .spec file changelogs. Moving from a multi-line
format totally provided by user to a few fields placed in the right
format in template.

Change-Id: I20efec773470af26740b4e300be07fb8c81b653c
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
7 years agoRemove Java build param 95/41095/1
Daniel Farrell [Thu, 30 Jun 2016 00:14:49 +0000 (20:14 -0400)]
Remove Java build param

We're not using different versions of Java for any of our RPM builds,
so we don't need to include it as a param.

Change-Id: I01520e78713f52a9795e121ce792644aafa23f1f
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
7 years agoRemove flag to build all RPMs 76/41076/2
Daniel Farrell [Wed, 29 Jun 2016 22:23:51 +0000 (18:23 -0400)]
Remove flag to build all RPMs

We now have many 10s of RPMs defined in build_vars, so it would be
a horrible idea to build all of them. Remove that option.

Change-Id: I844fecbd176434d2f32674004d48b6590499c448
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
7 years agoAdd docs for download_url RPM build param 72/41072/2
Daniel Farrell [Wed, 29 Jun 2016 21:57:57 +0000 (17:57 -0400)]
Add docs for download_url RPM build param

Change-Id: I211d65b658766b134bb46e5a51624e9e98cc2931
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
7 years agoClean up RPM build definitions 48/41048/2
Daniel Farrell [Wed, 29 Jun 2016 20:01:52 +0000 (16:01 -0400)]
Clean up RPM build definitions

The opendaylight.spec template had changed (to add clean uninstalls)
since these build_vars sections were added, so the generated specs
used by the released RPMs differ from the ones that would currently
be generated by build_specs.py, which is bad. Since these are old
RPMs that have been supplanted by more recent ones, just remove them
vs updating, rebuilding and re-releasing.

Change-Id: I8505f5c6be691a244684704d8a101e002acf853e
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
7 years agoRemove unused rpm_disttag RPM build var 42/41042/1
Daniel Farrell [Wed, 29 Jun 2016 19:15:18 +0000 (15:15 -0400)]
Remove unused rpm_disttag RPM build var

Change-Id: I20c874542437b439411348eca3baaac2dfed6167
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
7 years agoChange the path to integration/packaging/deb/opendaylight/ 37/40837/1
Akshita Jha [Sat, 25 Jun 2016 14:09:43 +0000 (19:39 +0530)]
Change the path to integration/packaging/deb/opendaylight/

This patch moves deb/debian directory to deb/opendaylight/debian directory

Change-Id: Ia3556baa6269d26bd2e361bd315cce6bd5308a5a
Signed-off-by: Akshita Jha <zenith158@gmail.com>
7 years agoProviding an Upstart job and systemd unit to ODL .deb package 84/40584/5
Akshita [Tue, 21 Jun 2016 07:05:31 +0000 (12:35 +0530)]
Providing an Upstart job and systemd unit to ODL .deb package

This patch provides and Upstart job and a systemd unit. It also adds
some build-dependencies.

Change-Id: I7983418426a4bf70a36b5b19e0d5c8e90543d590
Signed-off-by: Akshita <zenith158@gmail.com>
Signed-off-by: Akshita Jha <zenith158@gmail.com>
7 years agoAdd .deb package for OpenDaylight 90/40190/4
Akshita [Sat, 11 Jun 2016 04:02:43 +0000 (09:32 +0530)]
Add .deb package for OpenDaylight

This is a basic, non-policy-compliant package installing OpenDaylight in /opt/opendaylight,
following the technique described in https://vincent.bernat.im/en/blog/2016-pragmatic-debian-packaging.html

Change-Id: I6eefa3737595b4661f97e8293c48f890a4fb213d
Signed-off-by: Akshita <zenith158@gmail.com>
8 years agoAdd .repo file for install latest ODL Be release 76/40176/1
Daniel Farrell [Fri, 10 Jun 2016 15:36:03 +0000 (11:36 -0400)]
Add .repo file for install latest ODL Be release

The 4-release repo described by this .repo file will always contain the
latest ODL Beryllium release or SR. It currently contains Be SR2, but
will eventually contain SR3 and then SR4.

Change-Id: Id5f0de631b8a008c18c50a075c402ffa631e8fc6
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
8 years agoAdd ODL opendaylight-4.3.0-1.201606060052 RPM def 62/39962/1
Daniel Farrell [Tue, 7 Jun 2016 15:07:47 +0000 (11:07 -0400)]
Add ODL opendaylight-4.3.0-1.201606060052 RPM def

Change-Id: Ie40e906cc947aba2b5031667b4a76ed5282b1760
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
8 years agoAdd Boron 5.0.0-1.201606060053 RPM definition 05/39905/1
Daniel Farrell [Mon, 6 Jun 2016 22:05:25 +0000 (18:05 -0400)]
Add Boron 5.0.0-1.201606060053 RPM definition

Change-Id: I437e27bca4e0ebfbe1ab93be37f84d6bad711287
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
8 years agoAdd Be SR2 CentOS Vagrant/Docker Packer def 21/39521/2
Daniel Farrell [Fri, 27 May 2016 10:28:23 +0000 (06:28 -0400)]
Add Be SR2 CentOS Vagrant/Docker Packer def

Var file to define LibVirt/VBox Vagrant base boxes, Docker image.

Change-Id: Ida114ae11f583ac784f6400b3c9ebc85cc4346c6
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
8 years agoAdd example repo config for Boron testing RPM repo 72/39672/1
Daniel Farrell [Tue, 31 May 2016 20:26:06 +0000 (16:26 -0400)]
Add example repo config for Boron testing RPM repo

Curl this file down to /etc/repos.d/ to add OpenDaylight's CentOS CBS
repo. Commands like `dnf install opendaylight` will then work.

The 5-testing repo will always have the latest Boron RPM, including
unstable testing builds and builds from later SRs.

Change-Id: Iec0dd63ebb3e3c62b25828d6ed7c7c0b6e83b9ac
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
8 years agoAdd ODL 5.0.0-1.201604260021 RPM definition 71/39671/1
Daniel Farrell [Tue, 31 May 2016 20:23:08 +0000 (16:23 -0400)]
Add ODL 5.0.0-1.201604260021 RPM definition

Change-Id: I13f41948e4c0ca7ab85cf155ea96a8daae03de7e
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>