summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHuang Haibin <haibin.huang@intel.com>2018-10-17 19:19:45 +0800
committerHuang Haibin <haibin.huang@intel.com>2018-10-17 19:19:45 +0800
commitc84dd3502631ef29f2849d3f252311ed3bb30c68 (patch)
tree91045e432372617ec4811b3694c77eb67d66b1ee
parent2ecaac4a52f9fdbe0fef7e27062f2f2e444afb1f (diff)
Add license for ocata plugin
Change-Id: I1d0a4ab6ad42bab238036dee6a8a224d378a9519 Issue-ID: MULTICLOUD-384 Signed-off-by: Huang Haibin <haibin.huang@intel.com>
-rw-r--r--ocata/.gitignore14
-rw-r--r--ocata/docker/Dockerfile14
-rwxr-xr-xocata/docker/build_image.sh14
-rw-r--r--ocata/ocata/pub/config/log.yml14
-rw-r--r--ocata/requirements.txt14
-rw-r--r--ocata/tox.ini14
-rw-r--r--ocata/vagrant/Vagrantfile14
-rw-r--r--ocata/vagrant/bootstrap.sh13
-rw-r--r--ocata/vagrant/compute.conf14
-rw-r--r--ocata/vagrant/control.conf14
-rw-r--r--ocata/vagrant/create_vm.sh13
-rw-r--r--ocata/vagrant/setup_cell.sh14
-rw-r--r--ocata/vagrant/setup_compute.sh13
-rw-r--r--ocata/vagrant/setup_control.sh13
-rw-r--r--ocata/vagrant/test/Dockerfile14
-rw-r--r--ocata/vagrant/test/test-compute.sh14
-rw-r--r--ocata/vagrant/test/test-extensions.sh14
-rw-r--r--ocata/vagrant/test/test-identity.sh14
-rw-r--r--ocata/vagrant/test/test-image.sh14
-rw-r--r--ocata/vagrant/test/test-network.sh14
-rw-r--r--ocata/vagrant/test/test-orchestration.sh14
-rw-r--r--ocata/vagrant/test/test_multicloud.sh14
-rw-r--r--ocata/vagrant/test/tests14
23 files changed, 318 insertions, 0 deletions
diff --git a/ocata/.gitignore b/ocata/.gitignore
index 06570027..c3bfb454 100644
--- a/ocata/.gitignore
+++ b/ocata/.gitignore
@@ -1,3 +1,17 @@
+# Copyright (c) 2018 Intel Corporation.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
.project
.classpath
.settings/
diff --git a/ocata/docker/Dockerfile b/ocata/docker/Dockerfile
index 97bbc7ba..df993078 100644
--- a/ocata/docker/Dockerfile
+++ b/ocata/docker/Dockerfile
@@ -1,3 +1,17 @@
+# Copyright (c) 2018 Intel Corporation.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
FROM python:2.7
ARG HTTP_PROXY=${HTTP_PROXY}
diff --git a/ocata/docker/build_image.sh b/ocata/docker/build_image.sh
index 68f4e8a6..5a1aa778 100755
--- a/ocata/docker/build_image.sh
+++ b/ocata/docker/build_image.sh
@@ -1,4 +1,18 @@
#!/bin/bash
+# Copyright (c) 2018 Intel Corporation.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
DIRNAME=`dirname $0`
DOCKER_BUILD_DIR=`cd $DIRNAME/; pwd`
echo "DOCKER_BUILD_DIR=${DOCKER_BUILD_DIR}"
diff --git a/ocata/ocata/pub/config/log.yml b/ocata/ocata/pub/config/log.yml
index 31954377..811eabea 100644
--- a/ocata/ocata/pub/config/log.yml
+++ b/ocata/ocata/pub/config/log.yml
@@ -1,3 +1,17 @@
+# Copyright (c) 2018 Intel Corporation.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
version: 1
disable_existing_loggers: False
diff --git a/ocata/requirements.txt b/ocata/requirements.txt
index 260e1bad..825ad845 100644
--- a/ocata/requirements.txt
+++ b/ocata/requirements.txt
@@ -1,3 +1,17 @@
+# Copyright (c) 2018 Intel Corporation.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
# rest framework
Django==1.9.6
djangorestframework==3.3.3
diff --git a/ocata/tox.ini b/ocata/tox.ini
index 2fb81e7f..9cd8dd4a 100644
--- a/ocata/tox.ini
+++ b/ocata/tox.ini
@@ -1,3 +1,17 @@
+# Copyright (c) 2018 Intel Corporation.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
[tox]
envlist = py27,cov
skipsdist = true
diff --git a/ocata/vagrant/Vagrantfile b/ocata/vagrant/Vagrantfile
index e42522e4..df8b605e 100644
--- a/ocata/vagrant/Vagrantfile
+++ b/ocata/vagrant/Vagrantfile
@@ -1,3 +1,17 @@
+# Copyright (c) 2018 Intel Corporation.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
$num_compute_nodes = 1
diff --git a/ocata/vagrant/bootstrap.sh b/ocata/vagrant/bootstrap.sh
index 8bbd7dd6..a0893f6c 100644
--- a/ocata/vagrant/bootstrap.sh
+++ b/ocata/vagrant/bootstrap.sh
@@ -1,4 +1,17 @@
#!/bin/bash
+# Copyright (c) 2018 Intel Corporation.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
set -ex
diff --git a/ocata/vagrant/compute.conf b/ocata/vagrant/compute.conf
index 25019407..30dd69f0 100644
--- a/ocata/vagrant/compute.conf
+++ b/ocata/vagrant/compute.conf
@@ -1,3 +1,17 @@
+# Copyright (c) 2018 Intel Corporation.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
[[local|localrc]]
SCREEN_LOGDIR=/opt/stack/log
LOGFILE=stack.sh.log
diff --git a/ocata/vagrant/control.conf b/ocata/vagrant/control.conf
index c82a1573..3056acad 100644
--- a/ocata/vagrant/control.conf
+++ b/ocata/vagrant/control.conf
@@ -1,3 +1,17 @@
+# Copyright (c) 2018 Intel Corporation.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
[[local|localrc]]
SCREEN_LOGDIR=/opt/stack/log
LOGFILE=stack.sh.log
diff --git a/ocata/vagrant/create_vm.sh b/ocata/vagrant/create_vm.sh
index 6597ae45..42e55bee 100644
--- a/ocata/vagrant/create_vm.sh
+++ b/ocata/vagrant/create_vm.sh
@@ -1,4 +1,17 @@
#!/bin/bash
+# Copyright (c) 2018 Intel Corporation.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
source ~/devstack/openrc admin admin
netid=$(openstack network list --name private -f value | cut -f1 -d' ')
diff --git a/ocata/vagrant/setup_cell.sh b/ocata/vagrant/setup_cell.sh
index 44265016..61679fe1 100644
--- a/ocata/vagrant/setup_cell.sh
+++ b/ocata/vagrant/setup_cell.sh
@@ -1,4 +1,18 @@
#!/bin/bash
+# Copyright (c) 2018 Intel Corporation.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
set -ex
source ~/devstack/openrc admin admin
diff --git a/ocata/vagrant/setup_compute.sh b/ocata/vagrant/setup_compute.sh
index 3f503531..a1898738 100644
--- a/ocata/vagrant/setup_compute.sh
+++ b/ocata/vagrant/setup_compute.sh
@@ -1,4 +1,17 @@
#!/bin/bash
+# Copyright (c) 2018 Intel Corporation.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
set -ex
diff --git a/ocata/vagrant/setup_control.sh b/ocata/vagrant/setup_control.sh
index 15cf2c79..a4f9bed0 100644
--- a/ocata/vagrant/setup_control.sh
+++ b/ocata/vagrant/setup_control.sh
@@ -1,4 +1,17 @@
#!/bin/bash
+# Copyright (c) 2018 Intel Corporation.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
set -ex
diff --git a/ocata/vagrant/test/Dockerfile b/ocata/vagrant/test/Dockerfile
index bc306c7a..10e17cae 100644
--- a/ocata/vagrant/test/Dockerfile
+++ b/ocata/vagrant/test/Dockerfile
@@ -1,3 +1,17 @@
+# Copyright (c) 2018 Intel Corporation.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
FROM python:2
ENV MSB_ADDR "127.0.0.1"
diff --git a/ocata/vagrant/test/test-compute.sh b/ocata/vagrant/test/test-compute.sh
index 0c0fce1a..414815e0 100644
--- a/ocata/vagrant/test/test-compute.sh
+++ b/ocata/vagrant/test/test-compute.sh
@@ -1,4 +1,18 @@
#!/bin/bash
+# Copyright (c) 2018 Intel Corporation.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
set -ex
MULTICLOUD_PLUGIN_ENDPOINT=http://172.16.77.40:9006/api/multicloud-ocata/v0/openstack-hudson-dc_RegionOne
diff --git a/ocata/vagrant/test/test-extensions.sh b/ocata/vagrant/test/test-extensions.sh
index 305a5a39..c39777fe 100644
--- a/ocata/vagrant/test/test-extensions.sh
+++ b/ocata/vagrant/test/test-extensions.sh
@@ -1,4 +1,18 @@
#!/bin/bash
+# Copyright (c) 2018 Intel Corporation.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
set -ex
MULTICLOUD_PLUGIN_ENDPOINT=http://172.16.77.40:9006/api/multicloud-ocata/v0/openstack-hudson-dc_RegionOne
diff --git a/ocata/vagrant/test/test-identity.sh b/ocata/vagrant/test/test-identity.sh
index 6adb8822..b437ab7e 100644
--- a/ocata/vagrant/test/test-identity.sh
+++ b/ocata/vagrant/test/test-identity.sh
@@ -1,4 +1,18 @@
#!/bin/bash
+# Copyright (c) 2018 Intel Corporation.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
set -ex
MULTICLOUD_PLUGIN_ENDPOINT=http://172.16.77.40:9006/api/multicloud-ocata/v0/openstack-hudson-dc_RegionOne
diff --git a/ocata/vagrant/test/test-image.sh b/ocata/vagrant/test/test-image.sh
index 4b977938..6296d2cc 100644
--- a/ocata/vagrant/test/test-image.sh
+++ b/ocata/vagrant/test/test-image.sh
@@ -1,4 +1,18 @@
#!/bin/bash
+# Copyright (c) 2018 Intel Corporation.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
set -ex
MULTICLOUD_PLUGIN_ENDPOINT=http://172.16.77.40:9006/api/multicloud-ocata/v0/openstack-hudson-dc_RegionOne
diff --git a/ocata/vagrant/test/test-network.sh b/ocata/vagrant/test/test-network.sh
index 8b822164..813ea294 100644
--- a/ocata/vagrant/test/test-network.sh
+++ b/ocata/vagrant/test/test-network.sh
@@ -1,4 +1,18 @@
#!/bin/bash
+# Copyright (c) 2018 Intel Corporation.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
set -ex
MULTICLOUD_PLUGIN_ENDPOINT=http://172.16.77.40:9006/api/multicloud-ocata/v0/openstack-hudson-dc_RegionOne
diff --git a/ocata/vagrant/test/test-orchestration.sh b/ocata/vagrant/test/test-orchestration.sh
index 239d3a6b..19ee05a6 100644
--- a/ocata/vagrant/test/test-orchestration.sh
+++ b/ocata/vagrant/test/test-orchestration.sh
@@ -1,4 +1,18 @@
#!/bin/bash
+# Copyright (c) 2018 Intel Corporation.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
set -ex
MULTICLOUD_PLUGIN_ENDPOINT=http://172.16.77.40:9006/api/multicloud-ocata/v0/openstack-hudson-dc_RegionOne
diff --git a/ocata/vagrant/test/test_multicloud.sh b/ocata/vagrant/test/test_multicloud.sh
index 0f4a655a..f709f3b4 100644
--- a/ocata/vagrant/test/test_multicloud.sh
+++ b/ocata/vagrant/test/test_multicloud.sh
@@ -1,4 +1,18 @@
#!/bin/bash
+# Copyright (c) 2018 Intel Corporation.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
set -ex
sudo apt-get update -y
diff --git a/ocata/vagrant/test/tests b/ocata/vagrant/test/tests
index 276fcd6f..33fa07da 100644
--- a/ocata/vagrant/test/tests
+++ b/ocata/vagrant/test/tests
@@ -1,3 +1,17 @@
+# Copyright (c) 2018 Intel Corporation.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
test-extensions.sh
test-identity.sh
test-compute.sh