integration/packaging/ansible-opendaylight.git
4 years agoPin pygments to 2.3.x 00/82300/1
Anil Belur [Wed, 29 May 2019 06:46:35 +0000 (16:46 +1000)]
Pin pygments to 2.3.x

Pygments release 2.4.0 which added python requires that excludes all
versions of Python < 3.5. The LFCI's default 3 version is 3.4 so causes
build failure.

Change-Id: I0ffd90ab6d0ccd82d86d204bc6920ddbe1e500d9
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
5 years agoUpdate default RPM to Neon, add Neon rel ex playb 67/81367/1
Daniel Farrell [Thu, 4 Apr 2019 08:01:02 +0000 (04:01 -0400)]
Update default RPM to Neon, add Neon rel ex playb

Change-Id: I15515d09fb1c009033878f6a8a10940be5470329
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
5 years agoUpdate Fluorine SR2 rpm links 87/80387/3
Anil Belur [Thu, 28 Mar 2019 23:26:00 +0000 (09:26 +1000)]
Update Fluorine SR2 rpm links

Also update the rpm_repo_url to the release repo to
fix the version mismatch.

Change-Id: I3f2c3d3a79e30a0f828a2a71065027955b25d3b8
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
5 years agoFix default rpm_path var, Fluorine SR1 12/78812/1
Daniel Farrell [Fri, 14 Dec 2018 21:21:09 +0000 (16:21 -0500)]
Fix default rpm_path var, Fluorine SR1

The RPM in 9-release has changed from Fluorine initial release to SR1,
so old link was wrong. Update to SR1, but also use 91 repo so link will
not break when Fluorine SR3 goes to 9-release repo.

Change-Id: I74411302623760efe311cbe30948e2202fdd2a89
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
5 years agoMerge "Fix docs for Fluorine rel/Neon CD RPM ex cfg files"
Jamo Luhrsen [Tue, 27 Nov 2018 23:38:03 +0000 (23:38 +0000)]
Merge "Fix docs for Fluorine rel/Neon CD RPM ex cfg files"

5 years agoFix docs for Fluorine rel/Neon CD RPM ex cfg files 85/78185/1
Daniel Farrell [Tue, 27 Nov 2018 01:09:16 +0000 (01:09 +0000)]
Fix docs for Fluorine rel/Neon CD RPM ex cfg files

Change-Id: Ief94e12e40424136b0733a12ffcd2f10eaebc258
JIRA: INTPAK-223
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
5 years agoAdd ODL upgrade test 36/76336/15
Taseer [Thu, 20 Sep 2018 21:45:46 +0000 (23:45 +0200)]
Add ODL upgrade test

Adds a new test, which first installs ODL version 8, and asserts
the expected version. Next ODL 8 is uninstalled and the ODL 9
is installed, via an Ansible ODL run.

Also changes the state of the package to installed from current
to the latest one

JIRA: INTPAK-29

Change-Id: I050ab648a490403b03c291a1c75480069d443301
Signed-off-by: Taseer <taseer94@gmail.com>
5 years agoRemove old ODL RPM cfg file before installing new 51/77951/1
Daniel Farrell [Mon, 19 Nov 2018 16:48:09 +0000 (16:48 +0000)]
Remove old ODL RPM cfg file before installing new

When running the role twice, the second run fails to update the ODL RPM
repository configuration file because the old file still exists.
Explicitly remove the old file before installing a new one.

Change-Id: I2c5334e30ec72406ba801f0378e6d960312ac288
JIRA: INTPAK-29
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
5 years agoBug fix: Modify regex to match what is intended 37/76037/6
Manuel Buil [Wed, 12 Sep 2018 15:43:04 +0000 (17:43 +0200)]
Bug fix: Modify regex to match what is intended

The regex line removes the line which was added before:
log4j2.appender.rolling.strategy.type = DefaultRolloverStrategy

because it matches on any line starting with:

log4j2.appender.rolling.s

Change-Id: Ie8b1b5f60982f1026524b7e9519ac675476fee0d
Signed-off-by: Manuel Buil <mbuil@suse.com>
5 years agoMerge changes from topic 'file_log_test_coverage'
Daniel Farrell [Tue, 23 Oct 2018 21:58:40 +0000 (21:58 +0000)]
Merge changes from topic 'file_log_test_coverage'

* changes:
  Add tests when log type is 'file'
  Modify console log tests

5 years agoAdd tests when log type is 'file' 14/76914/6
Taseer [Thu, 11 Oct 2018 21:32:20 +0000 (23:32 +0200)]
Add tests when log type is 'file'

This patch adds tests when log type is file. 'File' is also
default type hence all log tests against default config will
fail without these.

JIRA: INTPAK-209
Change-Id: Ifddeb8ff6d4885ed3a1f00b4adbd00fa3f71393f
Signed-off-by: Taseer <taseer94@gmail.com>
5 years agoModify console log tests 32/76832/9
Taseer [Wed, 10 Oct 2018 21:12:12 +0000 (23:12 +0200)]
Modify console log tests

Log mechanism consist of two types: console and file. This patch
groups together the console type testing and also removes
hardcoded assertion parameters.

JIRA: INTPAK-209
Change-Id: I254216d6f136eafb31407bd080035b596dcc5db5
Signed-off-by: Taseer <taseer94@gmail.com>
5 years agoUpdate default vars to Neon, add examples Ne/Fl 06/76706/3
Daniel Farrell [Fri, 5 Oct 2018 16:48:01 +0000 (12:48 -0400)]
Update default vars to Neon, add examples Ne/Fl

Jira: INTPAK-211
Change-Id: I161082334fcd95ea1ce498409a6ab7c84bb4e220
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
5 years agoAdd API example playbook for DEB env 56/76556/1
Taseer [Mon, 1 Oct 2018 23:01:44 +0000 (01:01 +0200)]
Add API example playbook for DEB env

For tests to pass on DEB systems, restconf features needs to
be installed prior to execution, else the tests will fail.

Change-Id: I09cbf03374b3c84b9607d55c60b748a4a83197bd
Signed-off-by: Taseer <taseer94@gmail.com>
5 years agoPoint to ODL fluorine PPA for debian packages 86/75986/3
Dimitrios Markou [Tue, 11 Sep 2018 13:31:55 +0000 (16:31 +0300)]
Point to ODL fluorine PPA for debian packages

The new ODL fluorine SR0 debian package is uploaded to the ODL-Team
fluorine PPA.

Change-Id: Ie29878491b6ae44628c6d74d93237519f214082f
Signed-off-by: Dimitrios Markou <mardim@intracom-telecom.com>
5 years agoAdd log config variables in a JSON file 86/76086/3
Taseer [Fri, 14 Sep 2018 10:13:20 +0000 (12:13 +0200)]
Add log config variables in a JSON file

These are necessary to fix the CI, as the tests only cover
console logging configuration. This patch is inspired by [1],
where all other different methods to pass these variables failed.

[1]. https://git.opendaylight.org/gerrit/#/c/76036/

Change-Id: I3c0d94acd365da60945f0256f86893d77d3460b9
Signed-off-by: Taseer <taseer94@gmail.com>
5 years agoHandle condition when log setting not customized 69/75669/6
Taseer [Mon, 3 Sep 2018 08:38:29 +0000 (13:38 +0500)]
Handle condition when log setting not customized

Initially, no log levels are defined in the var file. Customization
left to users. This patch adds the condition to run the customization
task only when those variables have been defined, else installation
will fail.

Change-Id: I9acff6e7cd86100525b327819a148f0471ce5716
Signed-off-by: Taseer <taseer94@gmail.com>
5 years agoIncrease API retries and timeout 74/75674/4
Taseer [Mon, 3 Sep 2018 09:22:59 +0000 (14:22 +0500)]
Increase API retries and timeout

The jobs are failing because API is not responding within the specified
time of 5 seconds with 5 retries. This patch increases each to 20.

This patch also adds an extra task of waiting for the API to respond
before moving to the rest of the tasks. This allows enough waiting time
for ODL to be fully functional.

Change-Id: I852660abf34d91fcd547767b5249689b415ca94b
Signed-off-by: Taseer <taseer94@gmail.com>
5 years agoMerge changes from topics 'update_pass_tests', 'update_pass'
Daniel Farrell [Thu, 30 Aug 2018 18:06:03 +0000 (18:06 +0000)]
Merge changes from topics 'update_pass_tests', 'update_pass'

* changes:
  Add tests to verify 'password update' feature
  Allow user passwords to be updated

5 years agoAdd tests to verify 'password update' feature 63/75363/3
Taseer Ahmed [Tue, 21 Aug 2018 16:19:23 +0000 (21:19 +0500)]
Add tests to verify 'password update' feature

The tests consist of changing the admin users password, and through
API, verify the expected behaviour. This includes querying the API
with the old password and expecting 401/unauthorized error, and then
querying with the new password and expecting a 200 response.

JIRA: INTPAK-16
Change-Id: Ia8e49be488604604d7cc14551db11cc269485df3
Signed-off-by: Taseer Ahmed <taseer94@gmail.com>
5 years agoMerge changes from topic 'ansibleodl_test_log_cfg'
Daniel Farrell [Fri, 24 Aug 2018 17:39:26 +0000 (17:39 +0000)]
Merge changes from topic 'ansibleodl_test_log_cfg'

* changes:
  Add tests for ODL log configuration
  Add ODL log configuration

5 years agoAdd tests for ODL log configuration 70/74370/26
Taseer Ahmed [Tue, 24 Jul 2018 07:20:35 +0000 (12:20 +0500)]
Add tests for ODL log configuration

By default, the log-level for console should be info. The relevant
job overrides this to DEBUG, and these set of assertion verify the
desired behaviour, i.e the log-level is set to DEBUG.

Since, it is only possible to have one log mode, console or file,
this patch only tests the 'console' mode.

JIRA: INTPAK-40
Change-Id: I9b0ec79e41c25a4eeeef14f0d89572907b265281
Signed-off-by: Taseer Ahmed <taseer94@gmail.com>
5 years agoAdd ODL log configuration 28/73628/14
Taseer Ahmed [Sun, 1 Jul 2018 18:41:37 +0000 (23:41 +0500)]
Add ODL log configuration

JIRA: INTPAK-40

Parallels the Puppet logic. Initially log levels is an empty
dictionary of the 'logger name' and 'log level'. The user can
set the logger name and log level by their choice.
Ansible implements a similar approach. By default, log_levels
is empty, but can be over written in the vars.

This patch also sets the logging mechanism, either file or console.
Default mechanism is set to console. In case of file, the log
rotation strategy is also configured.

Change-Id: Ifa39927bc77b47490d3e1b56f23aa359316bc3bf
Signed-off-by: Taseer Ahmed <taseer94@gmail.com>
5 years agoAllow user passwords to be updated 11/75311/1
Taseer Ahmed [Thu, 16 Aug 2018 11:18:17 +0000 (16:18 +0500)]
Allow user passwords to be updated

This patch adds a new state that will update the password of
an existing user. This state requires the username for which
the password needs to be changed.

JIRA: INTPAK-16

Change-Id: I01983df6bdb61f480f819738b9467a10a6ef1013
Signed-off-by: Taseer Ahmed <taseer94@gmail.com>
5 years agoMerge "Tests to ensure ODL user creation/deletion via API"
Daniel Farrell [Wed, 15 Aug 2018 06:43:05 +0000 (06:43 +0000)]
Merge "Tests to ensure ODL user creation/deletion via API"

5 years agoTests to ensure ODL user creation/deletion via API 94/75194/3
Taseer Ahmed [Tue, 14 Aug 2018 15:56:06 +0000 (20:56 +0500)]
Tests to ensure ODL user creation/deletion via API

Make use of the API to test the ODL user creation and deletion via the
custom module. This patch also makes sure that the default 'admin' user
exists.

Change-Id: If698dcf00c82643723a63e487c212f5a3783f782
JIRA: INTPAK-194
JIRA: INTPAK-195
Signed-off-by: Taseer Ahmed <taseer94@gmail.com>
5 years agoReplace install_method by odl_install_method 92/75192/1
Manuel Buil [Tue, 14 Aug 2018 13:46:07 +0000 (15:46 +0200)]
Replace install_method by odl_install_method

install_method is too general and might clash with variables from other
playbooks in complex systems. This is happening in openstack-ansible

Change-Id: Ida8ad8f1fc04c619a9e04a103d3df520cf57fb88
Signed-off-by: Manuel Buil <mbuil@suse.com>
5 years agoVerify ODL REST API in Ansible-ODL 17/74617/4
Taseer Ahmed [Sun, 29 Jul 2018 07:55:16 +0000 (12:55 +0500)]
Verify ODL REST API in Ansible-ODL

This patch adds an example playbook. It can be executed
to get the API feature during normal installation.

JIRA: INTPAK-192
Change-Id: I6ebdee1961dc18ee19fb22906a4d0d6a35b9de58
Signed-off-by: Taseer Ahmed <taseer94@gmail.com>
5 years agoAdd tests for verifying corner cases 15/74615/1
Taseer Ahmed [Sun, 29 Jul 2018 07:17:45 +0000 (12:17 +0500)]
Add tests for verifying corner cases

JIRA: INTPAK-177

The patch tests if the module is failing when the correct parameters
are not passed. It asserts that the correct failure message is
generated when username or password is not passed while creating the
user and also when no username is passed when deleting the user.

Change-Id: I8e66467cefcb44c4f122b7059aa2a1bbdf63ecf0
Signed-off-by: Taseer Ahmed <taseer94@gmail.com>
5 years agoDeal with corner cases in custom module 19/74219/1
Taseer Ahmed [Thu, 19 Jul 2018 05:26:56 +0000 (10:26 +0500)]
Deal with corner cases in custom module

Fails if username not provided when deleting the user, and fails if
username or password not provided when creating the user.

Change-Id: Id22c19af7507ecfb7487eaf3f2eb4208f032edcb
JIRA: INTPAK-177
Signed-off-by: Taseer Ahmed <taseer94@gmail.com>
5 years agoMerge "Create task for adding ODL user"
Daniel Farrell [Wed, 18 Jul 2018 21:11:51 +0000 (21:11 +0000)]
Merge "Create task for adding ODL user"

5 years agoMerge "Add tests for odl user/password feature"
Daniel Farrell [Wed, 18 Jul 2018 21:11:40 +0000 (21:11 +0000)]
Merge "Add tests for odl user/password feature"

5 years agoMerge "Allow setting ODL NB REST password"
Daniel Farrell [Wed, 18 Jul 2018 21:11:36 +0000 (21:11 +0000)]
Merge "Allow setting ODL NB REST password"

5 years agoCreate task for adding ODL user 11/73411/15
Taseer Ahmed [Mon, 25 Jun 2018 16:08:44 +0000 (21:08 +0500)]
Create task for adding ODL user

Puppet creates the user before starting the ODL service. Same
workflow is implemented here.

JIRA: INTPAK-177
Change-Id: I269e15dc3a69d6018be050412108090fd83021c7
Signed-off-by: Taseer Ahmed <taseer94@gmail.com>
5 years agoAdd tests for odl user/password feature 17/73517/18
Taseer Ahmed [Thu, 28 Jun 2018 08:38:07 +0000 (13:38 +0500)]
Add tests for odl user/password feature

The new feature allows creating/deleting ODL users. This patchset
introduces tests to ensure everything works as expected. The tests
consists of creating and deleting the users. The verification is
done via running the CLI command and saving the output in variable.
Assertions are made whether on these variables, if the desired user
is present or absent in them.

This change also requires a new job to be added in the RelEng project.
The required RelEng patchset is:
Ib950fbb1f8952c794380af03c25f9f4987c65b73

Note: Originally cross verification via API calls was implemented.
But had to be dropped because ODL was not listening on the desired
port. This needs further debugging.

Change-Id: I702245e1456e12c5a64b4c8fe1810101edb5abce
Signed-off-by: Taseer Ahmed <taseer94@gmail.com>
5 years agoAllow setting ODL NB REST password 91/73391/17
Taseer Ahmed [Mon, 25 Jun 2018 09:05:53 +0000 (14:05 +0500)]
Allow setting ODL NB REST password

Use custom ansible module. When placed under library,
Ansible will detect it automatically. Mirrors the Puppet
logic. Usage is explained in the examples section of the code.

JIRA: INTPAK-177
Change-Id: Ieecbf1dd9c0a923aaf9eff2fd85d391bed800d81
Signed-off-by: Taseer Ahmed <taseer94@gmail.com>
5 years agoAdd ansible-odl docs in its own repository. 39/73639/10
Taseer Ahmed [Mon, 2 Jul 2018 10:35:37 +0000 (15:35 +0500)]
Add ansible-odl docs in its own repository.

Ansible-Opendaylight has docs, but are hosted in a different
repository. This patch places the docs in its own directory.
For now the work is based on the existing material present in
the Int/Pack repository.

JIRA: INTPAK-190

Change-Id: I2537318e7ea721206b8b1d5c89b518c46dc1c77f
Signed-off-by: Taseer Ahmed <taseer94@gmail.com>
5 years agoAdd tests for docs 28/73728/3
Taseer Ahmed [Wed, 4 Jul 2018 07:30:44 +0000 (12:30 +0500)]
Add tests for docs

Ansible-ODL docs are being moved to its own repository. For now,
docs build and linkcheck tests are added.

JIRA: INTPAK-190

Change-Id: I4bc1a2fa9f8755b67a5339d7cf6c0234542e4787
Signed-off-by: Taseer Ahmed <taseer94@gmail.com>
5 years agoAdd Coala linting tests for Ansible module 12/73412/8
Taseer Ahmed [Mon, 25 Jun 2018 16:16:41 +0000 (21:16 +0500)]
Add Coala linting tests for Ansible module

Change-Id: Ib34033834dabb1dbe33463fe71dcbcd8731f0e65
Signed-off-by: Taseer Ahmed <taseer94@gmail.com>
5 years agoUpdate default rpm_path var 8.1->8.2 76/73276/1
Daniel Farrell [Wed, 20 Jun 2018 19:00:16 +0000 (15:00 -0400)]
Update default rpm_path var 8.1->8.2

Change-Id: I840f2a80203451e48d62218e5115f62a814612dc
Jira: INTPAK-175
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
5 years agoUpdate default ODL versions, add examples 77/72977/1
Daniel Farrell [Thu, 14 Jun 2018 02:01:23 +0000 (22:01 -0400)]
Update default ODL versions, add examples

* Add example for Fluorine CD repo install
* Use latest Oxygen release as default repo if latest not specified
* Remove old CBS testing repos, using CD Nexus repos now

Change-Id: I8412ae729fdadb09a283772fd667feb517ae10d9
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
6 years agoModify rpm_repo_url condition 02/71302/2
Manuel Buil [Wed, 25 Apr 2018 10:40:34 +0000 (12:40 +0200)]
Modify rpm_repo_url condition

So far, if odl_version was not defined, we would use the latest release.
Unfortunately, ansible 'lookup' will return an empty string if the
variable does not exist and thus odl_version will always be defined:

https://github.com/ansible/ansible/issues/17329

We use ansible 'lookup' in xci to collect the values from env variables

To overcome this, we will allow a new value for odl_version in XCI:
"latest_release". This patch adapts to that new possible value

Change-Id: Ie4d76ed576ddeded130a863f847cd51cb7491456
Signed-off-by: Manuel Buil <mbuil@suse.com>
6 years agoReplace include by include_tasks 75/70775/1
Manuel Buil [Wed, 11 Apr 2018 12:41:21 +0000 (14:41 +0200)]
Replace include by include_tasks

Starting with ansible 2.4, when using include we get:

The use of 'include' for tasks has been deprecated.

Besides, there is a weird error at the openstack gates in which tasks
are not executed in the expected order and I was told that probably
the include syntax is breaking things as the ODL role is called using
the new include_role syntax.

Change-Id: I4faef6648543f70021b7b159ecd355236876bfe7
Signed-off-by: Manuel Buil <mbuil@suse.com>
6 years agoFix problem in openstack gates 20/70720/3
Manuel Buil [Tue, 10 Apr 2018 14:53:36 +0000 (16:53 +0200)]
Fix problem in openstack gates

For unkown reasons, when using the plain ppa, apt sets the Ubuntu
version wrongly in the openstack gates. The result is that all
gates using Ubuntu and ODL fail, for example in this patch:

https://review.openstack.org/#/c/553333/

Using this syntax instead, we force apt to get the correct Ubuntu
version and works, as tested here:

https://review.openstack.org/#/c/559065/

This syntax is valid from the point of view of ansible as it is shown
as an example in their documentation:

docs.ansible.com/ansible/latest/modules/apt_repository_module.html

Change-Id: I8440fa9714137f22e43aa8cf9291a0e82a3a02e1
Signed-off-by: Manuel Buil <mbuil@suse.com>
6 years agoMerge "Change the port to get compatibility with Oxygen"
Daniel Farrell [Mon, 9 Apr 2018 13:59:40 +0000 (13:59 +0000)]
Merge "Change the port to get compatibility with Oxygen"

6 years agoChange the port to get compatibility with Oxygen 37/70437/2
Manuel Buil [Fri, 6 Apr 2018 15:33:13 +0000 (17:33 +0200)]
Change the port to get compatibility with Oxygen

The jetty.xml file in Oxygen has only one configured port and it is
8181. Nitrogen's jetty had two: 8181 and 8080. We were changing 8080,
however as that port does not exist in Oxygen' jetty.xml, ODL fails.

Change-Id: Icd0396f31749e78f85298beb5706fbe1975d99d5
Signed-off-by: Manuel Buil <mbuil@suse.com>
6 years agoMerge "Provide support for both Oxygen and Nitrogen"
Daniel Farrell [Wed, 4 Apr 2018 17:48:13 +0000 (17:48 +0000)]
Merge "Provide support for both Oxygen and Nitrogen"

6 years agoBuild the repo url when odl_version is passed 66/70266/6
Manuel Buil [Tue, 3 Apr 2018 08:21:15 +0000 (10:21 +0200)]
Build the repo url when odl_version is passed

XCI might pass the odl_version which should generate a repo url
pointing to different snaps repo. So far we were doing this at XCI
side but it makes more sense to do it here as the odl_version is
needed for template processing:

https://git.opendaylight.org/gerrit/#/c/70267/

Change-Id: I2c1cbb86060ce05c87442bcc247fc0679bc9587e
Signed-off-by: Manuel Buil <mbuil@suse.com>
6 years agoProvide support for both Oxygen and Nitrogen 67/70267/2
Manuel Buil [Tue, 3 Apr 2018 08:33:51 +0000 (10:33 +0200)]
Provide support for both Oxygen and Nitrogen

SFC requires changes in two configs, however those are different in
Nitrogen and Oxygen:

- In Oxygen, flow-based tunnels are configured through an internal
OVS parameter and not by netvirt-elanmanager-config.xml

- In Oxygen, the default value for the def-tz-enabled parameter in
genius-itm-config is true whereas in Nitrogen is false

Change-Id: Ib201354e684d0d8ffb5a6f17267ab96f89cefb64
Signed-off-by: Manuel Buil <mbuil@suse.com>
6 years agoAdd Oxygen as default deb PPA 80/70280/1
Dimitrios Markou [Tue, 3 Apr 2018 11:49:33 +0000 (14:49 +0300)]
Add Oxygen as default deb PPA

Change-Id: I8c7400701ec5f767395bb3e013e332a1520aecf5
Signed-off-by: Dimitrios Markou <mardim@intracom-telecom.com>
6 years agoConnect ODL to XCI 52/69752/4
Manuel Buil [Wed, 21 Mar 2018 11:32:34 +0000 (12:32 +0100)]
Connect ODL to XCI

XCI will generate a variable called odl_repo_url which will point
to a repo to fetch ODL. This is the patch:

https://gerrit.opnfv.org/gerrit/#/c/53173/9

Change-Id: Idc618735ecc1c9ebefdf7c2423584f8285b6fb15
Signed-off-by: Manuel Buil <mbuil@suse.com>
6 years agoMerge "configure ODL as BGP server"
Daniel Farrell [Mon, 19 Mar 2018 18:13:43 +0000 (18:13 +0000)]
Merge "configure ODL as BGP server"

6 years agoconfigure ODL as BGP server 95/66195/10
Periyasamy Palanisamy [Mon, 4 Dec 2017 13:21:42 +0000 (14:21 +0100)]
configure ODL as BGP server

1. Quagga packages are kept as tar.gz package in remote location,
downloaded/extracted/configured as local distribution repository
(apt/yum/zypper) accordingly to install the Quagga and its dependent
packages seamlessly

2. Quagga to be installed on the neutron server nodes, but its configued
as BGP speaker for OpenDaylight in one of the neutron server node if it
is running in cluster environment.

Change-Id: If3907c76a57cb7d58e78ec0201c01b27baefb472
Signed-off-by: Periyasamy Palanisamy <periyasamy.palanisamy@ericsson.com>
6 years agoUpdate rpm_path variables to point to Nitrogen SR2 05/69005/2
Manuel Buil [Fri, 2 Mar 2018 14:44:54 +0000 (15:44 +0100)]
Update rpm_path variables to point to Nitrogen SR2

Change-Id: I821d3d4b846d5251d02a0f694add42ca5f98293b
Signed-off-by: Manuel Buil <mbuil@suse.com>
6 years agoUpdate SUSE repo to Nitrogen SR1 25/67925/1
Manuel Buil [Mon, 5 Feb 2018 16:22:31 +0000 (17:22 +0100)]
Update SUSE repo to Nitrogen SR1

Change-Id: I49d716a141d498d846d664ac7ceefb05e4b87bfb
Signed-off-by: Manuel Buil <mbuil@suse.com>
6 years agoRename example playbooks for clarity/brevity 11/67311/1
Daniel Farrell [Thu, 18 Jan 2018 22:28:11 +0000 (17:28 -0500)]
Rename example playbooks for clarity/brevity

Change-Id: I49093281a1dcfc0f99923b41b278c9ad8f40fe65
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
6 years agoRemove examples for old ODL versions, add new 30/67230/1
Daniel Farrell [Wed, 17 Jan 2018 10:39:29 +0000 (05:39 -0500)]
Remove examples for old ODL versions, add new

Also add examples that install from new CD repos.

Change-Id: I12b13da6d7eb1c6d8f82fc314724f7b2fbd049d8
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
6 years agoPin nodeenv dep to let tox run more than once 81/67181/1
Daniel Farrell [Mon, 15 Jan 2018 23:30:35 +0000 (18:30 -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: Ia50a147b2c59dd1d344ed98231e35c7ec9c1019a
Fixes: INTPAK-74
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
6 years agoChange default RPM repo, CentOS CBS to ODL Nexus 57/66457/1
Daniel Farrell [Thu, 14 Dec 2017 09:35:19 +0000 (04:35 -0500)]
Change default RPM repo, CentOS CBS to ODL Nexus

Default to installing from fully-automated CD repo on ODL infra.

Change-Id: Ia34fc4721ffd12208db35052408d5d36384f7bf9
Fixes: INTPAK-112
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
6 years agoUpdate default RPM repo/path 42/66042/2
Daniel Farrell [Wed, 29 Nov 2017 00:57:27 +0000 (19:57 -0500)]
Update default RPM repo/path

Fixes: INTPAK-101
Change-Id: If493bc7cf1d77b6de9cf73a70e69163db06911fb
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
6 years agoAdd support for openSUSE 88/64888/5
Manuel Buil [Mon, 30 Oct 2017 17:06:30 +0000 (18:06 +0100)]
Add support for openSUSE

Change-Id: Id05855f473a2754a4e320bee7e7c21f24873fa12
Signed-off-by: Manuel Buil <mbuil@suse.com>
6 years agofix concat issue with akka.conf jinja2 template 61/64661/1
Periyasamy Palanisamy [Tue, 24 Oct 2017 12:37:02 +0000 (14:37 +0200)]
fix concat issue with akka.conf jinja2 template

Change-Id: I0d6de69497072330555b90dddccf3e37544fbdc8
Signed-off-by: Periyasamy Palanisamy <periyasamy.palanisamy@ericsson.com>
6 years agoadd missing bracket in akka.conf.j2 88/64588/1
Periyasamy Palanisamy [Sun, 22 Oct 2017 07:19:48 +0000 (09:19 +0200)]
add missing bracket in akka.conf.j2

Change-Id: If92b8adaf732865245708cb17fc01508fc2dde3f
Signed-off-by: Periyasamy Palanisamy <periyasamy.palanisamy@ericsson.com>
6 years agoMove to the nitrogen repo for Debian based OS 18/64118/1
Manuel Buil [Tue, 10 Oct 2017 14:55:57 +0000 (16:55 +0200)]
Move to the nitrogen repo for Debian based OS

Change-Id: If984c6d1f60879a26acd57fa9d9f53a5c184d4d3
Signed-off-by: Manuel Buil <mbuil@suse.com>
6 years agoAdd clustering capabilities to Opendaylight role 45/61945/10
Dimitrios Markou [Thu, 17 Aug 2017 15:35:34 +0000 (18:35 +0300)]
Add clustering capabilities to Opendaylight role

When the variable 'cluster' is true then the Opendaylight
controller will be deployed in a clustering mode.

Change-Id: I8a1085bae933ad07eab33fc677d199ef613bc040
Signed-off-by: Dimitrios Markou <mardim@intracom-telecom.com>
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
Signed-off-by: Periyasamy Palanisamy <periyasamy.palanisamy@ericsson.com>
6 years agoSpawn nodes & connect network with ansible roles 17/62717/4
Matt Welch [Tue, 5 Sep 2017 15:14:10 +0000 (11:14 -0400)]
Spawn nodes & connect network with ansible roles

Refactor for better task encapsulation
Add kill_chown.yml to kill stuck chown processes.
Add restart_stacking.yml to restart compute nodes.
Move additional lab-specific variables into inventory.
Update tags to enble more granular task selection.
Modify container networking to use ansible instead of the bash script.
Add ansible tasks to pull container images from the registry.
Add tasks to purge containers matching a supplied string.
Modify order of infra tasks to install packages first, including
bridge-utils.
Add sampe hosts file.
Update site.yml to include a complete cloud setup.
Changed tabs to spaces for SpaceConsistencyBear.

Enable roles to spawn compute and service nodes
Common task added to start stacking on a compute or service node.
New common variable auto_stack added to control stacking after spawn.
Example ansible scripts to setup infra, spawn compute, & spawn service.
Compute and service roles spawn docker containers & connect them to the
network with a bash script.
Handler for apparmor parser moved to handlers/main.yml.
Site.yml now starts a service node by default.
Removed EOL whitespace.

Change-Id: I892afc76fffdcd85e399c5d2596eb4e5020cc318
Signed-off-by: Matt Welch <matt.welch@intel.com>
6 years agoMerge "enable automated setup of physical infrastructure"
Daniel Farrell [Tue, 5 Sep 2017 09:03:32 +0000 (09:03 +0000)]
Merge "enable automated setup of physical infrastructure"

6 years agoenable automated setup of physical infrastructure 12/62012/3
Matt Welch [Mon, 14 Aug 2017 20:59:58 +0000 (16:59 -0400)]
enable automated setup of physical infrastructure

Ansible role to setup the physical infrastructure servers for the S3P
Scale testing framework.
These roles are refactored to improve structure for upstream.
Source is based on
https://github.com/intel-odl/socets/commit/975f5113e0ce16cd6ef1eeb03176230e4f6445c9
Consolidated bridge management and refactored for clarity & reuse.

Clean up infrastructure role
Improve execution idempotency by registering docker_updated_result and
only restarting docker daemon when needed.
Same with parse_apparmor_profile handler.
Added tags to most tasks for better separation of responsibilities.
Moved lab-specific variables tnd inventory to /etc/ansible/hosts.
Addes top-level site.yml to call infrastructure role.

fix docker proxy and 'restart docker' handler
Infra role will now setup proxies and only restart docker daemon on
change.
Refactor to move most variables into common role.
Updated handler

Removed trailing whitespace

Change-Id: I7956b5acba7d339af2e8abbb588c07f0e809de5c
Signed-off-by: Matt Welch <matt.welch@intel.com>
6 years agoMerge "Provide initial config files for sfc"
Daniel Farrell [Thu, 31 Aug 2017 10:38:14 +0000 (10:38 +0000)]
Merge "Provide initial config files for sfc"

6 years agoProvide initial config files for sfc 09/62309/3
Manuel Buil [Fri, 25 Aug 2017 11:31:50 +0000 (11:31 +0000)]
Provide initial config files for sfc

SFC requires that genius uses flow based tunnels and vxlan-gpe. We must
configure that intially in the genius config files

Change-Id: I6a1357a68cf589ddbbeb17a7550ac4a9e724e2ff
Signed-off-by: Manuel Buil <mbuil@suse.com>
6 years agoMake jetty.xml port substitution version agnostic 23/62323/2
Manuel Buil [Fri, 25 Aug 2017 14:36:22 +0000 (14:36 +0000)]
Make jetty.xml port substitution version agnostic

Now it will work for Carbon, Nitrogen and Boron releases

Change-Id: I177e85a5eb6e9279550df774535a006309a308ae
Signed-off-by: Manuel Buil <mbuil@suse.com>
6 years agoAllow long links in commit messages 86/62286/1
Daniel Farrell [Thu, 24 Aug 2017 16:52:00 +0000 (12:52 -0400)]
Allow long links in commit messages

Change-Id: I8f972e476343a2afbc56e0153c3d68d2538c211e
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
6 years agoUpdate RPM repo cfg file URL 58/62158/1
Daniel Farrell [Tue, 22 Aug 2017 13:20:42 +0000 (09:20 -0400)]
Update RPM repo cfg file URL

Recent refactoring in Int/Pack changed the path, update accordingly.

Change-Id: I1557b7cd904408de43ee9d89868cc6b1f26ead96
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
6 years agoRm import of not-there add_jessie_backports task 97/61497/1
Daniel Farrell [Thu, 10 Aug 2017 13:39:03 +0000 (09:39 -0400)]
Rm import of not-there add_jessie_backports task

This task file was removed in ee9c04f8bc4 when we moved to Launchpadd
PPA repos vs OpenSUSE OBS, as they don't support Debian.

Change-Id: Ib340e810d394651f50c50b704702e054f18a111b
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
6 years agoUpdate supported Fedora versions 58/61458/1
Daniel Farrell [Wed, 9 Aug 2017 20:11:09 +0000 (16:11 -0400)]
Update supported Fedora versions

Change-Id: I059da46d40b672921b03077fe201dcd62201b37d
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
6 years agoUpdate requiements.yml with new repo URL 03/61403/1
Daniel Farrell [Wed, 9 Aug 2017 08:02:32 +0000 (04:02 -0400)]
Update requiements.yml with new repo URL

Use new ODL-managed ansible-opendaylight repo in role install file.

Change-Id: Ie291075d1ecba1dbf2064f0cfb2b2708389c88f6
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
6 years agoExtract rpm_repo_file from rpm_repo_url 15/60815/2
Sri Sanketh U [Thu, 27 Jul 2017 14:16:29 +0000 (19:46 +0530)]
Extract rpm_repo_file from rpm_repo_url

Change-Id: Id769dcf22274a75d942c54ce4c82a97689aafa06
Signed-off-by: Sri Sanketh U <sanketh.uppalapati@research.iiit.ac.in>
6 years agoAdd WriteGoodLintBear support 41/60541/2
Sri Sanketh U [Tue, 18 Jul 2017 15:28:48 +0000 (20:58 +0530)]
Add WriteGoodLintBear support

Fix readability, inheritance issues

Change-Id: Icd6176cea10b5932ee34699a583283a416670486
Signed-off-by: Sri Sanketh U <sanketh.uppalapati@research.iiit.ac.in>
6 years agoUpdate ODL RPM version to Carbon 26/60026/1
Daniel Farrell [Thu, 6 Jul 2017 13:54:37 +0000 (09:54 -0400)]
Update ODL RPM version to Carbon

Change-Id: Ia5d5f909d6871f7ac29066fa8745fef8aba96e48
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
6 years agoFix typo in README for nb_rest_port 08/58508/1
Juan Vidal [Thu, 8 Jun 2017 12:36:59 +0000 (14:36 +0200)]
Fix typo in README for nb_rest_port

README document states that "odl_rest_port" can be configured to change
the port where ODL listens, but internally "nb_rest_port" is the
variable name used.

Also added an example using it.

Change-Id: Ic5aa035a063adc25e48bd9fc365cdb8ba54bb367
Signed-off-by: Juan Vidal <juan.vidal.allende@ericsson.com>
6 years agoPin requests to <2.16 38/57938/1
Daniel Farrell [Sun, 28 May 2017 14:38:42 +0000 (10:38 -0400)]
Pin requests to <2.16

The new requests library pulls in a chardet dependency that is in
conflict with coala packages. Pin the version of requests to ensure
we're pulling in a supported version.

Copied change by Thanh.

Change-Id: Ie0e18e5f370c584f11d2dddd39cdf59e5d141bc7
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
6 years agoFix markdown linting errors, enable linting 25/57825/1
Daniel Farrell [Thu, 25 May 2017 17:31:57 +0000 (13:31 -0400)]
Fix markdown linting errors, enable linting

Change-Id: Iae86844c8bdad68e1b91ab58d19d9d38e5c554b2
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
6 years agoAdd Coala linting 23/57823/1
Daniel Farrell [Thu, 25 May 2017 16:23:55 +0000 (12:23 -0400)]
Add Coala linting

Some sections are disabled, will enable and fix in follow-up patches.

Change-Id: Ic4e2c75a95abf2b297f7f0ebe3f19d00f100d51b
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
6 years agoAdd .gitreview file 15/57815/1
Daniel Farrell [Thu, 25 May 2017 13:38:02 +0000 (09:38 -0400)]
Add .gitreview file

Change-Id: Icb4860355d725f7f4a956d51bdcb146f1c3c10b0
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
7 years agoAdd carbon .deb support for ansible-opendaylight 61/57561/1
Akshita Jha [Wed, 10 May 2017 15:57:53 +0000 (21:27 +0530)]
Add carbon .deb support for ansible-opendaylight

Ansible-opendaylight made use of OpenSUSE Build Service (OBS) to
install .deb packages. This patch removes support for OBS and
instead adds carbon .deb support for Ubuntu 16.04 using Launchpad
PPA, `ppa:odl-team/carbon`.

This patch temporarily removes support for Debian OS.

Change-Id: Ifc72d4ae41cfad2a52e020006de90dd1b9c6e1a9
Signed-off-by: Akshita Jha <zenith158@gmail.com>
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
7 years agoInstall opendaylight .deb only for Ubuntu 16.04 60/57560/1
Akshita Jha [Tue, 7 Mar 2017 10:50:04 +0000 (16:20 +0530)]
Install opendaylight .deb only for Ubuntu 16.04

Change-Id: Ia6d6cb6e1a19f7da586f93a5b3159fd7589f2bd3
Signed-off-by: Akshita Jha <zenith158@gmail.com>
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
7 years agoAdd example playbooks for all testing/rel repos 59/57559/1
Daniel Farrell [Thu, 2 Mar 2017 15:18:07 +0000 (10:18 -0500)]
Add example playbooks for all testing/rel repos

Change-Id: Ib36543894766dcdfec0d4fdf66ac8429828a26b5
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
7 years agoUpdate docs for ansible-opendaylight 58/57558/1
Akshita Jha [Mon, 27 Feb 2017 10:43:29 +0000 (16:13 +0530)]
Update docs for ansible-opendaylight

Change-Id: If7bffc0de096a27961f0815c357d380ddad75807
Signed-off-by: Akshita Jha <zenith158@gmail.com>
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
7 years agoFix RPM URL var default value 57/57557/1
Daniel Farrell [Mon, 27 Feb 2017 17:41:25 +0000 (12:41 -0500)]
Fix RPM URL var default value

Change-Id: I3164b2148c5d973e4433d47ca9447fbd62469093
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
7 years agoAdd example playbooks 56/57556/1
Akshita Jha [Wed, 22 Feb 2017 10:01:08 +0000 (15:31 +0530)]
Add example playbooks

Change-Id: I26141d214a274c5d59834d110ce9ad0a8ec7dc7e
Signed-off-by: Akshita Jha <zenith158@gmail.com>
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
7 years agoCreate `requirements.yml` to install opendaylight role 55/57555/1
Akshita Jha [Wed, 8 Feb 2017 07:48:07 +0000 (13:18 +0530)]
Create `requirements.yml` to install opendaylight role

Change-Id: Ie3e1b36f4682fd525e58b70b9743ad90d9109d00
Signed-off-by: Akshita Jha <zenith158@gmail.com>
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
7 years agoFix ansible-lint errors 54/57554/1
srisankethu [Sun, 8 Jan 2017 18:07:05 +0000 (23:37 +0530)]
Fix ansible-lint errors

Change-Id: I010ce114210a507ca560cfada4c45fefd8a5fc0b
Signed-off-by: srisankethu <sanketh.uppalapati@research.iiit.ac.in>
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
7 years agoCONTRIBUTING.md: Fix minor typo 53/57553/1
srisankethu [Mon, 12 Dec 2016 15:42:40 +0000 (21:12 +0530)]
CONTRIBUTING.md: Fix minor typo

Change-Id: I98fcec7353efcba3b708388a4843e4402962d604
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
7 years agoChange `deb_path` to use remote URL instead of local path 52/57552/1
Akshita Jha [Sat, 3 Dec 2016 00:09:17 +0000 (05:39 +0530)]
Change `deb_path` to use remote URL instead of local path

Change-Id: I4fc94805ba54b6f19d98d01f6b2cfd926845d56c
Signed-off-by: Akshita Jha <zenith158@gmail.com>
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
7 years agoAdd .deb support to ansible-opendaylight 51/57551/1
Akshita Jha [Fri, 2 Dec 2016 23:23:05 +0000 (04:53 +0530)]
Add .deb support to ansible-opendaylight

This commit checks the OS and then branches for either RPM or Deb installs.
It allows ODL to be installed in a debian based distribution (Debian or Ubuntu)
using a debian repo or .deb local/remote path.

Ansible version: 2.2.0.0
Tested for Debian 8.0 and Ubuntu 16.04

Change-Id: I341c9451352733c1138403cc558d30cfd7611423
Signed-off-by: Akshita Jha <zenith158@gmail.com>
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
7 years agoRemove debug statements 50/57550/1
Akshita Jha [Thu, 1 Dec 2016 09:44:27 +0000 (15:14 +0530)]
Remove debug statements

Change-Id: I561cd2372fc2acc92dd8884c626565baab6e6052
Signed-off-by: Akshita Jha <zenith158@gmail.com>
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
7 years agoAdd .deb support to ansible-opendaylight 49/57549/1
Akshita Jha [Thu, 1 Dec 2016 09:25:37 +0000 (14:55 +0530)]
Add .deb support to ansible-opendaylight

This commit checks the OS and then branches for either RPM or Deb
installs. This patch allows ODL to be installed in a debian distribution
(Debian or Ubuntu) via a deb repo.

Ansible version: 2.2.0.0
Tested for Debian 8.0 and Ubuntu 16.04

Change-Id: I5c238532c039543017af5c290b037df87eb942f2
Signed-off-by: Akshita Jha <zenith158@gmail.com>
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
7 years agoCONTRIBUTING.md: Set IRC webchat link 48/57548/1
srisankethu [Wed, 30 Nov 2016 06:44:22 +0000 (12:14 +0530)]
CONTRIBUTING.md: Set IRC webchat link

Fixes https://github.com/dfarrell07/ansible-opendaylight/issues/25

Change-Id: I0aed5bb3175f9a7ba47411c5d928135a429fa104
Signed-off-by: srisankethu <sanketh.uppalapati@research.iiit.ac.in>
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
7 years agoCONTRIBUTING.md: Add IRC channel information 47/57547/1
srisankethu [Thu, 24 Nov 2016 09:54:12 +0000 (15:24 +0530)]
CONTRIBUTING.md: Add IRC channel information

Closes https://github.com/dfarrell07/ansible-opendaylight/issues/25

Change-Id: I7da3450e0c88c44cf17bd2a867d09565d747818f
Signed-off-by: srisankethu <sanketh.uppalapati@research.iiit.ac.in>
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
7 years agoUpdate default ODL version to Boron 46/57546/1
Daniel Farrell [Wed, 21 Sep 2016 20:58:44 +0000 (16:58 -0400)]
Update default ODL version to Boron

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