Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Verifying AWS GGC End-to-End Operation

Connect to the EDGE-K8S-2 cluster (edge_k8s-2 VM):

Code Block
ssh onaplab@10.121.7.146

# Verify that the AWS GGC pod is Running in the default namesopace
kubectl get pods
NAME                        READY   STATUS    RESTARTS   AGE
v1-awsggc-5c84b4ccf-vqn5x   1/1     Running   0          3m34s

# Identify the AWS GGC Docker container:
Last login: Mon Dec 14 20:18:55 on ttys002

The default interactive shell is now zsh.
To update your account to use zsh, please run `chsh -s /bin/zsh`.
For more details, please visit https://support.apple.com/kb/HT208050.
USMC02YD0PPJGH8:onap oberzin$ pwd
/Users/oberzin/onap
USMC02YD0PPJGH8:onap oberzin$ cd ~/workdir/python-test/AzureIoT/
USMC02YD0PPJGH8:AzureIoT oberzin$ ls
5-IoT-Edge-Ansible			Dockerfile				LoRaEdgeSolutionNew			deployment.template.json
5-IoT-Edge-Ansible.zip			DweetTest.py				LoRaServerSubPlot-STM32.py
Colin_test.py				LoRaEdgeSolution			PCEI_AzureIoTEdge_Custom_Module.zip
USMC02YD0PPJGH8:AzureIoT oberzin$ ls -l
total 128
drwxr-xr-x@ 6 oberzin  staff    192 Nov 22  2019 5-IoT-Edge-Ansible
-rw-r--r--@ 1 oberzin  staff   7289 Sep 23 10:46 5-IoT-Edge-Ansible.zip
-rw-r--r--@ 1 oberzin  staff   1434 Jan 30  2019 Colin_test.py
-rw-r--r--@ 1 oberzin  staff     89 Jan 30  2019 Dockerfile
-rw-r--r--  1 oberzin  staff   3700 Jan 28  2019 DweetTest.py
drwxr-xr-x  8 oberzin  staff    256 Nov 15 18:03 LoRaEdgeSolution
drwxr-xr-x  9 oberzin  staff    288 Nov 15 18:12 LoRaEdgeSolutionNew
-rw-r--r--  1 oberzin  staff   4152 Jan 28  2019 LoRaServerSubPlot-STM32.py
-rw-r--r--  1 oberzin  staff  30021 Dec 16 14:53 PCEI_AzureIoTEdge_Custom_Module.zip
-rw-r--r--@ 1 oberzin  staff   2660 Jan 30  2019 deployment.template.json
USMC02YD0PPJGH8:AzureIoT oberzin$ cd LoRaEdgeSolution
USMC02YD0PPJGH8:LoRaEdgeSolution oberzin$ ls -l
total 16
drwxr-xr-x  8 oberzin  staff   256 Nov 15 18:04 AzureIoTLoRa
-rw-r--r--  1 oberzin  staff  1741 Jan  8  2019 deployment.debug.template.json
-rw-r--r--@ 1 oberzin  staff  1741 Jan  8  2019 deployment.template.json
drwxr-xr-x  4 oberzin  staff   128 Jan 31  2019 modules
USMC02YD0PPJGH8:LoRaEdgeSolution oberzin$ ls -al
total 48
drwxr-xr-x   8 oberzin  staff   256 Nov 15 18:03 .
drwxr-xr-x  15 oberzin  staff   480 Dec 16 14:53 ..
-rw-r--r--@  1 oberzin  staff  8196 Nov 15 17:59 .DS_Store
-rw-r--r--   1 oberzin  staff    12 Jan  8  2019 .gitignore
drwxr-xr-x   8 oberzin  staff   256 Nov 15 18:04 AzureIoTLoRa
-rw-r--r--   1 oberzin  staff  1741 Jan  8  2019 deployment.debug.template.json
-rw-r--r--@  1 oberzin  staff  1741 Jan  8  2019 deployment.template.json
drwxr-xr-x   4 oberzin  staff   128 Jan 31  2019 modules
USMC02YD0PPJGH8:LoRaEdgeSolution oberzin$ cd modules/
USMC02YD0PPJGH8:modules oberzin$ ls -al
total 24
drwxr-xr-x   4 oberzin  staff   128 Jan 31  2019 .
drwxr-xr-x   8 oberzin  staff   256 Nov 15 18:03 ..
-rw-r--r--@  1 oberzin  staff  8196 Nov 15 17:59 .DS_Store
drwxr-xr-x  10 oberzin  staff   320 Sep 22 18:11 LoRaEdgeSolution
USMC02YD0PPJGH8:modules oberzin$ cd LoRaEdgeSolution/
USMC02YD0PPJGH8:LoRaEdgeSolution oberzin$ ls -al
total 56
drwxr-xr-x  10 oberzin  staff    320 Sep 22 18:11 .
drwxr-xr-x   4 oberzin  staff    128 Jan 31  2019 ..
-rw-r--r--@  1 oberzin  staff  10244 Nov 15 20:08 .DS_Store
-rw-r--r--   1 oberzin  staff    128 Nov 15 19:11 .env
-rw-r--r--   1 oberzin  staff     12 Jan 11  2019 .gitignore
drwxr-xr-x   3 oberzin  staff     96 Jan 11  2019 .vscode
drwxr-xr-x   4 oberzin  staff    128 Dec 23 13:03 config
-rw-r--r--@  1 oberzin  staff   3298 Dec 23 12:53 deployment.debug.template.json
-rw-r--r--@  1 oberzin  staff   2837 Nov 16 17:05 deployment.template.json
drwxr-xr-x   4 oberzin  staff    128 Nov 15 18:18 modules
USMC02YD0PPJGH8:LoRaEdgeSolution oberzin$ pwd
/Users/oberzin/workdir/python-test/AzureIoT/LoRaEdgeSolution/modules/LoRaEdgeSolution
USMC02YD0PPJGH8:LoRaEdgeSolution oberzin$ cat .env
CONTAINER_REGISTRY_USERNAME_pceiregistry=PCEIREGISTRY
CONTAINER_REGISTRY_PASSWORD_pceiregistry=G0IQAMeqt37CfnMvuO+QaheTzeLbe6Yn
USMC02YD0PPJGH8:LoRaEdgeSolution oberzin$ pwd
/Users/oberzin/workdir/python-test/AzureIoT/LoRaEdgeSolution/modules/LoRaEdgeSolution
USMC02YD0PPJGH8:LoRaEdgeSolution oberzin$ cd config/
USMC02YD0PPJGH8:config oberzin$ ls -l
total 16
-rw-r--r--  1 oberzin  staff  2033 Dec 23 13:03 deployment.amd64.json
-rw-r--r--  1 oberzin  staff  2605 Dec 23 12:53 deployment.debug.amd64.json
USMC02YD0PPJGH8:config oberzin$ ls -al
total 16
drwxr-xr-x   4 oberzin  staff   128 Dec 23 13:03 .
drwxr-xr-x  10 oberzin  staff   320 Sep 22 18:11 ..
-rw-r--r--   1 oberzin  staff  2033 Dec 23 13:03 deployment.amd64.json
-rw-r--r--   1 oberzin  staff  2605 Dec 23 12:53 deployment.debug.amd64.json
USMC02YD0PPJGH8:config oberzin$ cd ..
USMC02YD0PPJGH8:LoRaEdgeSolution oberzin$ 
USMC02YD0PPJGH8:LoRaEdgeSolution oberzin$ 
USMC02YD0PPJGH8:LoRaEdgeSolution oberzin$ ls -al
total 56
drwxr-xr-x  10 oberzin  staff    320 Sep 22 18:11 .
drwxr-xr-x   4 oberzin  staff    128 Jan 31  2019 ..
-rw-r--r--@  1 oberzin  staff  10244 Nov 15 20:08 .DS_Store
-rw-r--r--   1 oberzin  staff    128 Nov 15 19:11 .env
-rw-r--r--   1 oberzin  staff     12 Jan 11  2019 .gitignore
drwxr-xr-x   3 oberzin  staff     96 Jan 11  2019 .vscode
drwxr-xr-x   4 oberzin  staff    128 Dec 23 13:03 config
-rw-r--r--@  1 oberzin  staff   3298 Dec 23 12:53 deployment.debug.template.json
-rw-r--r--@  1 oberzin  staff   2837 Nov 16 17:05 deployment.template.json
drwxr-xr-x   4 oberzin  staff    128 Nov 15 18:18 modules
USMC02YD0PPJGH8:LoRaEdgeSolution oberzin$ pwd
/Users/oberzin/workdir/python-test/AzureIoT/LoRaEdgeSolution/modules/LoRaEdgeSolution
USMC02YD0PPJGH8:LoRaEdgeSolution oberzin$ cd ..
USMC02YD0PPJGH8:modules oberzin$ ls -al
total 24
drwxr-xr-x   4 oberzin  staff   128 Jan 31  2019 .
drwxr-xr-x   8 oberzin  staff   256 Nov 15 18:03 ..
-rw-r--r--@  1 oberzin  staff  8196 Nov 15 17:59 .DS_Store
drwxr-xr-x  10 oberzin  staff   320 Sep 22 18:11 LoRaEdgeSolution
USMC02YD0PPJGH8:modules oberzin$ zip -r LoRaEdgeSolution.zip LoRaEdgeSolution/
  adding: LoRaEdgeSolution/ (stored 0%)
  adding: LoRaEdgeSolution/deployment.template.json (deflated 76%)
  adding: LoRaEdgeSolution/.DS_Store (deflated 87%)
  adding: LoRaEdgeSolution/config/ (stored 0%)
  adding: LoRaEdgeSolution/config/deployment.debug.amd64.json (deflated 72%)
  adding: LoRaEdgeSolution/config/deployment.amd64.json (deflated 69%)
  adding: LoRaEdgeSolution/deployment.debug.template.json (deflated 77%)
  adding: LoRaEdgeSolution/.gitignore (stored 0%)
  adding: LoRaEdgeSolution/.env (deflated 25%)
  adding: LoRaEdgeSolution/.vscode/ (stored 0%)
  adding: LoRaEdgeSolution/.vscode/launch.json (deflated 75%)
  adding: LoRaEdgeSolution/modules/ (stored 0%)
  adding: LoRaEdgeSolution/modules/.DS_Store (deflated 86%)
  adding: LoRaEdgeSolution/modules/LoRaRead/ (stored 0%)
  adding: LoRaEdgeSolution/modules/LoRaRead/Dockerfile.amd64.debug (deflated 40%)
  adding: LoRaEdgeSolution/modules/LoRaRead/Dockerfile.arm32v7 (deflated 39%)
  adding: LoRaEdgeSolution/modules/LoRaRead/requirements.txt (stored 0%)
  adding: LoRaEdgeSolution/modules/LoRaRead/Dockerfile.amd64 (deflated 40%)
  adding: LoRaEdgeSolution/modules/LoRaRead/test.py (deflated 64%)
  adding: LoRaEdgeSolution/modules/LoRaRead/.gitignore (deflated 44%)
  adding: LoRaEdgeSolution/modules/LoRaRead/.env (deflated 23%)
  adding: LoRaEdgeSolution/modules/LoRaRead/module.json (deflated 47%)
  adding: LoRaEdgeSolution/modules/LoRaRead/main.py (deflated 67%)
USMC02YD0PPJGH8:modules oberzin$ ls -al
total 56
drwxr-xr-x   5 oberzin  staff    160 Dec 23 14:38 .
drwxr-xr-x   8 oberzin  staff    256 Nov 15 18:03 ..
-rw-r--r--@  1 oberzin  staff   8196 Nov 15 17:59 .DS_Store
drwxr-xr-x  10 oberzin  staff    320 Sep 22 18:11 LoRaEdgeSolution
-rw-r--r--   1 oberzin  staff  16041 Dec 23 14:38 LoRaEdgeSolution.zip
USMC02YD0PPJGH8:modules oberzin$ 
USMC02YD0PPJGH8:modules oberzin$ 
USMC02YD0PPJGH8:modules oberzin$ 
USMC02YD0PPJGH8:modules oberzin$ pwd
/Users/oberzin/workdir/python-test/AzureIoT/LoRaEdgeSolution/modules
USMC02YD0PPJGH8:modules oberzin$ 
USMC02YD0PPJGH8:modules oberzin$ 
USMC02YD0PPJGH8:modules oberzin$ 
USMC02YD0PPJGH8:modules oberzin$ 
USMC02YD0PPJGH8:modules oberzin$ 
USMC02YD0PPJGH8:modules oberzin$ cd ~/onap/demo/heat/onap4k8s/
USMC02YD0PPJGH8:onap4k8s oberzin$ ls
awsggc					packetgen.tgz				profile1.tgz				sink.tgz
firewall				profile					results.zip
firewall.tgz				profile.tar				sink
middleend-orch-logs-20201110.rtf	profile.tar.gz				sink 2
USMC02YD0PPJGH8:onap4k8s oberzin$ sftp -i ~/onap/pcei-emco onaplab@10.121.7.152
Connected to 10.121.7.152.
sftp> cd .kube
sftp> get config kube-config-edge-k8s-1
Fetching /home/onaplab/.kube/config to kube-config-edge-k8s-1
/home/onaplab/.kube/config                                                                                                                  100% 5520    22.1KB/s   00:00    
sftp> quit
USMC02YD0PPJGH8:onap4k8s oberzin$ 
USMC02YD0PPJGH8:onap4k8s oberzin$ 
USMC02YD0PPJGH8:onap4k8s oberzin$ pwd
/Users/oberzin/onap/demo/heat/onap4k8s
USMC02YD0PPJGH8:onap4k8s oberzin$ ls -l
total 6384
drwxr-xr-x  8 oberzin  staff      256 Nov 24 22:22 awsggc
drwxrwxr-x  7 oberzin  staff      224 Nov 11 22:09 firewall
-rw-r--r--@ 1 oberzin  staff     2252 Nov 10 10:21 firewall.tgz
-rw-r-----  1 oberzin  staff     5520 Dec 24 14:45 kube-config-edge-k8s-1
-rw-r--r--@ 1 oberzin  staff    54285 Nov 10 13:45 middleend-orch-logs-20201110.rtf
-rw-r--r--  1 oberzin  staff     2406 Nov 10 10:21 packetgen.tgz
drwxr-xr-x@ 6 oberzin  staff      192 Nov 11 22:05 profile
-rw-r--r--@ 1 oberzin  staff     1098 Nov  9 22:11 profile.tar
-rw-r--r--  1 oberzin  staff     1098 Nov 10 10:21 profile.tar.gz
-rw-r--r--  1 oberzin  staff     1098 Nov  9 22:11 profile1.tgz
-rw-r--r--  1 oberzin  staff  3128882 Dec 22 18:19 results.zip
drwxrwxr-x  7 oberzin  staff      224 Nov 11 22:07 sink
drwxrwxr-x  7 oberzin  staff      224 Nov 17 17:27 sink 2
-rw-r--r--@ 1 oberzin  staff     1978 Nov 10 10:21 sink.tgz
USMC02YD0PPJGH8:onap4k8s oberzin$ 
USMC02YD0PPJGH8:onap4k8s oberzin$ 
USMC02YD0PPJGH8:onap4k8s oberzin$ 
USMC02YD0PPJGH8:onap4k8s oberzin$ 
USMC02YD0PPJGH8:onap4k8s oberzin$ 
USMC02YD0PPJGH8:onap4k8s oberzin$ 
USMC02YD0PPJGH8:onap4k8s oberzin$ git clone "https://gerrit.akraino.org/r/pcei"
Cloning into 'pcei'...
remote: Total 55 (delta 0), reused 55 (delta 0)
Unpacking objects: 100% (55/55), 28.79 KiB | 685.00 KiB/s, done.
USMC02YD0PPJGH8:onap4k8s oberzin$ cd pcei/
USMC02YD0PPJGH8:pcei oberzin$ cd LoRaEdgeSolution/
USMC02YD0PPJGH8:LoRaEdgeSolution oberzin$ cd ..
USMC02YD0PPJGH8:pcei oberzin$ ls -l
total 0
drwxr-xr-x  8 oberzin  staff  256 Dec 24 15:44 LoRaEdgeSolution
drwxr-xr-x  3 oberzin  staff   96 Dec 24 15:44 iotclient
drwxr-xr-x  5 oberzin  staff  160 Dec 24 15:44 locationAPI
USMC02YD0PPJGH8:pcei oberzin$ 
USMC02YD0PPJGH8:pcei oberzin$ 
USMC02YD0PPJGH8:pcei oberzin$ 
USMC02YD0PPJGH8:pcei oberzin$ 
USMC02YD0PPJGH8:pcei oberzin$ 
USMC02YD0PPJGH8:pcei oberzin$ ssh niceslice@10.125.1.11
niceslice@10.125.1.11's password: 
Last login: Sat Dec 19 17:21:03 2020 from 172.21.8.47
[niceslice@localhost ~]$ 
[niceslice@localhost ~]$ 
[niceslice@localhost ~]$ cd emco
[niceslice@localhost emco]$ 
[niceslice@localhost emco]$ 
[niceslice@localhost emco]$ 
[niceslice@localhost emco]$ history |grep git
  580  sudo wget -O root.ca.pem https://www.websecurity.digicert.com/content/dam/websitesecurity/digitalassets/desktop/pdfs/roots/VeriSign-Class%203-Public-Primary-Certification-Authority-G5.pem
 1002  history |grep git
[niceslice@localhost emco]$ history |grep clone
 1003  history |grep clone
[niceslice@localhost emco]$ ls -l
total 68
drwxrwxr-x.  3 niceslice niceslice   99 Nov 22 17:28 awsggc
drwxrwxr-x.  3 niceslice niceslice   99 Dec 15 10:02 awsggc1
drwxrwxr-x.  3 niceslice niceslice   99 Nov 22 17:54 awsggc1-bak-20201122-0
drwxrwxr-x.  3 niceslice niceslice   99 Nov 23 09:11 awsggc1-bak-20201122-1
drwxrwxr-x.  3 niceslice niceslice   99 Nov 24 13:46 awsggc1-bak-20201123-1-configmaps
-rw-rw-r--.  1 niceslice niceslice 5474 Nov 24 23:11 awsggc1.tgz
-rw-rw-r--.  1 niceslice niceslice 1681 Nov 20 19:16 awsggc.tgz
-rw-------.  1 niceslice niceslice 5464 Nov 11 10:19 config
drwxrwxr-x.  3 niceslice niceslice   99 Nov 12 21:59 firewall
-rw-rw-r--.  1 niceslice niceslice 2252 Nov 10 10:34 firewall.tgz
drwxrwxr-x. 22 niceslice niceslice 4096 Nov 11 15:21 iotedge
-rw-r-----.  1 niceslice niceslice 5520 Nov 24 11:51 kube-config-edge-k8s-1
-rw-r-----.  1 niceslice niceslice 5520 Nov 24 11:52 kube-config-edge-k8s-2
-rw-rw-r--.  1 niceslice niceslice 2406 Nov 10 10:34 packetgen.tgz
-rw-------.  1 niceslice niceslice 1675 Nov 24 11:47 pcei-emco
-rw-rw-r--.  1 niceslice niceslice 1098 Nov 10 10:34 profile.tar.gz
-rw-r--r--.  1 root      root      1758 Sep 25  2019 root.ca.pem
drwxrwxr-x.  3 niceslice niceslice   99 Nov 19 23:12 sink
-rw-rw-r--.  1 niceslice niceslice 1978 Nov 19 22:28 sink.tgz
-rw-rw-r--.  1 niceslice niceslice 1753 Nov 19 22:58 v
[niceslice@localhost emco]$ cd iotedge/kubernetes/charts/edge-kubernetes-amcop/
[niceslice@localhost edge-kubernetes-amcop]$ ls -l
total 36
drwxrwxr-x. 3 niceslice niceslice   76 Nov 16 13:55 azureiotedge
drwxrwxr-x. 3 niceslice niceslice   76 Dec 16 20:57 azureiotedge1
-rw-rw-r--. 1 niceslice niceslice 8682 Nov 20 16:18 azureiotedge1.tgz
-rw-rw-r--. 1 niceslice niceslice 9013 Nov 15 21:25 azureiotedge.tgz
drwxrwxr-x. 3 niceslice niceslice   76 Nov 16 15:36 edge-kubernetes
-rw-rw-r--. 1 niceslice niceslice 8937 Nov 15 16:09 edge-kubernetes.tgz
[niceslice@localhost edge-kubernetes-amcop]$ cd azureiotedge1
[niceslice@localhost azureiotedge1]$ ls -l
total 20
-rw-rw-r--. 1 niceslice niceslice   137 Nov 16 14:29 Chart.yaml
drwxrwxr-x. 2 niceslice niceslice   256 Dec 15 09:36 templates
-rw-rw-r--. 1 niceslice niceslice 14369 Nov 18 21:48 values.yaml
[niceslice@localhost azureiotedge1]$ vi values.yaml 
[niceslice@localhost azureiotedge1]$ 
[niceslice@localhost azureiotedge1]$ 
[niceslice@localhost azureiotedge1]$ 
[niceslice@localhost azureiotedge1]$ 
[niceslice@localhost azureiotedge1]$ pwd
/home/niceslice/emco/iotedge/kubernetes/charts/edge-kubernetes-amcop/azureiotedge1
[niceslice@localhost azureiotedge1]$ 
[niceslice@localhost azureiotedge1]$ 
[niceslice@localhost azureiotedge1]$ 
[niceslice@localhost azureiotedge1]$ 
[niceslice@localhost azureiotedge1]$ 
[niceslice@localhost azureiotedge1]$ ls -l
total 20
-rw-rw-r--. 1 niceslice niceslice   137 Nov 16 14:29 Chart.yaml
drwxrwxr-x. 2 niceslice niceslice   256 Dec 15 09:36 templates
-rw-rw-r--. 1 niceslice niceslice 14369 Nov 18 21:48 values.yaml
[niceslice@localhost azureiotedge1]$ cd ..
[niceslice@localhost edge-kubernetes-amcop]$ ls -l
total 36
drwxrwxr-x. 3 niceslice niceslice   76 Nov 16 13:55 azureiotedge
drwxrwxr-x. 3 niceslice niceslice   76 Dec 24 16:10 azureiotedge1
-rw-rw-r--. 1 niceslice niceslice 8682 Nov 20 16:18 azureiotedge1.tgz
-rw-rw-r--. 1 niceslice niceslice 9013 Nov 15 21:25 azureiotedge.tgz
drwxrwxr-x. 3 niceslice niceslice   76 Nov 16 15:36 edge-kubernetes
-rw-rw-r--. 1 niceslice niceslice 8937 Nov 15 16:09 edge-kubernetes.tgz
[niceslice@localhost edge-kubernetes-amcop]$ history |grep tar
   45  tar -xzvf sink.tgz 
   66  tar -czfv wasggc.tgz awsggc/
   67  history | grep tar
   68  tar -czvf wasggc.tgz awsggc/
   71  tar -czvf awsggc.tgz awsggc/
   94  tar -czvf awsggc.tgz awsggc/
  122  tar -czvf awsggc.tgz awsggc/
  132  tar -czvf awsggc.tgz awsggc/
  178  history | grep tar
  179   tar -czvf azureiotedge1.tgz azureiotedge1
  215  history |grep tar
  216   tar -czvf awsggc.tgz awsggc/
  223   tar -czvf awsggc.tgz awsggc/
  236   tar -czvf awsggc1.tgz awsggc/
  245   tar -czvf awsggc1.tgz awsggc/
  251   tar -czvf awsggc1.tgz awsggc/
  260   tar -czvf awsggc1.tgz awsggc/
  266   tar -czvf awsggc1.tgz awsggc/
  270   tar -czvf awsggc1.tgz awsggc/
  276  tar -xzvf awsggc.tgz 
  286   tar -czvf awsggc1.tgz awsggc/
  289  tar -xzvf awsggc.tgz 
  290   tar -czvf awsggc2.tgz awsggc/
  319   tar -czvf awsggc2.tgz awsggc/
  340   tar -czvf awsggc1.tgz awsggc1/
  351   tar -czvf awsggc1.tgz awsggc1/
  353   tar -czvf awsggc1.tgz awsggc1/
  373   tar -czvf awsggc1.tgz awsggc1/
  388   tar -czvf awsggc1.tgz awsggc1/
  396   tar -czvf awsggc1.tgz awsggc1/
  403   tar -czvf awsggc1.tgz awsggc1/
  411   tar -czvf awsggc1.tgz awsggc1/
  417   tar -czvf awsggc1.tgz awsggc1/
  423   tar -czvf awsggc1.tgz awsggc1/
  428   tar -czvf awsggc1.tgz awsggc1/
  434   tar -czvf awsggc1.tgz awsggc1/
  439   tar -czvf awsggc1.tgz awsggc1/
  444   tar -czvf awsggc1.tgz awsggc1/
  455   tar -czvf awsggc1.tgz awsggc1/
  462   tar -czvf awsggc1.tgz awsggc1/
  468   tar -czvf awsggc1.tgz awsggc1/
  474   tar -czvf awsggc1.tgz awsggc1/
  480   tar -czvf awsggc1.tgz awsggc1/
  485   tar -czvf awsggc1.tgz awsggc1/
  494   tar -czvf awsggc1.tgz awsggc1/
  499   tar -czvf awsggc1.tgz awsggc1/
  504   tar -czvf awsggc1.tgz awsggc1/
  509   tar -czvf awsggc1.tgz awsggc1/
  514   tar -czvf awsggc1.tgz awsggc1/
  519   tar -czvf awsggc1.tgz awsggc1/
  525   tar -czvf awsggc1.tgz awsggc1/
  534   tar -czvf awsggc1.tgz awsggc1/
  543   tar -czvf awsggc1.tgz awsggc1/
  549   tar -czvf awsggc1.tgz awsggc1/
  556   tar -czvf awsggc1.tgz awsggc1/
  565   tar -czvf awsggc1.tgz awsggc1/
  570   tar -czvf awsggc1.tgz awsggc1/
  621  history |grep tar
  622  tar -czvf awsggc1.tgz awsggc1/
  632  tar -czvf awsggc1.tgz awsggc1/
  637  tar -czvf awsggc1.tgz awsggc1/
  643  tar -czvf awsggc1.tgz awsggc1/
  671  tar -czvf awsggc1.tgz awsggc1/
  677  tar -czvf awsggc1.tgz awsggc1/
  682  tar -czvf awsggc1.tgz awsggc1/
  692  tar -czvf awsggc1.tgz awsggc1/
  710  tar -czvf awsggc1.tgz awsggc1/
  724  tar -czvf awsggc1.tgz awsggc1/
  725  tar -czvf awsggc1.tgz awsggc1-bak-20201122-1/
  727  tar -czvf awsggc1.tgz awsggc1-bak-20201122-0/
  729  tar --help
  731  tar -cvf awsggc1.tgz awsggc1-bak-20201122-0/
  778  history |grep tar
  779  tar -czvf awsggc1.tgz awsggc1/
  785  tar -czvf awsggc1.tgz awsggc1/
  834  tar -czvf awsggc1.tgz awsggc1-bak-20201123-1-configmaps/
  836  tar -czvf awsggc1.tgz awsggc1/
  848  tar -czvf awsggc1.tgz awsggc1/
  853  tar -czvf awsggc1.tgz awsggc1/
  858  tar -czvf awsggc1.tgz awsggc1/
  867  tar -czvf awsggc1.tgz awsggc1/
  878  tar -czvf awsggc1.tgz awsggc1/
  883  tar -czvf awsggc1.tgz awsggc1/
  888  tar -czvf awsggc1.tgz awsggc1/
  893  tar -czvf awsggc1.tgz awsggc1/
  901  tar -czvf awsggc1.tgz awsggc1/
  906  tar -czvf awsggc1.tgz awsggc1/
  910  tar
  911  tar --help
  917  tar -tvf azureiotedge1.tgz 
  929  tar -tvf azureiotedge1.tgz 
  956  history |grep tar
  957  tar -tvf azureiotedge1.tgz
  985  history |grep tar
  986  tar -tvf azureiotedge1.tgz
  999  history |grep tar
 1014  history |grep tar
[niceslice@localhost edge-kubernetes-amcop]$ client_loop: send disconnect: Broken pipe
USMC02YD0PPJGH8:pcei oberzin$ 
USMC02YD0PPJGH8:pcei oberzin$ 
USMC02YD0PPJGH8:pcei oberzin$ 
USMC02YD0PPJGH8:pcei oberzin$ 
USMC02YD0PPJGH8:pcei oberzin$ 
USMC02YD0PPJGH8:pcei oberzin$ 
USMC02YD0PPJGH8:pcei oberzin$ 
USMC02YD0PPJGH8:pcei oberzin$ 
USMC02YD0PPJGH8:pcei oberzin$ 
USMC02YD0PPJGH8:pcei oberzin$ ssh ~/onap/pcei-emco onaplab@10.121.7.146
ssh: Could not resolve hostname /users/oberzin/onap/pcei-emco: nodename nor servname provided, or not known
USMC02YD0PPJGH8:pcei oberzin$ ssh -i ~/onap/pcei-emco onaplab@10.121.7.146
Welcome to Ubuntu 18.04.5 LTS (GNU/Linux 4.15.0-124-generic x86_64)

 * Documentation:  https://help.ubuntu.com
 * Management:     https://landscape.canonical.com
 * Support:        https://ubuntu.com/advantage

  System information as of Wed Dec 30 01:34:04 UTC 2020

  System load:     4.18               IP address for ens3:       10.121.7.146
  Usage of /:      11.5% of 96.75GB   IP address for docker0:    172.17.0.1
  Memory usage:    10%                IP address for kube-ipvs0: 10.244.0.1
  Swap usage:      0%                 IP address for cni0:       10.244.64.1
  Processes:       322                IP address for virbr0:     192.168.122.1
  Users logged in: 0

 * Introducing self-healing high availability clusters in MicroK8s.
   Simple, hardened, Kubernetes for production, from RaspberryPi to DC.

     https://microk8s.io/high-availability

 * Canonical Livepatch is available for installation.
   - Reduce system reboots and improve kernel security. Activate at:
     https://ubuntu.com/livepatch

11 packages can be updated.
0 updates are security updates.


*** System restart required ***
Last login: Sun Dec 27 21:22:32 2020 from 10.121.7.129
onaplab@localhost:~$ kubectl get pods
NAME                         READY   STATUS    RESTARTS   AGE
v1-awsggc-77489b96f9-zlqxw   1/1     Running   0          12d
onaplab@localhost:~$ kubectl delete deployments.apps v1-awsggc
deployment.apps "v1-awsggc" deleted
onaplab@localhost:~$ kubectl get pods
NAME                         READY   STATUS        RESTARTS   AGE
v1-awsggc-77489b96f9-zlqxw   1/1     Terminating   0          12d
onaplab@localhost:~$ kubectl get pods
NAME                         READY   STATUS        RESTARTS   AGE
v1-awsggc-77489b96f9-zlqxw   1/1     Terminating   0          12d
onaplab@localhost:~$ kubectl get pods
NAME                         READY   STATUS        RESTARTS   AGE
v1-awsggc-77489b96f9-zlqxw   1/1     Terminating   0          12d
onaplab@localhost:~$ 
onaplab@localhost:~$ 
onaplab@localhost:~$ 
onaplab@localhost:~$ 
onaplab@localhost:~$ kubectl get pods
NAME                        READY   STATUS    RESTARTS   AGE
v1-awsggc-5c84b4ccf-vqn5x   1/1     Running   0          3m34s

onaplab@localhost:~$ sudo docker ps |grep awsggc
e93b85bbbf04        216483018798.dkr.ecr.us-west-2.amazonaws.com/aws-iot-greengrass   "/bin/bash"              4 minutes ago       Up 4 minutes                                 k8s_awsggc_v1-awsggc-5c84b4ccf-vqn5x_default_5dfb86a9-fdd2-479c-9852-3341f9b002b0_0

# Connect to the AWS GGC container:
sudo docker exec -it e93b85bbbf04 /bin/bash
bash-4.2#

# Examine the greengrass core logs:
bash-4.2# cd /greengrass/ggc/var/log/system/            
bash-4.2# ls -l
total 12
drwx------ 2 root root 4096 Dec 30 01:47 localwatch
-rw------- 1 root root 8015 Dec 30 01:47 runtime.log

cat runtime.log
bash-4.2# cat runtime.log 
[2020-12-30T01:47:50.015Z][INFO]-===========================================
[2020-12-30T01:47:50.015Z][INFO]-Greengrass Version: 1.11.0-RC2
[2020-12-30T01:47:50.015Z][INFO]-Greengrass Root: /greengrass
[2020-12-30T01:47:50.015Z][INFO]-Greengrass Write Directory: /greengrass/ggc
[2020-12-30T01:47:50.015Z][INFO]-Group File Directory: /greengrass/ggc/deployment/group
[2020-12-30T01:47:50.016Z][INFO]-Default Lambda UID: 999
[2020-12-30T01:47:50.016Z][INFO]-Default Lambda GID: 997
[2020-12-30T01:47:50.016Z][DEBUG]-Go version: go1.12.11
[2020-12-30T01:47:50.016Z][DEBUG]-CoreThing Connection Config: 
{
	"Region": "us-west-2",
	"ThingArn": "arn:aws:iot:us-west-2:XXXXX",
	"IoTMQTTEndpoint": "XXXXX-ats.iot.us-west-2.amazonaws.com:8883",
	"IoTHTTPEndpoint": "XXXXX-ats.iot.us-west-2.amazonaws.com:8443",
	"GGMQTTPort": 8883,
	"GGHTTPEndpoint": "greengrass-ats.iot.us-west-2.amazonaws.com:8443",
	"GGDaemonPort": 8000,
	"GGMQTTKeepAlive": 600,
	"GGMQTTMaxConnectionRetryInterval": 60,
	"GGMQTTConnectTimeout": 30,
	"GGMQTTPingTimeout": 30,
	"GGMQTTOperationTimeout": 5,
	"GGHTTPTimeout": 60,
	"FIPSMode": false,
	"CoreClientId": ""
}
[2020-12-30T01:47:50.016Z][DEBUG]-System Config: 
{
	"tmpDirectory": "",
	"shadowSyncTimeout": 0,
	"useOverlayWithTmpfs": false,
	"disablePivotRoot": false
}
[2020-12-30T01:47:50.016Z][DEBUG]-Runtime Config: 
{
	"maxWorkItemCount": 1024,
	"schedulingFrequency": 1000,
	"maxConcurrentLimit": 25,
	"lruSize": 25,
	"cgroup": {
		"useSystemd": true,
		"mountPoint": null
	},
	"postStartHealthCheckTimeout": 60000,
	"allowFunctionsToRunAsRoot": false,
	"onSystemComponentsFailure": 0,
	"systemComponentAuthTimeout": 5000,
	"mountAllBlockDevices": false
}
[2020-12-30T01:47:50.016Z][INFO]-===========================================
[2020-12-30T01:47:50.016Z][DEBUG]-[3]Requested certificate load [file:///greengrass/certs/cert.pem] with error: [<nil>]
[2020-12-30T01:47:50.016Z][INFO]-The current core is using the AWS IoT certificates with fingerprint.	{"fingerprint": "10f8f09c63075139b8daff9fcbd1ff8d221cb505f421895171ea2b4c85231b82"}
[2020-12-30T01:47:50.016Z][INFO]-Will persist worker process info.	{"dir": "/greengrass/ggc/packages/1.11.0/var/worker/processes"}
[2020-12-30T01:47:50.017Z][INFO]-Will persist worker process info.	{"dir": "/greengrass/ggc/packages/1.11.0/var/worker/processes"}
[2020-12-30T01:47:50.017Z][DEBUG]-loading subscriptions	{"trie": "map[]"}
[2020-12-30T01:47:50.017Z][INFO]-No proxy URL found.
[2020-12-30T01:47:50.018Z][DEBUG]-[3]Requested certificate load [file:///greengrass/ca/root.ca.pem] with error: [<nil>]
[2020-12-30T01:47:50.018Z][DEBUG]-[3]Requested key load [file:///greengrass/keys/private.key] with error: [<nil>]
[2020-12-30T01:47:50.018Z][DEBUG]-[3]Requested certificate load [file:///greengrass/certs/cert.pem] with error: [<nil>]
[2020-12-30T01:47:50.018Z][INFO]-No proxy URL found.
[2020-12-30T01:47:50.021Z][INFO]-Connecting with MQTT.	{"endpoint": "a1hd4mq2lxwoaa-ats.iot.us-west-2.amazonaws.com:8883", "clientId": "PCEI_Core1"}
[2020-12-30T01:47:50.021Z][DEBUG]-MQTT connection attempt.	{"attemptId": "tcbM", "clientId": "PCEI_Core1"}
[2020-12-30T01:47:50.021Z][DEBUG]-New MQTT connection attempt
[2020-12-30T01:47:50.021Z][DEBUG]-Acquired lock for connection attempt
[2020-12-30T01:47:50.021Z][DEBUG]-Disconnect client	{"force": false}
[2020-12-30T01:47:50.022Z][DEBUG]-Reloading function registry.
[2020-12-30T01:47:50.022Z][DEBUG]-[3]Requested certificate load [file:///greengrass/certs/cert.pem] with error: [<nil>]
[2020-12-30T01:47:50.022Z][INFO]-The current core is using the AWS IoT certificates with fingerprint.	{"fingerprint": "10f8f09c63075139b8daff9fcbd1ff8d221cb505f421895171ea2b4c85231b82"}
[2020-12-30T01:47:50.212Z][DEBUG]-Connection request is valid
[2020-12-30T01:47:50.212Z][DEBUG]-Finished connection attempt, waiting for OnConnect Handler
[2020-12-30T01:47:50.212Z][DEBUG]-Releasing lock for connection attempt
[2020-12-30T01:47:50.212Z][INFO]-MQTT connection successful.	{"attemptId": "tcbM", "clientId": "PCEI_Core1"}
[2020-12-30T01:47:50.212Z][INFO]-MQTT connection established.	{"endpoint": "a1hd4mq2lxwoaa-ats.iot.us-west-2.amazonaws.com:8883", "clientId": "PCEI_Core1"}
[2020-12-30T01:47:50.212Z][DEBUG]-Handle new connection event
[2020-12-30T01:47:50.212Z][DEBUG]-Acquired lock for new connection event
[2020-12-30T01:47:50.212Z][DEBUG]-Update status to connected
[2020-12-30T01:47:50.213Z][DEBUG]-Releasing lock for new connection event
[2020-12-30T01:47:50.213Z][DEBUG]-Entering OnConnect.	{"clientId": "PCEI_Core1", "count": 1}
[2020-12-30T01:47:50.213Z][INFO]-MQTT connection connected. Start subscribing.	{"clientId": "PCEI_Core1", "count": 1}
[2020-12-30T01:47:50.213Z][INFO]-Daemon connected to cloud.
[2020-12-30T01:47:50.213Z][DEBUG]-Subscribe retry configuration.	{"IntervalInSeconds": 60, "count": 1}
[2020-12-30T01:47:50.213Z][INFO]-Start subscribing.	{"numOfTopics": 5, "clientId": "PCEI_Core1"}
[2020-12-30T01:47:50.213Z][INFO]-Trying to subscribe to topic $aws/things/PCEI_Core1-gda/shadow/get/accepted
[2020-12-30T01:47:50.213Z][DEBUG]-Subscribe	{"topic": "$aws/things/PCEI_Core1-gda/shadow/get/accepted", "qos": 0}
[2020-12-30T01:47:50.263Z][DEBUG]-Subscribed to topic.	{"topic": "$aws/things/PCEI_Core1-gda/shadow/get/accepted"}
[2020-12-30T01:47:50.263Z][DEBUG]-Publish	{"topic": "$aws/things/PCEI_Core1-gda/shadow/get", "qos": 1}
[2020-12-30T01:47:50.289Z][INFO]-Trying to subscribe to topic $aws/things/PCEI_Core1-gda/shadow/update/delta
[2020-12-30T01:47:50.289Z][DEBUG]-Subscribe	{"topic": "$aws/things/PCEI_Core1-gda/shadow/update/delta", "qos": 0}
[2020-12-30T01:47:50.373Z][DEBUG]-Subscribed to topic.	{"topic": "$aws/things/PCEI_Core1-gda/shadow/update/delta"}
[2020-12-30T01:47:50.373Z][INFO]-Trying to subscribe to topic $aws/things/PCEI_Core1-gcf/shadow/get/rejected
[2020-12-30T01:47:50.373Z][DEBUG]-Subscribe	{"topic": "$aws/things/PCEI_Core1-gcf/shadow/get/rejected", "qos": 0}
[2020-12-30T01:47:50.425Z][DEBUG]-Subscribed to topic.	{"topic": "$aws/things/PCEI_Core1-gcf/shadow/get/rejected"}
[2020-12-30T01:47:50.425Z][INFO]-Trying to subscribe to topic $aws/things/PCEI_Core1-gcf/shadow/get/accepted
[2020-12-30T01:47:50.425Z][DEBUG]-Subscribe	{"topic": "$aws/things/PCEI_Core1-gcf/shadow/get/accepted", "qos": 0}
[2020-12-30T01:47:50.494Z][DEBUG]-Subscribed to topic.	{"topic": "$aws/things/PCEI_Core1-gcf/shadow/get/accepted"}
[2020-12-30T01:47:50.494Z][DEBUG]-Publish	{"topic": "$aws/things/PCEI_Core1-gcf/shadow/get", "qos": 1}
[2020-12-30T01:47:50.52Z][INFO]-Trying to subscribe to topic $aws/things/PCEI_Core1-gcf/shadow/update/delta
[2020-12-30T01:47:50.52Z][DEBUG]-Subscribe	{"topic": "$aws/things/PCEI_Core1-gcf/shadow/update/delta", "qos": 0}
[2020-12-30T01:47:50.535Z][INFO]-Updating with update request.	{"aggregationIntervalSeconds": 3600, "publishIntervalSeconds": 86400}
[2020-12-30T01:47:50.535Z][INFO]-Config update is in pending state.	{"aggregationIntervalSeconds": 3600, "publishIntervalSeconds": 86400}
[2020-12-30T01:47:50.535Z][INFO]-Start metrics config updating.	{"aggregationIntervalSeconds": 3600, "publishIntervalSeconds": 86400}
[2020-12-30T01:47:50.535Z][INFO]-Metric config update succeeded.
[2020-12-30T01:47:50.536Z][INFO]-Received signal to terminate aggregation schedule
[2020-12-30T01:47:50.536Z][INFO]-Received signal to terminate upload schedule
[2020-12-30T01:47:50.536Z][DEBUG]-Report config update to the topic	{"topic": "$aws/things/PCEI_Core1-gcf/shadow/update", "data": "{\"state\":{\"reported\":{\"telemetryConfiguration\":{\"publishIntervalSeconds\":86400,\"aggregationIntervalSeconds\":3600}}}}"}
[2020-12-30T01:47:50.536Z][DEBUG]-Publish	{"topic": "$aws/things/PCEI_Core1-gcf/shadow/update", "qos": 1}
[2020-12-30T01:47:50.562Z][INFO]-Update metric config reported to the cloud.
[2020-12-30T01:47:50.577Z][DEBUG]-Subscribed to topic.	{"topic": "$aws/things/PCEI_Core1-gcf/shadow/update/delta"}
[2020-12-30T01:47:50.577Z][INFO]-All topics subscribed.	{"clientId": "PCEI_Core1"}
bash-4.2# 


Deploying Location API App with PCEI

...