See <https://ci.suse.de/job/yast-autoyast-integration-test/42/changes>
Changes:
[igonzalezsosa] ImageBuilder#cleanup does not remove testing.iso
[igonzalezsosa] Fix AYTests::ImageBuilder tests
[igonzalezsosa] Fix scripts path detection in run_test_script
[igonzalezsosa] Fix detection of RPMs to include
------------------------------------------
[...truncated 1072 lines...]
building: 87%
building: 87%
building: 87%
building: 87%
building: 88%
building: 88%
building: 88%
building: 88%
building: 88%
building: 88%
building: 89%
building: 89%
building: 89%
building: 89%
building: 89%
building: 89%
building: 89%
building: 90%
building: 90%
building: 90%
building: 90%
building: 90%
building: 90%
building: 91%
building: 91%
building: 91%
building: 91%
building: 91%
building: 91%
building: 92%
building: 92%
building: 92%
building: 92%
building: 92%
building: 92%
building: 92%
building: 93%
building: 93%
building: 93%
building: 93%
building: 93%
building: 93%
building: 94%
building: 94%
building: 94%
building: 94%
building: 94%
building: 94%
building: 95%
building: 95%
building: 95%
building: 95%
building: 95%
building: 95%
building: 95%
building: 96%
building: 96%
building: 96%
building: 96%
building: 96%
building: 96%
building: 97%
building: 97%
building: 97%
building: 97%
building: 97%
building: 97%
building: 98%
building: 98%
building: 98%
building: 98%
building: 98%
building: 98%
building: 98%
building: 99%
building: 99%
building: 99%
building: 99%
building: 99%
building: 99%
building: 100%
calculating sha1...
+ rake 'test[test/sles12.rb]'
********** Running test sles12 **********
I, [2015-10-27T16:01:35.392564 #22062] INFO -- : Creating KVM image
I, [2015-10-27T16:01:35.392688 #22062] INFO -- : Building KVM image
Building Box autoyast with Definition autoyast:
- debug : false
- cwd : <https://ci.suse.de/job/yast-autoyast-integration-test/ws/kiwi>
- force : true
- nogui : false
- auto : true
- checksum : false
- postinstall_include : []
- postinstall_exclude : []
- skip_to_postinstall : false
- use_emulation : false
- network_name : default
The isofile testing.iso already exists.
Running #before_create hook
[2015-10-27 16:01:40] INFO WEBrick 1.3.1
[2015-10-27 16:01:40] INFO ruby 2.1.2 (2014-05-08) [x86_64-linux-gnu]
Hook #after_create is not defined
[2015-10-27 16:01:41] INFO WEBrick::HTTPServer#start: pid=22064 port=8888
Hook #after_up is not defined
Waiting 10 seconds for the machine to boot
Skipping webserver as no kickstartfile was specified
Sending keystrokes to VNC port :1 - TCP port: 5901
Typing:[1]: <Esc><Enter>
Typing:[2]: linux
Typing:[3]: netdevice=eth0
Typing:[4]: instmode=dvd
Typing:[5]: textmode=1
Typing:[6]: insecure=1
Typing:[7]: netsetup=dhcp
Typing:[8]: autoyast=http://10.100.13.63:8888/autoinst.xml
Typing:[9]: <Enter>
Done typing.
Hook #after_boot_sequence is not defined
Waiting for ssh login on 192.168.122.101 with user vagrant to sshd on port => 22 to work, timeout=10000 sec
Hook #before_ssh is not defined
.................192.168.122.101 - - [27/Oct/2015:16:04:03 CET] "GET /autoinst.xml HTTP/1.1" 200 21607
- -> /autoinst.xml
192.168.122.101 - - [27/Oct/2015:16:04:03 CET] "GET /autoinst.xml HTTP/1.1" 200 21607
- -> /autoinst.xml
.............................................................................................................................................................................................................................................................
Transferring /tmp/.veewee_version20151027-22064-zvd3r5 to .veewee_version
..
Waiting for ssh login on 192.168.122.101 with user vagrant to sshd on port => 22 to work, timeout=10000 sec
Hook #before_ssh is not defined
.
Transferring /tmp/.veewee_params20151027-22064-6ahbd3 to .veewee_params
..
Hook #before_postinstall is not defined
Waiting for ssh login on 192.168.122.101 with user vagrant to sshd on port => 22 to work, timeout=10000 sec
Hook #before_ssh is not defined
.
Transferring <https://ci.suse.de/job/yast-autoyast-integration-test/ws/kiwi/definitions/a…> to postinstall.sh
..
Waiting for ssh login on 192.168.122.101 with user vagrant to sshd on port => 22 to work, timeout=10000 sec
Hook #before_ssh is not defined
.
Executing command: chmod +x "postinstall.sh"
Waiting for ssh login on 192.168.122.101 with user vagrant to sshd on port => 22 to work, timeout=10000 sec
Hook #before_ssh is not defined
.
Executing command: echo 'vagrant'|sudo -S sh './postinstall.sh'
We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:
#1) Respect the privacy of others.
#2) Think before you type.
#3) With great power comes great responsibility.
root's password: % Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 409 100 409 0 0 515 0 --:--:-- --:--:-- --:--:-- 515
update sudoers ...
speed-up remote logins ...
Hook #after_postinstall is not defined
The box autoyast was built successfully!
You can now login to the box with:
ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -p 22 -l vagrant 192.168.122.101
[2015-10-27 16:25:15] INFO going to shutdown ...
[2015-10-27 16:25:15] INFO WEBrick::HTTPServer#start done.
I, [2015-10-27T16:25:15.967603 #22062] INFO -- : Exporting KVM image into box file
Vagrant requires the box to be shutdown, before it can export
Sudo also needs to work for user vagrant
Performing a clean shutdown now.
Machine autoyast is powered off cleanly
Creating a temporary directory for export
Adding additional files
Creating Vagrantfile
Copying the box volume
Packaging the box
Cleaning up temporary directory
To import it into vagrant type:
vagrant box add 'autoyast' '<https://ci.suse.de/job/yast-autoyast-integration-test/ws/kiwi/autoyast.box'>
To use it:
vagrant init 'autoyast'
vagrant up --provider=libvirt
vagrant ssh
==> autoyast_vm: Removing domain...
error: failed to get vol 'vagrant_autoyast_vm.img'
error: Storage volume not found: no storage vol with matching path 'vagrant_autoyast_vm.img'
****** Importing vagrant box into pennyworth ******
Bundler is using a binstub that was created for a different gem.
This is deprecated, in future versions you may need to `bundle binstub pennyworth` to work around a system/bundle conflict.
Importing box 'autoyast' into vagrant...
****** Running test on created system ******
.............FBoot machine 'autoyast_vm' : 110.239204308
SLES 12 checks, if user -vagrant- has been created : 0.544441322
SLES 12 checks, if root has /root home : 0.491923841
SLES 12 checks, if files can be downloaded from tftp server : 0.552348405
SLES 12 checks, if dns server and network is available : 0.596087783
SLES 12 checks, if user scripts have been run : 0.527395437
SLES 12 checks, if partition_id order fits : 0.514918388
SLES 12 checks, if no tmpfs device in autoinst.xml : 0.488222465
SLES 12 checks, if subvolumes are correctly in autoinst.xml : 0.49473303
SLES 12 checks, if registration is not in autoinst.xml : 0.492686759
SLES 12 checks, if ntp time syncing has been passed : 1.846141754
SLES 12 checks, after installation snapshot has been created : 1.221325773
SLES 12 checks, do not reinstall packages in the second stage : 0.496696977
SLES 12 checks, all expected sections are present in autoinst.xml : 0.50822614
SLES 12 checks, handles zypper's pkgGpgCheck callback during insta : 0.657251163
Failures:
1) SLES 12 checks, handles zypper's pkgGpgCheck callback during installation
Failure/Error: run_test_script("handle_zypper_pkg_gpg_check.sh")
Pennyworth::ExecutionFailed:
Execution of "ssh -o UserKnownHostsFile\=/dev/null -o StrictHostKeyChecking\=no root(a)192.168.121.126 LC_ALL\=C su -l root -c source\\\ /tmp/handle_zypper_pkg_gpg_check.sh" failed with status 1: Warning: Permanently added '192.168.121.126' (ECDSA) to the list of known hosts.
(...).
Standard output:
/var/log/YaST2/y2log:2015-10-27 11:23:45 <1> linux-sfgb(2367) [Pkg] modules/AutoinstGeneral.rb:281 Pkg Builtin called: CallbackPkgGpgCheck
/var/log/YaST2/y2log-1:2015-10-27 15:04:03 <1> 192.168.122.101(21372) [Pkg] modules/AutoinstGeneral.rb:281 Pkg Builtin called: CallbackPkgGpgCheck
/var/log/YaST2/y2log-1:2015-10-27 11:04:14 <1> 192.168.122.101(21372) [Pkg] modules/AutoinstGeneral.rb:281 Pkg Builtin called: CallbackPkgGpgCheck
Error output:
Warning: Permanently added '192.168.121.126' (ECDSA) to the list of known hosts.
++ zgrep PkgGpgCheck /var/log/YaST2/y2log /var/log/YaST2/y2log-1 /var/log/YaST2/y2logmkinitrd
# ./helper/spec_helper.rb:27:in `run_test_script'
# ./test/sles12.rb:66:in `block (2 levels) in <top (required)>'
Finished in 2 minutes 11.9 seconds (files took 1.65 seconds to load)
14 examples, 1 failure
Failed examples:
rspec ./test/sles12.rb:65 # SLES 12 checks, handles zypper's pkgGpgCheck callback during installation
Build step 'Execute shell' marked build as failure