You are here: Home / Projects / EVE / eveadm / tests / Testing eveadm on Ubuntu 18.04 installation, February 5, 2020

ubuntu-18.04-eveadm-testing-20200205

by Inna Sosunova last modified Feb 06, 2020 04:34 PM
Test report on eveadm on Ubuntu 18.04, February 5, 2020

Host system: Ubuntu 18.04
Virtualization system: KVM/libvirt (4.0.0-1ubunt)/virt-manager (1.5.1-0ubu)

Created a KVM virtual machine:

Ubuntu 18.04 distribution (ubuntu-18.04.3-live-server-amd64.iso image)
Memory: 4096 Mb
Disk size: 25 GB
Installation Language: English (US)
Installation option: Normal installation
User: user



Logged in from the host machine to the test virtual machine via ssh by user "user":

inna@Inna-PC:~$ ssh user@192.168.122.113

Performed on a virtual machine git clone https://github.com/itmo-eve/eveadm:

user@eveadm:~$ git clone https://github.com/itmo-eve/eveadm
Cloning into 'eveadm'...
remote: Enumerating objects: 33, done.
remote: Counting objects: 100% (33/33), done.
remote: Compressing objects: 100% (29/29), done.
remote: Total 523 (delta 13), reused 10 (delta 4), pack-reused 490
Receiving objects: 100% (523/523), 55.39 MiB | 2.69 MiB/s, done.
Resolving deltas: 100% (338/338), done.

Moved to the eveadm directory

user@eveadm:~$ cd eveadm

Run tests/build_all_ubuntu_bionic_beaver.sh

user@eveadm:~/eveadm$ sudo tests/build_all_ubuntu_bionic_beaver.sh 2>&1 | tee eveadm.log 
[sudo] password for user:

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

Hit:1 http://ru.archive.ubuntu.com/ubuntu bionic InRelease
Hit:2 http://ru.archive.ubuntu.com/ubuntu bionic-updates InRelease
Hit:3 http://ru.archive.ubuntu.com/ubuntu bionic-backports InRelease
Hit:4 http://ru.archive.ubuntu.com/ubuntu bionic-security InRelease
Reading package lists...
Building dependency tree...
Reading state information...
63 packages can be upgraded. Run 'apt list --upgradable' to see them.

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

Reading package lists...
Building dependency tree...
Reading state information...
Calculating upgrade...
Full execution log build_all_ubuntu_bionic_beaver.sh

 

Virtual machine reboots.

Logged in from the host machine to the test virtual machine via ssh by user "user":

inna@Inna-PC:~$ ssh user@192.168.122.113

Moved to the eveadm directory

user@eveadm:~$ cd eveadm

Run the make test command

user@eveadm:~/eveadm$ sudo make test
go test test_utils.go help_test.go
go: downloading github.com/spf13/cobra v0.0.5
go: extracting github.com/spf13/cobra v0.0.5
go: downloading github.com/spf13/viper v1.6.1
go: downloading github.com/mitchellh/go-homedir v1.1.0
go: downloading github.com/spf13/pflag v1.0.3
go: extracting github.com/spf13/viper v1.6.1
go: downloading github.com/spf13/cast v1.3.0
go: extracting github.com/mitchellh/go-homedir v1.1.0
go: downloading github.com/pelletier/go-toml v1.2.0
go: downloading gopkg.in/yaml.v2 v2.2.4
go: downloading github.com/fsnotify/fsnotify v1.4.7
go: downloading gopkg.in/ini.v1 v1.51.0
go: downloading github.com/mitchellh/mapstructure v1.1.2
go: extracting github.com/spf13/pflag v1.0.3
go: downloading github.com/spf13/jwalterweatherman v1.0.0
go: extracting github.com/spf13/cast v1.3.0
go: downloading github.com/spf13/afero v1.1.2
go: downloading github.com/subosito/gotenv v1.2.0
go: extracting github.com/pelletier/go-toml v1.2.0
go: extracting gopkg.in/yaml.v2 v2.2.4
go: extracting github.com/fsnotify/fsnotify v1.4.7
go: extracting github.com/mitchellh/mapstructure v1.1.2
go: extracting gopkg.in/ini.v1 v1.51.0
go: downloading github.com/hashicorp/hcl v1.0.0
go: extracting github.com/spf13/jwalterweatherman v1.0.0
go: downloading github.com/magiconair/properties v1.8.1
go: extracting github.com/spf13/afero v1.1.2
go: downloading golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a
go: downloading golang.org/x/text v0.3.0
go: extracting github.com/subosito/gotenv v1.2.0
go: extracting github.com/magiconair/properties v1.8.1
go: extracting github.com/hashicorp/hcl v1.0.0
go: extracting golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a
go: extracting golang.org/x/text v0.3.0
go: finding github.com/spf13/cobra v0.0.5
go: finding github.com/spf13/pflag v1.0.3
go: finding github.com/mitchellh/go-homedir v1.1.0
go: finding github.com/spf13/viper v1.6.1
go: finding github.com/fsnotify/fsnotify v1.4.7
go: finding github.com/hashicorp/hcl v1.0.0
go: finding golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a
go: finding github.com/mitchellh/mapstructure v1.1.2
go: finding github.com/magiconair/properties v1.8.1
go: finding github.com/pelletier/go-toml v1.2.0
go: finding github.com/spf13/afero v1.1.2
go: finding github.com/spf13/cast v1.3.0
go: finding github.com/spf13/jwalterweatherman v1.0.0
go: finding golang.org/x/text v0.3.0
go: finding github.com/subosito/gotenv v1.2.0
go: finding gopkg.in/ini.v1 v1.51.0
go: finding gopkg.in/yaml.v2 v2.2.4
ok      command-line-arguments    0.079s
LANG=C go test test_utils.go func_test.go
ok      command-line-arguments    160.068s
go build github.com/itmo-eve/eveadm/
go test test_utils.go rkt_test.go
ok      command-line-arguments    29.280s
brctl show|grep xenbr0||brctl addbr xenbr0
go test test_utils.go xen_test.go
ok      command-line-arguments    33.165s

Run eveadm.rkt.test.sh

user@eveadm:~/eveadm$ sudo tests/eveadm.rkt.test.sh
curdir=/home/user/eveadm/tests/eveadm.rkt.test.sh
curdir=/home/user/eveadm/tests
EVEADM=/home/user/eveadm/tests/../eveadm
/tmp/pods_test
rm -rf /tmp/pods_test
mkdir /tmp/pods_test
========================================
create image
========================================
IMAGE_HASH=sha512-fa1cb92dc276b0f9bedf87981e61ecde
echo $IMAGE_HASH
sha512-fa1cb92dc276b0f9bedf87981e61ecde
========================================
list image
========================================
/home/user/eveadm/tests/../eveadm rkt list -i --dir=/tmp/pods_test
ID            NAME            SIZE    IMPORT TIME    LAST USED
sha512-fa1cb92dc276    coreos.com/etcd:v2.0.0    24MiB    5 seconds ago    4 seconds ago
========================================
info image
========================================
/home/user/eveadm/tests/../eveadm rkt info -i --dir=/tmp/pods_test sha512-fa1cb92dc276b0f9bedf87981e61ecde
{
    "acKind": "ImageManifest",
    "acVersion": "0.1.1",
    "name": "coreos.com/etcd",
    "labels": [
        {
            "name": "os",
            "value": "linux"
        },
        {
            "name": "arch",
            "value": "amd64"
        },
        {
            "name": "version",
            "value": "v2.0.0"
        }
    ],
    "app": {
        "exec": [
            "/etcd"
        ],
        "user": "0",
        "group": "0"
    }
}
========================================
create container
========================================
systemd-run /home/user/eveadm/tests/../eveadm rkt create --dir=/tmp/pods_test sha512-fa1cb92dc276b0f9bedf87981e61ecde --no-overlay=true --stage1-path=/home/user/eveadm/tests/stage1-xen.aci
Running as unit: run-rda4bfd494a6346bb92e10438ee9899e5.service
========================================
sleep 5
========================================
========================================
list container
========================================
until [ "$CONTAINERS" ]
do
CONTAINERS=3e6edc8d etcd coreos.com/etcd:v2.0.0 running now now default:ip4=172.16.28.3
done
echo "$CONTAINERS"
3e6edc8d    etcd    coreos.com/etcd:v2.0.0    running    1 second ago    1 second ago    default:ip4=172.16.28.3
CONTAINER_UUID=$(echo "$CONTAINERS"|cut -f1)
echo "$CONTAINER_UUID"
3e6edc8d
========================================
start container
========================================
/home/user/eveadm/tests/../eveadm rkt start --dir=/tmp/pods_test --stage1-type=common 3e6edc8d
Not implemented for common type of stage1
sleep 5
========================================
info container
========================================
/home/user/eveadm/tests/../eveadm rkt info --dir=/tmp/pods_test 3e6edc8d
{"name":"3e6edc8d-093e-43ee-be95-8c49267a5b76","state":"exited","networks":[{"netName":"default","netConf":"stage1/rootfs/etc/rkt/net.d/99-default.conf","pluginPath":"stage1/rootfs/usr/lib/rkt/plugins/net/host-local","ifName":"vif","ip":"172.16.28.3","args":"","mask":"255.255.255.0"}],"app_names":["etcd"],"apps":[{"name":"etcd","state":"exited","created_at":1580928995791683752,"started_at":1580928996963711106,"image_id":"sha512-fa1cb92dc276b0f9bedf87981e61ecde93cc16432d2441f23aa006a42bb873df"}],"created_at":1580928995,"started_at":1580928996}
========================================
stop container
========================================
/home/user/eveadm/tests/../eveadm rkt stop --dir=/tmp/pods_test 3e6edc8d
pod "3e6edc8d-093e-43ee-be95-8c49267a5b76" is already stopped
sleep 5
========================================
delete container
========================================
/home/user/eveadm/tests/../eveadm rkt delete --dir=/tmp/pods_test 3e6edc8d
"3e6edc8d-093e-43ee-be95-8c49267a5b76"
========================================
delete image
========================================
/home/user/eveadm/tests/../eveadm rkt delete -i --dir=/tmp/pods_test sha512-fa1cb92dc276b0f9bedf87981e61ecde
successfully removed aci for image: "sha512-fa1cb92dc276b0f9bedf87981e61ecde93cc16432d2441f23aa006a42bb873df"
========================================

Run eveadm.xen.test.sh

user@eveadm:~/eveadm$ sudo tests/eveadm.xen.test.sh 
curdir=/home/user/eveadm/tests/eveadm.xen.test.sh
curdir=/home/user/eveadm/tests
EVEADM=/home/user/eveadm/tests/../eveadm
/tmp/xen_test
rm -rf /tmp/xen_test
mkdir /tmp/xen_test
========================================
download image and create config
========================================
wget http://download.cirros-cloud.net/0.4.0/cirros-0.4.0-x86_64-disk.img -O /tmp/xen_test/cirros.qcow2
--2020-02-05 18:57:33--  http://download.cirros-cloud.net/0.4.0/cirros-0.4.0-x86_64-disk.img
Resolving download.cirros-cloud.net (download.cirros-cloud.net)... 64.90.42.85, 2607:f298:6:a036::bd6:a72a
Connecting to download.cirros-cloud.net (download.cirros-cloud.net)|64.90.42.85|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://github.com/cirros-dev/cirros/releases/download/0.4.0/cirros-0.4.0-x86_64-disk.img [following]
--2020-02-05 18:57:34--  https://github.com/cirros-dev/cirros/releases/download/0.4.0/cirros-0.4.0-x86_64-disk.img
Resolving github.com (github.com)... 140.82.118.4
Connecting to github.com (github.com)|140.82.118.4|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://github-production-release-asset-2e65be.s3.amazonaws.com/219785102/b2074f00-411a-11ea-9620-afb551cf9af3?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20200205%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20200205T185734Z&X-Amz-Expires=300&X-Amz-Signature=8f576a5c0597ce87af397eb8f48c71d57b6e594bf62d9e8529aa2e0c39484e62&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=attachment%3B%20filename%3Dcirros-0.4.0-x86_64-disk.img&response-content-type=application%2Foctet-stream [following]
--2020-02-05 18:57:34--  https://github-production-release-asset-2e65be.s3.amazonaws.com/219785102/b2074f00-411a-11ea-9620-afb551cf9af3?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20200205%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20200205T185734Z&X-Amz-Expires=300&X-Amz-Signature=8f576a5c0597ce87af397eb8f48c71d57b6e594bf62d9e8529aa2e0c39484e62&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=attachment%3B%20filename%3Dcirros-0.4.0-x86_64-disk.img&response-content-type=application%2Foctet-stream
Resolving github-production-release-asset-2e65be.s3.amazonaws.com (github-production-release-asset-2e65be.s3.amazonaws.com)... 52.216.82.176
Connecting to github-production-release-asset-2e65be.s3.amazonaws.com (github-production-release-asset-2e65be.s3.amazonaws.com)|52.216.82.176|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 12716032 (12M) [application/octet-stream]
Saving to: ‘/tmp/xen_test/cirros.qcow2’

/tmp/xen_test/cirro 100%[===================>]  12.13M   469KB/s    in 81s     

2020-02-05 18:58:57 (153 KB/s) - ‘/tmp/xen_test/cirros.qcow2’ saved [12716032/12716032]

cat << EOF > "$home_dir"/config.cfg
name = "$name"
on_poweroff = "preserve"
bootloader = "pygrub"
extra = "console=hvc0 root=/dev/xvda1"
memory = 128
vcpus = 1
vif = [ 'bridge=xenbr0' ]
disk = [ '$home_dir/cirros.qcow2,qcow2,xvda,rw' ]
EOF
brctl show|grep xenbr0||brctl addbr xenbr0
xenbr0        8000.000000000000    no        
========================================
create vm
========================================
/home/user/eveadm/tests/../eveadm xen create --xen-cfg-filename=/tmp/xen_test/config.cfg --paused
========================================
sleep 5
========================================
========================================
domid vm
========================================
domuuid=$($EVEADM xen info --domname $name)
echo "$domuuid"
4
========================================
start vm
========================================
/home/user/eveadm/tests/../eveadm xen start 4
========================================
vm info
========================================
/home/user/eveadm/tests/../eveadm xen info 4
[
    {
        "domid": 4,
        "config": {
            "c_info": {
                "type": "pv",
                "name": "testxen",
                "uuid": "e414a83e-f6fa-4bce-b1d0-d9fd2f8a8d04",
                "run_hotplug_scripts": "True"
            },
            "b_info": {
                "max_vcpus": 1,
                "avail_vcpus": [
                    0
                ],
                "max_memkb": 131072,
                "target_memkb": 131072,
                "video_memkb": 0,
                "sched_params": {
                    "sched": "credit2",
                    "weight": 256,
                    "cap": 0
                },
                "claim_mode": "True",
                "cmdline": "console=hvc0 root=/dev/xvda1",
                "bootloader": "pygrub",
                "type.pv": {

                },
                "arch_arm": {

                }
            },
            "disks": [
                {
                    "pdev_path": "/tmp/xen_test/cirros.qcow2",
                    "vdev": "xvda",
                    "format": "qcow2",
                    "readwrite": 1,
                    "colo_restore_enable": "False"
                }
            ],
            "nics": [
                {
                    "devid": 0,
                    "mac": "00:16:3e:44:ef:53",
                    "bridge": "xenbr0",
                    "nictype": "vif"
                }
            ],
            "on_reboot": "restart",
            "on_soft_reset": "soft_reset"
        }
    }
]

========================================
sleep 5
========================================
========================================
vm stop
========================================
/home/user/eveadm/tests/../eveadm xen stop 4
========================================
vm delete
========================================
/home/user/eveadm/tests/../eveadm xen delete 4
========================================

Successful.


Full test log


Navigation