Daniel Farrell [Mon, 6 Aug 2018 21:10:56 +0000 (17:10 -0400)]
Add Oxygen latest-release RPM repo config file
Change-Id: I6f233721689d366f60f636f2954dd0ec80a73ad5
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
Daniel Farrell [Wed, 27 Jun 2018 16:16:25 +0000 (12:16 -0400)]
Add docs about pushing RPMs to scratch repos
Change-Id: I5a78e21412dc8670754290e743e40ac2434fca47
Jira: INTPAK-181
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
Daniel Farrell [Fri, 29 Jun 2018 19:48:41 +0000 (15:48 -0400)]
Update RPM repo docs
Update Int/Pack docs about RPM repos for new versions.
Also minor cleanups of links.
Jira: INTPAK-180
Change-Id: I6818511179b896eaba5dba44709acfcf571aef47
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
Daniel Farrell [Wed, 27 Jun 2018 20:29:07 +0000 (16:29 -0400)]
Remove references to CBS -testing repo
We no longer frequently update the CentOS Community Build System
-testing repository. Instead, we use the fully-automated devel repos on
ODL's Nexus. Remove docs about it, as want to try to deprecate it in the
next few releases.
Keeping old example repo config files as they may be used by lots of old
code, should likely be preserved long-term.
Change-Id: I2cc60c2ec63a5e9fa9419d63c7ddc7568fa9195b
Jira: INTPAK-182
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
Daniel Farrell [Wed, 27 Jun 2018 18:17:21 +0000 (14:17 -0400)]
Add updating ansible-odl test playbooks to reldocs
Document that the playbooks in RelEng/Builder used for testing
ansible-opendaylight need to be updated for new ODL major versions.
Change-Id: I9c41b02852f81a3350faafbf02246d0235982bf5
Jira: INTPAK-170
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
Daniel Farrell [Thu, 21 Jun 2018 19:12:54 +0000 (15:12 -0400)]
Add Carbon SR4 Packer var file
Change-Id: Ie2e68d76a1cc8f3dc4e0c77348211e617d822d06
Jira: INTPAK-165
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
Daniel Farrell [Wed, 2 May 2018 00:37:47 +0000 (20:37 -0400)]
Add release packaging process docs
Most Int/Pack packages are built using the CD pipeline, which of course
doesn't require any intervention from humans, but proper releases do
require someone to go through a manual process. Document that process vs
it just being in my head.
Change-Id: Ibd5aa7427db8169fd2eaadcf820adaf63d0f4285
JIRA: INTPAK-167
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
Daniel Farrell [Wed, 20 Jun 2018 18:33:11 +0000 (14:33 -0400)]
Update package unit tests 8.1->8.2
Change-Id: I0ff97a7c557fef71eb867757dfa16b302a11a05b
Jira: INTPAK-175
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
Daniel Farrell [Wed, 20 Jun 2018 18:30:19 +0000 (14:30 -0400)]
Add Oxygen SR2 Packer var file
Change-Id: Ie24053dd9dd5a0eb3a4c4a6bc8ebb46b7a4a44fb
Jira: INTPAK-175
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
Daniel Farrell [Wed, 20 Jun 2018 18:29:14 +0000 (14:29 -0400)]
Add Oxygen SR2 example RPM repo config file
Change-Id: I5ee4af1d6b546fd312bae7e1034fbf0ea59d9ce6
Jira: INTPAK-175
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
Daniel Farrell [Thu, 14 Jun 2018 02:19:45 +0000 (22:19 -0400)]
Add Oxygen example RPM repo config file
Change-Id: I23b796dfc95252e3054e9862652292df7e366656
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
Daniel Farrell [Thu, 14 Jun 2018 02:18:21 +0000 (22:18 -0400)]
Add packaging unit tests for Fluorine
Change-Id: Ica82a1bb1607751fe333bd1c41e24546f8daba61
Jira: INTPAK-154
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
Daniel Farrell [Thu, 14 Jun 2018 02:07:49 +0000 (22:07 -0400)]
Add Oxygen Packer var file
Change-Id: Id17bf76e697273da45ccd1250091294b6c4fb0a6
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
Daniel Farrell [Tue, 5 Jun 2018 12:15:35 +0000 (08:15 -0400)]
Add Nitrogen SR3 CBS Packer var file
Change-Id: If97999c38bf98a8a47d648a79d0201656813947f
Jira: INTPAK-172
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
Daniel Farrell [Tue, 5 Jun 2018 12:14:05 +0000 (08:14 -0400)]
Add Nitrogen SR3 CBS example RPM repo config file
Change-Id: I90a1de1e9c125a328adb479abb7a6ba7a41415e4
Jira: INTPAK-172
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
Daniel Farrell [Mon, 4 Jun 2018 13:19:51 +0000 (09:19 -0400)]
Add Packer var file for Oxygen SR1
Change-Id: Ib5f1e1e4d2540cd8a2408479977335dab366f171
Jira: INTPAK-166
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
Daniel Farrell [Mon, 4 Jun 2018 16:34:06 +0000 (12:34 -0400)]
Remove Nitrogen packaging unitttests
Nitrogen is EOL. Nitrogen's snapshot dir no longer exists, so a test
that covered it started failing.
Change-Id: Ia92654bfbf594a4eb670f30ae6653e1a31981ae6
Jira: INTPAK-169
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
Daniel Farrell [Mon, 4 Jun 2018 14:34:58 +0000 (10:34 -0400)]
Fix broken dist snapshot dir in docs
Docs link check jobs are failing due to this. Old link was for Karaf 3
distros, new one is for Karaf 4. All K3 distros are EOL.
Change-Id: I7c459275c22fea70ca42d0f896669c82469a2abb
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
Thanh Ha [Tue, 1 May 2018 21:57:02 +0000 (17:57 -0400)]
Fail build on warnings
Resolve warning about missing favicon file and enable build
failure if Sphinx warnings exist in docs build.
Change-Id: Ie7e0d080d112895a714138983621f8d376f9f274
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
Thanh Ha [Tue, 1 May 2018 21:59:50 +0000 (17:59 -0400)]
Add linkchecker to check for broken links
Change-Id: Iff5f296de60f02c5aab3b4dc9991f0acc76d1a34
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
Thanh Ha [Tue, 1 May 2018 22:06:18 +0000 (18:06 -0400)]
Fix broken links
Change-Id: I0d1a8f3d08ed5173b6dacfcb8c659f1816ab4b85
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
Thanh Ha [Tue, 1 May 2018 22:02:36 +0000 (18:02 -0400)]
Fix broken technical overview link
The technical overview link appears to be broken. Replace it with the
OpenDaylight Controller overview link.
Change-Id: I7ef52ea7d28380648f1f444f1d355b0c3d0bfe64
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
Daniel Farrell [Tue, 1 May 2018 21:09:33 +0000 (17:09 -0400)]
Add Oxygen SR1 example repo config
Change-Id: I93842943ba79783fe4efbd18f27819428077e1bc
JIRA: INTPAK-166
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
Daniel Farrell [Wed, 2 May 2018 00:27:34 +0000 (20:27 -0400)]
Add Carbon SR4 example RPM repo config
Change-Id: I09d3c3d06282fa1f1fffb4fd4521275eb6acb9a5
JIRA: INTPAK-165
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
Daniel Farrell [Wed, 2 May 2018 00:56:47 +0000 (20:56 -0400)]
Update Nitrogen pkg unittest URLs, fix verify
Change-Id: I33bfb6a884dc1452cd9a61c44c53f896b899cecb
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
Daniel Farrell [Tue, 1 May 2018 22:18:26 +0000 (18:18 -0400)]
Remove Carbon tests, Carbon no longer supported
Carbon SR4 is out, so support has ended. Some of tests are also now
failing since the example autorelease builds no longer exist.
JIRA: INTPAK-168
Change-Id: I1b3b2454d28e21e20eabb88b9591037de8da910f
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
Thanh Ha [Tue, 17 Apr 2018 01:21:27 +0000 (21:21 -0400)]
Update autorelease build instructions
The karaf distro is located in a different location starting with
nitrogen so update the text to reflect that. Also refactor the text
so that it is easier to read.
Change-Id: Ie7ca694721a960202aa6fbb214759723ec276f25
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
Dimitrios Markou [Thu, 12 Apr 2018 08:01:32 +0000 (11:01 +0300)]
Add missing opendaylight.service template file
ODL debian packages were building succesfully but when they were
getting installed the ODL service was not started because
of missing opendaylight.service file which is essential so the
systemd can start the ODL service.
Change-Id: I3b01d9e258529fbf68ce16266f3358c163dc19e4
Signed-off-by: Dimitrios Markou <mardim@intracom-telecom.com>
Daniel Farrell [Thu, 12 Apr 2018 01:51:25 +0000 (21:51 -0400)]
Add tests for Oxygen release, Fluorine pre-release
Add packaging logic unit test coverage for Oxygen formal release and
Fluorine snapshot builds.
Issue: INTPAK-154
Change-Id: I78f5636baa5387b2a39c7754ab22c00a50881b55
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
Manuel Buil [Tue, 3 Apr 2018 15:12:21 +0000 (17:12 +0200)]
Add Fluorine pkg repo config files
Change-Id: I2f3dfa746260b2eaf854fa8b625f0169a8580949
Signed-off-by: Manuel Buil <mbuil@suse.com>
Daniel Farrell [Wed, 4 Apr 2018 02:54:39 +0000 (22:54 -0400)]
Update expired pkg unit test example URLs
Change-Id: Icc3ac17026de8f02c79686de4d9c8abd6f46986f
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
Thanh Ha [Sun, 11 Mar 2018 05:27:51 +0000 (00:27 -0500)]
Switch to using lfdocs-conf to pull in theme
lfdocs-conf is a new project that allows us to centrally manage
project theme configuration without having to duplicate it
everywhere or have the "docs" project become a large submodule
project.
We will push to ReadTheDocs separately and then create a new path
for this doc under docs.opendaylight.org/projects/integration-packaging
For further details refer to:
http://docs.releng.linuxfoundation.org/en/latest/project-documentation.html
Change-Id: I976202be6becc2ff3355bd75505bbfd8a049a888
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
Thanh Ha [Tue, 20 Mar 2018 02:46:13 +0000 (22:46 -0400)]
Use LABEL instead of deprecated MAINTAINER field
Change-Id: I79646a448fa717e64151fb3cd74a09725d332f51
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
Manuel Buil [Wed, 7 Mar 2018 17:04:02 +0000 (18:04 +0100)]
Hardcode the architecture in the URI in opensuse
Only support for x86_64 is required. Therefore, we could hardcode that
in the repo's URI and that allows to reuse the current code in
packaging-ansible for zypper:
https://github.com/opendaylight/integration-packaging-ansible-
opendaylight/blob/master/tasks/add_odl_yum_repo.yml
Change-Id: Ifb6d9d20c8adc30289581cbe63bfe2279b0a5605
Signed-off-by: Manuel Buil <mbuil@suse.com>
Manuel Buil [Tue, 6 Mar 2018 14:58:04 +0000 (15:58 +0100)]
Add repos for opensuse
Provide a repo for opensuse in Nitrogen and Oxygen
Change-Id: I83d379d60177ef68dbf2ab225082f561580f69cd
Signed-off-by: Manuel Buil <mbuil@suse.com>
Daniel Farrell [Tue, 6 Mar 2018 13:07:31 +0000 (08:07 -0500)]
Add Packer Carbon SR3 config file
Change-Id: Ib6cfffac1897e937f49c66da62f53c70921ee0e8
Fixes: INTPAK-141
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
Daniel Farrell [Tue, 6 Mar 2018 13:03:38 +0000 (08:03 -0500)]
Add Carbon SR3 CBS RPM repo config file
Change-Id: If4f6cee26288dcd0fdde6e85d91751a068926b1c
Fixes: INTPAK-141
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
Daniel Farrell [Tue, 27 Feb 2018 13:38:07 +0000 (08:38 -0500)]
Add Packer Nitrogen SR2 config file
Change-Id: I76e6cfefaaaa317af324800a6cffa4d31d764d7b
Fixes: INTPAK-142
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
Daniel Farrell [Tue, 27 Feb 2018 13:36:23 +0000 (08:36 -0500)]
Add Nitrogen SR1 CBS RPM repo config file
Change-Id: I35e0a252171fffc06afe85ffa2eb6cd83cd22016
Fixes: INTPAK-142
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
Manuel Buil [Fri, 9 Feb 2018 16:04:39 +0000 (17:04 +0100)]
Add support for openSUSE in the RPM spec
openSUSE support is required to run ODL in XCI-OPNFV. RPM installs in
openSUSE fail because the dependencies listed in the spec file have
different names. Conditionally require the right names based on OS.
Change-Id: Idafe9a3656820f96553c2e4d53c1c15c992d681c
Signed-off-by: Manuel Buil <mbuil@suse.com>
Daniel Farrell [Thu, 1 Mar 2018 22:14:40 +0000 (17:14 -0500)]
Update expired example builds in package unittests
Change-Id: I6f8ee0916592d5d53ce43cc62a2a037eecac3c3d
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
Alok Anand [Wed, 31 Jan 2018 12:05:35 +0000 (17:35 +0530)]
Fix issues in deb pipeline.
1.Use lib.py:cache_sysd() to cache .service file as well.
2.Correct path for resulting .deb file.
3.Provide correct name of distro tarball to debian/rules
4.Provide correct path to copy .service file.
5.Fixed pep8 errors in lib.py and deb/lib.py
Change-Id: I6c45cf7f86d4327cfd2a328ddeb0c66fd20d9381
Signed-off-by: Alok Anand <alok4nand@gmail.com>
Jamo Luhrsen [Fri, 9 Feb 2018 18:54:53 +0000 (10:54 -0800)]
Fix github links to the build.py script
we no longer have a different build.py for the deb and rpm
folders and they now share the same one in the packages/
dir.
Change-Id: I8d70bf26ea4e4f7571d7fdacb350cab92eb1be09
Signed-off-by: Jamo Luhrsen <jluhrsen@redhat.com>
Daniel Farrell [Mon, 5 Feb 2018 16:18:45 +0000 (11:18 -0500)]
Clarify which RPM is installed via repo file
Answers question from OPNFV folks in reusable way.
Change-Id: Idd3fffb0d76fc576e7e051923165770357d6f3f5
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
Daniel Farrell [Mon, 5 Feb 2018 17:31:47 +0000 (12:31 -0500)]
Update example builds in pkg unit tests
Some have expired, go ahead and update all that periodically expire.
Change-Id: Icad8ac5e64c48939937e9731b2918a68bf4668d8
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
Alok Anand [Wed, 31 Jan 2018 11:45:10 +0000 (17:15 +0530)]
Move unitfiles/ to packaging/packages/
Both RPM and DEB scripts use the same systemd unit files. Therefore,
unitfiles/ should be in a common directory location.
Change-Id: I58dfcd5ca351e0648aef4bc6be7dfc86a7998935
Fixes: INTPAK-13
Signed-off-by: Alok Anand <alok4nand@gmail.com>
Daniel Farrell [Tue, 19 Dec 2017 22:37:35 +0000 (17:37 -0500)]
Fix install of ansible-odl in Packer builds
Ansible is executed by non-root, so it looks in dirs based on that user.
If the role is installed by root it will be missed and provisioning will
fail.
Change-Id: I2dcbf581acb6f9e11720798bc67b5d775f51761e
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
Daniel Farrell [Tue, 16 Jan 2018 13:19:15 +0000 (08:19 -0500)]
Fix Packer libvirt, missing selinux bindings
Builds were failing at Ansible provisioning step with error about trying
to use selinux without the Python bindings.
Change-Id: Id24eaa6d32339d0d5c94126bf01d32bf19e72ee3
Fixes: INTPAK-129
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
Daniel Farrell [Mon, 15 Jan 2018 23:12:36 +0000 (18:12 -0500)]
Pin nodeenv dep to let tox run more than once
Using the latest version makes tox break on second run, unless .tox dir
is removed.
Change-Id: I576634b12440756e3124b95043ce5be0ade9d7bb
Fixes: INTPAK-74
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
Daniel Farrell [Mon, 18 Dec 2017 16:11:50 +0000 (11:11 -0500)]
Refactor ansible-opendaylight docs
Change-Id: I0aa74672472831dff918c5b759c550333980695f
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
Dipankar Jain [Fri, 15 Dec 2017 06:25:10 +0000 (11:55 +0530)]
Adds Ansible opendaylight RTD docs
Imports most content from
https://git.opendaylight.org/gerrit/#/admin/projects/integration/packaging/ansible-opendaylight
Also:
* removes typos
* adds example use cases for role variables
Change-Id: Ie4ff329c7fb5ba14ca0f6246b13bf0848f8636d5
Resolves: INTPAK-44
Signed-off-by: Dipankar Jain <bunny_jain@ymail.com>
Daniel Farrell [Thu, 14 Dec 2017 11:17:22 +0000 (06:17 -0500)]
Add docs about new Nexus-hosted RPM CD repos
Also update versions/links for all other repo docs, fix typos.
Change-Id: I4ae9b3b162fad992b808703b974855d4ed4a0ba0
Fixes: INTPAK-25
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
Jamo Luhrsen [Tue, 5 Dec 2017 18:44:32 +0000 (10:44 -0800)]
Fix typo s/match/matched
Change-Id: Ic704479facd0aea2387e70a4b156ec78c274c3c5
Signed-off-by: Jamo Luhrsen <jluhrsen@redhat.com>
Daniel Farrell [Tue, 5 Dec 2017 04:21:42 +0000 (23:21 -0500)]
Add docs about RPM build publishing Nexus/logs
Add docs about how RPMs are published from build jobs running in
production Jenkins (Nexus) and sandbox Jenkins (optinoal logs archive).
Change-Id: I9dacb80f7a254e4fc1f1b434776855fee582cf57
Fixes: INTPAK-46
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
Daniel Farrell [Fri, 1 Dec 2017 20:47:16 +0000 (15:47 -0500)]
Blacklist false RPM dependencies
Fixes: INTPAK-10
Change-Id: I7c8194a7d37638ac9640db89d7188c8a96a7a700
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
Daniel Farrell [Tue, 5 Dec 2017 05:08:18 +0000 (00:08 -0500)]
Fix pkg unit tests, URL update
Change-Id: I257d99365aaabac04eb29118df4c9e61cc8cb2fb
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
Daniel Farrell [Thu, 30 Nov 2017 16:39:31 +0000 (11:39 -0500)]
Add Packer definitions for recent ODL releases
Change-Id: I7dcda75288595315c7bc3600d9e1a88b08ed0987
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
Daniel Farrell [Wed, 29 Nov 2017 00:49:52 +0000 (19:49 -0500)]
Add example repo configs for recent RPMs
Change-Id: I807ccab2f5ea7a0d96574f25b270ac13206839dd
Fixes: INTPAK-105
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
Daniel Farrell [Tue, 28 Nov 2017 19:03:53 +0000 (14:03 -0500)]
Update RPM test, Dockerfile ODL versions 7->7.1
Change-Id: I6e259208702d2f817b8819ed3d1bc26bbd3c39cd
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
Daniel Farrell [Tue, 28 Nov 2017 23:41:12 +0000 (18:41 -0500)]
Update build URLs use in pkg tests, fixes
The periodic verify jobs were failing because two of the URLs here had
expired. Go ahead and update all of them.
Change-Id: I7f7dad9b1e4438bc8b8ee1d9936e10918e211c35
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
Dipankar Jain [Thu, 2 Nov 2017 18:26:51 +0000 (23:56 +0530)]
Move versioniong wiki to readthedocs, update
Imports most content from:
wiki.opendaylight.org/view/Integration/Packaging/Versioning
Also:
* Updates examples to use newer releases
* Adds links to ODL Nexus-hosted packages
* Shows puppet-odl versions via metadata, tags no-longer used
* Updates links
* Fixes typos
Resolves: INTPACK-24
Change-Id: I8968654078426e5e97298b4380a53e8b3b01077d
Signed-off-by: Dipankar Jain <bunny_jain@ymail.com>
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
Daniel Farrell [Wed, 20 Sep 2017 17:08:21 +0000 (13:08 -0400)]
Consolidate tarball/sys unit file cache logic
Move artifact caching logic to shared lib so it can be reused for RPM
and deb builds.
Change-Id: Ic968b67881aaca7041dfe2cddb89df1a0a4cae4a
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
Daniel Farrell [Thu, 19 Oct 2017 17:32:18 +0000 (13:32 -0400)]
Use latest ODL RPM in example CentOS Dockerfile
Change-Id: I8bb0661965c90eabb03014c9c0db30f24035e0c3
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
Daniel Farrell [Wed, 11 Oct 2017 18:59:44 +0000 (14:59 -0400)]
Simplify most-recent-snap-URL given ODL version fn
Change-Id: I3d1d82615f89077bd854f8955abdd9a83539da3d
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
Daniel Farrell [Mon, 9 Oct 2017 18:52:43 +0000 (14:52 -0400)]
Add pkg unit tests for changelog date format
Change-Id: Idbdcd6fe2868501fef2ecd277012b20ac34fc679
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
Daniel Farrell [Mon, 9 Oct 2017 18:17:03 +0000 (14:17 -0400)]
Add pkg unit tests for Java version, fix type bug
Add unit test coverage for pkg lib helper fn that gives the Java version
required by a given ODL version. Also fix bug in that fn that caused it
to miss-handle strings.
Change-Id: I0ba2f5437ec7dd9d1972c75109c8a671e1be0d6c
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
Daniel Farrell [Mon, 9 Oct 2017 17:50:05 +0000 (13:50 -0400)]
Add pkg unit test coverage for get sysd commit fn
Change-Id: I44408738ce410f453ed6a9a60c4a49d74aba9193
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
Daniel Farrell [Mon, 9 Oct 2017 14:46:45 +0000 (10:46 -0400)]
Remove unnecessary coala linting ignores
The ShellCheck bear doesn't check *.py file line lengths.
Change-Id: I8e1c065f579531d2797fa61ab22af49120a27663
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
Daniel Farrell [Thu, 5 Oct 2017 10:07:42 +0000 (06:07 -0400)]
Add Nitrogen release to pkg unit tests
Change-Id: I8b8c717a814f59424b5caadf5062dc47e34d758e
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
Daniel Farrell [Wed, 4 Oct 2017 13:59:11 +0000 (09:59 -0400)]
Handle empty strings for pkg changelog name/email
Allows RelEng jobs to makes calls like
./build.sh --changelog_email "$var" ...
without worrying about if $var is set or empty.
Change-Id: Id5fdd4f6891c815062c97ea0fdb68879fedfba42
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
Daniel Farrell [Tue, 3 Oct 2017 14:03:23 +0000 (10:03 -0400)]
Update packaging unit tests
* Update versions to latest available
* Remove Boron tests, deprecated now that Nitrogen is out
Change-Id: I98367efa9505a93ed4bca630a24e86e803787eca
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
Daniel Farrell [Mon, 2 Oct 2017 14:32:16 +0000 (10:32 -0400)]
Rename pkg tests to reflect new structure
The functions tested in this module have been moved from build.py to
lib.py, so the module should be renamed accordingly.
Change-Id: I90ecea71b31b3d0f38074d8d94ececdd2da28997
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
Daniel Farrell [Mon, 2 Oct 2017 15:11:47 +0000 (11:11 -0400)]
Ignore deb build dir in coala/git
Change-Id: I2ea1f01fba0228e31a3926a28c7a5ddaa58f28e3
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
Daniel Farrell [Wed, 20 Sep 2017 13:32:58 +0000 (09:32 -0400)]
Rename pkg-specific build scripts to libs
Start of refactoring to consolidate and test more packaging logic.
Change-Id: Ia9f94290648f78c3e0188f3310c9146fbd60072d
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
Daniel Farrell [Mon, 2 Oct 2017 15:18:40 +0000 (11:18 -0400)]
Fix Coala Jinja linting, errors
Use correct paths to Jinja2 templates, fix errors now identified.
Change-Id: I16205e18df4405cc26bfc6f68333aa7c6591a92b
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
Daniel Farrell [Thu, 31 Aug 2017 22:54:10 +0000 (18:54 -0400)]
Refactor packaging Vagrant env
Change-Id: Ib4a3dd05b681a9dae92e8ffb28823ff89344889e
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
Alok Anand [Tue, 29 Aug 2017 16:42:54 +0000 (22:12 +0530)]
Common Vagrantfile for local testing
A single vagrant file makes sense post refactoring than two vagrantfiles
in each deb and rpm directories. The commit also updates debian box to
the new stable 'stretch' version.
Change-Id: I62543f02ebd768540593a78d5ce644187b3c42a8
Signed-off-by: Alok Anand <alok4nand@gmail.com>
Daniel Farrell [Tue, 19 Sep 2017 13:07:34 +0000 (09:07 -0400)]
Rename pkg helper logic vars->lib
This module started off containing only logic for getting build
variables, but now it's used as a generic packaging logic library.
Change-Id: Iaf953514a892a39d0fb801eedb41eec0d136f889
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
Daniel Farrell [Wed, 6 Sep 2017 00:00:17 +0000 (20:00 -0400)]
Add .repo files for Nexus-hosted 7/8 RPMs
Repo config files that will install ODL Nitrogen and Oxygen from ODL
Nexus repos.
Change-Id: I74b28ab892af2a27c67542407ddb97eb69480806
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
Daniel Farrell [Sat, 19 Aug 2017 14:17:07 +0000 (10:17 -0400)]
Refactor package building CLI
Use subparsers to get correct package building CLI behavior. Fixes
issues like:
* Major version should be required when using latest-snap
* Download URL should be required for new-build but not latest-snap
* Minor version shouldn't be accepted
Also simplifies build definition-building logic that consumes CLI args.
Change-Id: Ie1c71b1828fff592aec74da6e9acfdbe0ed894ee
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
Daniel Farrell [Thu, 31 Aug 2017 22:57:31 +0000 (18:57 -0400)]
Add gitignore rule for tarballs/zips
Change-Id: Ic7c09202a86d23d568c330569d466470875e83f4
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
Daniel Farrell [Thu, 31 Aug 2017 22:58:05 +0000 (18:58 -0400)]
Ignore zips in Coala linting
Change-Id: I79fdae1fd71fa9ac75145f31b67999abe5a9175e
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
Daniel Farrell [Wed, 30 Aug 2017 19:29:06 +0000 (15:29 -0400)]
Ignore extracted distros in Coala linting
Change-Id: Id12a58aa228f31c6f88b79242767ed6f4651bd27
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
Daniel Farrell [Wed, 30 Aug 2017 19:26:29 +0000 (15:26 -0400)]
Fix fn name/args to make RPM snap builds work
Also add unit tests to catch basic issues with this fn.
Change-Id: I3ee18483b7bf6e53462789d6b169dcc730039ea0
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
Daniel Farrell [Wed, 30 Aug 2017 14:23:59 +0000 (10:23 -0400)]
Fix permissions for zip-build RPMs
Python's zipfile.ZipFile.extractall doesn't preserve permissions.
Long-standing Python bug with a proposed patch, but still isn't fixed.
Use a subprocess to call system unzip tool instead.
Change-Id: Id330cd34fd61b1b4e619aa5006d96b43e4d4db5b
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
Daniel Farrell [Fri, 25 Aug 2017 19:19:44 +0000 (15:19 -0400)]
Add pkg support for Karaf 4 not having codenames
Karaf 3 distros had codenames our version parsing logic expected to be
able to extract. Starting with Nitrogen there are no codenames.
Also note that starting Carbon SR1 we dropped SR versions in codenames,
but the logic already happened to handle this.
Change-Id: I0b3bac64abd1290d5d3012e73935b76d1a913a8a
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
Daniel Farrell [Thu, 24 Aug 2017 20:03:09 +0000 (16:03 -0400)]
Support Karaf 3 and Karaf 4 distro prefixes
Karaf 3 used distribution-karaf, Karaf 4 uses karaf. Modify RPM building
logic to support both.
Karaf 4 snapshot builds should work after this change, but Karaf 4
autorelease builds still fail as they don't have the expected codename
tarball version component.
Change-Id: I03c789e530205ded2a948c99dd4cdcb7b6c16254
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
Michael Vorburger [Thu, 24 Aug 2017 09:31:13 +0000 (11:31 +0200)]
opendaylight.service Restart=on-failure
https://bugzilla.redhat.com/show_bug.cgi?id=
1479292
Change-Id: I3ae058a9581c642c314aaf7bac4fcb17a40bb771
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
Daniel Farrell [Wed, 23 Aug 2017 21:41:52 +0000 (17:41 -0400)]
Make version extraction logic more generic
Turns out just making the match less strict fixes both issues with
multipatch-test Nexus repos and Karaf 3/4 distro naming.
Change-Id: Icc5272cb0c9411db51cf343681d24093363d39c4
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
Daniel Farrell [Wed, 23 Aug 2017 20:15:55 +0000 (16:15 -0400)]
Run packaging unit tests in tox, verify job
Adding package unit test to tox will cause them to be run as part of
regular verify jobs, which should give insight and keep them working.
Change-Id: Iedef7db355ad0399ff9b7e714a2fff3cbff9f8ef
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
Daniel Farrell [Wed, 23 Aug 2017 20:13:18 +0000 (16:13 -0400)]
Update pkg unit tests for new path, add tests
Change directory of packaging unit tests to work after recent RPM/deb
consolidation refactoring. Also add many tests for proper coverage.
Change-Id: I693c17b19a33a4b2eb7bb7ffbcb1e4c7b3eb06fe
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
Daniel Farrell [Tue, 22 Aug 2017 23:35:58 +0000 (19:35 -0400)]
Add support for building RPMs from zips
The RPM specfile logic requires a tarball, but this allows us to accept
links to zip distros and repackage them as tarballs.
This is useful because the multipatch-test job only publishes zips.
Change-Id: I361dd43fc722e675bd90bb69a50b7b2d8d532b82
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
Daniel Farrell [Tue, 22 Aug 2017 23:26:02 +0000 (19:26 -0400)]
Fix systemd unit file URL for new dir structure
Recent refactoring changed the path to this file, update accordingly.
Change-Id: Iabe11c826da9ce3663e262fae6a5065565712b38
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
Daniel Farrell [Tue, 22 Aug 2017 13:26:42 +0000 (09:26 -0400)]
Update RPM repo cfg file URL
Recent refactoring in Int/Pack changed the path, update accordingly.
Change-Id: Ifcfad2ebf5f413987109bb2cdd19830f3ede80f5
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
Daniel Farrell [Fri, 18 Aug 2017 20:05:51 +0000 (16:05 -0400)]
Always use current datetime in pkg changelogs
Don't accept a changelog_date param in packaging build logic. Instead,
always automatically find the current datetime and format it
appropriately based on package type.
Now that we're typically building from CI, and not supporting static
builds defined in var files, there's no valid usecase for using a
changelog datetime other than the current datetime. Keeping it just
adds complexity.
Also extract datetime formatting logic to a helper function.
Change-Id: I041f8852a340ff554934a274d3523cc27fcfc464
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
Alok Anand [Mon, 21 Aug 2017 16:48:44 +0000 (22:18 +0530)]
Make a common .gitignore file
Change-Id: If00e8b16d7707d2ae8f2da13aa61cd3b64b9dd98
Signed-off-by: Alok Anand <alok4nand@gmail.com>
Alok Anand [Mon, 21 Aug 2017 16:39:18 +0000 (22:09 +0530)]
Remove YAML logic from DEB cache and templates
As the YAML logic has been removed from building DEB packages these
functionalities are no more relevant.
Change-Id: Idaa1949bdf5023700aae7a0bd56510ee0c563155
Signed-off-by: Alok Anand <alok4nand@gmail.com>
Alok Anand [Wed, 16 Aug 2017 09:51:21 +0000 (15:21 +0530)]
Move rpm & deb build logic into packages/
This commit organizes deb/ and rpm/ into packages/ . build.py, vars.py,
requirements.txt are moved into the base of packages/ to work with the
refactored logic.
Change-Id: Ife0b6a1382ce906a18d539d132569158860620fa
Signed-off-by: Alok Anand <alok4nand@gmail.com>
Alok Anand [Wed, 9 Aug 2017 14:23:51 +0000 (19:53 +0530)]
Build deb's using common build.py
Refactoring aims at creating a common entry point for both rpms and debs
building logic. Using a common build.py, debain will enjoy the same
advancements made earlier in rpm's build logic.
Change-Id: I038e40c7486cc8243feec9a7bb1dc407018f9b41
Signed-off-by: Alok Anand <alok4nand@gmail.com>
Alok Anand [Wed, 9 Aug 2017 11:19:55 +0000 (16:49 +0530)]
Move rpm/requirements.txt
requirements.txt in the base dir will serve a common requirements file
for both rpm/deb building logic.
Change-Id: I64c3da2be9997fa344b62bdded87bbb5aa9cbc6b
Signed-off-by: Alok Anand <alok4nand@gmail.com>