aboutsummaryrefslogtreecommitdiffstats
path: root/bootstrap
AgeCommit message (Collapse)AuthorFilesLines
2023-04-18Pin tox.ini basepython to 3.8Marek SzwaƂkiewicz1-1/+1
Issue-ID: INT-2222 Change-Id: Id4577f676d914b1925949586771880fde1fa32e1 Signed-off-by: Marek SzwaƂkiewicz <marek.szwalkiewicz@external.t-mobile.pl>
2021-07-14[CODESEARCH] Update documentationBartek Grzybowski1-10/+14
Change-Id: I1363c667da6e3764c397cbad5502934fcf0bdc69 Issue-ID: INT-1940 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2021-07-13[CODESEARCH] Always run the 'run_codesearch' provisionerBartek Grzybowski1-1/+1
This will automatically run the Hound engine after box reload. Change-Id: If9e2e186ab16f461b63e963a2ec189783cda0010 Issue-ID: INT-1940 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2021-07-13[CODESEARCH] Rework the nameserver provisioningBartek Grzybowski1-5/+7
Default OS resolver is set using native systemd-resolved facilities in a way that it will be persisted after box reload. Default nameserver is set within Vagrantfile and can be altered if needed. Vagrant-libvirt specific resolver settings were removed in favor of a general one. As of now it should be possible to also run this box using Virtualbox provider. Change-Id: Icdd1eb8bf3677c4616b1ac7d6b3387e0f4c7535a Issue-ID: INT-1940 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2021-07-12[CODESEARCH] Drop ssh authentication for Gerrit endpointBartek Grzybowski1-31/+2
Getting repo list does not require authentication so dropping it. Since create_config.py "--git" option was reworked it will now generate repo urls leveraging git protocol and git.onap.org service. Change-Id: I2d36392ea36016ee09e05417608fd5871fa0c074 Issue-ID: INT-1940 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2021-07-02[CODESEARCH] Rework how --git option worksBartek Grzybowski1-3/+7
"--git" will not only affect the "base-url" in Hound config for code browser but also the "url" for the repository clone string. This is the most sane behavior as git protocol is the most efficient one in terms of speed. "git" and "ssh" options are also set to be mutually exclusie as according to the above change using git protocol based clone and passing ssh credentials would not make sense as git protocol does not support any kind of authentication. Change-Id: I9897bc2aec2707ca4ed7543b1576686fb8e2b2da Issue-ID: INT-1940 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2021-07-01[CODESEARCH] Add option to define custom polling intervalBartek Grzybowski1-3/+6
The default polling interval is set to 1h. Refreshing too often might result in too many requests in time and a remote service disruption or denial of access for client (too many requests) Change-Id: I490792ddedeb7a2c13f1bbb0f11ec68ed8fc2d5b Issue-ID: INT-1942 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2021-07-01[CODESEARCH] Upgrade Vagrant box to utilise newest 20.04 LTSBartek Grzybowski1-1/+1
Change-Id: Ib8059e1c74ef460da0821f4403ab734c7a02b4f2 Issue-ID: INT-1941 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2021-01-15Force new location of default Helm chart repositoryPawel Wieczorek1-1/+1
Location of the default Helm chart repository changed from: https://kubernetes-charts.storage.googleapis.com to: https://charts.helm.sh/stable This change has been addressed by Helm 2.17 release [1] but recommended Helm version for Guilin is 2.16.10 which still requires manual override. [1] https://github.com/helm/helm/pull/8901 Issue-ID: ONAPARC-551 Change-Id: I63d94e37f639a213cff38c2e92166c41f29d1a9c Signed-off-by: Pawel Wieczorek <p.wieczorek2@samsung.com>
2021-01-15Update Vagrant-based minimal ONAP deployment to GuilinPawel Wieczorek4-4/+4
This patch updates infrastructure tools to the versions recommended for Guilin release [1][2]. [1] https://docs.onap.org/projects/onap-oom/en/guilin/oom_cloud_setup_guide.html#software-requirements [2] https://docs.onap.org/projects/onap-oom/en/guilin/oom_setup_kubernetes_rancher.html#configure-rancher-kubernetes-engine-rke Issue-ID: ONAPARC-551 Change-Id: Ie9afc481c6376f0990cd09d447bd19c9b05ddf4c Signed-off-by: Pawel Wieczorek <p.wieczorek2@samsung.com>
2020-12-14Add Docker on operator machinePawel Wieczorek1-1/+23
Automated setup of "kubernetes/platform/components/oom-cert-service" requires having Docker in the deployment environment. Previously Docker was required only on Kubernetes cluster nodes. This patch also unifies naming convention for provisioners that add local user to the "docker" group. Issue-ID: OOM-2526 Change-Id: Id081c0c90e2b729ed78fc5b4e6758721c72added Signed-off-by: Pawel Wieczorek <p.wieczorek2@samsung.com>
2020-12-14Remove no longer needed "make" targetPawel Wieczorek1-1/+0
With predictable chart build process running "make onap" after "make all" is no longer necessary. Issue-ID: OOM-2399 Change-Id: Ie37ef0dc097f8fa8c1f02cbe70ba8d9270b3c729 Signed-off-by: Pawel Wieczorek <p.wieczorek2@samsung.com>
2020-07-03Update Operation box in Vagrant environmentPawel Wieczorek1-1/+6
Currently developed upstream components version verification tool requires modern execution environment (Python 3.7+) which was not available in previously used Vagrant box. Upgrading only Operation box to Ubuntu Focal (20.04) does not affect ONAP cluster in any way - cluster still runs on Ubuntu Bionic (18.04). Issue-ID: INT-1571 Change-Id: I51c68723aa0c0b65dcaa7a199316e33a4ece18ff Signed-off-by: Pawel Wieczorek <p.wieczorek2@samsung.com>
2020-06-12Allow using separate storage pool for Vagrant-based minimal ONAP deploymentPawel Wieczorek1-4/+10
Vagrant-based minimal ONAP deployment requires at least 160GiB of storage space. It is useful to be able to relocate Vagrant machines to separate storage pools (e.g. on various storage devices). Issue-ID: ONAPARC-551 Change-Id: I3f81c20f61264b958e121cf46f7b4354f04dc20c Signed-off-by: Pawel Wieczorek <p.wieczorek2@samsung.com>
2020-06-12Adjust default storage device argument on Vagrant-based minimal ONAP deploymentPawel Wieczorek1-1/+1
Default storage device changed in Vagrant box "generic/ubuntu1804" after updating the libvirt disk bus to "virtio"; details: https://github.com/lavabit/robox/commit/ca3b82d00c770ff70283d4d4d22f60a8ae363b0f Issue-ID: ONAPARC-551 Change-Id: Ib8ab062f5e32f625148ed45c58985549857309ae Signed-off-by: Pawel Wieczorek <p.wieczorek2@samsung.com>
2020-06-12Increase Helm timeout on Vagrant-based minimal ONAP deploymentPawel Wieczorek1-1/+1
Previously set 15 minutes are not sufficient anymore. Issue-ID: ONAPARC-551 Change-Id: I91df2c1afdcfa6c276bbe4817a4fe16eb6723469 Signed-off-by: Pawel Wieczorek <p.wieczorek2@samsung.com>
2020-06-12Set masterPassword on Vagrant-based minimal ONAP deploymentPawel Wieczorek1-1/+5
Variable "global.masterPassword" is used instead of hardcoded passwords. Sample value provided in Vagrantfile should be used for evaluation purposes only! Issue-ID: ONAPARC-551 Change-Id: I72c565ec27dfb33d55810383c632adb9d886e689 Signed-off-by: Pawel Wieczorek <p.wieczorek2@samsung.com>
2020-06-12Disable Helm charts linting on Vagrant-based minimal ONAP deploymentPawel Wieczorek1-2/+2
It is a workaround for Helm performance issue; details: https://github.com/helm/helm/issues/7656 Issue-ID: ONAPARC-551 Change-Id: Id163d0e181d0527f47efdd82899b5965794bde98 Signed-off-by: Pawel Wieczorek <p.wieczorek2@samsung.com>
2020-06-12Make Helm timeout adjustable on Vagrant-based minimal ONAP deploymentPawel Wieczorek1-1/+4
Issue-ID: ONAPARC-551 Change-Id: I3c1157e65fd63c73b3d8319bd7d8650593953f33 Signed-off-by: Pawel Wieczorek <p.wieczorek2@samsung.com>
2020-06-08Update helm and kubectl versionsBrian Freeman1-1/+1
Issue-ID: OOM-2331 Change-Id: Ie97218cd7df55c6819f1bb01db52a140870f641a Signed-off-by: Brian Freeman <bf1936@att.com>
2020-05-08Exclude code location from code base URLPawel Wieczorek1-5/+6
Python method str.format allows easy templating using substitutions identified by braces ('{' and '}'). Using two levels of nested substitutions can be achieved by doubling braces ("{{" and "}}"). Hound configuration creator script was supposed to use two levels of nested substitutions and still leave braced components within the templated string for further substitution by the Hound tool. This would require using multitude of braces which would decrease readability significantly. This is why code location template is appended to the code base URL at the latest. If there will be need for more levels of nested templates, this code shall be further refactored to use only named fields, str.format_map() (available in Python 3.2+) and SafeDict, e.g. >>> class SafeDict(dict): ... def __missing__(self, key): ... return '{' + key + '}' ... which would leave braced components within the processed template in case given key is missing. Issue-ID: ONAPARC-579 Change-Id: I420d076867aa891edb2a945a8cd58e168c892ac3 Signed-off-by: Pawel Wieczorek <p.wieczorek2@samsung.com>
2020-04-14Fix integration markdown errors for lintermrichomme3-8/+4
Issue-ID: INT-1523 Signed-off-by: mrichomme <morgan.richomme@orange.com> Change-Id: I2be0865395b12e1f277834b0c096f5d183cb5056 Signed-off-by: mrichomme <morgan.richomme@orange.com>
2020-03-31fix integration doc warningmrichomme2-0/+5
Issue-ID: INT-1490 Signed-off-by: mrichomme <morgan.richomme@orange.com> Change-Id: I9153da660ae469c0bd3ed51cfebd912b6e4b9bf2 Signed-off-by: mrichomme <morgan.richomme@orange.com>
2020-03-06Fix Python linting issues in Python scriptsBartek Grzybowski1-7/+7
Fixed pylint issues for categories trailing-whitespace, trailing-newlines, syntax-error, unused-import. Change-Id: Iccbdb0c9538a6b8299c0517bafa1ec1be30f07cd Issue-ID: INT-1427 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2020-02-21Fix YAML linter indentation errors in yaml filesBartek Grzybowski2-524/+524
Change-Id: I5548de0d7afb0e249ab8b6dbc93c102a2a2ac648 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com> Issue-ID: INT-1451
2020-02-21Fix YAML files linter errors for duplicated keysBartek Grzybowski1-1/+0
Change-Id: I77bcf667d4a639b001258d026f2633fce2bfb0e6 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com> Issue-ID: INT-1451
2020-02-05Use ONAP core deployment type override in minimal Vagrant environmentPawel Wieczorek2-18/+22
Core deployment type is a subset of previously used minimal override to make ONAP deployment even lighter on resources. It has been merged in OOM as: d7c495eeeaa3c24d355b9214bc7d0e59be9dd70e (Change-Id: Ibaec41f088f11f7fb4e7c476f742d12d29c5740b). This patch also updates documentation on resources required by this setup and adds example usage of Operator's tools. Issue-ID: ONAPARC-551 Change-Id: Ifdb1d158311ba3ed0b5cf407d07ce028d1a0162f Signed-off-by: Pawel Wieczorek <p.wieczorek2@samsung.com>
2020-01-29Add minimal Vagrant environment actual quickstart documentationPawel Wieczorek1-0/+24
Issue-ID: ONAPARC-551 Signed-off-by: Pawel Wieczorek <p.wieczorek2@samsung.com> Change-Id: I0e308d4486dfaa51e54bf69f79b85243766c397a
2020-01-29Make cluster removal fail softlyPawel Wieczorek1-1/+1
VM destruction ("vagrant destroy") failed in case RKE cluster had not been set up properly. Initial intention for this trigger was to leave Control and Worker VMs provisioned even if Operator VM is destroyed. Issue-ID: ONAPARC-551 Change-Id: I2b47c539e2517a7c72675924731a0186d1ae25c0 Signed-off-by: Pawel Wieczorek <p.wieczorek2@samsung.com>
2020-01-29Increase minimal Worker storage sizePawel Wieczorek1-5/+45
At least 40GiB disk is required for Worker VM to store all necessary Docker images, otherwise it runs out of storage. VM resize can be done only during its creation (see "machine_virtual_size" [1]). VM data hashes no longer fitted in single lines nicely, hence they were broken into several lines. [1] https://github.com/vagrant-libvirt/vagrant-libvirt#domain-specific-options Issue-ID: ONAPARC-551 Change-Id: Ib267fd8097b51f53565e0c8f3be7c86c2b3c68ad Signed-off-by: Pawel Wieczorek <p.wieczorek2@samsung.com>
2020-01-29Modify minimal Vagrant environment resourcesPawel Wieczorek2-7/+7
Previously allocated resources were underestimated. Devstack resources will remain lowered until core ONAP instance is stabilized. Issue-ID: ONAPARC-551 Change-Id: Id4eb6b2318b71b162f6a1ed6208482ebeb31fe5a Signed-off-by: Pawel Wieczorek <p.wieczorek2@samsung.com>
2020-01-29Increase inline provisioners configurabilityPawel Wieczorek1-5/+10
Scripts "get_oom" and "deploy_onap" are more useful if an additional parameter is accepted: external repository and deployment override, respectively. These parameteres will make testing easier and allow improving this setup quicker. Previous behaviour stays as it was using default argument values. Changes in their invocations were meant to make ad-hoc modifications more explicit. SSH configuration from host machine is synchronized in case additional access rights are necessary. Issue-ID: ONAPARC-551 Change-Id: I585586f721457388ab30b089f2c25c4ad88ad4d3 Signed-off-by: Pawel Wieczorek <p.wieczorek2@samsung.com>
2020-01-29Ignore reverse-SSHFS mountpoint from file synchronizationPawel Wieczorek1-1/+1
This patch intends to avoid attempts to synchronize files to the VM that have been mounted from it. Issue-ID: ONAPARC-551 Change-Id: Ida9b13c5f109d3a05dd35e68f17e7898f23750c5 Signed-off-by: Pawel Wieczorek <p.wieczorek2@samsung.com>
2020-01-29Add reverse-SSHFS-based file synchronization documentationPawel Wieczorek1-0/+8
Issue-ID: ONAPARC-551 Change-Id: Ic22d32998ad0fc29867116827679e4c4181ba596 Signed-off-by: Pawel Wieczorek <p.wieczorek2@samsung.com>
2020-01-16Add reverse-SSHFS-based file synchronization from Operator's machinePawel Wieczorek2-0/+6
This patch also introduces (almost) empty directory to the repository as a mountpoint for the synchronized files. Additional flag ("nonempty") is passed upon mounting directory to ignore the sole file there ("operator/.gitignore"). Issue-ID: ONAPARC-551 Change-Id: I9187325a08cccb98b7335fcb320c2004ed26e7f3 Signed-off-by: Pawel Wieczorek <p.wieczorek2@samsung.com>
2020-01-15Add minimal Vagrant environment development documentationPawel Wieczorek1-0/+20
Issue-ID: ONAPARC-551 Change-Id: I1a6f6b998df755734a9c32fbe86473a72a45aae0 Signed-off-by: Pawel Wieczorek <p.wieczorek2@samsung.com>
2020-01-13Add minimal Vagrant environment usage documentationPawel Wieczorek1-1/+14
This patch also clarifies which virtual machines are created within this Vagrant environment. Issue-ID: ONAPARC-551 Change-Id: I2ece1bbf77b147c74f745ddfb26bf80143ac95ab Signed-off-by: Pawel Wieczorek <p.wieczorek2@samsung.com>
2020-01-10Ensure Helm directory presence prior its first usePawel Wieczorek1-1/+1
It is required for plugins that are installed by copying sources to the Helm directory. Issue-ID: INT-1405 Change-Id: I4ed2708f4af1d745b7e1ffc687ae9674682c374d Signed-off-by: Pawel Wieczorek <p.wieczorek2@samsung.com>
2020-01-10Add Hound code search environment quickstart documentationPawel Wieczorek1-0/+56
Issue-ID: ONAPARC-540 Change-Id: I618fcd994f2c6575ee4e388a78606ec59ec4fd02 Signed-off-by: Pawel Wieczorek <p.wieczorek2@samsung.com>
2020-01-07Add support for using SSHPawel Wieczorek2-23/+54
This patch changes "create_config.py" script interface and its behaviour: * by default anonymous Gerrit is used for repository cloning and code URLS, * external git mirror for code URLs might be provided but there is no default one, * SSH credentials might be provided for repository cloning. Cloning repository using SSH is required due to current ONAP infrastructure HTTPS bandwidth constraints. User wishing to use this setup should provide two environmental variables: 1) API_USER - Gerrit username for cloning repositories via SSH 2) API_KEY - Gerrit API key (User menu -> Settings -> HTTP Credentials) Be aware that a new RSA key will be generated and added to the user's Gerrit account for purposes of Hound code search operation inside a VM. Do remember to delete it (User menu -> Settings -> SSH keys) after evaluating this environment. Issue-ID: ONAPARC-540 Change-Id: I3e98dfa8582322d5b3bbbbf377d748faea0da57b Signed-off-by: Pawel Wieczorek <p.wieczorek2@samsung.com>
2020-01-07Run Hound code search as tmux sessionPawel Wieczorek1-2/+8
Code search service can be accessed from host using forwarded port (i.e. at "localhost:6080"). Issue-ID: ONAPARC-540 Change-Id: Ia94956cfeca0af12a0f52ea43abae353c0ba8b1a Signed-off-by: Pawel Wieczorek <p.wieczorek2@samsung.com>
2020-01-07Add support for using gitwebPawel Wieczorek1-6/+27
There are projects which do not provide git mirror for code URLs apart from Gerrit's gitweb interface (e.g. OpenDaylight [1]). [1] https://www.opendaylight.org Issue-ID: ONAPARC-540 Change-Id: I48c26b81f4886a12e5cdc4dfbfc99538f180449e Signed-off-by: Pawel Wieczorek <p.wieczorek2@samsung.com>
2020-01-07Drop tool-specific naming convention (git hosting service)Pawel Wieczorek1-5/+5
Issue-ID: ONAPARC-540 Change-Id: Id1c8e94008752efd3d40d0e0eca44d81930c692a Signed-off-by: Pawel Wieczorek <p.wieczorek2@samsung.com>
2020-01-07Make Gerrit and cgit URLs configurablePawel Wieczorek1-7/+19
Issue-ID: ONAPARC-540 Change-Id: I3d7f04379e31ab73964b8cc6184ca2e4413acb7b Signed-off-by: Pawel Wieczorek <p.wieczorek2@samsung.com>
2020-01-07Drop dictionary comprehension from repository list creationPawel Wieczorek1-1/+11
Complex is better than complicated. Issue-ID: ONAPARC-540 Change-Id: I6dbc03166496049e92ff9401450b3ac563b3fb38 Signed-off-by: Pawel Wieczorek <p.wieczorek2@samsung.com>
2020-01-07Replace URLs to Gerrit repositories with their cgit mirrorsPawel Wieczorek1-1/+2
Hound does not provide support for linking to source code in Gerrit repositories. Support for cgit mirrors can be achieved by using URL patterns. Issue-ID: ONAPARC-540 Change-Id: Ib73b768d8a636680ab7e4d8d42463a16a9f45275 Signed-off-by: Pawel Wieczorek <p.wieczorek2@samsung.com>
2020-01-07Add Hound code search configuration generatorPawel Wieczorek4-0/+67
Configuration is generated from Gerrit-supplied data. Issue-ID: ONAPARC-540 Change-Id: I84d5b87580882926b916ed20dbcd2369be4c77f4 Signed-off-by: Pawel Wieczorek <p.wieczorek2@samsung.com>
2020-01-07Add Vagrant environment for Hound code searchPawel Wieczorek1-0/+24
This patch adds build dependencies and builds Hound binaries. Issue-ID: ONAPARC-540 Change-Id: I37b263b3e0c93a9ec08458ec2e08edd75b33d7b4 Signed-off-by: Pawel Wieczorek <p.wieczorek2@samsung.com>
2020-01-07Describe purpose of Hound code search environmentPawel Wieczorek2-0/+18
Issue-ID: ONAPARC-540 Change-Id: Ie7db4cb6925501fd44dc0372f0a1305463a7e7cc Signed-off-by: Pawel Wieczorek <p.wieczorek2@samsung.com>
2019-12-18Add minimal Vagrant environment quickstart documentationPawel Wieczorek1-0/+61
Issue-ID: ONAPARC-537 Change-Id: I86f5db6331980bf7d7ea4074d6e0bbcc84843d3c Signed-off-by: Pawel Wieczorek <p.wieczorek2@samsung.com>