aboutsummaryrefslogtreecommitdiffstats
path: root/kubernetes/appc/resources
AgeCommit message (Collapse)AuthorFilesLines
2022-12-14[APPC] Remove appc chart and refsefiacor22-1626/+0
Removing appc chart Removing most appc refs Some SO data may need to be followed up with SO team Signed-off-by: efiacor <fiachra.corcoran@est.tech> Change-Id: I183e3dfb7e33a3ada1ac9925ee96b9f32d89bd5a Issue-ID: OOM-3069
2021-09-26[COMMON] Add and run pre-commit linters via toxguillaume.lambert4-13/+13
- create a .pre-commit-config.yaml configuration file with * gitlint * trailing blanks linter * tabs removal linter - exclude .git folder from it - exclude Makefiles since tabs are mandatory by default in them - create a tox pre-commit profile to run it from tox note gitlint is not runnable at this pre-commit stage - create pre-commit-install and pre-commit-uninstall tox profiles to (un)install hooks locally and (un)perform tests at each "git commit" call (i.e. without calling manually the pre-commit tox profile) - precise pre-commit stages/types in the pre-commit configuration file so that hooks are installed correctly. This avoids messages about skipped tests when they are run at a wrong stage. Issue-ID: OOM-2643 Signed-off-by: guillaume.lambert <guillaume.lambert@orange.com> Change-Id: Ie95bb4f6f90be80b05a1398973caffeff7936881
2021-09-22[COMMON] Enforce checkbashisms tox profileGuillaume Lambert3-4/+6
- add checkbahims to tox.ini default profiles - remove -f options to unforce bashisms detection in explicit bash scripts and to differentiate treatments between bash and sh - migrate #!/bin/bash shebangs to #!/bin/sh for scripts without bashisms The following scripts have not been migrated since they still use bashisms difficult to migrate (mostly arrays - more details below) ./kubernetes/common/mariadb-init/resources/config/db_init.sh ./kubernetes/portal/components/portal-mariadb/resources/config/ \ mariadb/docker-entrypoint.sh ./kubernetes/helm/plugins/deploy/deploy.sh ./kubernetes/helm/plugins/undeploy/undeploy.sh ./kubernetes/sdnc/components/sdnc-prom/resources/bin/ensureSdncActive.sh $ find . -not -path '*/\.*' -name *.sh -exec checkbashisms -f {} + 2>&1\ | grep line | cut -d' ' -f 7- | sort | uniq -c | sort -k1,1nr 18 (bash arrays, ${name[0|*|@]}): 2 (declare): 1 ($FUNCNAME): 1 (shopt): 1 (trap with ERR|DEBUG|RETURN): https://mywiki.wooledge.org/Bashism#Arrays https://mywiki.wooledge.org/Bashism#Special_Variables https://mywiki.wooledge.org/Bashism#Builtins https://www.oilshell.org/release/0.5.alpha2/test/spec.wwz/builtin-trap.html Issue-ID: OOM-2643 Signed-off-by: Guillaume Lambert <guillaume.lambert@orange.com> Change-Id: Id06ad1d45004321a293bdd26038d8da5f7b6b4ac
2021-06-29[COMMON] Fix read -s, echo -e and $'...' bashismsGuillaume Lambert1-1/+2
pointed out by checkbashisms. Issue-ID: OOM-2643 Signed-off-by: Guillaume Lambert <guillaume.lambert@orange.com> Change-Id: I527f9b8dcad98a5dd9eb30390d26c95c1d918c09
2021-06-02[COMMON] Get rid of "x-hack" in shell scriptsGuillaume Lambert1-2/+2
$ find . -name *.sh -print |xargs grep -l '"x'| xargs sed -i 's/"x/"/g' The "x-hack" is a historical workaround for some old UNIX shells with buggy condition comparison code. None of them is still used today. Recent POSIX specifications now guarantee it should work without it in any modern POSIX shell. More details at https://www.vidarholen.net/contents/blog/?p=1035 https://github.com/koalaman/shellcheck/wiki/SC2268 Issue-ID: OOM-2643 Signed-off-by: Guillaume Lambert <guillaume.lambert@orange.com> Change-Id: Ic01bbc5faee9492dba5b5d4dea0f659540da2c24
2021-05-11[COMMON] Fix arithmetic loop bashismsGuillaume Lambert1-1/+1
pointed out by checkbashisms. Issue-ID: OOM-2643 Signed-off-by: Guillaume Lambert <guillaume.lambert@orange.com> Change-Id: I85fd7d9beca75dc729de247fa67a20b801748c19
2021-05-10[COMMON] Fix &> and <<< bashismsGuillaume Lambert1-1/+1
pointed out by checkbashisms. Issue-ID: OOM-2643 Signed-off-by: Guillaume Lambert <guillaume.lambert@orange.com> Change-Id: I958443b2e4b4f6391a74f957314d7d3fcf321cd0
2021-04-27Merge "[COMMON] Fix condition equality bashisms"Krzysztof Opasiak2-3/+3
2021-04-19Merge "[COMMON] Fix function declarations bashisms"Sylvain Desbureaux1-1/+1
2021-04-16[COMMON] Fix condition equality bashismsGuillaume Lambert2-3/+3
pointed out by checkbashisms. $ mycmd=$(tox -e checkbashisms | grep "(should be 'b = a')" | sed -e "s@^[^.]*\(.[^ ]*\) line \([0-9]*\) .*@sed -i -e '\2s/==/=/g' \1;@") $ eval $mycmd Issue-ID: OOM-2643 Signed-off-by: Guillaume Lambert <guillaume.lambert@orange.com> Change-Id: I9032130bc4717e111de11a73187c2f1052376e45
2021-04-14[COMMON] Fix function declarations bashismsGuillaume Lambert1-1/+1
pointed out by checkbashisms. $ mycmd=$(tox -e checkbashisms | grep "^possible .*'function' is useless " | sed -e "s@^[^.]*\(.[^ ]*\) line \([0-9]*\) .*@sed -i -e '\2s/functio n \\\([^ ()]*\\\) *(\\\?)\\\?/\\\1 ()/\' -e '\2s/(){/() {/' \1;@") $ eval $mycmd Issue-ID: OOM-2643 Signed-off-by: Guillaume Lambert <guillaume.lambert@orange.com> Change-Id: Ic41c8ba8288b7a90db9f5775cd601c09ff2ab663
2021-04-13[COMMON] Fix shell scripts missing shebangsGuillaume Lambert3-0/+6
pointed out by checkbashisms. $ tox -e checkbashisms |grep 'interpreter line' | cut -d' ' -f2 |xargs grep -lv '#!/bin/sh' | xargs sed -i -e '1i#!/bin/sh' -e '1i\\' plus manual fixes Issue-ID: OOM-2643 Signed-off-by: Guillaume Lambert <guillaume.lambert@orange.com> Change-Id: Ic41fec6ebadd162cecf889f2b119ac82551bd21d
2020-10-21[APPC] change comment styleJakub Latusek18-0/+36
Signed-off-by: Jakub Latusek <j.latusek@samsung.com> Change-Id: If52740c1d17d9c42b019632e0ded5cf636cdd00e Issue-ID: OOM-2562
2020-05-07Fix internal uri to modifyConfigBrian Freeman1-1/+1
Issue-ID: APPC-1876 Change-Id: If958102c146b5a7b2724e5291ca0d86870ce7869 Signed-off-by: Brian Freeman <bf1936@att.com>
2020-04-22[APPC] use common templates for logsSylvain Desbureaux1-0/+0
Using the common templates for centralized logging. Issue-ID: OOM-2370 Signed-off-by: Sylvain Desbureaux <sylvain.desbureaux@orange.com> Change-Id: Ib0995b754597da36d06939199738cf93398e796a
2020-03-31move AAF cert to APPC helm chartTaka Cho3-2/+29
move AAF cert out of APPC docker to APPC helm chart new AAF cert: Validity Not Before: Mar 27 18:03:32 2020 GMT Not After : Mar 27 18:03:32 2021 GMT Issue-ID: APPC-1857 Change-Id: I25adc3fce2bed234c6748a87d975c46f1e607260 Signed-off-by: Taka Cho <takamune.cho@att.com>
2020-03-30use ODL aaa-app-config when AAF disabledTaka Cho1-2/+0
picking up ODL default aaa-app-config.xml file when AAF disabled. Issue-ID: APPC-1855 Change-Id: Ic53156e3c24180a20c9b1be46d3d3a7824c468c9 Signed-off-by: Taka Cho <takamune.cho@att.com>
2020-03-13[APPC] Use common secret tamplate for mariadb-galera credentialsKrzysztof Opasiak11-53/+47
Use init container construction & common secret template to remove hardcoded mysql db credentials. For now credentials are still hardcoded in the values file to avoid making too many changes at once. I also had to make properties files writeable because appc uses some weird design and modifies them inside main container while starting odl. Issue-ID: OOM-2275 Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com> Change-Id: Ie36522fc1fdf92a382d5f25a54d4cb150b57ea35
2020-02-10[APPC] Fix APPC health check failureKrzysztof Opasiak1-1/+1
In commit: e74ed5cd24d ("[APPC] Don't hardcode mariadb root password") startOdl.sh script has been updated to take the root password from the environment variable. Unfortunately there was a typo in variable name which resulted in using empty string instead of password. Issue-ID: APPC-1830 Fixes: e74ed5cd24d ("[APPC] Don't hardcode mariadb root password") Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com> Change-Id: I537e3e24ee4bbbc20d5ebc07dddd9f0d3cbe26d8
2020-02-01[APPC] Don't hardcode mariadb root passwordKrzysztof Opasiak3-8/+6
You should never ever assume that secretpassword is a production ready password for your mariadb-galera instance. Instead let's just share a secret with our instance of mariadb-galera. Issue-ID: OOM-2275 Change-Id: I25486ad81a2ec428dbbd379ab3529c84f55acc4b Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
2019-11-15Docker changes for dmaap microservicePatrick Brady2-3/+11
-Add script to start dmaap microservice. -Add new properties -Renaming the DCAE.dmaap properties so that all of the properties share the same prefix (DCAE.dmaap.event) instead of some having a different prefix (DCAE.dmaap.appc). This is required since all dmaap properties are now being read by the a common java class. Change-Id: I66b7cb466ec03f3357ecc473748a54a3a090ef16 Signed-off-by: Patrick Brady <patrick.brady@att.com> Issue-ID: APPC-1744
2019-09-11Merge "Move appc install to runtime"Brian Freeman1-26/+24
2019-09-10fix role syntax on aaa cfg fileTaka Cho1-8/+8
the delimiter should be : not | Issue-ID: APPC-1714 Change-Id: I66f03805265883ffb26c0d6d065b3d528a5afe67 Signed-off-by: Taka Cho <takamune.cho@att.com>
2019-09-09Move appc install to runtimePatrick Brady1-26/+24
Since ccsdk dblib does not work after a restart of karaf, the appc install scripts must be modified so that karaf is not started during docker build. Change-Id: I9cdb3a736e26d7da9fdce53dcc7b45585d97fc47 Signed-off-by: Patrick Brady <patrick.brady@att.com> Issue-ID: CCSDK-1445
2019-08-23add bath file for additional AAA userTaka Cho1-0/+8
to comply for jolokia security vulnerability, another three AAA users will be added Issue-ID: OJSI-63 Change-Id: I476df578f457f862a76afec2df6ded34bb3cae64 Signed-off-by: Taka Cho <takamune.cho@att.com>
2019-08-22update AAF urlTaka Cho1-4/+4
the old URL is not working with AAF 2.1.15 image Issue-ID: AAF-942 Change-Id: I83cabb1048ccd87313784d45ffe27c967d9502c3 Signed-off-by: Taka Cho <takamune.cho@att.com>
2019-06-25remove unused feature and scriptsTaka Cho3-254/+1
installFeatures.sh moved to docker build time. startODL.sh under ccsdk/bin was the old startup script. odl-mdsal-clustering moved to docker build time. Issue-ID: APPC-1631 Change-Id: Ief332ef029f28f8c37a5121fd78a17b88c61bd6f Signed-off-by: Taka Cho <takamune.cho@att.com>
2019-06-19Revert "Fix for appc clustering install failure"Patrick Brady1-4/+18
It is reported that the old version of this script is currently working, so we will leave it as is for now and make changes later. This reverts commit 616fb1cea6cadc5e368f43176eb0f4d5342b87b7. Change-Id: I38d8bff135fbcc3eb407d2f3fcf295cf58c386d2 Signed-off-by: Patrick Brady <patrick.brady@att.com> Issue-ID: APPC-1242
2019-06-17Fix for appc clustering install failurePatrick Brady1-18/+4
Update appc karaf stop detection The new stop detection script is more reliable and does not depend on a specific value and format of the ps command. Remove clustering feature install The feature needs to be installed before appc features are installed, and so the odl-mdsal-clustering install has been moved to the build scripts. Change-Id: I6e9c585cbd58a516114a609329422cf8375e023d Signed-off-by: Patrick Brady <patrick.brady@att.com> Issue-ID: APPC-1242
2019-06-07update new passwd for cadiTaka Cho1-1/+1
update p12 password for new p12 file Change-Id: I4fc93e7ff1f1a401fd14a806f6d02c652b4bad77 Issue-ID: APPC-1620 Signed-off-by: Taka Cho <takamune.cho@att.com>
2019-05-20fix netconf for vFWTaka Cho1-1/+1
in Dublin, we changed to stream-count:stream-count/streams Change-Id: I536c2beef82e2520d9538e417456b9225d8c07a1 Issue-ID: APPC-1610 Signed-off-by: Taka Cho <takamune.cho@att.com>
2019-04-23remove startODL string checkTaka Cho1-2/+1
it is not necessary to check startODL is runnning or no. in the past, startODL took 30-40 mins From dublin, startODL only takes less than 30 sec Change-Id: I5b5d80a1bde2d0d292d809dd202e1c3a15a1cf4d Issue-ID: APPC-1581 Signed-off-by: Taka Cho <takamune.cho@att.com>
2019-01-31Merge "Update startODL based on changes to docker start"Borislav Glozman1-35/+42
2019-01-28Update startODL based on changes to docker startAaron Hay1-35/+42
The installation time for APPC has been greatly improved for the Dublin release. Changes to remove unzipping and feature set installation are needed. Change-Id: I9fb42abc53648ce4d2a1361e6784fbab49330abf Issue-ID: APPC-1341 Signed-off-by: Aaron Hay <aaron.hay@att.com>
2019-01-16Feature install odl-netconf-clustered-topologyAaron Hay1-0/+184
Install the odl-netconf-clustered-topology feature for clustered environments. Change-Id: Ic369fcbb962c9494dd6e165e38829cc55915689c Issue-ID: APPC-1242 Signed-off-by: Aaron Hay <aaron.hay@att.com>
2018-11-19Store .installed marker in persistent volumeAaron Hay2-23/+33
Change-Id: Id53eb39a9b7a5865b40e3248421340cba37762d2 Issue-ID: APPC-1243 Signed-off-by: Aaron Hay <aaron.hay@att.com>
2018-11-13Update APPC charts for Casablanca AAF supportAaron Hay2-1/+2
Change-Id: I086c16c652a9b3bb7c147e720a31da17ff33f6a5 Issue-ID: APPC-1235 Signed-off-by: Aaron Hay <aaron.hay@att.com>
2018-11-07correct the license headerTaka Cho1-11/+14
based on LinuxFoundation suggestion, corrected the license header Change-Id: If739d31bdadf86a4de7875e2c700d65bac4d1a12 Issue-ID: APPC-1229 Signed-off-by: Taka Cho <takamune.cho@att.com>
2018-11-03Update ODL credentials for AAFAaron Hay2-6/+5
Add in ODL user and password options for AAF, allowing non-AAF credentials to also be used when AAF is disabled. Change-Id: I5750fb030ce2227d0bfa6ea9dca08bb3feb0cd09 Issue-ID: OOM-1510 Signed-off-by: Aaron Hay <aaron.hay@att.com>
2018-10-31Merge "Add cadi.properties for AAF OOM support"Alexis de Talhouët2-4/+58
2018-10-31Merge "Add dupliate ssl.key lines to aaiclient.prop file"Alexis de Talhouët1-5/+6
2018-10-30Update AAA shiro configuration for CAS AAFAaron Hay1-7/+7
Update configuration file based on AAF bootstrap data in the AAF role.dat file. Change-Id: Iafbb1f37383fb97a00441539e14ace8e9282a330 Issue-ID: OOM-1488 Signed-off-by: Aaron Hay <aaron.hay@att.com>
2018-10-30Add cadi.properties for AAF OOM supportAaron Hay2-4/+58
Enable AAF by default. Add cadi.properties file for OOM deployments. Change-Id: I5f862af54b1373a3cb09d9441548377ac8a3cb48 Issue-ID: OOM-1489 Signed-off-by: Aaron Hay <aaron.hay@att.com>
2018-10-30Add dupliate ssl.key lines to aaiclient.prop fileAaron Hay1-5/+6
Update image version. Enable AAF by default. Remove AAF lines from values.yaml file that are no longer necessary based on AAF enhancements that have been made for this release. Add ssl.key lines to aaiclient.properties file. Change-Id: I4ad9bd204ad1fb7def972b78a4881e7e134ddfce Issue-ID: APPC-1218 Signed-off-by: Aaron Hay <aaron.hay@att.com>
2018-10-16Move openecomp.org to onap.org for aaicclientAaron Hay1-89/+87
Change-Id: Ib8f2265e5657d5c0968c097baea9cce6c474c6c4 Issue-ID: APPC-1213 Signed-off-by: Aaron Hay <aaron.hay@att.com>
2018-10-08Modify logging configuration based on ODL upgradeAaron Hay1-131/+71
Change-Id: I8c666730555bc4e531958b9192f0d4fcaeeb5e05 Issue-ID: APPC-1158 Signed-off-by: Aaron Hay <ah415j@att.com>
2018-09-17Fix appc.properties APIDOC credsAaron Hay1-5/+5
Change-Id: If2e4f219f5b7adecab6745b8abcea90bdda3e9df Issue-ID: INT-641 Signed-off-by: Aaron Hay <ah415j@att.com>
2018-09-13Merge "Upgrade APPC to use common mariadb galera charts"Mike Elliott13-28/+28
2018-09-07Upgrade APPC to use common mariadb galera chartspramod13-28/+28
Change-Id: I3537415a9266bc388aca146f86984c8a1585ce4e Issue-ID: OOM-1205 Signed-off-by: pramod <pramod.kumarsharma@amdocs.com>
2018-09-05Apache 2 license addition for consul,appcMukul19-0/+44
Issue-ID: OOM-1308 Change-Id: I6cfe05841a17f81e862dfbf4bedaa4ba87f96e1e Signed-off-by: Mukul <mukul.joshi@amdocs.com>