aboutsummaryrefslogtreecommitdiffstats
path: root/bootstrap
AgeCommit message (Collapse)AuthorFilesLines
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>
2019-12-18Deploy minimal ONAPPawel Wieczorek2-1/+31
This patch prepares operator's environment for ONAP deployment (by exporting environmental variables for use in helm override file). It also fixes post-setup message regarding additional provisioning steps. Issue-ID: ONAPARC-537 Change-Id: I18815578ddc46a2d5ef31d6cf44b42f9a5d3950d Signed-off-by: Pawel Wieczorek <p.wieczorek2@samsung.com>
2019-12-18Prepare cluster for helm-based deploymentsPawel Wieczorek1-0/+27
This patch adds missing client tools ("make" for helm charts generation on operator's machine) as well as the server side: local helm repo and K8s service account. Issue-ID: ONAPARC-537 Change-Id: I34bd5c9422dd1a5be0a1f235be3ee9598cc988c0 Signed-off-by: Pawel Wieczorek <p.wieczorek2@samsung.com>
2019-12-18Increase resources for K8s worker nodePawel Wieczorek1-14/+14
This patch also changes how resources are assigned to local infrastructure nodes due to increasing number of specific cases. Issue-ID: ONAPARC-537 Change-Id: I914b40508ab388b99d5f124ab1369b152a8ca765 Signed-off-by: Pawel Wieczorek <p.wieczorek2@samsung.com>
2019-12-18Add helm provisioners (downloading and setting up with OOM plugins)Pawel Wieczorek2-0/+58
Issue-ID: ONAPARC-537 Change-Id: I3b3d731ae016c78b3e00841157c69aded14635e2 Signed-off-by: Pawel Wieczorek <p.wieczorek2@samsung.com>
2019-12-18Add Devstack machine and its provisioningPawel Wieczorek2-5/+34
Issue-ID: ONAPARC-537 Change-Id: If725843c3e5ee47724a98d70611cbde464b9debc Signed-off-by: Pawel Wieczorek <p.wieczorek2@samsung.com>
2019-12-18Adjust provisioning tools pathsPawel Wieczorek1-10/+10
Issue-ID: ONAPARC-537 Change-Id: I6aeab5db440d35187db84bf6d2525fd61a8737c4 Signed-off-by: Pawel Wieczorek <p.wieczorek2@samsung.com>
2019-12-18Import Vagrant environment from test/security/k8sPawel Wieczorek11-0/+437
Infrastructure mockup has been previously set up for CIS guidelines checking. Empty Kubernetes cluster was sufficient for that purpose. It will be adjusted to satisfy minimal ONAP requirements and should eventually supersede previous testing environment. Issue-ID: ONAPARC-537 Change-Id: Iada29d86642b8a5513e9d1bbd895db2094ad12b9 Signed-off-by: Pawel Wieczorek <p.wieczorek2@samsung.com>
2019-12-16Describe purpose of minimal Vagrant environmentPawel Wieczorek2-1/+24
Issue-ID: ONAPARC-537 Change-Id: I75e843794fa43af51e1a2674abede1394a384d15 Signed-off-by: Pawel Wieczorek <p.wieczorek2@samsung.com>
2019-02-11Remove Deprecated VVP from IntegrationLovett, Trevor1-24/+0
In Dublin, the web application portion of VVP is being deprecated, and no longer maintained. A command-line version will be retained in vvp/validation-scripts, but there will be no deployed version going forward. Change-Id: I1d72ea2d9f31d65bec04bec9015cef90dbf267aa Issue-ID: VVP-136 Signed-off-by: Lovett, Trevor <trevor.lovett@att.com> Signed-off-by: Gary Wu <gary.i.wu@huawei.com>
2018-03-15Deprecate vagrant-onap toolVictor Morales77-7351/+2
The vagrant-onap tool needs to be moved to its own repo to have better control of versions and autonomy. This change removes the project from integration repository. Change-Id: I90bd4505a9fc7376c31a780aa1b833ee2663af3e Signed-off-by: Victor Morales <victor.morales@intel.com> Depends-On: I79df8c35fccaa266a789217d441a6cf1183bd42a Issue-ID: INT-441
2018-03-05Move src_folderVictor Morales5-14/+41
The SDC simultator mentions[1] the usage of ChefDK as part of tools for installation/development. The installation process uses the /opt/ folder as destionation and it's affected by the sharing process. This patchset changes the destionation folder for all the ONAP projects. [1] https://git.onap.org/sdc/tree/utils/webseal-simulator/sdc-simulator/chef-solo/README.md#n4 Change-Id: Ib800c48864ce2cbe49e699a6d6e913be137af949 Signed-off-by: Victor Morales <victor.morales@intel.com> Issue-ID: INT-214
2018-03-02Refactor install_docker_compose functionVictor Morales6-21/+31
Usually this function is followed by a run command, this change ensure that docker-compose program is installed before its execution Change-Id: Ic68616a1db1e3c5bee516985c74f369a956d6775 Signed-off-by: Victor Morales <victor.morales@intel.com> Issue-ID: INT-436
2018-03-02Merge "Remove customize src_folder variables"Gary Wu13-70/+56
2018-03-02Remove customize src_folder variablesVictor Morales13-70/+56
There were some leftovers of variables used for pointing to the project source code folder. This variables are not used anymore. Change-Id: I355930f8ce6acbc31a1adca61741d7221dee196c Signed-off-by: Victor Morales <victor.morales@intel.com> Issue-ID: INT-367
2018-02-28Update default vagrant provider.Manjeet Singh Bhatia1-0/+2
Default vagrant provider was showing error for ubuntu/trusty64 or ubuntu/xenial64 not found. This patch updates the default to https://vagrantcloud.com which have recently been changed. Change-Id: I069eae9370ecdf1483098528cee57d9b3e81a41b Signed-off-by: Manjeet Singh Bhatia<manjeet.s.bhatia@intel.com> Issue-ID: INT-434
2018-02-26Update sdc test and vagrant confJimmy Forsyth1-1/+1
Change-Id: I632b6b8c8c32fe5fd3cab0e7bf6aaf5cb2026cd0 Issue-ID: SDC-821 Signed-off-by: Yuli Shlosberg <ys9693@att.com>
2018-02-17Improve setup_libvirt.sh scriptVictor Morales2-21/+133
The scope of the setup_libvirt.sh script was limited to cover only the installation of libvirt dependencies, this change pretends to cover the installation of vagrant and virtualbox and/or libvirt for different distros. Change-Id: I1ffd4478046cb64ad164f88d9bab078f246f0677 Signed-off-by: Victor Morales <victor.morales@intel.com> Issue-ID: INT-370
2018-02-12Forward port for SDC simulatorVictor Morales2-2/+9
The SDC simulator thru the port 8285, this change allows to accces it using localhost url. Change-Id: I008635047443c11e298e4d15c4d2314b514f8e2f Signed-off-by: Victor Morales <victor.morales@intel.com> Issue-ID: SDC-993
2018-02-08Trivial documentation fix.Manjeet Singh Bhatia2-4/+3
Signed-off-by: Manjeet Singh Bhatia<manjeet.s.bhatia@intel.com> Issue-ID: INT-416 Change-Id: Idd88e2c4fed40cd082d467e9e96570334c09f491
2018-02-05Update SDC instructionsVictor Morales4-34/+46
The variables and instructions of SDC script were out of date. This change includes the usage of "src_folders" variable besides the simplification of the process. Change-Id: I557b2a9a2a2ed567003230febfae56a043a2e9e2 Signed-off-by: Victor Morales <victor.morales@intel.com> Issue-ID: INT-16