[mkovacik@malina valid]$ ssh -i ~/.pem/aws-us-east-1.pem root.amazonaws.com Last login: Fri Jun 15 10:17:49 2012 from 89.24.147.35 [root@ip-10-203-74-231 ~]# ls kernel-2.6.32-279.el6.i686.rpm kernel-firmware-2.6.32-279.el6.noarch.rpm valid valid.zip [root@ip-10-203-74-231 ~]# rpm -Uvh kernel-firmware-2.6.32-279.el6.noarch.rpm Preparing... ########################################### [100%] 1:kernel-firmware ########################################### [100%] [root@ip-10-203-74-231 ~]# rpm -Uvh kernel-2.6.32-279.el6.i686.rpm Preparing... ########################################### [100%] 1:kernel ########################################### [100%] [root@ip-10-203-74-231 ~]# shutdown -r now Broadcast message from root@ip-10-203-74-231 (/dev/pts/0) at 12:06 ... The system is going down for reboot NOW! [root@ip-10-203-74-231 ~]# Broadcast message from root@ip-10-203-74-231 (unknown) at 12:08 ... The system is going down for reboot NOW! Control-Alt-Delete pressed Connection to ec2-23-22-167-82.compute-1.amazonaws.com closed by remote host. Connection to ec2-23-22-167-82.compute-1.amazonaws.com closed. [mkovacik@malina valid]$ ssh -i ~/.pem/aws-us-east-1.pem root.amazonaws.com Last login: Fri Jun 15 11:52:14 2012 from 89.24.147.35 [root@ip-10-203-74-231 ~]# cd valid/src [root@ip-10-203-74-231 src]# ls amazon_ec2_lib.py common.py getAmiDetails.py packages query swap_partitions validate.log.err.1 amazon_ec2_lib.pyc delete_disks.py getAmiDetails_withCSV.py packages_5 rebootAmi.py test1.csv validation.cfg amazon_ec2.py disk_partitions image_validation_postreboot.sh packages_6 result.pyc testAMIsFromCSV.py valigator amazon_terminate_all_instances.py epel-release-6-6.noarch.rpm image_validation.sh packages_61 rhel.pyc testlib.sh bugzilla epel-release-6-7.noarch.rpm installRHUI.sh packages_62 rhui_lib.py validate.log bugzilla-command fabfile.py installRHUI.sh~ packages_63 rhui_lib.pyc validate.log.1 charlie fabfile.pyc nohup.out prepare_staging.sh rpmVerifyTable validate.log.err [root@ip-10-203-74-231 src]# ./image_validation.sh --imageID=i-52a0c02b --RHEL=6.3 --full-yum-suite=yes --skip-questions=yes --memory=1700000 --public-dns=ec2-23-22-167-82.com pute-1.amazonaws.com --ami-id=ami-140eaf7d^C-arch-id=i386 --skip-list=IPv6 --no-postreboot [root@ip-10-203-74-231 src]# uname -a Linux ip-10-203-74-231 2.6.32-279.el6.i686 #1 SMP Wed Jun 13 18:23:32 EDT 2012 i686 i686 i386 GNU/Linux [root@ip-10-203-74-231 src]# ./image_validation.sh --imageID=i-52a0c02b --RHEL=6.3 --full-yum-suite=yes --skip-questions=yes --memory=1700000 --public-dns=ec2-23-22-167-82.compute-1.amazonaws.com --ami-id=ami-140eaf7d --arch-id=i386 --skip-list=IPv6 --no-postreboot =====image_validation.sh Fri Jun 15 12:12:37 EDT 2012===== !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! This script will run through some basic sanity tests for a Red Hat Enterprise Linux image A valid Red Hat bugzilla username and password will be required at the end of the script http://bugzilla.redhat.com/ ***************** DETAILED RESULTS LOGGED TO validate.log ******************************** !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Fetching the identity doc DetailsPASS PASS PASS The selected image has the version RHEL 6.3 ##### START TESTS ##### ## Verify auditd is on ...PASS PASS ## Verify audit.rules ...PASS ## Verify auditd.conf ...PASS ## Verify auditd sysconfig ...PASS ## Verify bash_history ...PASS ## Verify chkconfig ...PASS PASS ## Verify rh-cloud-firstboot is OFF ...PASS PASS PASS ## Partition Format ...PASS ## Partition Size .../dev/xvde1 is 4gb or greater PASS Fetching the identity doc DetailsPASS PASS PASS ## Verify GPG checking ...PASS ## Verify GPG RPMS ...PASS PASS ## Verify group file ...PASS PASS PASS PASS ##test menu.lst ...PASS PASS PASS ## Verify runlevel ...PASS ## Verify iptables ...PASS ## Verify /etc/ld.so.conf.d/libc6-xen.conf is not present ...PASS ##Verify memory match hwp ...EXPECTED MINIMUM MEMORY = 1700000 MEMORY FOUND = 1711852 PASS ## Verify nameserver ...PASS ## Verify networking ...PASS ## Verify device ...PASS ## Verify no missing packages ...PASS ## Verify new passwd file ...PASS PASS PASS ## test repo files ...PASS PASS PASS ## Verify resize2fs ...FAIL The selected image has the version RHEL 6.3## SELINUX TESTS ## /sbin/getenforce ...PASS ## Verify SELINUX enforcing ...PASS ## Verify SELINUXTYPE targeted ...PASS ## Flip Selinux Permissive ...PASS ## Flip Selinux Enforcing ...PASS ## Verify new shells file ...PASS PASS ## Verify sshd_config settings ...PASS ## Verify sshd ...PASS PASS ## Verify swap size ...PASS ## Verify turning on/off swap file ...PASS ## Verify rsyslog is on ...PASS ## Verify rsyslog config ...PASS ## Verify no systemid file ...PASS ## Verify kernel name ...PASS ## Verify latest installed kernel is running ...PASS ## Verify latest kenerl is in /boot/grub/menu.1st ...PASS ## Verify operating system ...PASS ## Verify /etc/sysconfig/kernel ...PASS ## Verify /etc/sysconfig/kernel contains UPDATEDEFAULT ...PASS ## Verify /etc/sysconfig/kernel contains DEFAULTKERNEL ...PASS ## Verify system up to datePASS ## Verify RPMs ...PASS ## Verify Version 2 ...PASS ## Verify packager ...PASS ## List the configured repositories...PASS ## Search zsh...PASS ## install zsh ...PASS ## List available groups..PASS ## Install Development tools group...FAIL # checking possible sys update # no sys update found ## Verify yum update ...PASS ## Verify no fa1lures in rpm package ...PASS ## Verify no rpm scriplet fa1lures ...PASS ## Verify package removal...PASS ## install zsh ...PASS ## Verify package removal ...PASS # checking possible sys update # no sys update found ## Verify yum update ...PASS ## Verify disabled yum plugin ...PASS ## Summary ## FAILURES = 2 FAILED TESTS = ## Verify resize2fs ... ## Install Development tools group... LOG FILE = /root/valid/src/validate.log ## Summary ## ## Summary ## FAILURES = 2 FAILED TESTS = ## Verify resize2fs ... ## Install Development tools group... LOG FILE = /root/valid/src/validate.log ## Summary ## [root@ip-10-203-74-231 src]#
Resize fs test: manual test, just basic volume attached; manual check: [root@ip-10-203-74-231 src]# mount /dev/xvde1 on / type ext4 (rw) none on /proc type proc (rw) none on /sys type sysfs (rw) none on /dev/pts type devpts (rw,gid=5,mode=620) none on /dev/shm type tmpfs (rw,rootcontext="system_u:object_r:tmpfs_t:s0") none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw) sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw) [root@ip-10-203-74-231 src]# resize2fs /dev/xvde1 resize2fs 1.41.12 (17-May-2010) Filesystem at /dev/xvde1 is mounted on /; on-line resizing required old desc_blocks = 1, new_desc_blocks = 1 Performing an on-line resize of /dev/xvde1 to 1835008 (4k) blocks. The filesystem on /dev/xvde1 is now 1835008 blocks long. [root@ip-10-203-74-231 src]# Development tools install is OK to fail atm
Closing verified validation bugs.