Testing run_local_eve.sh on Ubuntu Desktop 18.04. February 26, 2020
Host machine:
Intel(R) Core(TM) i5-3317U CPU @ 1.70GHz
MemTotal: 3852592 kB
Ubuntu Desktop 18.04
Logged in via ssh by user "root":
inna@Inna-PC:~$ ssh -p 22221 root@77.234.203.244
Moved to the github/itmo-eve/eveadm directory
root@eve:~# cd github/itmo-eve/eveadm
Perform "git pull":
root@eve:~/github/itmo-eve/eveadm# git pull
Already up to date.
Run "run_local_eve.sh -t integration -r"
root@eve:~/github/itmo-eve/eveadm# sudo ./tests/run_local_eve.sh -t integration -r
Use with tag integration
========================================
Temp directory for test: /tmp/eveadam-2020-02-26-11-55-08-rLi82CU9HL
========================================
Hit:1 http://ru.archive.ubuntu.com/ubuntu bionic InRelease
Get:2 http://ru.archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
Get:3 http://ru.archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]
Ign:4 http://ubuntu-cloud.archive.canonical.com/ubuntu bionic-updates/train InRelease
Get:5 http://ru.archive.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]
Get:6 http://ubuntu-cloud.archive.canonical.com/ubuntu bionic-updates/train Release [7,882 B]
Get:7 http://ubuntu-cloud.archive.canonical.com/ubuntu bionic-updates/train Release.gpg [543 B]
Fetched 260 kB in 1s (306 kB/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
All packages are up to date.
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The log ends with the following:
========================================
EVE pid:
21377
========================================
EVE config successfull
========================================
Please use Onboarding Key
c53c7711-b4ef-4ed3-9d70-8c5fd02901aa
and Serial Number
39701222
in zedcloud.zededa.net
You can connect to node via ssh
sudo ssh -p 49280 localhost
Or via telnet:
telnet localhost 49492
Do you want to cleanup? (y/n)
After the question
Do you want to cleanup? (y/n)
I didn’t press any keys.
Сonnect to eve via ssh:
root@eve:~# sudo ssh -p 49280 localhost
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that a host key has just been changed.
The fingerprint for the ECDSA key sent by the remote host is
SHA256:ZHpLY0ztgMTD6KfAKub41R/tgeTmQgmq/YRjYL4N1iA.
Please contact your system administrator.
Add correct host key in /root/.ssh/known_hosts to get rid of this message.
Offending ECDSA key in /root/.ssh/known_hosts:29
remove with:
ssh-keygen -f "/root/.ssh/known_hosts" -R "[localhost]:49280"
ECDSA host key for [localhost]:49280 has changed and you have requested strict checking.
Host key verification failed.
Execute "ssh-keygen -f "/root/.ssh/known_hosts" -R "[localhost]:49280""
root@eve:~# ssh-keygen -f "/root/.ssh/known_hosts" -R "[localhost]:49280"
# Host [localhost]:49280 found: line 29
/root/.ssh/known_hosts updated.
Original contents retained as /root/.ssh/known_hosts.old
Сonnect to eve via telnet:
root@eve:~# telnet localhost 49492
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
Execute the command "ip a"
e994213d-b107-4e1e-b389-d8d7951611e9:~# ip aeth0 / eth1 have IP addresses.
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 brd 127.255.255.255 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
link/ether 52:54:00:12:34:56 brd ff:ff:ff:ff:ff:ff
inet 192.168.1.10/24 brd 192.168.1.255 scope global eth0
valid_lft forever preferred_lft forever
inet6 fec0::9205:823:28e0:c3d4/64 scope site dynamic
valid_lft 86062sec preferred_lft 14062sec
inet6 fe80::13af:a44e:6b25:dcb3/64 scope link
valid_lft forever preferred_lft forever
3: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
link/ether 52:54:00:12:34:57 brd ff:ff:ff:ff:ff:ff
inet 192.168.2.10/24 brd 192.168.2.255 scope global eth1
valid_lft forever preferred_lft forever
inet6 fec0::5962:e615:2933:2640/64 scope site dynamic
valid_lft 86068sec preferred_lft 14068sec
inet6 fe80::1a30:116e:65da:1d42/64 scope link
valid_lft forever preferred_lft forever
4: tunl0@NONE: <NOARP> mtu 1480 qdisc noop state DOWN qlen 1000
link/ipip 0.0.0.0 brd 0.0.0.0
5: ip6tnl0@NONE: <NOARP> mtu 1452 qdisc noop state DOWN qlen 1000
link/tunnel6 00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00 brd 00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00
6: dummy0: <BROADCAST,NOARP> mtu 1500 qdisc noop state DOWN qlen 1000
link/ether 4e:1b:6e:23:59:5a brd ff:ff:ff:ff:ff:ff
7: flow-mon-dummy: <BROADCAST,NOARP,UP,LOWER_UP> mtu 1280 qdisc noqueue state UNKNOWN qlen 1000
link/ether 16:31:9b:96:ff:cc brd ff:ff:ff:ff:ff:ff
inet6 fe80::1431:9bff:fe96:ffcc/64 scope link
valid_lft forever preferred_lft forever
8: dbo1x0: <BROADCAST,UP,LOWER_UP> mtu 1280 qdisc noqueue state UNKNOWN qlen 1000
link/ether 00:16:3e:02:01:00 brd ff:ff:ff:ff:ff:ff
inet6 fd8d:d0f9:2799:2a14:5232:5045:96a7:c85d/128 scope global
valid_lft forever preferred_lft forever
inet6 fe80::216:3eff:fe02:100/64 scope link
valid_lft forever preferred_lft forever
9: bn1: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN qlen 1000
link/ether 00:16:3e:06:00:01 brd ff:ff:ff:ff:ff:ff
inet 10.1.0.1/16 brd 10.1.255.255 scope global bn1
valid_lft forever preferred_lft forever
11: lispers.net: <POINTOPOINT,MULTICAST,NOARP,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UNKNOWN qlen 500
link/[65534]
inet6 fe80::436e:69c4:63c4:c201/64 scope link
valid_lft forever preferred_lft forever
Creating Edge Node
Node settings:
Name - EVE-Inna_303_3
Title - EVE-Inna_303_3
Project - default-project
Identify Type - Onboarding Key
Brand - ZedVirtualDevice
Onboarding Key - c53c7711-b4ef-4ed3-9d70-8c5fd02901aa
Model - ZedVirtual-4G
Serial Number - 39701222
Network - defaultIPv4-net (for both interfaces)
Selected "Activate Edge Node"
Pressed "Add".
Run "test_domainmgr.py":
./tests/test_domainmgr.py 49280
Creating ubuntu-xenial-16.04 app
On browser:
https://zedcontrol.zededa.net/edge-apps/store/list
Selected ubuntu-xenial-16.04.
Pressed "Deploy Edge App".
Application settings:
Name - UH-303_3-Inna
Title - UH-303_3-Inna
Edge Node - EVE-Inna_303-3
Edge App - ubuntu-xenial-16.04 (selected by default)
Network Instance - defaultLocal-EVE-Inna_303-3
Pressed "Add".
As a result status of my application UH-303_3-Inna "Online".
Go to https://zedcontrol.zededa.net/edge-app-instances/8f32652c-fd0a-4483-8c34-3f7919efc86e/details/events
Make Create, Stop, Start, Restart, Restart & Purge, Delete by clicking on the appropriate items in the drop-down menu as shown in the figure below.
Create:
CREATE
domainmgr.handleCreate: UH-303_3-Inna
(2020-02-27T13:38:04.418322995Z) [info] 'UH-303_3-Inna' created
Stop, Start:
STOP
domainmgr.doInactivate: UH-303_3-Inna
(2020-02-27T14:10:20.882100334Z) [info] 'UH-303_3-Inna' deactivated
START
domainmgr.doActivateTail: UH-303_3-Inna
(2020-02-27T14:11:31.308257298Z) [info] 'UH-303_3-Inna' activated
Restart:
RESTART
domainmgr.doInactivate: UH-303_3-Inna
(2020-02-27T14:15:05.791646366Z) [info] 'UH-303_3-Inna' deactivated
domainmgr.doActivateTail: UH-303_3-Inna
(2020-02-27T14:15:16.635369625Z) [info] 'UH-303_3-Inna' activated
Restart & Purge:
RESTART&PURGE
domainmgr.doInactivate: UH-303_3-Inna
(2020-02-27T14:16:42.697953507Z) [info] 'UH-303_3-Inna' deactivated
domainmgr.handleDelete: UH-303_3-Inna
(2020-02-27T14:16:42.775654951Z) [info] 'UH-303_3-Inna' deleted
domainmgr.doActivateTail: UH-303_3-Inna
(2020-02-27T14:19:40.83399765Z ) [info] 'UH-303_3-Inna' activated
domainmgr.handleCreate: UH-303_3-Inna
(2020-02-27T14:19:49.474854813Z) [info] 'UH-303_3-Inna' created
Delete:
DELETE
domainmgr.doInactivate: UH-303_3-Inna
(2020-02-27T15:00:43.149342279Z) [info] 'UH-303_3-Inna' deactivated
domainmgr.handleDelete: UH-303_3-Inna
(2020-02-27T15:00:43.413709013Z) [info] 'UH-303_3-Inna' deleted
Full ubuntu-xenial-16.04 app test log
Creating AlpineDocker app
On browser:
https://zedcontrol.zededa.net/edge-apps/store/list
Selected "alpinedocker".
Pressed "Deploy Edge App".
Application settings:
Name - AD-303_3-Inna
Title - AD-303_3-Inna
Edge Node - EVE-Inna_303-3
Edge App - AlpineDocker (selected by default)
Network Instance - defaultLocal-EVE-Inna_303-3
Pressed "Add".
As a result status of my application AD-303_3-Inna "Online".
Create:
CREATE
domainmgr.doActivateTail: AD-303_3-Inna
(2020-02-27T15:13:32.897552008Z) [info] 'AD-303_3-Inna' activated
domainmgr.handleCreate: AD-303_3-Inna
(2020-02-27T15:13:37.24523498Z ) [info] 'AD-303_3-Inna' created
Stop:
STOP
domainmgr.doInactivate: AD-303_3-Inna
(2020-02-27T15:16:30.047147672Z) [info] 'AD-303_3-Inna' deactivated
Start:
START
domainmgr.doActivateTail: AD-303_3-Inna
(2020-02-27T15:18:18.911975379Z) [info] 'AD-303_3-Inna' activated
Restart:
RESTART
domainmgr.doInactivate: AD-303_3-Inna
(2020-02-27T15:22:18.167358034Z) [info] 'AD-303_3-Inna' deactivated
domainmgr.doActivateTail: AD-303_3-Inna
(2020-02-27T15:22:50.800118593Z) [info] 'AD-303_3-Inna' activated
Restart & Purge:
RESTART & PURGE
domainmgr.doInactivate: AD-303_3-Inna
(2020-02-27T15:27:00.548639375Z) [info] 'AD-303_3-Inna' deactivated
domainmgr.doActivateTail: AD-303_3-Inna
(2020-02-27T15:27:36.624313246Z) [info] 'AD-303_3-Inna' activated
Delete:
DELETE
domainmgr.doInactivate: AD-303_3-Inna
(2020-02-27T15:41:41.318677643Z) [info] 'AD-303_3-Inna' deactivated
domainmgr.handleDelete: AD-303_3-Inna
(2020-02-27T15:41:41.482268543Z) [info] 'AD-303_3-Inna' deleted
Full AlpineDocker app test log
Creating mqtt-eclipse-broker app
On browser:
https://zedcontrol.zededa.net/edge-apps/store/b4c96209-fdf8-40dc-867f-cf67639cd8b9/details/info
Pressed "Deploy Edge App".
Application settings:
Name - ME-303_3-Inna
Title - ME-303_3-Inna
Edge Node - EVE-Inna_303-3
Edge App - mqtt-eclipse-broke
Network Instance - defaultLocal-EVE-Inna_303-3
Pressed "Add".
As a result node status "Other", application status "Error".
Create:
CREATE domainmgr.doActivate: ME-303_3-Inna (2020-02-27T19:46:58.481626323Z) [error] ME-303_3-Inna message: unable to create mountPointFile:
createMountPointFile: Number of volumes provided: 0 is less than number of mount-points: 2.
domainmgr.handleCreate: ME-303_3-Inna (2020-02-27T19:46:58.489879545Z) [info] 'ME-303_3-Inna' created
Stop:
STOP
domainmgr.doInactivate: ME-303_3-Inna
(2020-02-27T20:45:14.381059234Z) [info] 'ME-303_3-Inna' deactivated
Start:
START
domainmgr.doInactivate: ME-303_3-Inna
(2020-02-27T20:46:53.27827975Z ) [info] 'ME-303_3-Inna' deactivated
Restart:
RESTART
domainmgr.doActivate: ME-303_3-Inna
(2020-02-27T20:49:09.741771242Z) [error] ME-303_3-Inna message: unable to create mountPointFile:
createMountPointFile: Number of volumes provided: 0 is less than number of mount-points: 2.
Restart & Purge:
RESTART & PURGE
domainmgr.doInactivate: ME-303_3-Inna
(2020-02-27T20:52:39.848270552Z) [info] 'ME-303_3-Inna' deactivated
domainmgr.doInactivate: ME-303_3-Inna
(2020-02-27T20:53:53.92637018Z ) [info] 'ME-303_3-Inna' deactivated
domainmgr.doActivate: ME-303_3-Inna
(2020-02-27T20:56:40.784988144Z) [error] ME-303_3-Inna message: unable to create mountPointFile:
createMountPointFile: Number of volumes provided: 0 is less than number of mount-points: 2.
Delete:
DELETE
domainmgr.handleDelete: ME-303_3-Inna
(2020-02-27T21:00:50.4580428Z ) [info] 'ME-303_3-Inna' deleted