aboutsummaryrefslogtreecommitdiffstats
path: root/bootstrap/vagrant-minimal-onap/Vagrantfile
AgeCommit message (Collapse)AuthorFilesLines
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 Wieczorek1-1/+1
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-02-05Use ONAP core deployment type override in minimal Vagrant environmentPawel Wieczorek1-4/+4
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-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 Wieczorek1-4/+4
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-16Add reverse-SSHFS-based file synchronization from Operator's machinePawel Wieczorek1-0/+1
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-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>
2019-12-18Deploy minimal ONAPPawel Wieczorek1-1/+26
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 Wieczorek1-0/+10
Issue-ID: ONAPARC-537 Change-Id: I3b3d731ae016c78b3e00841157c69aded14635e2 Signed-off-by: Pawel Wieczorek <p.wieczorek2@samsung.com>
2019-12-18Add Devstack machine and its provisioningPawel Wieczorek1-5/+29
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 Wieczorek1-0/+174
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>