iec.git
4 years agocompass install: Bump docker-compose to 1.24.1 91/2091/1 2.0.0-AKRAINO
Alexandru Avadanii [Tue, 3 Dec 2019 13:49:37 +0000 (14:49 +0100)]
compass install: Bump docker-compose to 1.24.1

Since IEC CI jobs run on the same Jenkins static slaves where TA REC
artifact building occurs, installing `docker-compose` and its
requirements (including python-requests) via `sudo pip install` creates
a conflict that breaks TA ISO upload (see upstream bug linked below).

Bump docker-compose to a newer version, which will stop forcefully
downgrading the python-requests package, working around the original
issue.

Upstream-bug: https://jira.linuxfoundation.org/browse/RELENG-2558

Change-Id: I70765213eb97cb29761d0ff41c8918f82a30bbfc
Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
4 years agoseba: Bump retries count for att-workflow 79/2079/1
Alexandru Avadanii [Fri, 29 Nov 2019 18:34:45 +0000 (19:34 +0100)]
seba: Bump retries count for att-workflow

In certain enviroments, it might take longer for the final att-workflow
helm chart to finish, so bump our retry count accordingly.

Change-Id: I51f92d07e7479f5fcd5c07efc5f7fcb41f541e81
Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
4 years agoMerge "Integrate Nokia/danm CNI into IEC"
Jingzhao Ni [Thu, 21 Nov 2019 01:58:19 +0000 (01:58 +0000)]
Merge "Integrate Nokia/danm CNI into IEC"

4 years agoIntegrate Nokia/danm CNI into IEC 55/1855/11
Jianlin Lv [Mon, 28 Oct 2019 05:53:58 +0000 (13:53 +0800)]
Integrate Nokia/danm CNI into IEC

Make master and work nodes support danm deployment
1. Implement support for danm CNI in setup-cni.sh;
2. Wrap the work node initialization function before
calling setup-cni.sh;
3. Add danm CNI deployment scripts and relevant config file.

Signed-off-by: Jianlin Lv <Jianlin.Lv@arm.com>
Change-Id: I19564d0c1bdb183c4328d921eaab8d873f064e07

4 years agoMerge "Add uninstallation scripts"
Trevor Tao [Wed, 13 Nov 2019 06:57:16 +0000 (06:57 +0000)]
Merge "Add uninstallation scripts"

4 years agoAdd uninstallation scripts 60/1960/2
jingzhao [Tue, 12 Nov 2019 13:47:04 +0000 (21:47 +0800)]
Add uninstallation scripts

In this patch, some un-install scripts were added into IEC project.
It will be used for removing the iec infrastructure from K8s Master
node and slave node.

Signed-off-by: jingzhao <Jingzhao.Ni@arm.com>
Change-Id: I8a300a0b3f8a3121c62e881e722958c793945b7c

4 years agoMerge "Upstream documentation for IEC release 2"
Jingzhao Ni [Mon, 28 Oct 2019 09:24:37 +0000 (09:24 +0000)]
Merge "Upstream documentation for IEC release 2"

4 years agoMerge "Update kernel configuration to support contivpp"
Jingzhao Ni [Mon, 28 Oct 2019 09:23:58 +0000 (09:23 +0000)]
Merge "Update kernel configuration to support contivpp"

4 years agoAdd OVN-Kubernetes CNI Installation for IEC 33/1833/5
Trevor Tao [Thu, 24 Oct 2019 03:11:32 +0000 (11:11 +0800)]
Add OVN-Kubernetes CNI Installation for IEC

Add OVN-Kubernetes CNI installation scripts for IEC:

1. the install-ovn-k8s.sh for installation by yamls
2. Needed yaml files and yaml template files
3. Update setup-cni.sh to add a new CNI type of
ovn-kubernetes
4. Update config and startup.sh to add more parameters
used in the installation.
5. Add fat-manifest pushing scripts
6. Fixing the deficiency by adding more parameters
when calling k8s_master.sh in startup.sh

Signed-off-by: Trevor Tao <trevor.tao@arm.com>
Change-Id: I534edae5baa79b7729654c28de66ee076ed62359
Signed-off-by: Trevor Tao <trevor.tao@arm.com>
4 years agoForce overwrite the k8s config file 29/1829/4
Trevor Tao [Wed, 23 Oct 2019 13:13:56 +0000 (21:13 +0800)]
Force overwrite the k8s config file

Force overwrite the k8s config file in user environment in case
that the Kubernetes had ever been installed before.

Signed-off-by: Trevor Tao <trevor.tao@arm.com>
Change-Id: Ic11ac998666e97f1b5457084744f57da0436d274
Signed-off-by: Trevor Tao <trevor.tao@arm.com>
4 years agoUpstream documentation for IEC release 2 05/1805/3
Jianlin Lv [Mon, 21 Oct 2019 09:33:46 +0000 (17:33 +0800)]
Upstream documentation for IEC release 2

Add doc of setting up contivpp and relevant yaml

Signed-off-by: Jianlin Lv <Jianlin.Lv@arm.com>
Change-Id: Id42090e14b701d1b109afbf47a3c6ee764ce1e8e

4 years agoUpdate ONOS aarch64 image to fix IEC-22 08/1808/1
Ciprian Barbu [Mon, 21 Oct 2019 14:18:31 +0000 (17:18 +0300)]
Update ONOS aarch64 image to fix IEC-22

Update to new seba_charts commit

Signed-off-by: Ciprian Barbu <ciprian.barbu@enea.com>
Change-Id: Ie11882abd46fd3beafb78ce57358aab4217fa27e

4 years agoUpdate kernel configuration to support contivpp 01/1801/1
Jianlin Lv [Fri, 18 Oct 2019 02:37:52 +0000 (10:37 +0800)]
Update kernel configuration to support contivpp

Enable VHOST and TAP relevant modules of kernel to
support contivpp for type1

Signed-off-by: Jianlin Lv <Jianlin.Lv@arm.com>
Change-Id: I8bc6001212b341a30b9f91f49df8b12f520910fa

4 years agoFix the installation bug in startup.sh file 86/1586/1
Jingzhao.Ni [Mon, 16 Sep 2019 13:57:15 +0000 (21:57 +0800)]
Fix the installation bug in startup.sh file

The k8s can not deployed properly when status of OS's swap is on.
It mainly because that the "sudo swapon -a" operation should be
invoked after the "kubeadm join xx" command, but not before it.
So, in this patch, the sequency of 2 commands were re-ordered for
fixing it.

Signed-off-by: Jingzhao.Ni <Jingzhao.Ni@arm.com>
Change-Id: I7bac839a1b77a76f536da35989741776aefb5929

4 years agoUpdate seba-charts submodule 49/1549/1
Ciprian Barbu [Fri, 6 Sep 2019 13:17:55 +0000 (16:17 +0300)]
Update seba-charts submodule

This fixes IEC-16, by switching the submodule to latest commit
containing the fix for freeradius.

Signed-off-by: Ciprian Barbu <ciprian.barbu@enea.com>
Change-Id: Iad940329e1b0f3288de65b5d2ba81e7038d39e8c

4 years agoIntegrate contiv/vpp CNI into IEC 91/1491/4
Jianlin Lv [Fri, 30 Aug 2019 02:34:14 +0000 (10:34 +0800)]
Integrate contiv/vpp CNI into IEC

Make master and work nodes support contivpp deployment

Signed-off-by: Jianlin Lv <Jianlin.Lv@arm.com>
Change-Id: I5741b26779136ce626fdeec22d4b9f88e4769681

4 years agoFix the bug of installation failure 55/1455/2
Jingzhao.Ni [Fri, 23 Aug 2019 05:04:08 +0000 (13:04 +0800)]
Fix the bug of installation failure

When using the K8s with 1.13.0 version, it will result
deployment failed. It mainly because that parsing the
"kubeadm join" command in older version is different
from 1.15.2 version. When deploying the K8s with 1.13.0
by scripts, the IP address was consider as token key.
Finally, it results in the worker node installation failed.

Signed-off-by: Jingzhao.Ni <Jingzhao.Ni@arm.com>
Change-Id: I088392e416bf4ef92be78196a83987279d29e268

4 years agoMerge "Initial Commit to Add RestAPI Server to IEC"
Jianlin Lv [Thu, 22 Aug 2019 07:23:44 +0000 (07:23 +0000)]
Merge "Initial Commit to Add RestAPI Server to IEC"

4 years agoAdd some options for IEC installation scripts 32/1432/4
Jingzhao.Ni [Fri, 16 Aug 2019 10:23:49 +0000 (18:23 +0800)]
Add some options for IEC installation scripts

1. Some options were added into the startup.sh script.
   "-k|--kube"    ---- The version of k8s
   "-c|--cni-ver" ---- Kubernetes-cni version
   "-C|--cni"     ---- CNI type: calico/flannel
2. In config file, those default values were also set.
3. Some log inforamtion about those parameters was add for
   varification when deploying the IEC infrastructure by
    startup.sh.

Change-Id: Ief59d31b7630dc3247305f869ea55137142b040c
Signed-off-by: Jingzhao.Ni <Jingzhao.Ni@arm.com>
4 years agoInitial Commit to Add RestAPI Server to IEC 25/1325/13
trevor tao [Tue, 6 Aug 2019 01:19:23 +0000 (09:19 +0800)]
Initial Commit to Add RestAPI Server to IEC

Initial commit to add a Rest API service(http server) to IEC,
which now just support simple Restful request as:
http://IP:port/v1/iec/status
and return a simple JSON reply.
It would be enhanced with more features in the future.

This server listens at TCP port 9131. It can be deployed as a Kubernetes
service, and accessed by http://svcIP/v1/iec/xxx, or by
http://nodeIP:31131/v1/iec/xxx.

Now the commit includes:
1. The API server implementation itself
2. The docker images related files
3. The Kubernetes deployment scripts
4. README.md
5. The Makefile to manage most things.

Change-Id: I0891855a5182fc193fd26e7232903aac7e9b4d12
Signed-off-by: trevor tao <trevor.tao@arm.com>
4 years agoMerge "Integrate the VM deployment tools into IEC"
Jianlin Lv [Fri, 2 Aug 2019 09:36:38 +0000 (09:36 +0000)]
Merge "Integrate the VM deployment tools into IEC"

4 years agoIntegrate the VM deployment tools into IEC 59/1259/5
Jingzhao.Ni [Thu, 25 Jul 2019 11:21:47 +0000 (19:21 +0800)]
Integrate the VM deployment tools into IEC

For easy deployment on host, the Virtual-Machine automatic
deployment tool was integrated into IEC project.
Firstly, for supporting different arch platform, the compass4nfv
project in OPNFV was used for deployment tools.
Secondly, after VMs deployment, the IEC infrastructure will
be deployed on those VMs without any user cases.

Signed-off-by: Jingzhao.Ni <Jingzhao.Ni@arm.com>
Change-Id: I0b8d0a3e56a77bfa3aded76503e3f040d34de214

4 years agoMerge "[seba] Fix compat with older git client"
Cristina Pauna [Fri, 26 Jul 2019 13:31:12 +0000 (13:31 +0000)]
Merge "[seba] Fix compat with older git client"

4 years agoMerge "Add PONSim test scripts for running SIAB"
Cristina Pauna [Fri, 26 Jul 2019 13:27:28 +0000 (13:27 +0000)]
Merge "Add PONSim test scripts for running SIAB"

4 years ago[seba] Fix compat with older git client 60/1260/1
Alexandru Avadanii [Thu, 25 Jul 2019 14:12:31 +0000 (16:12 +0200)]
[seba] Fix compat with older git client

CentOS ships with an older version of `git`, which lacks certain
features like updating submodules from a CWD different from git
repo root. Work around these to avoid compatibility issues.

Change-Id: Ibba156e7fb7edb41215f4be3893a3c1cc5d956d8
Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
4 years agoAdd PONSim test scripts for running SIAB 15/1215/11
Ciprian Barbu [Thu, 11 Jul 2019 16:20:58 +0000 (19:20 +0300)]
Add PONSim test scripts for running SIAB

The test script is designed to be run from a CI job but it can be run
manually by providing the K8S master to connect to and the .kube config
file needed to access it.

The SIAB tests, which are part of opencord/cord-tester, are run inside a
Docker container, by default iecedge/cord-tester, multi-arch enabled.

Also add the Dockerfile used to build the cord-tester docker image
mentioned above.

Signed-off-by: Ciprian Barbu <ciprian.barbu@enea.com>
Change-Id: I17475ce90c152f7541ae806b99d6709c1675cda1

4 years agoUpstream IEC type1 info about Macbin 94/1194/3
Jianlin Lv [Tue, 16 Jul 2019 09:39:43 +0000 (17:39 +0800)]
Upstream IEC type1 info about Macbin

Upstream defconfig ,enable necessary module
to meet container`s requirements,such as
NETFILTER, IPTABLES, OVERLAY_FS,etc

Signed-off-by: Jianlin Lv <Jianlin.Lv@arm.com>
Change-Id: Ia0a9f7863e3e2db0bd5b50a914e2c3c464b11679

4 years agoUpstream IEC type1 info about Macbin 63/1163/12
Jianlin Lv [Thu, 11 Jul 2019 08:15:13 +0000 (16:15 +0800)]
Upstream IEC type1 info about Macbin

Upstream README.md and script that support kernel compiling

Signed-off-by: Jianlin Lv <Jianlin.Lv@arm.com>
Change-Id: Icef2619fb94dc15d92888f4d19a5a78a68002a1a

4 years agoAdd PONSim installation scripts 31/1131/4
Ciprian Barbu [Tue, 2 Jul 2019 10:48:16 +0000 (13:48 +0300)]
Add PONSim installation scripts

Also refactored the existing BBSim installation scripts and re-organized
the scripts into separate bbsim and ponsim folders

Signed-off-by: Ciprian Barbu <ciprian.barbu@enea.com>
Change-Id: I114169cfbcee70985eb098561491ea341b26e4b2

4 years agoMerge "Add IEC Type1 Info Dir in IEC Repo"
Trevor Tao [Sat, 6 Jul 2019 02:15:25 +0000 (02:15 +0000)]
Merge "Add IEC Type1 Info Dir in IEC Repo"

4 years agoAdd helm-charts submodule for PONSim 22/1122/1
Ciprian Barbu [Thu, 4 Jul 2019 13:14:35 +0000 (16:14 +0300)]
Add helm-charts submodule for PONSim

Using iecedge/helm-charts forked from upstream opencord/helm-charts
containing arm64 specific changes (arm64 Docker images) and changes for
running PONSim without errors on clusters with multiple nodes.

Signed-off-by: Ciprian Barbu <ciprian.barbu@enea.com>
Change-Id: Id068c462695091a9d33ec8da7b846adc0f06a601

4 years agoAdd IEC Type1 Info Dir in IEC Repo 15/1115/3
trevor tao [Wed, 3 Jul 2019 09:47:12 +0000 (17:47 +0800)]
Add IEC Type1 Info Dir in IEC Repo

Add a directory to discribe the miscellaneous
IEC type1 device and software information which
is needed to support the IEC type1 work.

Change-Id: If3b5165db8569c53e1d2f7da455d417b8d0891e7
Signed-off-by: trevor tao <trevor.tao@arm.com>
4 years agoMerge "Use Multi-arch etcd yaml to support Calico"
Jingzhao Ni [Wed, 3 Jul 2019 02:19:34 +0000 (02:19 +0000)]
Merge "Use Multi-arch etcd yaml to support Calico"

4 years agoForce apt-get to ipv4 01/1101/2
Jingzhao.Ni [Tue, 2 Jul 2019 03:16:46 +0000 (11:16 +0800)]
Force apt-get to ipv4

For avoiding docker-ce installation failed, we specify the apt to
ipv4 network on ubuntu system. The correpsonding scripts was added
into k8s_common.sh

Signed-off-by: Jingzhao.Ni <Jingzhao.Ni@arm.com>
Change-Id: I94c25067e89064f63e62a59ab12db53c74fc6554

4 years agoUse Multi-arch etcd yaml to support Calico 96/1096/1
trevor tao [Sun, 30 Jun 2019 14:25:44 +0000 (22:25 +0800)]
Use Multi-arch etcd yaml to support Calico

Change the separate etcd-arm64.yaml and etcd-amd64.yaml to a single
multi-arch supported etcd.yaml to simply the Calico install.

Change-Id: I2750213235043f9ad7411e8211beb58214487386
Signed-off-by: trevor tao <trevor.tao@arm.com>
4 years agoAdd CentOS7 support for K8s installation 43/1043/4
Alexandru Avadanii [Fri, 14 Jun 2019 16:14:39 +0000 (18:14 +0200)]
Add CentOS7 support for K8s installation

Change-Id: Icd51658aed4f3280e2ee1bf5e44a68ae3fa7e5ca
Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
4 years agoAdd flannel CNI for IEC project 27/1027/3
Jingzhao.Ni [Fri, 21 Jun 2019 05:46:49 +0000 (13:46 +0800)]
Add flannel CNI for IEC project

This patch is used for supporting the Flannel CNI in IEC project.
 1. The flannel configuration file was add into cni/flannel/ folder.
 2. CNI_TYPE variable was added in config file which is used for
choosing which type of CNI will be installed in IEC infrastructure.
 3. The default value of CNI_TYPE is calico

Signed-off-by: Jingzhao.Ni <Jingzhao.Ni@arm.com>
Change-Id: I5a755ceaffd0e35f67cd4405a42bf67b4f6a28cd

4 years agoRemove parameter of "cp" command 84/884/1 1.0.0
Jingzhao.Ni [Wed, 29 May 2019 10:08:05 +0000 (18:08 +0800)]
Remove parameter of "cp" command

The parameter may block the scripts when deploying
k8s environments.

Signed-off-by: Jingzhao.Ni <Jingzhao.Ni@arm.com>
Change-Id: I91e7a927d17ae15fd51c45047de091f4a3f4877a

4 years agoFix install bug 77/777/8
Jingzhao.Ni [Wed, 22 May 2019 10:41:12 +0000 (18:41 +0800)]
Fix install bug

Fix install bug which is about kube config

Signed-off-by: Jingzhao.Ni <Jingzhao.Ni@arm.com>
Change-Id: I1ef16554850992f38e0220440666f37caf35e5be

4 years agoInstall an essential software & Fix some bugs 76/776/5
Jingzhao.Ni [Wed, 22 May 2019 08:45:14 +0000 (16:45 +0800)]
Install an essential software & Fix some bugs

The software-properties-common software is essential
for add-apt-repository. Add it into k8s_common.sh file.
Fix bugs when running sshpass

Signed-off-by: Jingzhao.Ni <Jingzhao.Ni@arm.com>
Change-Id: I651dbee12177db72bd69708355250c0b005d347d

4 years agoMerge "Remove the quotes of True value in yaml file"
Jianlin Lv [Wed, 22 May 2019 07:06:04 +0000 (07:06 +0000)]
Merge "Remove the quotes of True value in yaml file"

4 years agoMerge "Fix some errors in IEC installation scripts"
Jianlin Lv [Wed, 22 May 2019 01:24:50 +0000 (01:24 +0000)]
Merge "Fix some errors in IEC installation scripts"

4 years ago[docs] Add installation instruction 61/761/4
Alexandru Avadanii [Mon, 20 May 2019 18:17:39 +0000 (20:17 +0200)]
[docs] Add installation instruction

For now, only script-based installation is described, since it's
the most flexible and easy to use in various environments.

Script-based installation also assumes the jumpserver/cluster nodes
have preinstalled operating systems, simplifying the configuration
necessary for more complete installation methods that also cover
VM/baremetal provisioning (e.g. OPNFV Compass/Fuel, which require
a lot more input, especially for baremetal deployments).

This can later be extended with Compass/Fuel/Airship/Heat specific
instructions.

JIRA: IEC-9

Change-Id: I34d274ed03b70c439c60db02df1e0e55c2c11b34
Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
4 years agoFix some errors in IEC installation scripts 66/766/2
trevor tao [Tue, 21 May 2019 07:15:27 +0000 (15:15 +0800)]
Fix some errors in IEC installation scripts

1. Fix the error of source the wrong config file in startup.sh
2. Fix the error of adding the KUBECONFIG to the ~/.profile, which
would not be sourced when starting a BASH, it should be set in
~/.bashrc.

Change-Id: I98051d824788e9d950dc6b0b0634e08ea6bfe14d
Signed-off-by: trevor tao <trevor.tao@arm.com>
4 years agoRemove the quotes of True value in yaml file 68/768/4
trevor tao [Tue, 21 May 2019 08:22:56 +0000 (16:22 +0800)]
Remove the quotes of True value in yaml file

The quotes of the True value cause an error when deploying,
it should be removed.
Originally, the quotes was added to pass the yamllint check,
which causes this issue.

Change-Id: Ie7a262c66a3b56db00d1ccac6fc5a937d1a88988
Signed-off-by: trevor tao <trevor.tao@arm.com>
4 years agoMerge "Add src/xConnect directory"
Trevor Tao [Tue, 21 May 2019 09:39:18 +0000 (09:39 +0000)]
Merge "Add src/xConnect directory"

4 years agoMerge "Git submodule manage kubectl-deployer-docker"
Jianlin Lv [Tue, 21 May 2019 07:32:38 +0000 (07:32 +0000)]
Merge "Git submodule manage kubectl-deployer-docker"

4 years agoMerge "[tox] verify: Pin requests to 2.21.0"
Jianlin Lv [Tue, 21 May 2019 07:32:12 +0000 (07:32 +0000)]
Merge "[tox] verify: Pin requests to 2.21.0"

4 years agoAdd src/xConnect directory 60/760/2
Ciprian Barbu [Mon, 20 May 2019 17:10:08 +0000 (20:10 +0300)]
Add src/xConnect directory

Change-Id: I4cd33ef3e1618727c4572f79a4d9b858ebf1707c
Signed-off-by: Ciprian Barbu <ciprian.barbu@enea.com>
4 years agoGit submodule manage kubectl-deployer-docker 47/747/2
jialv01 [Mon, 20 May 2019 03:24:18 +0000 (11:24 +0800)]
Git submodule manage kubectl-deployer-docker

Git submodule is used to manage kubectl-deployer-docker repo

Signed-off-by: jialv01 <Jianlin.Lv@arm.com>
Change-Id: I822955bfef43304e19aec6b02b6393a4f4401a2e

4 years ago[tox] verify: Pin requests to 2.21.0 55/755/1
Alexandru Avadanii [Mon, 20 May 2019 14:11:09 +0000 (16:11 +0200)]
[tox] verify: Pin requests to 2.21.0

requests release 2.22.0 added a python requires that excludes all
versions of Python < 3.5. The LFCI's default 3 version is 3.4 so
causes build failure.

Change-Id: I8797c37bbe1b0fa54be348f09b60b98065e23ab7
Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
5 years agopin pynacl 1.1.2,fixed issue of image build fail 09/709/1
jialv01 [Wed, 15 May 2019 15:17:38 +0000 (23:17 +0800)]
pin pynacl 1.1.2,fixed issue of image build fail

Pin pynacl to 1.1.2 ,fixed issue of pwhash_scrypt failing on aarch64.

Signed-off-by: jialv01 <Jianlin.Lv@arm.com>
Change-Id: I614d2d6529c6f6c5c744c7d1add8512ef1884403

5 years ago[tox] verify: Pin pygments to 2.3.x 90/690/1
Alexandru Avadanii [Mon, 13 May 2019 15:35:20 +0000 (17:35 +0200)]
[tox] verify: Pin pygments to 2.3.x

Pygments release 2.4.0 which added a python requires that excludes all
versions of Python < 3.5. The LFCI's default 3 version is 3.4 so causes
build failure.

Change-Id: Ie7992fb2c283c2b8aaf80b7475f90dbb22964703
Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
5 years ago[docs] Add API documentation 27/627/1
Cristina Pauna [Tue, 7 May 2019 12:57:57 +0000 (15:57 +0300)]
[docs] Add API documentation

Since we don't expose any APIs in this release, the patch adds only
stubs that will be filled in in the future.

Change-Id: I2fb955b716e8f0f62fe2374811b1d71c9b230bac
Signed-off-by: Cristina Pauna <cristina.pauna@enea.com>
5 years agoMerge "Add uninstall and test scripts for SEBA"
Jianlin Lv [Tue, 7 May 2019 01:54:39 +0000 (01:54 +0000)]
Merge "Add uninstall and test scripts for SEBA"

5 years ago[docs] Add release documentation 20/620/1
Cristina Pauna [Mon, 6 May 2019 12:20:08 +0000 (15:20 +0300)]
[docs] Add release documentation

JIRA: IEC-10
Release documentation for the first Akraino release
TODO: add links for the other docuements once they are created

Change-Id: Id422afc60c5a2804223921848cfd263063cc1624
Signed-off-by: Cristina Pauna <cristina.pauna@enea.com>
5 years agoAdd uninstall and test scripts for SEBA 76/576/12
trevortao [Mon, 22 Apr 2019 07:42:49 +0000 (15:42 +0800)]
Add uninstall and test scripts for SEBA

Add uninstall and function test scripts for SEBA on arm.
Revised the install script to avoid the possible unnecessary
failure.

Revise install.sh to avoid long time waiting.

Change-Id: Ia9f8d96b9e87d03d20b4e948efe169d73b1e56e5
Signed-off-by: trevortao <trevor.tao@arm.com>
Signed-off-by: trevor tao <trevor.tao@arm.com>
5 years agotox: Disable pip cache for coala venv 07/607/1
Alexandru Avadanii [Thu, 2 May 2019 20:05:24 +0000 (22:05 +0200)]
tox: Disable pip cache for coala venv

Some packages required by coala venv are already cached by pip2,
leading to issues like [1] when trying to install them for pip3.
Bypass the pip cache in order to avoid this.

[1] https://github.com/pypa/pip/issues/5250

Change-Id: I9e8ce52223cdc84d855cc8fe899efa6e22b84ab9
Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
5 years agoRevert patch 585 92/592/1
Cristina Pauna [Thu, 2 May 2019 08:41:53 +0000 (08:41 +0000)]
Revert patch 585

This reverts commit 09ea29e02d5212ef8114782417bf7374eaa7c853.
"Temporarily avoiding mistakes of 'tox -e coala'"

This patch needs to be reverted as it's currently breaking
all our verify jobs

Change-Id: Ie7443269627d988200aa4c2df737687f02c93293

5 years agoTemporarily avoiding mistakes of 'tox -e coala' 85/585/1
jialv01 [Sun, 28 Apr 2019 08:54:02 +0000 (16:54 +0800)]
Temporarily avoiding mistakes of 'tox -e coala'

Roll back part code of patch Change 571

Change-Id: I49ae228ac19a8d790f204056707bbf4f30061079
Signed-off-by: jialv01 <Jianlin.Lv@arm.com>
5 years agoFix seba_charts submodule update 81/581/2
Ciprian Barbu [Wed, 24 Apr 2019 15:35:03 +0000 (18:35 +0300)]
Fix seba_charts submodule update

The submodule needs to first be initialized before use, or simply use
the git submodule update --init

Change-Id: Ie0133cd0da05717d164984ec5a0b2962b2ef42f0
Signed-off-by: Ciprian Barbu <ciprian.barbu@enea.com>
5 years agoMerge "Add code verification tools"
Jianlin Lv [Thu, 25 Apr 2019 03:24:37 +0000 (03:24 +0000)]
Merge "Add code verification tools"

5 years agoAdd code verification tools 71/571/7
Cristina Pauna [Fri, 19 Apr 2019 13:53:27 +0000 (16:53 +0300)]
Add code verification tools

JIRA: IEC-2
Tools used to verify code style and correctness.
Usage command: tox -e coala

Change-Id: I9440349239446a6042664bdbb67f08fa0bc578b3
Signed-off-by: Cristina Pauna <cristina.pauna@enea.com>
5 years agoMerge "Add IEC Foundation Installation Document"
Trevor Tao [Mon, 22 Apr 2019 07:47:27 +0000 (07:47 +0000)]
Merge "Add IEC Foundation Installation Document"

5 years agoAdd etcd&onos repo as submodule and support arm64 65/565/1
jialv01 [Thu, 18 Apr 2019 02:54:07 +0000 (10:54 +0800)]
Add etcd&onos repo as submodule and support arm64

1.forked SEBA componants`s repo to IEC repo,include:
beats-docker,etcd-operator-docker,etcd, onos
2.Add patch files inorder to aarch64 docker image support
src/use_cases/seba_on_arm/docker/build/beats-docker/build.arm
src/use_cases/seba_on_arm/docker/build/etcd-operator-docker/build.arm
src/use_cases/seba_on_arm/docker/build/etcd/build.arm
src/use_cases/seba_on_arm/docker/build/onos/build.arm
src/use_cases/seba_on_arm/patches/beats-docker/0001-Correct-path-errors-and-tar-command-errors.patch

Change-Id: I90ed064ef7264150d9c0d15312e6f2bb975e92e9
Signed-off-by: jialv01 <Jianlin.Lv@arm.com>
5 years agoAdd voltha repo as submodule and support arm64 54/554/1
jialv01 [Thu, 11 Apr 2019 09:55:41 +0000 (17:55 +0800)]
Add voltha  repo as submodule and support arm64

1.forked SEBA componants`s repo to IEC repo,include:
freeradius, voltha
2.Add patch files inorder to aarch64 docker image support
src/use_cases/seba_on_arm/docker/build/freeradius/build.arm
src/use_cases/seba_on_arm/docker/build/voltha/build.arm
src/use_cases/seba_on_arm/patches/voltha/0001-pin-pynacl-to-1.1.2-recent-version-fail-to-install.patch
src/use_cases/seba_on_arm/patches/voltha/0002-Support-ponsim-arm64-docker-image-build.patch
src/use_cases/seba_on_arm/src_repo/freeradius
src/use_cases/seba_on_arm/src_repo/voltha

Change-Id: I3edeefb7ce3feeb58d960e022ed1aeb38be52333
Signed-off-by: jialv01 <Jianlin.Lv@arm.com>
5 years agoAdd Nem-mon repo as submodule and support arm64 48/548/2
jialv01 [Thu, 11 Apr 2019 09:35:32 +0000 (17:35 +0800)]
Add Nem-mon repo as submodule and support arm64

1.forked SEBA componants`s repo to IEC repo,include:
alertmanager/docker-curl/k8s-sidecar/kafka-topic-exporter/kube-state-metrics/node_exporter/prometheus/pushgateway/
2.Add patch files inorder to aarch64 docker image support
src/use_cases/seba_on_arm/docker/build/alertmanager/
src/use_cases/seba_on_arm/docker/build/docker-curl/
src/use_cases/seba_on_arm/docker/build/k8s-sidecar/
src/use_cases/seba_on_arm/docker/build/kafka-topic-exporter/
src/use_cases/seba_on_arm/docker/build/kube-state-metrics/
src/use_cases/seba_on_arm/docker/build/node_exporter/
src/use_cases/seba_on_arm/docker/build/prometheus/
src/use_cases/seba_on_arm/docker/build/pushgateway/

Change-Id: Idb29d142e90749e3933060919a4a24449c87e09f
Signed-off-by: jialv01 <Jianlin.Lv@arm.com>
5 years agoAdd logging repo as submodule and support arm64 47/547/1
jialv01 [Thu, 11 Apr 2019 09:11:09 +0000 (17:11 +0800)]
Add logging repo as submodule and support arm64

1.forked SEBA componants`s repo to IEC repo,include:
elasticsearch-docker,kibana-docker,kubernetes,logstash-docker,logstash_exporter
2.Add patch files inorder to aarch64 docker image support
src/use_cases/seba_on_arm/docker/build/elasticsearch-docker/build.arm
src/use_cases/seba_on_arm/docker/build/kibana-docker/build.arm
src/use_cases/seba_on_arm/docker/build/kubernetes/build.arm
src/use_cases/seba_on_arm/docker/build/logstash-docker/build.arm
src/use_cases/seba_on_arm/docker/build/logstash_exporter/build.arm

Change-Id: I641a33fcd91403b68627a86dcb4e5f7286cb102a
Signed-off-by: jialv01 <Jianlin.Lv@arm.com>
5 years agoAdd SEBA-serv repo as submodule and support arm64 46/546/1
jialv01 [Thu, 11 Apr 2019 08:14:45 +0000 (16:14 +0800)]
Add SEBA-serv repo as submodule and support arm64

1.forked SEBA componants`s repo to IEC repo,include:
rcord-synchronizer,onos-service,olt-service,fabric,fabric-crossconnect
2.Add patch files inorder to aarch64 docker image support
src/use_cases/seba_on_arm/patches/rcord-synchronizer/0001-Modify-rcord-Dockerfile-for-support-Arm64.patch
src/use_cases/seba_on_arm/src_repo/fabric
src/use_cases/seba_on_arm/src_repo/fabric-crossconnect
src/use_cases/seba_on_arm/src_repo/olt-service
src/use_cases/seba_on_arm/src_repo/onos-service
src/use_cases/seba_on_arm/src_repo/rcord-synchronizer

Change-Id: Iaa42ef687f74eaa8e434bec01c090998acfe352d
Signed-off-by: jialv01 <Jianlin.Lv@arm.com>
5 years agoAdd Base-k8s repo as submodule and support arm64 43/543/1
jialv01 [Wed, 10 Apr 2019 03:38:48 +0000 (11:38 +0800)]
Add Base-k8s repo as submodule and support arm64

1.forked SEBA componants`s repo to IEC repo,include:
kubernetes-synchronizer, sadis-server, tosca-loader

2.Add patch files inorder to aarch64 docker image support
src/use_cases/seba_on_arm/docker/build/kubernetes-synchronizer/build.arm
src/use_cases/seba_on_arm/docker/build/sadis-server/build.arm
src/use_cases/seba_on_arm/docker/build/tosca-loader/build.arm
src/use_cases/seba_on_arm/src_repo/kubernetes-synchronizer
src/use_cases/seba_on_arm/src_repo/sadis-server
src/use_cases/seba_on_arm/src_repo/tosca-loader

Change-Id: Ia8a4007183618e96540d05fdd1822913f4ed0c87
Signed-off-by: jialv01 <Jianlin.Lv@arm.com>
5 years agoAdd XOS repo as submodule and support arm64 40/540/2
jialv01 [Thu, 4 Apr 2019 08:32:57 +0000 (16:32 +0800)]
Add XOS repo as submodule and support arm64

1.forked SEBA componants`s repo to IEC repo,include:
xos,xos-tosca,cord-tester,xos-gui,xos-rest-gw

2.Add patch files inorder to aarch64 docker image support
        src/use_cases/seba_on_arm/src_repo/cord-tester
        src/use_cases/seba_on_arm/src_repo/xos
        src/use_cases/seba_on_arm/src_repo/xos-gui
        src/use_cases/seba_on_arm/src_repo/xos-tosca
        src/use_cases/seba_on_arm/src_repo/xos-ws
        src/use_cases/seba_on_arm/docker/build/cord-tester/
        src/use_cases/seba_on_arm/docker/build/xos-gui/
        src/use_cases/seba_on_arm/docker/build/xos-tosca/
        src/use_cases/seba_on_arm/docker/build/xos-ws/
        src/use_cases/seba_on_arm/docker/build/xos/

Change-Id: I1a0f7c8e5983aab830dfff34bc2127477f37768f
Signed-off-by: jialv01 <Jianlin.Lv@arm.com>
5 years agoAdd kafka repo as submodule add support arm64 39/539/1
jialv01 [Thu, 4 Apr 2019 05:34:20 +0000 (13:34 +0800)]
Add kafka repo as submodule add  support arm64

1.forked SEBA componants`s repo to IEC repo,include:
contrib,jmx-prometheus-exporter,kafka-prometheus-jmx-exporter,zookeeper_exporter
2.Add patch files inorder to aarch64 docker image support
src/use_cases/seba_on_arm/docker/build/contrib/build.arm
src/use_cases/seba_on_arm/docker/build/jmx-prometheus-exporter/build.arm
src/use_cases/seba_on_arm/docker/build/kafka-prometheus-jmx-exporter/build.arm
src/use_cases/seba_on_arm/docker/build/zookeeper_exporter/build.arm
src/use_cases/seba_on_arm/patches/kafka-prometheus-jmx-exporter/0001-Modify-the-URL-to-properly-download-kafka-bin.patch

Change-Id: I3e3ee84896a079b75d765abc63ba699305bd10b1
Signed-off-by: jialv01 <Jianlin.Lv@arm.com>
5 years agoAdd repo as submodule add patch support arm64 38/538/1
jialv01 [Wed, 3 Apr 2019 05:53:06 +0000 (13:53 +0800)]
Add repo as submodule add patch support arm64

1.forked SEBA componants`s repo to IEC repo,include:
    kafka-exporter,cp-docker-images
2.Create new directory:src/use_cases/seba_on_arm/docker/build
    Store the script to build docker image
3.Create new directory:src/use_cases/seba_on_arm/patches
    This directory holds the patches files of the submodules
4.Add patch files inorder to aarch64 docker image support
    patches/kafka-exporter/0001-modify-Makefile-for-aarch64-support.patch
    build/cp-docker-images/build.arm
    build/kafka-exporter/build.arm

Change-Id: I53db4a633ba0a39f0bb2e8c8b17b3f5271fba2b1
Signed-off-by: jialv01 <Jianlin.Lv@arm.com>
5 years agoAdd SEBA Chart of arm and Install script 32/532/1
trevortao [Mon, 1 Apr 2019 04:14:12 +0000 (12:14 +0800)]
Add SEBA Chart of arm and Install script

Add SEBA Charts of aarch64 platform as submodule and initial
install script for SEBA components on arm.

Change-Id: I18aef5461dade29b02b1ffc134fb10d93ceaf128
Signed-off-by: trevortao <trevor.tao@arm.com>
5 years agoMerge "[ci] Add PDF/IDF config files for 2 virtual PODs"
Cristina Pauna [Wed, 27 Mar 2019 16:06:50 +0000 (16:06 +0000)]
Merge "[ci] Add PDF/IDF config files for 2 virtual PODs"

5 years agoMerge "Fix broken kubernetes-cni dependency"
Ciprian Barbu [Wed, 27 Mar 2019 14:37:54 +0000 (14:37 +0000)]
Merge "Fix broken kubernetes-cni dependency"

5 years agoFix broken kubernetes-cni dependency 11/511/2
Ciprian Barbu [Tue, 26 Mar 2019 15:43:40 +0000 (17:43 +0200)]
Fix broken kubernetes-cni dependency

Change-Id: If6cb5085c51db746498343012bd6475ea11292d4
Signed-off-by: Ciprian Barbu <ciprian.barbu@enea.com>
5 years agoMerge "[scripts] Cleanup intermediate files"
Cristina Pauna [Wed, 27 Mar 2019 08:55:10 +0000 (08:55 +0000)]
Merge "[scripts] Cleanup intermediate files"

5 years agoMerge "Add script for auto deploying on multi-nodes"
Jingzhao Ni [Wed, 27 Mar 2019 03:50:52 +0000 (03:50 +0000)]
Merge "Add script for auto deploying on multi-nodes"

5 years agoAdd script for auto deploying on multi-nodes 03/503/3
Jingzhao [Mon, 25 Mar 2019 09:54:32 +0000 (17:54 +0800)]
Add script for auto deploying on multi-nodes

The automatic scripts could support multi-workers in 1-key
deployment.
1. A config file including the multi-worker information was
   added.
2. The automatic scripts--startup.sh--was modified for
   adapting the multi-worker nodes.

Change-Id: I286abfc60c1fd6b37a7c838d487d0c65b4cd4313
Signed-off-by: Jingzhao <Jingzhao.Ni@arm.com>
5 years agoAdd functest-kubernetes verification for iec 02/502/3
Jingzhao [Mon, 25 Mar 2019 09:50:13 +0000 (17:50 +0800)]
Add functest-kubernetes verification for iec

Add a shell scripts for running functest-k8s-healthcheck images.
It help us to verify the basic function of K8s. On the other hand,
the functest is a good framework for functional test in future.

Change-Id: I837737a18446a3ae57ce610a570fa1aafe7f94ef
Signed-off-by: Jingzhao <Jingzhao.Ni@arm.com>
5 years ago[ci] Add PDF/IDF config files for 2 virtual PODs 04/504/2
Alexandru Avadanii [Mon, 25 Mar 2019 14:08:47 +0000 (15:08 +0100)]
[ci] Add PDF/IDF config files for 2 virtual PODs

Add POD Descriptor File and Installer Descriptor File configuration for
the two IEC CI virtual PODs currently available in Jenkins [1, 2].

The configuration adheres to OPNFV standards [3, 4] and should be
compatible with all supported OPNFV installers (e.g. Compass4NFV, Fuel).

These configuration files will be leveraged by IEC CI jobs for daily
deployments / testing.

[1] https://jenkins.akraino.org/computer/prd-ubuntu1604-dev-48c-256g-1/
[2] https://jenkins.akraino.org/computer/prd-ubuntu1604-dev-48c-256g-2/
[3] https://opnfv-pharos.rtfd.org/en/latest/release/release-notes/lab-description/pdf.html
[4] https://opnfv-fuel.rtfd.io/en/latest/release/installation/\
    installation.instruction.html#opnfv-software-configuration-xdf

Change-Id: Ie57423cca65bf3f5c66ad9833f02d1a33d159734
Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
5 years ago[scripts] Cleanup intermediate files 05/505/1
Alexandru Avadanii [Mon, 25 Mar 2019 14:40:44 +0000 (15:40 +0100)]
[scripts] Cleanup intermediate files

The installation scripts should not leave behind unused files created
during their run, but instead remove them on success:
- index.html, nginx-app.yaml generated by nginx testing;
- tiller-rba.yaml generated by tiller install;

Change-Id: Iebbfb13e0da6f9657dad65dc34cf62147210c487
Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
5 years agoMerge "Enable extra flag for both master and nodes"
Trevor Tao [Mon, 25 Mar 2019 08:42:43 +0000 (08:42 +0000)]
Merge "Enable extra flag for both master and nodes"

5 years agoEnable extra flag for both master and nodes 90/490/4
trevortao [Tue, 19 Mar 2019 08:56:24 +0000 (16:56 +0800)]
Enable extra flag for both master and nodes

Enable extra flag as k8s common for both k8s master and slave:
      --fail-swap-on=false
      --feature-gates HugePages=false

Change-Id: I3051796bbe083011837415ab07dbb1eb68a2fb55
Signed-off-by: trevortao <trevor.tao@arm.com>
5 years agoMerge "Openstack Heat templates for IEC deployment"
Ciprian Barbu [Mon, 18 Mar 2019 10:05:29 +0000 (10:05 +0000)]
Merge "Openstack Heat templates for IEC deployment"

5 years agoMerge "Add some scripts for verifing the K8s environment"
Trevor Tao [Fri, 15 Mar 2019 03:31:04 +0000 (03:31 +0000)]
Merge "Add some scripts for verifing the K8s environment"

5 years agoAdd some scripts for verifing the K8s environment 69/469/1
Jingzhao [Thu, 14 Mar 2019 02:49:33 +0000 (10:49 +0800)]
Add some scripts for verifing the K8s environment

Some scripts was added for checking the k8s running status.
1. Add a check_k8s_status function in startup.sh for checking
   the k8s status.
2. Modify the path of scripts for adapting new file organization

Change-Id: Icefd72b7f762fe9ccd223d4b34aac7cc97b4a234
Signed-off-by: Jingzhao <Jingzhao.Ni@arm.com>
5 years agoOpenstack Heat templates for IEC deployment 11/411/13
Ciprian Barbu [Thu, 21 Feb 2019 17:27:18 +0000 (19:27 +0200)]
Openstack Heat templates for IEC deployment

Change-Id: Iadec664b9108639c8e62c4af41a8bf4aff80e305
Signed-off-by: Ciprian Barbu <ciprian.barbu@enea.com>
5 years agoAdd Extra Flags to Kubelet to enable extra feature 64/464/1
trevortao [Wed, 13 Mar 2019 03:35:41 +0000 (11:35 +0800)]
Add Extra Flags to Kubelet to enable extra feature

Add the following extra flags to 10-kubeadm.conf for Kubelet
to start correctly and support hugepage requirement by SEBA
and other pods

--fail-swap-on=false
--feature-gates HugePages=false

Change-Id: I9e3084cd8b47d3d1b74165782340521c48acfad6
Signed-off-by: trevortao <trevor.tao@arm.com>
5 years agoMerge "Re-org the IEC repo to adapt to actual deployment"
Jingzhao Ni [Fri, 8 Mar 2019 01:52:37 +0000 (01:52 +0000)]
Merge "Re-org the IEC repo to adapt to actual deployment"

5 years agoMerge "Add docs structure"
Cristina Pauna [Thu, 7 Mar 2019 10:46:23 +0000 (10:46 +0000)]
Merge "Add docs structure"

5 years agoRe-org the IEC repo to adapt to actual deployment 53/453/1
trevortao [Thu, 7 Mar 2019 07:56:53 +0000 (15:56 +0800)]
Re-org the IEC repo to adapt to actual deployment

1. Setup a src folder to include all src files
for IEC;
2. Move installation scripts to src/foundation
sub-folder;
3. Add use_cases sub-folder for all possible
IEC use cases;
4. Add SEBA-on-arm as one of the IEC use cases;
other use cases could be added in the future;
5. Add doc/ folder to contain docs for IEC;
other folders could be added in the iec/ root
folder in the future;
6. Add a README file for SEBA-on-arm use case,
please see it for the structure of the
seba_on_arm/ folder;

Change-Id: Ie0fc876e91188c0611dcab953f7ba27f1f353530
Signed-off-by: trevortao <trevor.tao@arm.com>
5 years agoMerge "calico: Align IPv4 pool CIDR with k8s_master"
Ciprian Barbu [Wed, 6 Mar 2019 14:12:01 +0000 (14:12 +0000)]
Merge "calico: Align IPv4 pool CIDR with k8s_master"

5 years agoAdd docs structure 31/431/3
Cristina Pauna [Mon, 4 Mar 2019 16:26:28 +0000 (18:26 +0200)]
Add docs structure

Added docs templates according to
https://wiki.akraino.org/display/AK/Documentation+Sub-committee
Added tox config so we can build the docs.

To buil them locally:
iec$ tox -edocs

You can then visualize the result in a web browser:
docs/_build/html/index.html

Change-Id: I74ee9a14089ecce3174da6f28dd316d9d7afabe2
Signed-off-by: Cristina Pauna <cristina.pauna@enea.com>
5 years agohelm: Add tiller service account 29/429/2
Alexandru Avadanii [Thu, 28 Feb 2019 20:07:12 +0000 (21:07 +0100)]
helm: Add tiller service account

Initialize tiller service account with cluster-admin role [1].
While at it, use multiarch tiller image from [2], as recommended
in [3], at least until upstream gcr.io repo gets proper multiarch
support.

[1] https://helm.sh/docs/using_helm/#role-based-access-control
[2] https://github.com/jessestuart/tiller-multiarch
[3] https://github.com/helm/helm/issues/3269

Change-Id: I3719b648de0cbec9fc8802c74763c45233a04861
Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
5 years agocalico: Align IPv4 pool CIDR with k8s_master 27/427/1
Alexandru Avadanii [Thu, 28 Feb 2019 16:32:50 +0000 (17:32 +0100)]
calico: Align IPv4 pool CIDR with k8s_master

When a non-default pod-network-cidr is used for `kubeadm init`, the
same CIDR should be used by Calico in CALICO_IPV4POOL_CIDR.
Otherwise we will run into issues like those described in [1].

[1] https://github.com/projectcalico/calico/issues/683

Change-Id: Ifc5cd2847f12e85b23716d4b279fd635988132ef
Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
5 years agoMerge "setup-cni: Fix typo, allow absolute exec"
Alexandru Avadanii [Tue, 26 Feb 2019 13:31:05 +0000 (13:31 +0000)]
Merge "setup-cni: Fix typo, allow absolute exec"

5 years agoMerge "Add LICENSE, .gitignore file"
Alexandru Avadanii [Fri, 22 Feb 2019 14:26:33 +0000 (14:26 +0000)]
Merge "Add LICENSE, .gitignore file"

5 years agosetup-cni: Fix typo, allow absolute exec 12/412/1
Alexandru Avadanii [Fri, 22 Feb 2019 14:23:10 +0000 (15:23 +0100)]
setup-cni: Fix typo, allow absolute exec

The `setup-cni.sh` script should be able to run with a different
current working directory, so use absolute paths where appropiate.

Change-Id: Ic19cbe0c8d1098f8c4a0f547ceeeed442182d28d
Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>