aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2019-07-24Changing Pull Policy for vFw Helm chartRitu Sood3-4/+3
Pull policy is "Always" because of that VM/container images are pulled everytime for each chart. This slows down the deployment to several minutes in the lab environment. Changing pull policy to "IfNotPresent". Change-Id: I3c01e681f010481221f1e720e6f09b317fbe9d87 Signed-off-by: Ritu Sood <ritu.sood@intel.com> Issue-ID: MULTICLOUD-708
2019-07-23Merge "Add a listallhandler to definitions api"Bin Yang4-2/+106
2019-07-23Merge "Add port to ovn central ip"Bin Yang1-1/+1
2019-07-23Merge "Adapt network plugin to interface restrictions"Bin Yang1-5/+5
2019-07-23Merge "Add a list api for instances"Bin Yang4-2/+177
2019-07-23Merge changes from topics "listprofiles", "tagprofile", "tag_defn"Bin Yang8-34/+295
* changes: Add list api for profiles Make profile db tags specific Make definition tags specific
2019-07-23Merge "Improve provisioning central IP address for ovn tests"Bin Yang2-10/+34
2019-07-23Merge "Provide idempotent multus plugin configuration"Bin Yang1-20/+18
2019-07-22Add port to ovn central ipKiran Kamineni1-1/+1
Add port to the default OVN central ip field. Issue-ID: MULTICLOUD-666 Change-Id: Ib1644aafc00472769422dffd48a83ed7e53b2910 Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
2019-07-22Adapt network plugin to interface restrictionsKonrad Bańka1-5/+5
Network plugin was not fully compliant with interface it should implement due to type of one function argument. Relevant functions have been adapted to utilize proper types. Issue-ID: MULTICLOUD-708 Signed-off-by: Konrad Bańka <k.banka@samsung.com> Change-Id: Ic619ad476dba5e6582759290e18edceaa98c332f
2019-07-18Add list api for profilesKiran Kamineni5-2/+263
Add a list api for profiles for a specific definition and version. GET /v1/rb/definition/name/version/profile will list all the profiles. Issue-ID: MULTICLOUD-730 Change-Id: If1b8e6910c276a0f7139ab13340721c6ec8a49e8 Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
2019-07-18Add a listallhandler to definitions apiKiran Kamineni4-2/+106
GET calls to the v1/rb/definition will return all definitions and their versions Issue-ID: MULTICLOUD-715 Change-Id: Ia0951ac83283830e475bf727e7d5ced7aab3add2 Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
2019-07-18Make profile db tags specificKiran Kamineni3-13/+13
Tags used in profile such as metadata are too generic. Instead we are using specific ones with the type prefixed. Issue-ID: MULTICLOUD-730 Change-Id: I2f189d35bc202f4a71e0a92ca5b7188ebfd1cef2 Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
2019-07-18Make definition tags specificKiran Kamineni4-19/+19
Tags used in db such as metadata are too generic. Instead we are using specific ones with the type prefixed. Issue-ID: MULTICLOUD-730 Change-Id: Ice76cf743f0782a3d7e76747cde1f0e0b116b14e Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
2019-07-18Add a list api for instancesKiran Kamineni4-2/+177
curl -X GET /v1/instance returns all the instances created. It returns abbreviated instances for improved readability. For details on what resources were created for each instance, use the ID with GET. Issue-ID: MULTICLOUD-715 Change-Id: I05afe0fd2c254acbca4329289c81545f95c9fac5 Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
2019-07-17Merge "Remove kubeconfigdir. Use a tempfile instead"Bin Yang3-11/+12
2019-07-16Remove kubeconfigdir. Use a tempfile insteadKiran Kamineni3-11/+12
Kubeconfigdir does not need to be a configurable parameter. We just create a local file and use that to create the config after which it is not needed. Issue-ID: MULTICLOUD-614 Change-Id: I2df561d50b620e24c5ae5266b7200210e0c11caf Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
2019-07-16vFw Demo Helm chart issueRitu Sood1-1/+1
Fixing a typo in vFw Helm chart Change-Id: I5e7657dba037e48539ac32a98f1731ec1ff942a8 Issue-ID: MULTICLOUD-708 Signed-off-by: Ritu Sood <ritu.sood@intel.com>
2019-07-16Improve provisioning central IP address for ovn testsKonrad Bańka2-10/+34
Function responsible for providing central ovn address has been corrected to utilize already configured address instead of checking it each time. Error reporting within the same function has been also corrected and improved as well as iproute package became used for address determining instead of net-tools' ifconfig Issue-ID: MULTICLOUD-686 Signed-off-by: Konrad Bańka <k.banka@samsung.com> Change-Id: I156297098b7919471df711f049f0d9439bd81420
2019-07-16Provide idempotent multus plugin configurationKonrad Bańka1-20/+18
Blockinfile task overrides marker section in order to provide valid json content in file. Because of this, generated block is added each time this playbook is run. This makes CNI config file contain malformed content when launched more than once. Issue-ID: MULTICLOUD-676 Signed-off-by: Konrad Bańka <k.banka@samsung.com> Change-Id: If1c98414be4fb3a5b6c1c63fada0bd934448f040
2019-07-16Merge "Move connectionhandler.go into api package"Bin Yang8-37/+44
2019-07-16Merge changes Id235f454,I0c6dd5e4Bin Yang5-46/+144
* changes: Correct plugin_edgex testcase Provide wrapper functions for issuing k8splugin API calls
2019-07-16Merge "Add getconnectivityrecordbyname function"Bin Yang1-2/+43
2019-07-15Correct plugin_edgex testcaseKonrad Bańka4-46/+106
Plugin_edgex.sh script hasn't been updated to few changes that happened in k8splugin API and CSAR definitions. This commit rewrites previous test scenario to be up to date with current plugin state. Issue-ID: MULTICLOUD-686 Signed-off-by: Konrad Bańka <k.banka@samsung.com> Change-Id: Id235f4549e10f57451bf2b6195df8c95230e1c7e
2019-07-15Provide wrapper functions for issuing k8splugin API callsKonrad Bańka1-0/+38
In plugin.sh and plugin_edgex.sh test scenarios, there are executed many curl calls to API endpoint. As curl's default behavior for handling 4xx and 5xx status code is not perfect, wrapper functions have been created to easily ensure correctness of issued API call. Issue-ID: MULTICLOUD-686 Signed-off-by: Konrad Bańka <k.banka@samsung.com> Change-Id: I0c6dd5e4f896972245a6fa6c8c2a10d8df8ec406
2019-07-11Create dir before extracting archiveKiran Kamineni3-11/+22
Some archives don't include a directory entry. Eg: tgz archives generated by helm package. This bug fix checks that a directory exists before an extracted file is created there. Issue-ID: MULTICLOUD-705 Change-Id: If6720948d470b83786901574f5d8d3227835a047 Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
2019-07-11Reduce process count in testKiran Kamineni1-1/+1
CI seems to be failing with out of memory issues This reduces the multiprocess to 2 for the go test command. Issue-ID: MULTICLOUD-666 Change-Id: I3f70ecad51cc16f8972346882d5d98fc803427ef Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
2019-07-09Fix helm installation conflictKonrad Bańka2-5/+18
Kubespray installs helm client on kubernetes master. The same client has to be installed on host running installation playbooks. In single node scenario, local host already has helm client installed by kubespray, thus leading to conflict due to way of provisioning. This helm installation has been moved to global configure playbook, as well as corrected, not to fail on single host deployments. Issue-ID: MULTICLOUD-690 Signed-off-by: Konrad Bańka <k.banka@samsung.com> Change-Id: I1ef779ed0f2fde82758ce9e229c3f5bb015b2aeb
2019-06-26Move connectionhandler.go into api packageKiran Kamineni8-37/+44
Move connectionhandler.go into api package This brings it inline with the other API handlers Issue-ID: MULTICLOUD-666 Change-Id: Ia3b832159f537c6d8d8ecc93b56bc9b085649f7e Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
2019-06-26Add getconnectivityrecordbyname functionKiran Kamineni1-2/+43
Plugins need this connectivity information Adding code to retrieve it Issue-ID: MULTICLOUD-688 Change-Id: I5fa1b69cdad754a432316edc4188c19b7fe10f84 Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
2019-06-26Merge "Change the import paths for go get access"Bin Yang43-80/+80
2019-06-24Change the import paths for go get accessKiran Kamineni43-80/+80
This allows other projects to do a go get and use this repo. go get github.com/multicloud-k8s/src/k8splugin will do the job. import github.com/multicloud-k8s/src/k8splugin will import the root package Issue-ID: MULTICLOUD-666 Change-Id: I2f41c88c5a7fb3305b78cce8a83a0e102baa444c Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
2019-06-24Correct installer.sh to enable testing during deploymentKonrad Bańka1-3/+3
Issue-ID: MULTICLOUD-686 Signed-off-by: Konrad Bańka <k.banka@samsung.com> Change-Id: I02724ca72a217cbb5be8cfee5edf136f4bf8ce2c
2019-06-21Make aio.sh preserve host's ssh keys if possibleKonrad Bańka1-4/+9
aio.sh script creates rsa key that is also added to host's authorized_keys. Currently, existing id_rsa keys are removed in order to generate fresh key each time. This change makes setup script reuse existing key when possible. Issue-ID: MULTICLOUD-676 Change-Id: I3b6b837f64dabd3cb6a14aa5ea65e67c6b8db6a8 Signed-off-by: Konrad Bańka <k.banka@samsung.com>
2019-06-20Unify resolving current directory in KUD scriptsSamuli Silvius4-4/+4
Issue-ID: MULTICLOUD-685 Change-Id: I62199f64da360627a13c467139a39430ae389167 Signed-off-by: Samuli Silvius <s.silvius@partner.samsung.com>
2019-06-20Adding ci-kud-installer wrapperMichal Ptacek1-0/+13
this wrapper is new entry point for CI job triggering aio.sh execution. Change-Id: I650675c9cfff396010bf3a1d36e9840dedf9d403 Issue-ID: MULTICLOUD-635 Signed-off-by: Michal Ptacek <m.ptacek@partner.samsung.com> Signed-off-by: Samuli Silvius <s.silvius@partner.samsung.com>
2019-06-19Merge "Multus error when the namesapace is not default"Bin Yang3-3/+3
2019-06-19Merge "Add ovn-networkobj for Multus"Bin Yang1-0/+26
2019-06-19Merge "Plugin code refactoring"Bin Yang12-341/+472
2019-06-19Merge "Make ovn-central network interface configurable"Bin Yang4-29/+38
2019-06-19Merge "Enable mitogen to speed up Ansible execution"Bin Yang1-2/+5
2019-06-19Multus error when the namesapace is not defaultRitu Sood3-3/+3
Multus has a limitation that namespace in which network is defined has to be explicitly provided. As we are defining network in "default" namespace, that needs to be provided in all deployment files Signed-off-by: Ritu Sood <ritu.sood@intel.com> Issue-ID: MULTICLOUD-663 Change-Id: Iefc17691fa909843f12fa35693900a063a6d20ae
2019-06-19Add ovn-networkobj for MultusRitu Sood1-0/+26
Add ovn custom resource for Multus as part of installation Signed-off-by: Ritu Sood <ritu.sood@intel.com> Change-Id: I4e01a06ba76515fa271790b461f473045eb174a2 Issue-ID: MULTICLOUD-670
2019-06-10Make ovn-central network interface configurableSamuli Silvius4-29/+38
installer.sh script is configuring ovn-central address <ip>:<port> to environment variable. Ip address is detected from the ovn-central host through ansible by grepping ifconfig output, but in this step detected network interface is hard-coded in the code to be "eth1". This commit makes network interface configurable in aio/vagrant deployment. Issue-ID: MULTICLOUD-621 Change-Id: Icbe22ffdcb45c5f16067ea609eec76fb70c0ea78 Signed-off-by: Samuli Silvius <s.silvius@partner.samsung.com>
2019-06-10Merge changes I798b9dd9,I36b65dd2Bin Yang5-54/+29
* changes: Remove the requirement to run aio.sh as root Documentation update for aio.sh CI change
2019-06-10Merge "Make aio.sh suitable for CI"Bin Yang1-6/+5
2019-06-10Merge "Starting of k8splugin with docker-compose is broken"Bin Yang6-61/+82
2019-06-07Enable mitogen to speed up Ansible executionVictor Morales1-2/+5
Signed-off-by: Victor Morales <victor.morales@intel.com> Signed-off-by: Samuli Silvius <s.silvius@partner.samsung.com> Issue-ID: MULTICLOUD-301 Change-Id: I427145e26eabc92ab19b0a143b759113dbfbeeea
2019-06-06Plugin code refactoringKiran Kamineni12-341/+472
The plugin code has been refactored to implement a common interface. This will allow us to do plugin validation at loadtime of the plugin instead of at runtime. This also makes the code calling the plugins cleaner and easier to read. Issue-ID: MULTICLOUD-557 Change-Id: Ice2bcc9b850d7c0e1707dcc42132c63dd77472a7 Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
2019-06-06Remove the requirement to run aio.sh as rootSamuli Silvius3-9/+3
However user needs to be in sudoers without password needed to able to run needed steps with sudo. Issue-ID: MULTICLOUD-672 Change-Id: I798b9dd9dad4175c2b43700bfe801d34b578fe97 Signed-off-by: Samuli Silvius <s.silvius@partner.samsung.com>