Skip to content
This repository was archived by the owner on Jan 24, 2023. It is now read-only.

Commit ad7b9ba

Browse files
authored
Merge pull request #129 from smart-edge-open/smart-edge-open-release-2109
Smart Edge Open 21.09 release
2 parents 1878cfc + c3557af commit ad7b9ba

File tree

38 files changed

+318
-518
lines changed

38 files changed

+318
-518
lines changed

Pipfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@ verify_ssl = true
77
name = "pypi"
88

99
[packages]
10-
ansible = "==2.9.18"
10+
ansible = "==2.9.20"
1111
ansible-lint = "==4.2.0"
1212
jinja2 = "==2.11.3"
1313
pylint = "==2.7.2"
1414
netaddr = "==0.7.18"
1515
sh = "==1.14.1"
1616
# Force 3.2 due to security vulnabilities in 3.4.6
17-
cryptography = "==3.2"
17+
cryptography = "==3.3.2"
1818

1919
[requires]
2020
python_version = "3.6"

Pipfile.lock

Lines changed: 196 additions & 195 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ SPDX-License-Identifier: Apache-2.0
33
Copyright (c) 2019 Intel Corporation
44
```
55

6-
For documentation please refer to https://github.com/open-ness/specs/blob/master/doc/getting-started/converged-edge-experience-kits.md
6+
For documentation please refer to https://github.com/smart-edge-open/specs/blob/master/doc/getting-started/converged-edge-experience-kits.md

cloud/README.md

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,9 @@ SPDX-License-Identifier: Apache-2.0
33
Copyright (c) 2020 Intel Corporation
44
```
55

6-
![OpenNESS](https://www.openness.org/images/openness-logo.png)
6+
# Smart Edge Open Devkit for Azure
77

8-
# OpenNESS Devkit for Azure
9-
10-
This is an Azure Resource Manager template to deploy OpenNESS within Azure.
8+
This is an Azure Resource Manager template to deploy Smart Edge Open within Azure.
119

1210
## Requirements
1311

@@ -37,7 +35,7 @@ The following fields **must** be populated within the Azure portal:
3735
3836
> NOTE: The Deploy to Azure button may only work when clicked within Github web interface
3937
40-
[![Deploy To Azure](https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/1-CONTRIBUTION-GUIDE/images/deploytoazure.svg?sanitize=true)](https://portal.azure.com/#create/Microsoft.Template/uri/https%3A%2F%2Fraw.githubusercontent.com%2Fopen-ness%2Fconverged-edge-experience-kits%2Fmaster%2Fcloud%2Fazuredeploy.json)
38+
[![Deploy To Azure](https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/1-CONTRIBUTION-GUIDE/images/deploytoazure.svg?sanitize=true)](https://portal.azure.com/#create/Microsoft.Template/uri/https%3A%2F%2Fraw.githubusercontent.com%2Fsmart-edge-open%2Fconverged-edge-experience-kits%2Fmaster%2Fcloud%2Fazuredeploy.json)
4139

4240
## Post Deployment
4341

@@ -47,9 +45,9 @@ After deployment completes, the Azure Deployment resource will have Outputs with
4745

4846
The "result" field will include access instructions for the deployed cluster, as well as the Ansible _Play Recap_.
4947

50-
> NOTE: If the recap includes a failure count other than `failed=0` then the OpenNESS installation failed.
48+
> NOTE: If the recap includes a failure count other than `failed=0` then the Smart Edge Open installation failed.
5149
52-
The OpenNESS installation log and the Ansible inventory file will be available on the Controller Node in `~/openness-install.log` and `~/inventory.yml` within the user specified non-root user account (e.g. `ceekuser`).
50+
The Smart Edge Open installation log and the Ansible inventory file will be available on the Controller Node in `~/smartEdgeOpen-install.log` and `~/inventory.yml` within the user specified non-root user account (e.g. `ceekuser`).
5351

5452
The public IP addresses for the nodes can be queried with this script, your local `bash` shell with the presence of [Azure CLI](https://docs.microsoft.com/en-us/cli/azure/install-azure-cli) or an [Azure Cloud Shell](https://docs.microsoft.com/en-us/azure/cloud-shell/overview). You will need to manually confirm you have an active Azure token, the easist method is by manually running `az login` prior to execution:
5553

@@ -66,6 +64,6 @@ az vmss list-instance-public-ips -n "$vmssName" -g "$resourceGroupName" --query
6664

6765
You can now proceed to onboarding applications to your Devkit environment.
6866

69-
If you are looking to integrate your own application with OpenNESS please start at our [Network Edge Applications Onboarding](https://www.openness.org/docs/doc/applications-onboard/network-edge-applications-onboarding) guide.
67+
If you are looking to integrate your own application with Smart Edge Open please start at our [Network Edge Applications Onboarding](https://www.openness.org/docs/doc/applications-onboard/network-edge-applications-onboarding) guide.
7068

71-
You can find OpenNESS existing integrated apps within our [edgeapps repo](https://github.com/open-ness/edgeapps) and our [Commercial Edge Applications portal](https://networkbuilders.intel.com/commercial-applications), or you can [participate and have your apps featured](https://networkbuilders.intel.com/commercial-applications/participate).
69+
You can find Smart Edge Open existing integrated apps within our [edgeapps repo](https://github.com/smart-edge-open/edgeapps) and our [Commercial Edge Applications portal](https://networkbuilders.intel.com/commercial-applications), or you can [participate and have your apps featured](https://networkbuilders.intel.com/commercial-applications/participate).

cloud/azuredeploy.json

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
33
"contentVersion": "1.0.0.0",
44
"parameters": {
5-
"opennessRepository": {
5+
"smartEdgeOpenRepository": {
66
"type": "string",
7-
"defaultValue": "https://github.com/open-ness/converged-edge-experience-kits",
7+
"defaultValue": "https://github.com/smart-edge-open/converged-edge-experience-kits",
88
"allowedValues": [
9-
"https://github.com/open-ness/converged-edge-experience-kits"
9+
"https://github.com/smart-edge-open/converged-edge-experience-kits"
1010
],
1111
"metadata": {
12-
"description": "(Required) OpenNESS experience kit repository url"
12+
"description": "(Required) Smart Edge Open experience kit repository url"
1313
}
1414
},
1515
"flavor": {
@@ -20,7 +20,7 @@
2020
"central_orchestrator"
2121
],
2222
"metadata": {
23-
"description": "(Required) OpenNESS experience kit flavor (must include kernel_skip=true)"
23+
"description": "(Required) Smart Edge Open experience kit flavor (must include kernel_skip=true)"
2424
}
2525
},
2626
"sshIdentity": {
@@ -93,7 +93,7 @@
9393
},
9494
"variables": {
9595
"vmDomainName": "[concat('ceek-', uniqueString(resourceGroup().id, deployment().name))]",
96-
"identityName": "[concat('deployOpenNESS-', uniqueString(resourceGroup().id, deployment().name))]",
96+
"identityName": "[concat('deploySmartEdgeOpen-', uniqueString(resourceGroup().id, deployment().name))]",
9797
"roleDefinitionId": "[concat('/subscriptions/', subscription().subscriptionId, '/providers/Microsoft.Authorization/roleDefinitions/', 'b24988ac-6180-42a0-ab88-20f7382dd24c')]",
9898
"roleDefinitionName": "[guid(variables('identityName'), variables('roleDefinitionId'))]"
9999
},
@@ -134,7 +134,7 @@
134134
{
135135
"type": "Microsoft.Resources/deploymentScripts",
136136
"apiVersion": "2019-10-01-preview",
137-
"name": "setupOpenNESS",
137+
"name": "setupSmartEdgeOpen",
138138
"location": "[resourceGroup().location]",
139139
"dependsOn": [
140140
"[variables('roleDefinitionName')]"
@@ -150,7 +150,7 @@
150150
"environmentVariables": [
151151
{
152152
"name": "GIT_REPO",
153-
"value": "[parameters('opennessRepository')]"
153+
"value": "[parameters('smartEdgeOpenRepository')]"
154154
},
155155
{
156156
"name": "GIT_TOKEN",
@@ -210,10 +210,10 @@
210210
}
211211
],
212212
"azCliVersion": "2.9.1",
213-
"scriptContent": "set -xe; pip install --upgrade pip > /dev/null; pip install ansible==2.9.18 > /dev/null; pip install sh==1.12.14 > /dev/null; pip install netaddr==0.8.0 > /dev/null; pip install PyYAML==5.4 > /dev/null; az login --identity -u \"${AZ_SCRIPTS_USER_ASSIGNED_IDENTITY}\"; az vmss create --resource-group=\"${AZ_RESOURCE_GROUP}\" --name=\"${AZ_VMSS}\" --image=\"${AZ_VM_IMAGE}\" --vm-sku=\"${AZ_VM_FLAVOR}\" --os-disk-size-gb=\"${AZ_VM_DISK_SIZE}\" --instance-count=\"${AZ_VM_COUNT}\" --public-ip-per-vm --generate-ssh-keys --vm-domain-name=\"${AZ_VMDOMAIN}\" --admin-username=\"${AZ_VM_USERNAME}\" --load-balancer=\"\" --disable-overprovision;cd /root; cp ${AZ_SCRIPTS_PATH_INPUT_DIRECTORY}/install.sh .; cp ${AZ_SCRIPTS_PATH_INPUT_DIRECTORY}/ceek_setup.py .; ./install.sh 2>&1| tee install.log $AZ_SCRIPTS_PATH_OUTPUT_DIRECTORY/install.log; cp ~/ceek/inventory.yml $AZ_SCRIPTS_PATH_OUTPUT_DIRECTORY; SUMMARY=`tail -6 /root/install.log | sed 's/[*]//g'` ; IP=`awk '/controller/{getline; match($0,/[0-9]+\\.[0-9]+\\.[0-9]+\\.[0-9]+/); ip = substr($0,RSTART,RLENGTH); printf \"%s\" ip}' $AZ_SCRIPTS_PATH_OUTPUT_DIRECTORY/inventory.yml` ; scp /root/install.log $AZ_VM_USERNAME@$IP:~/openness-install.log ; scp ~/ceek/inventory.yml $AZ_VM_USERNAME@$IP:inventory.yml; echo -e \"Access Controller Node: ssh $AZ_VM_USERNAME@$IP\\nInteract with Kubernetes using 'kubectl' as root user\\n$SUMMARY \" | jq -Rs '{Result: split(\"\n\")}' > $AZ_SCRIPTS_OUTPUT_PATH ",
213+
"scriptContent": "set -xe; pip install --upgrade pip > /dev/null; pip install ansible==2.9.18 > /dev/null; pip install sh==1.12.14 > /dev/null; pip install netaddr==0.8.0 > /dev/null; pip install PyYAML==5.4 > /dev/null; az login --identity -u \"${AZ_SCRIPTS_USER_ASSIGNED_IDENTITY}\"; az vmss create --resource-group=\"${AZ_RESOURCE_GROUP}\" --name=\"${AZ_VMSS}\" --image=\"${AZ_VM_IMAGE}\" --vm-sku=\"${AZ_VM_FLAVOR}\" --os-disk-size-gb=\"${AZ_VM_DISK_SIZE}\" --instance-count=\"${AZ_VM_COUNT}\" --public-ip-per-vm --generate-ssh-keys --vm-domain-name=\"${AZ_VMDOMAIN}\" --admin-username=\"${AZ_VM_USERNAME}\" --load-balancer=\"\" --disable-overprovision;cd /root; cp ${AZ_SCRIPTS_PATH_INPUT_DIRECTORY}/install.sh .; cp ${AZ_SCRIPTS_PATH_INPUT_DIRECTORY}/ceek_setup.py .; ./install.sh 2>&1| tee install.log $AZ_SCRIPTS_PATH_OUTPUT_DIRECTORY/install.log; cp ~/ceek/inventory.yml $AZ_SCRIPTS_PATH_OUTPUT_DIRECTORY; SUMMARY=`tail -6 /root/install.log | sed 's/[*]//g'` ; IP=`awk '/controller/{getline; match($0,/[0-9]+\\.[0-9]+\\.[0-9]+\\.[0-9]+/); ip = substr($0,RSTART,RLENGTH); printf \"%s\" ip}' $AZ_SCRIPTS_PATH_OUTPUT_DIRECTORY/inventory.yml` ; scp /root/install.log $AZ_VM_USERNAME@$IP:~/smartEdgeOpen-install.log ; scp ~/ceek/inventory.yml $AZ_VM_USERNAME@$IP:inventory.yml; echo -e \"Access Controller Node: ssh $AZ_VM_USERNAME@$IP\\nInteract with Kubernetes using 'kubectl' as root user\\n$SUMMARY \" | jq -Rs '{Result: split(\"\n\")}' > $AZ_SCRIPTS_OUTPUT_PATH ",
214214
"supportingScriptUris": [
215-
"https://raw.githubusercontent.com/open-ness/converged-edge-experience-kits/master/cloud/install.sh",
216-
"https://raw.githubusercontent.com/open-ness/converged-edge-experience-kits/master/cloud/ceek_setup.py"
215+
"https://raw.githubusercontent.com/smart-edge-open/converged-edge-experience-kits/master/cloud/install.sh",
216+
"https://raw.githubusercontent.com/smart-edge-open/converged-edge-experience-kits/master/cloud/ceek_setup.py"
217217
],
218218
"cleanupPreference": "OnSuccess",
219219
"retentionInterval": "PT26H",
@@ -224,7 +224,7 @@
224224
"outputs": {
225225
"result": {
226226
"type": "object",
227-
"value": "[reference('setupOpenNESS').outputs]"
227+
"value": "[reference('setupSmartEdgeOpen').outputs]"
228228
},
229229
"VMUserName": {
230230
"type": "string",

cloud/ceek_setup.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ def make_parser():
2626

2727
parser.add_argument(
2828
"-r", "--repo", action="store", metavar="GIT_REPO", dest="git_repo",
29-
default="https://github.com/open-ness/converged-edge-experience-kits",
30-
help="OpenNESS converged edge experience kit repository")
29+
default="https://github.com/smart-edge-open/converged-edge-experience-kits",
30+
help="Smart Edge Open converged edge experience kit repository")
3131
parser.add_argument(
3232
"-t", "--token", action="store", metavar="GIT_TOKEN", dest="git_token",
3333
default="",
@@ -42,13 +42,13 @@ def make_parser():
4242
help="Username used by ansible automation scripts")
4343
parser.add_argument(
4444
"-o", "--ceek-vars", action="store", metavar="CEEK_VARS", dest="ceek_vars",
45-
help="Extra OpenNESS experience kit variables to override the defaults")
45+
help="Extra Smart Edge Open experience kit variables to override the defaults")
4646
parser.add_argument(
4747
"-f", "--flavor", action="store", metavar="CEEK_FLAVOR", dest="ceek_flavor",
48-
help="OpenNESS experience kit flavor")
48+
help="Smart Edge Open experience kit flavor")
4949
parser.add_argument(
5050
"-l", "--limits", action="store", metavar="ANSIBLE_LIMITS", dest="ansible_limits",
51-
help="OpenNESS experience kit ansible limits")
51+
help="Smart Edge Open experience kit ansible limits")
5252

5353
parser.add_argument(
5454
"-v", "--verbosity", action="store", metavar="LEVEL", dest="verbosity", default="INFO",
@@ -64,7 +64,7 @@ def make_parser():
6464

6565
def setup_logger(options):
6666
"""Configure Python logging module"""
67-
log_fmt = "OpenNESS Setup: [%(levelname)s] %(module)s(%(lineno)d): %(message)s"
67+
log_fmt = "Smart Edge Open Setup: [%(levelname)s] %(module)s(%(lineno)d): %(message)s"
6868
ts_fmt = "%Y-%m-%dT%H:%M:%S"
6969

7070
handler = logging.StreamHandler()

deploy.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,14 +198,16 @@ def run_deployment(inventory, cleanup=False):
198198
inventory.flavor,
199199
inventory.cluster_name,
200200
playbook_basename)
201-
log_file = open(deployment_log_file_path, "a+")
201+
# pylint disable because log_file is a long living object.
202+
log_file = open(deployment_log_file_path, "a+") # pylint: disable=bad-option-value,consider-using-with
202203

203204
logging.info('%s %s: command: "%s"',
204205
inventory.cluster_name, playbook_basename, ansible_playbook_command)
205206
logging.info('%s %s: log file: "%s"',
206207
inventory.cluster_name, playbook_basename, os.path.realpath(log_file.name))
207208

208-
deployment_process = subprocess.Popen(ansible_playbook_command.split(),
209+
# pylint disable because deployment_process is a long living object.
210+
deployment_process = subprocess.Popen(ansible_playbook_command.split(), # pylint: disable=bad-option-value,consider-using-with
209211
stdout=log_file, stderr=subprocess.STDOUT)
210212

211213
return DeploymentWrapper(process=deployment_process,

inventory/default/group_vars/all/10-default.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
### GitHub token
1414
# It must be provided when using private repositories.
15-
# Not required when using github.com/open-ness repositories.
15+
# Not required when using github.com/smart-edge-open repositories.
1616
# How to create a GitHub token: https://help.github.com/en/github/authenticating-to-github/creating-a-personal-access-token-for-the-command-line
1717
git_repo_token: ""
1818

@@ -41,7 +41,7 @@ os_remove_yum_plugins: true
4141

4242
### OpenNESS Git Repository
4343
# Following variable specify branch/SHA/tag to be checked out for the source repository
44-
git_repo_branch: openness-21.03.05
44+
git_repo_branch: smart-edge-open-21.09
4545

4646
# If True, the repository will be deleted and cloned again
4747
# If False, repository will be left as it is and any changes won't be overwritten.

inventory/default/group_vars/controller_group/10-default.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ os_yum_base_packages:
8585
## URLs to docker images saved with `docker save <image>:<ver> | gzip > <image>.tar.gz` that are going to be preloaded after docker setup
8686
docker_images: []
8787

88-
git_repo_url: https://{{ git_repo_token }}@github.com/open-ness/edgeservices.git
88+
git_repo_url: https://{{ git_repo_token }}@github.com/smart-edge-open/edgeservices.git
8989
_git_repo_dest: "{{ openness_dir }}/edgeservices"
9090

9191
## Network Edge Helm Charts Storage Default Directory

inventory/default/group_vars/edgenode_group/10-default.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,5 +88,5 @@ _os_yum_exclude_rpm_packages: "exclude=kernel-3* kernel-rt* kernel-rt-kvm* kerne
8888
# URLs to docker images saved with `docker save <image>:<ver> | gzip > <image>.tar.gz` that are going to be preloaded after docker setup
8989
docker_images: []
9090

91-
git_repo_url: https://{{ git_repo_token }}@github.com/open-ness/edgeservices.git
91+
git_repo_url: https://{{ git_repo_token }}@github.com/smart-edge-open/edgeservices.git
9292
_git_repo_dest: "{{ openness_dir }}/edgeservices"

0 commit comments

Comments
 (0)