From a89958c401cd01a4c26bd3833c42750e7582cf60 Mon Sep 17 00:00:00 2001 From: Vratko Polak Date: Tue, 17 Oct 2017 18:05:21 +0200 Subject: [PATCH] Bug 9307: Split features to avoid incompatiblities Netconf has two implementations of netconf topology service which can lead to failing SingleFeatureTest if installed together. Change-Id: I9c80c4dd5c43365d4d46f2b5bf89dd1f0f22f57f Signed-off-by: Vratko Polak --- artifacts/distribution/pom.xml | 14 +++ features/repos/test/pom.xml | 12 ++ features/singles/odl-integration-all/pom.xml | 5 +- .../pom.xml | 91 ++++++++++++++ .../pom.xml | 119 ++++++++++++++++++ .../pom.xml | 69 ++-------- features/singles/pom.xml | 2 + 7 files changed, 251 insertions(+), 61 deletions(-) create mode 100644 features/singles/odl-integration-compatible-with-1node/pom.xml create mode 100644 features/singles/odl-integration-compatible-with-3node/pom.xml diff --git a/artifacts/distribution/pom.xml b/artifacts/distribution/pom.xml index a9bfe1b6..2518793b 100644 --- a/artifacts/distribution/pom.xml +++ b/artifacts/distribution/pom.xml @@ -70,6 +70,20 @@ features xml + + ${project.groupId} + odl-integration-compatible-with-1node + ${project.version} + features + xml + + + ${project.groupId} + odl-integration-compatible-with-3node + ${project.version} + features + xml + ${project.groupId} odl-integration-all diff --git a/features/repos/test/pom.xml b/features/repos/test/pom.xml index 27286f0c..46f1665a 100644 --- a/features/repos/test/pom.xml +++ b/features/repos/test/pom.xml @@ -57,6 +57,18 @@ features xml + + ${project.groupId} + odl-integration-compatible-with-1node + features + xml + + + ${project.groupId} + odl-integration-compatible-with-3node + features + xml + ${project.groupId} odl-integration-all diff --git a/features/singles/odl-integration-all/pom.xml b/features/singles/odl-integration-all/pom.xml index a907c1eb..6380e200 100644 --- a/features/singles/odl-integration-all/pom.xml +++ b/features/singles/odl-integration-all/pom.xml @@ -24,7 +24,10 @@ ODL :: integration :: ${project.artifactId} - Single feature containing all features separately compatible with odl-integration-compatible-with-all. + + Single feature containing all features separately compatible with odl-integration-compatible-with-all. + TODO: Split out 1node and 3node compatibility classes. + https://wiki.opendaylight.org/view/Integration/Distribution diff --git a/features/singles/odl-integration-compatible-with-1node/pom.xml b/features/singles/odl-integration-compatible-with-1node/pom.xml new file mode 100644 index 00000000..a9301e2a --- /dev/null +++ b/features/singles/odl-integration-compatible-with-1node/pom.xml @@ -0,0 +1,91 @@ + + + + 4.0.0 + + org.opendaylight.odlparent + single-feature-parent + 2.0.5 + + + org.opendaylight.integration + odl-integration-compatible-with-1node + + 0.8.0-SNAPSHOT + feature + + ODL :: integration :: ${project.artifactId} + + Single feature containing all features compatible with most and with 1node legacy deployments. + This should consist of odl-integration-compatible-with-all + and additional features which are not compatible with 3node deployments. + Typical bundle which should not be installed: org.opendaylight.netconf:netconf-topology-singleton. + + https://wiki.opendaylight.org/view/Integration/Distribution + + + Eclipse Public License v1.0 + http://www.eclipse.org/legal/epl-v10.html + + + + + scm:git:https://git.opendaylight.org/gerrit/integration/distribution.git + scm:git:ssh://git.opendaylight.org:29418/integration/distribution.git + https://git.opendaylight.org/gerrit/gitweb?p=integration/distribution.git;a=tree;f=features/singles/odl-integration-compatible-with-all;hb=HEAD + HEAD + + + + + ${project.groupId} + all-artifacts + ${project.version} + import + pom + + + + + + ${project.groupId} + odl-integration-compatible-with-all + features + xml + + + + + + + org.opendaylight.netconf + odl-netconf-callhome-ssh + features + xml + + + org.opendaylight.netconf + odl-netconf-console + features + xml + + + + + org.opendaylight.unimgr + odl-unimgr + xml + features + + + + diff --git a/features/singles/odl-integration-compatible-with-3node/pom.xml b/features/singles/odl-integration-compatible-with-3node/pom.xml new file mode 100644 index 00000000..10182994 --- /dev/null +++ b/features/singles/odl-integration-compatible-with-3node/pom.xml @@ -0,0 +1,119 @@ + + + + 4.0.0 + + org.opendaylight.odlparent + single-feature-parent + 2.0.5 + + + org.opendaylight.integration + odl-integration-compatible-with-3node + + 0.8.0-SNAPSHOT + feature + + ODL :: integration :: ${project.artifactId} + + Single feature containing all features compatible with most and with 3node deployments. + This should consist of odl-integration-compatible-with-all + and additional features which are not compatible with 1node legacy deployments. + Typical bundle which should not be installed: org.opendaylight.netconf:netconf-topology-config. + + https://wiki.opendaylight.org/view/Integration/Distribution + + + Eclipse Public License v1.0 + http://www.eclipse.org/legal/epl-v10.html + + + + + scm:git:https://git.opendaylight.org/gerrit/integration/distribution.git + scm:git:ssh://git.opendaylight.org:29418/integration/distribution.git + https://git.opendaylight.org/gerrit/gitweb?p=integration/distribution.git;a=tree;f=features/singles/odl-integration-compatible-with-all;hb=HEAD + HEAD + + + + + ${project.groupId} + all-artifacts + ${project.version} + import + pom + + + + + + ${project.groupId} + odl-integration-compatible-with-all + features + xml + + + + + + + + + + org.opendaylight.honeycomb.vbd + odl-vbd + features + xml + + + org.opendaylight.honeycomb.vbd + odl-vbd-rest + features + xml + + + org.opendaylight.honeycomb.vbd + odl-vbd-ui + features + xml + + + + + org.opendaylight.netconf + odl-netconf-clustered-topology + features + xml + + + + diff --git a/features/singles/odl-integration-compatible-with-all/pom.xml b/features/singles/odl-integration-compatible-with-all/pom.xml index f7f9d61d..8862f28d 100644 --- a/features/singles/odl-integration-compatible-with-all/pom.xml +++ b/features/singles/odl-integration-compatible-with-all/pom.xml @@ -24,7 +24,13 @@ ODL :: integration :: ${project.artifactId} - Single feature containing all features compatible together. + + Single feature containing all features compatible with most. + If a feature is known to be incompatible with any typical use case, + for 1node or 3node deployment, it should not be listed here. + See other feature definitions for compatibility details. + Note: Even commented-out features should be moved to their appropriate compatibility class. + https://wiki.opendaylight.org/view/Integration/Distribution @@ -124,7 +130,7 @@ - org.opendaylight.daexim + org.opendaylight.daexim odl-daexim-all xml features @@ -196,18 +202,6 @@ xml features - - org.opendaylight.groupbasedpolicy - odl-groupbasedpolicy-vpp - xml - features - - - org.opendaylight.groupbasedpolicy - odl-groupbasedpolicy-neutron-vpp-mapper - xml - features - org.opendaylight.groupbasedpolicy odl-groupbasedpolicy-ui @@ -226,12 +220,6 @@ xml features - - org.opendaylight.groupbasedpolicy - odl-groupbasedpolicy-ios-xe - xml - features - org.opendaylight.groupbasedpolicy odl-groupbasedpolicy-sxp-ep-provider @@ -246,26 +234,6 @@ --> - - - org.opendaylight.honeycomb.vbd - odl-vbd - features - xml - - - org.opendaylight.honeycomb.vbd - odl-vbd-rest - features - xml - - - org.opendaylight.honeycomb.vbd - odl-vbd-ui - features - xml - - org.opendaylight.infrautils @@ -283,6 +251,7 @@ + org.opendaylight.netconf odl-netconf-mdsal @@ -295,18 +264,6 @@ features xml - - org.opendaylight.netconf - odl-netconf-callhome-ssh - features - xml - - - org.opendaylight.netconf - odl-netconf-console - features - xml - org.opendaylight.netconf odl-restconf @@ -456,13 +413,5 @@ xml - - - org.opendaylight.unimgr - odl-unimgr - xml - features - - diff --git a/features/singles/pom.xml b/features/singles/pom.xml index 137d0b91..f472cb0e 100644 --- a/features/singles/pom.xml +++ b/features/singles/pom.xml @@ -43,6 +43,8 @@ odl-distribution-version odl-integration-compatible-with-all + odl-integration-compatible-with-1node + odl-integration-compatible-with-3node odl-integration-all -- 2.36.6