Bug 815290

Summary: ami-eaff2483 6.3 x86_64 us-east-1
Product: Cloud Image Validation Reporter: mkovacik
Component: imagesAssignee: wes hayutin <whayutin>
Status: CLOSED NOTABUG QA Contact: mkovacik
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: RHEL6.3   
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-04-23 12:57:23 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description mkovacik 2012-04-23 09:50:35 UTC

Comment 1 mkovacik 2012-04-23 09:57:14 UTC
IMAGE ID= 
=====image_validation.sh Mon Apr 23 05:56:02 EDT 2012=====
######################################################################################
# NEW TEST: ## Open a bugzilla
######################################################################################
######################################################################################
# NEW TEST: Fetching the identity doc Details
######################################################################################
Verifying that signature exists
COMMAND:  echo 1
RESULT: 1 
EXPECTED RESULT: 1
RETURN CODE: 0
PASS
Verifying the IMAGE ID
COMMAND:  echo 1
RESULT: 1 
EXPECTED RESULT: 1
RETURN CODE: 0
PASS
Verifying the Architecture
COMMAND:  echo 1
RESULT: 1 
EXPECTED RESULT: 1
RETURN CODE: 0
PASS
This Host => ec2-174-129-74-115.compute-1.amazonaws.com with Image Id : ami-eaff2483, is launched with Instance Id : i-42377d25 , Instance Type : m1.xlarge and Arch : x86_64 in the Region : us-east-1c
The Validate Signature is : HJftZoM+hlkoqDINwd5X6ONp5D7Nj6ELzSEcn0aGpDjTSFNDwUlBAl2WkYtXyTypA+pRMR75QhQi
V0amoElB3rkDTwXhGQZHWxiTcsWqDEyp5f5P6r5m4LGc8ohxhXUHuepwHna7G5VMp7bhU9ICBvwK
JWV0WvYDOsdXJ/N88Z0=
This is a Cloud Access image
/root/valid/src
domU-12-31-39-04-01-C2
Red Hat Enterprise Linux Server release 6.3 Beta (Santiago)
######################################################################################
# NEW TEST: The selected image has the version RHEL 6.3
######################################################################################
ami is a BETA
######################################################################################
# NEW TEST: ## Verify auditd is on ... 
######################################################################################
COMMAND:  /sbin/chkconfig --list auditd | grep 3:on
RESULT: auditd         	0:off	1:off	2:on	3:on	4:on	5:on	6:off 
EXPECTED RESULT: 
RETURN CODE: 0
PASS
COMMAND:  /sbin/chkconfig --list auditd | grep 5:on
RESULT: auditd         	0:off	1:off	2:on	3:on	4:on	5:on	6:off 
EXPECTED RESULT: 
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify audit.rules ... 
######################################################################################
COMMAND:  md5sum /etc/audit/audit.rules | cut -f 1 -d  " "
RESULT: f9869e1191838c461f5b9051c78a638d 
EXPECTED RESULT: f9869e1191838c461f5b9051c78a638d
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify auditd.conf ... 
######################################################################################
COMMAND:  md5sum /etc/audit/auditd.conf | cut -f 1 -d  " "
RESULT: e1886162554c18906df2ecd258aa4794 
EXPECTED RESULT: 612ddf28c3916530d47ef56a1b1ed1ed
RETURN CODE: 0
FAIL2
e1886162554c18906df2ecd258aa4794
######################################################################################
# NEW TEST: ## Verify auditd sysconfig ... 
######################################################################################
COMMAND:  md5sum /etc/sysconfig/auditd | cut -f 1 -d  " "
RESULT: d4d43637708e30418c30003e212f76fc 
EXPECTED RESULT: 123beb3a97a32d96eba4f11509e39da2
RETURN CODE: 0
FAIL2
d4d43637708e30418c30003e212f76fc
######################################################################################
# NEW TEST: ## Verify bash_history ... 
######################################################################################
COMMAND:  cat ~/.bash_history | wc -l 
RESULT: 0 
EXPECTED RESULT: 0
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify  chkconfig ... 
######################################################################################
COMMAND:  chkconfig --list | grep crond | cut -f 5
RESULT: 3:on 
EXPECTED RESULT: 3:on
RETURN CODE: 0
PASS
COMMAND:  chkconfig --list | grep  iptables | cut -f 5
RESULT: 3:on 
EXPECTED RESULT: 3:on
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify rh-cloud-firstboot is OFF ... 
######################################################################################
COMMAND:  chkconfig --list | grep rh-cloud | grep 3:off | wc -l
RESULT: 1 
EXPECTED RESULT: 1
RETURN CODE: 0
PASS
/etc/sysconfig/rh-cloud-firstboot FOUND
COMMAND:  echo true
RESULT: true 
EXPECTED RESULT: 
RETURN CODE: 0
PASS
COMMAND:  cat /etc/sysconfig/rh-cloud-firstboot
RESULT: RUN_FIRSTBOOT=NO 
EXPECTED RESULT: RUN_FIRSTBOOT=NO
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Partition Format  ...
######################################################################################
mount | grep /dev/xvde1 | awk '{ print  }'
COMMAND:  echo ext4
RESULT: ext4 
EXPECTED RESULT: ext4
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Partition Size ...
######################################################################################
size=5905712
COMMAND:  echo true
RESULT: true 
EXPECTED RESULT: true
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: Fetching the identity doc Details
######################################################################################
Verifying that signature exists
COMMAND:  echo 1
RESULT: 1 
EXPECTED RESULT: 1
RETURN CODE: 0
PASS
Verifying the IMAGE ID
COMMAND:  echo 1
RESULT: 1 
EXPECTED RESULT: 1
RETURN CODE: 0
PASS
Verifying the Architecture
COMMAND:  echo 1
RESULT: 1 
EXPECTED RESULT: 1
RETURN CODE: 0
PASS
This Host => ec2-174-129-74-115.compute-1.amazonaws.com with Image Id : ami-eaff2483, is launched with Instance Id : i-42377d25 , Instance Type : m1.xlarge and Arch : x86_64 in the Region : us-east-1c
The Validate Signature is : HJftZoM+hlkoqDINwd5X6ONp5D7Nj6ELzSEcn0aGpDjTSFNDwUlBAl2WkYtXyTypA+pRMR75QhQi
V0amoElB3rkDTwXhGQZHWxiTcsWqDEyp5f5P6r5m4LGc8ohxhXUHuepwHna7G5VMp7bhU9ICBvwK
JWV0WvYDOsdXJ/N88Z0=
This is a Cloud Access image
######################################################################################
# NEW TEST: ## Verify GPG checking ... 
######################################################################################
COMMAND:  grep '^gpgcheck=1' /etc/yum.repos.d/redhat-*.repo | cut -d\= -f2 | sort -f | uniq
RESULT: 1 
EXPECTED RESULT: 1
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify GPG Keys ... 
######################################################################################
COMMAND:  rpm -qa gpg-pubkey* | wc -l 
RESULT: 2 
EXPECTED RESULT: 2
RETURN CODE: 0
PASS
SKIPPING TEST, BETA DETECTED
######################################################################################
# NEW TEST: ## Verify group file ... 
######################################################################################
COMMAND:  cat /etc/group | grep root:x:0
RESULT: root:x:0: 
EXPECTED RESULT: root:x:0:root
RETURN CODE: 0
FAIL2
root:x:0:
COMMAND:  cat /etc/group | grep bin:x:1
RESULT: bin:x:1:bin,daemon 
EXPECTED RESULT: bin:x:1:root,bin,daemon
RETURN CODE: 0
FAIL2
bin:x:1:bin,daemon
COMMAND:  cat /etc/group | grep daemon:x:2
RESULT: daemon:x:2:bin,daemon 
EXPECTED RESULT: daemon:x:2:root,bin,daemon
RETURN CODE: 0
FAIL2
daemon:x:2:bin,daemon
COMMAND:  cat /etc/group | grep nobody:x:99
RESULT: nobody:x:99: 
EXPECTED RESULT: nobody:x:99:
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ##test menu.lst ... 
######################################################################################
COMMAND:  file /boot/grub/menu.lst  | grep symbolic | wc -l
RESULT: 0 
EXPECTED RESULT: 1
RETURN CODE: 0
FAIL2
0
COMMAND:  file /boot/grub/menu.lst  | grep grub.conf | wc -l
RESULT: 0 
EXPECTED RESULT: 1
RETURN CODE: 0
FAIL2
0
COMMAND:  cat /boot/grub/grub.conf  | grep "(hd0,0)" | wc -l
RESULT: 2 
EXPECTED RESULT: 0
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify runlevel ... 
######################################################################################
COMMAND:  cat /etc/inittab | grep id:
RESULT: id:3:initdefault: 
EXPECTED RESULT: id:3:initdefault:
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify iptables ... 
######################################################################################
COMMAND: /etc/init.d/iptables status | grep REJECT 
5    REJECT     all  --  0.0.0.0/0            0.0.0.0/0           reject-with icmp-host-prohibited 
1    REJECT     all  --  0.0.0.0/0            0.0.0.0/0           reject-with icmp-host-prohibited 
RETURN CODE: 0
COMMAND:  /etc/init.d/iptables status | grep :22 | grep ACCEPT | wc -l 
RESULT: 1 
EXPECTED RESULT: 1
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify /etc/ld.so.conf.d/libc6-xen.conf is not present ... 
######################################################################################
COMMAND:  ls /etc/ld.so.conf.d/libc6-xen.conf
ls: cannot access /etc/ld.so.conf.d/libc6-xen.conf: No such file or directory
RESULT:  
EXPECTED RESULT: 2
RETURN CODE: 2
PASS
######################################################################################
# NEW TEST: ##Verify memory match hwp ... 
######################################################################################
cat /proc/meminfo | grep MemTotal: | awk '{print }'
FOUND MEMORY OF 15371764 > hwp MEMORY of 15000000
COMMAND:  echo true
RESULT: true 
EXPECTED RESULT: 
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify nameserver ... 
######################################################################################
COMMAND:  /usr/bin/dig clock.redhat.com 2>> /root/valid/src/validate.log | grep 66.187.233.4  | wc -l
RESULT: 1 
EXPECTED RESULT: 
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify networking ... 
######################################################################################
COMMAND:  grep ^NETWORKING= /etc/sysconfig/network | cut -d\= -f2
RESULT: yes 
EXPECTED RESULT: yes
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify device ... 
######################################################################################
COMMAND:  grep ^DEVICE= /etc/sysconfig/network-scripts/ifcfg-eth0 | cut -d\= -f2
RESULT: eth0 
EXPECTED RESULT: eth0
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify no missing packages ... 
######################################################################################
COMMAND: /bin/rpm -qa --queryformat='%{NAME}\n' > /tmp/rpmqa.tmp
RETURN CODE: 0
COUNT = 0
COMMAND:  echo test failed
RESULT: test failed 
EXPECTED RESULT: 1
RETURN CODE: 0
FAIL2
test failed
######################################################################################
# NEW TEST: ## Verify new passwd file ... 
######################################################################################
COMMAND:  cat /etc/passwd | grep root:x:0
RESULT: root:x:0:0:root:/root:/bin/bash 
EXPECTED RESULT: root:x:0:0:root:/root:/bin/bash
RETURN CODE: 0
PASS
COMMAND:  cat /etc/passwd | grep nobody:x:99
RESULT: nobody:x:99:99:Nobody:/:/sbin/nologin 
EXPECTED RESULT: nobody:x:99:99:Nobody:/:/sbin/nologin
RETURN CODE: 0
PASS
COMMAND:  cat /etc/passwd | grep sshd
RESULT: sshd:x:74:74:Privilege-separated SSH:/var/empty/sshd:/sbin/nologin 
EXPECTED RESULT: sshd:x:74:74:Privilege-separated SSH:/var/empty/sshd:/sbin/nologin
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## test repo files ... 
######################################################################################
COMMAND:  ls /etc/yum.repos.d/ | wc -l 
RESULT: 6 
EXPECTED RESULT: 4
RETURN CODE: 0
FAIL2
6
COMMAND:  ls /etc/yum.repos.d/redhat* | wc -l
RESULT: 4 
EXPECTED RESULT: 2
RETURN CODE: 0
FAIL2
4
COMMAND:  ls /etc/yum.repos.d/rhel* | wc -l
RESULT: 1 
EXPECTED RESULT: 0
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify resize2fs ... 
######################################################################################
COMMAND: resize2fs -p /dev/xvde1 15000M
resize2fs 1.41.12 (17-May-2010)
RETURN CODE: 0
COMMAND:  df -h | grep 15G | wc -l 
RESULT: 1 
EXPECTED RESULT: 1
RETURN CODE: 0
PASS
/root/valid/src
domU-12-31-39-04-01-C2
Red Hat Enterprise Linux Server release 6.3 Beta (Santiago)
######################################################################################
# NEW TEST: The selected image has the version RHEL 6.3
######################################################################################
ami is a BETA
######################################################################################
# NEW TEST: ## /sbin/getenforce ... 
######################################################################################
COMMAND:  /usr/sbin/getenforce
RESULT: Enforcing 
EXPECTED RESULT: Enforcing
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify SELINUX enforcing ... 
######################################################################################
COMMAND:  grep ^SELINUX= /etc/sysconfig/selinux | cut -d\= -f2
RESULT: enforcing 
EXPECTED RESULT: enforcing
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify SELINUXTYPE targeted ... 
######################################################################################
COMMAND:  grep ^SELINUXTYPE= /etc/sysconfig/selinux | cut -d\= -f2
RESULT: targeted 
EXPECTED RESULT: targeted
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Flip Selinux Permissive ... 
######################################################################################
COMMAND:  /usr/sbin/setenforce Permissive && /usr/sbin/getenforce
RESULT: Permissive 
EXPECTED RESULT: Permissive
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Flip Selinux Enforcing ... 
######################################################################################
COMMAND:  /usr/sbin/setenforce Enforcing && /usr/sbin/getenforce
RESULT: Enforcing 
EXPECTED RESULT: Enforcing
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify new shells file ... 
######################################################################################
COMMAND:  cat /etc/shells | grep bash
RESULT: /bin/bash 
EXPECTED RESULT: /bin/bash
RETURN CODE: 0
PASS
COMMAND:  cat /etc/shells | grep nologin
RESULT: /sbin/nologin 
EXPECTED RESULT: /sbin/nologin
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify sshd_config settings ...
######################################################################################
COMMAND:  cat /etc/ssh/sshd_config  | grep  PasswordAuthentication | grep no | wc -l
RESULT: 1 
EXPECTED RESULT: 1
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify sshd ...
######################################################################################
COMMAND:  chkconfig --list | grep sshd
RESULT: sshd           	0:off	1:off	2:on	3:on	4:on	5:on	6:off 
EXPECTED RESULT: sshd           	0:off	1:off	2:on	3:on	4:on	5:on	6:off
RETURN CODE: 0
PASS
COMMAND:  /etc/init.d/sshd status | grep running | wc -l
RESULT: 1 
EXPECTED RESULT: 1
RETURN CODE: 0
PASS
this machine doesn't require swap
######################################################################################
# NEW TEST: ## Verify rsyslog is on ... 
######################################################################################
COMMAND:  chkconfig --list | grep rsyslog | cut -f 5
RESULT: 3:on 
EXPECTED RESULT: 3:on
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify rsyslog config ... 
######################################################################################
COMMAND:  md5sum /etc/rsyslog.conf | cut -f 1 -d  " "
RESULT: 8b91b32300134e98ef4aee632ed61e21 
EXPECTED RESULT: dd356958ca9c4e779f7fac13dde3c1b5
RETURN CODE: 0
FAIL2
8b91b32300134e98ef4aee632ed61e21
######################################################################################
# NEW TEST: ## Verify no systemid file ... 
######################################################################################
COMMAND:  echo true
RESULT: true 
EXPECTED RESULT: 
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify kernel name ... 
######################################################################################
COMMAND:  /bin/uname -s
RESULT: Linux 
EXPECTED RESULT: Linux
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify latest installed kernel is running ... 
######################################################################################
RHEL VERSION IS 6
LATEST_RPM_KERNEL_VERSION=rpm -q kernel --last | head -n 1 |  cut -c 8-60 | cut -d ' ' -f 1
CURRENT_UNAME_KERNAL_VERSION=2.6.32-262.el6
assert latest rpm kernel = uname -r
COMMAND:  uname -r | sed  's/\(.*\)......./\1/'
RESULT: 2.6.32-262.el6 
EXPECTED RESULT: 2.6.32-262.el6.x86_64
RETURN CODE: 0
FAIL2
2.6.32-262.el6
######################################################################################
# NEW TEST: ## Verify latest kenerl is in /boot/grub/menu.1st ... 
######################################################################################
COMMAND:  cat /boot/grub/menu.lst | grep 2.6.32-262.el6.x86_64
RESULT: title RHEL6.3-20120416.0-Server-x86_64-starter-ec2 (2.6.32-262.el6.x86_64)
        kernel /boot/vmlinuz-2.6.32-262.el6.x86_64 ro root=LABEL=_/ 
        initrd /boot/initramfs-2.6.32-262.el6.x86_64.img 
EXPECTED RESULT: 
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify operating system ... 
######################################################################################
COMMAND:  /bin/uname -o
RESULT: GNU/Linux 
EXPECTED RESULT: GNU/Linux
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify /etc/sysconfig/kernel ... 
######################################################################################
COMMAND:  ls /etc/sysconfig/kernel
RESULT: /etc/sysconfig/kernel 
EXPECTED RESULT:

Comment 2 mkovacik 2012-04-23 09:57:17 UTC
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify /etc/sysconfig/kernel contains UPDATEDEFAULT ... 
######################################################################################
COMMAND:  cat /etc/sysconfig/kernel | grep UPDATEDEFAULT=yes
RESULT: UPDATEDEFAULT=yes 
EXPECTED RESULT: 
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify /etc/sysconfig/kernel contains DEFAULTKERNEL ... 
######################################################################################
COMMAND:  cat /etc/sysconfig/kernel | grep DEFAULTKERNEL=kernel
RESULT: DEFAULTKERNEL=kernel 
EXPECTED RESULT: 
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify system up to date
######################################################################################
COMMAND:  _check_sys_update_phase1
# no update was required
RESULT: # checking sys update done
# no update was required 
EXPECTED RESULT: 
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify RPMs ... 
######################################################################################
....L....  c /etc/pam.d/fingerprint-auth
....L....  c /etc/pam.d/password-auth
....L....  c /etc/pam.d/smartcard-auth
....L....  c /etc/pam.d/system-auth
.M.......    /var/cache/yum
    S file Size differs
    M Mode differs (includes permissions and file type)
    5 MD5 sum differs
    D Device major/minor number mismatch
    L readLink(2) path mismatch
    U User ownership differs
    G Group ownership differs
    T mTime differs

COMMAND:  cat /tmp/rpmqaV.txt | wc -l
RESULT: 5 
EXPECTED RESULT: 4
RETURN CODE: 0
FAIL2
5
######################################################################################
# NEW TEST: ## Verify Version 2 ... 
######################################################################################
COMMAND:  /bin/rpm -q --queryformat '%{RELEASE}\n' redhat-release-server | cut -d. -f1,2
RESULT: 6.3 
EXPECTED RESULT: 6.3
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify packager ... 
######################################################################################
COMMAND:  cat /tmp/Packager | grep -v 'Red Hat, Inc.' |  grep -v crash-trace-commandPackager| wc -l
RESULT: 0 
EXPECTED RESULT: 0
RETURN CODE: 0
PASS
crash-trace-commandPackager    : Lai Jiangshan <laijs.com>
######################################################################################
# NEW TEST: ## List the configured repositories...
######################################################################################
COMMAND:  /usr/bin/yum repolist
Unable to read consumer identity
Repo rhui-us-east-1-rhel-server-releases-beta forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-beta-key.pem
Repo rhui-us-east-1-rhel-server-releases-optional-beta forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-beta-key.pem
Repo rhui-us-east-1-rhel-server-releases forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-key.pem
Repo rhui-us-east-1-rhel-server-releases-optional forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-key.pem
RESULT: Loaded plugins: amazon-id, product-id, rhui-lb, security, subscription-manager
Updating certificate-based repositories.
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/dist/rhel/rhui/server/6/6Server/x86_64/os error was
14: problem with the local client certificate
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/beta/rhel/rhui/server/6/6Server/x86_64/os error was
14: problem with the local client certificate
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/dist/rhel/rhui/server/6/6Server/x86_64/optional/os error was
14: problem with the local client certificate
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/beta/rhel/rhui/server/6/6Server/x86_64/optional/os error was
14: problem with the local client certificate
repo id                                    repo name                      status
rhui-us-east-1-client-config-server-6      Red Hat Update Infrastructure  1
rhui-us-east-1-client-config-server-6-beta Red Hat Update Infrastructure  0
repolist: 1 
EXPECTED RESULT: 
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Search zsh...
######################################################################################
COMMAND:  /usr/bin/yum search zsh
Unable to read consumer identity
Repo rhui-us-east-1-rhel-server-releases-beta forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-beta-key.pem
Repo rhui-us-east-1-rhel-server-releases-optional-beta forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-beta-key.pem
Repo rhui-us-east-1-rhel-server-releases forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-key.pem
Repo rhui-us-east-1-rhel-server-releases-optional forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-key.pem
Warning: No matches found for: zsh
RESULT: Loaded plugins: amazon-id, product-id, rhui-lb, security, subscription-manager
Updating certificate-based repositories.
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/dist/rhel/rhui/server/6/6Server/x86_64/os error was
14: problem with the local client certificate
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/beta/rhel/rhui/server/6/6Server/x86_64/os error was
14: problem with the local client certificate
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/dist/rhel/rhui/server/6/6Server/x86_64/optional/os error was
14: problem with the local client certificate
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/beta/rhel/rhui/server/6/6Server/x86_64/optional/os error was
14: problem with the local client certificate
No Matches found 
EXPECTED RESULT: 
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## install zsh ... 
######################################################################################
COMMAND: /usr/bin/yum -y install zsh
Unable to read consumer identity
Repo rhui-us-east-1-rhel-server-releases-beta forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-beta-key.pem
Repo rhui-us-east-1-rhel-server-releases-optional-beta forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-beta-key.pem
Repo rhui-us-east-1-rhel-server-releases forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-key.pem
Repo rhui-us-east-1-rhel-server-releases-optional forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-key.pem
Error: Nothing to do
RETURN CODE: 1
COMMAND:  /bin/rpm -q --queryformat '%{NAME}\n' zsh
RESULT: package zsh is not installed 
EXPECTED RESULT: zsh
RETURN CODE: 1
FAIL1
package zsh is not installed
######################################################################################
# NEW TEST: ## List available groups..
######################################################################################
COMMAND:  /usr/bin/yum grouplist
Unable to read consumer identity
Repo rhui-us-east-1-rhel-server-releases-beta forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-beta-key.pem
Repo rhui-us-east-1-rhel-server-releases-optional-beta forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-beta-key.pem
Repo rhui-us-east-1-rhel-server-releases forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-key.pem
Repo rhui-us-east-1-rhel-server-releases-optional forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-key.pem
Error: Cannot retrieve repository metadata (repomd.xml) for repository: rhui-us-east-1-rhel-server-releases. Please verify its path and try again
RESULT: Loaded plugins: amazon-id, product-id, rhui-lb, security, subscription-manager
Updating certificate-based repositories.
Setting up Group Process
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/dist/rhel/rhui/server/6/6Server/x86_64/os error was
14: problem with the local client certificate 
EXPECTED RESULT: 
RETURN CODE: 1
FAIL1
Loaded plugins: amazon-id, product-id, rhui-lb, security, subscription-manager Updating certificate-based repositories. Setting up Group Process Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/dist/rhel/rhui/server/6/6Server/x86_64/os error was 14: problem with the local client certificate
######################################################################################
# NEW TEST: ## Install Development tools group...
######################################################################################
COMMAND:  /usr/bin/yum -y groupinstall 'Development tools'
Unable to read consumer identity
Repo rhui-us-east-1-rhel-server-releases-beta forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-beta-key.pem
Repo rhui-us-east-1-rhel-server-releases-optional-beta forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-beta-key.pem
Repo rhui-us-east-1-rhel-server-releases forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-key.pem
Repo rhui-us-east-1-rhel-server-releases-optional forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-key.pem
Warning: Group Development tools does not exist.
RESULT: Loaded plugins: amazon-id, product-id, rhui-lb, security, subscription-manager
Updating certificate-based repositories.
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/dist/rhel/rhui/server/6/6Server/x86_64/os error was
14: problem with the local client certificate
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/beta/rhel/rhui/server/6/6Server/x86_64/os error was
14: problem with the local client certificate
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/dist/rhel/rhui/server/6/6Server/x86_64/optional/os error was
14: problem with the local client certificate
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/beta/rhel/rhui/server/6/6Server/x86_64/optional/os error was
14: problem with the local client certificate
Setting up Group Process
No packages in any requested group available to install or update 
EXPECTED RESULT: 
RETURN CODE: 0
PASS
# checking possible sys update
Loaded plugins: amazon-id, product-id, rhui-lb, security, subscription-manager
Updating certificate-based repositories.
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/dist/rhel/rhui/server/6/6Server/x86_64/os error was
14: problem with the local client certificate
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/beta/rhel/rhui/server/6/6Server/x86_64/os error was
14: problem with the local client certificate
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/dist/rhel/rhui/server/6/6Server/x86_64/optional/os error was
14: problem with the local client certificate
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/beta/rhel/rhui/server/6/6Server/x86_64/optional/os error was
14: problem with the local client certificate
# no sys update found
######################################################################################
# NEW TEST: ## Verify yum update ... 
######################################################################################
COMMAND:  /usr/bin/yum -y update
Unable to read consumer identity
Repo rhui-us-east-1-rhel-server-releases-beta forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-beta-key.pem
Repo rhui-us-east-1-rhel-server-releases-optional-beta forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-beta-key.pem
Repo rhui-us-east-1-rhel-server-releases forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-key.pem
Repo rhui-us-east-1-rhel-server-releases-optional forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-key.pem
RESULT: Loaded plugins: amazon-id, product-id, rhui-lb, security, subscription-manager
Updating certificate-based repositories.
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/dist/rhel/rhui/server/6/6Server/x86_64/os error was
14: problem with the local client certificate
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/beta/rhel/rhui/server/6/6Server/x86_64/os error was
14: problem with the local client certificate
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/dist/rhel/rhui/server/6/6Server/x86_64/optional/os error was
14: problem with the local client certificate
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/beta/rhel/rhui/server/6/6Server/x86_64/optional/os error was
14: problem with the local client certificate
Setting up Update Process
No Packages marked for Update 
EXPECTED RESULT: 
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify no fa1lures in rpm package ... 
######################################################################################
COMMAND:  cat /root/valid/src/validate.log | grep 'failure in rpm package' | wc -l
RESULT: 1 
EXPECTED RESULT: 1
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify no rpm scriplet fa1lures ... 
######################################################################################
COMMAND:  cat /root/valid/src/validate.log | grep 'scriptlet failed, exit status 1' | wc -l
RESULT: 1 
EXPECTED RESULT: 1
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify package removal... 
######################################################################################
COMMAND: /bin/rpm -e zsh
error: package zsh is not installed
RETURN CODE: 1
COMMAND:  /bin/rpm -q zsh
RESULT: package zsh is not installed 
EXPECTED RESULT: package zsh is not installed
RETURN CODE: 1
PASS
######################################################################################
# NEW TEST: ## install zsh ... 
######################################################################################
COMMAND: /usr/bin/yum -y install zsh
Unable to read consumer identity
Repo rhui-us-east-1-rhel-server-releases-beta forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-beta-key.pem
Repo rhui-us-east-1-rhel-server-releases-optional-beta forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-beta-key.pem
Repo rhui-us-east-1-rhel-server-releases forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-key.pem
Repo rhui-us-east-1-rhel-server-releases-optional forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-key.pem
Error: Nothing to do
RETURN CODE: 1
COMMAND:  /bin/rpm -q --queryformat '%{NAME}\n' zsh
RESULT: package zsh is not installed 
EXPECTED RESULT: zsh
RETURN CODE: 1
FAIL1
package zsh is not installed
######################################################################################
# NEW TEST: ## Verify package removal ... 
######################################################################################
COMMAND: /bin/rpm -e zsh
error: package zsh is not installed
RETURN CODE: 1
COMMAND:  /bin/rpm -q zsh
RESULT: package zsh is not installed 
EXPECTED RESULT: package zsh is not installed
RETURN CODE: 1
PASS
# checking possible sys update
Loaded plugins: amazon-id, product-id, rhui-lb, security, subscription-manager
Updating certificate-based repositories.
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/dist/rhel/rhui/server/6/6Server/x86_64/os error was
14: problem with the local client certificate
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/beta/rhel/rhui/server/6/6Server/x86_64/os error was
14: problem with the local client certificate
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/dist/rhel/rhui/server/6/6Server/x86_64/optional/os error was
14: problem with the local client certificate
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/beta/rhel/rhui/server/6/6Server/x86_64/optional/os error was
14: problem with the local client certificate
# no sys update found
######################################################################################
# NEW TEST: ## Verify yum update ... 
######################################################################################
COMMAND:  /usr/bin/yum -y update
Unable to read consumer identity
Repo rhui-us-east-1-rhel-server-releases-beta forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-beta-key.pem
Repo rhui-us-east-1-rhel-server-releases-optional-beta forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-beta-key.pem
Repo rhui-us-east-1-rhel-server-releases forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-key.pem
Repo rhui-us-east-1-rhel-server-releases-optional forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-key.pem
RESULT: Loaded plugins: amazon-id, product-id, rhui-lb, security, subscription-manager
Updating certificate-based repositories.
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/dist/rhel/rhui/server/6/6Server/x86_64/os error was
14: problem with the local client certificate
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/beta/rhel/rhui/server/6/6Server/x86_64/os error was
14: problem with the local client certificate
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/dist/rhel/rhui/server/6/6Server/x86_64/optional/os error was
14: problem with the local client certificate
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/beta/rhel/rhui/server/6/6Server/x86_64/optional/os error was
14: problem with the local client certificate
Setting up Update Process
No Packages marked for Update 
EXPECTED RESULT: 
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify disabled yum plugin ... 
######################################################################################
COMMAND:  grep ^enabled /etc/yum/pluginconf.d/rhnplugin.conf | grep -v '^#' | cut -d\= -f2 | awk '{print }' | sort -f | uniq
RESULT:  0 
EXPECTED RESULT: 
RETURN CODE: 0
PASS

## Summary ##
FAILURES = 16
FAILED TESTS = ## Verify auditd.conf ... ## Verify auditd sysconfig ... ## Verify group file ... ## Verify group file ... ## Verify group file ... ##test menu.lst ... ##test menu.lst ... ## Verify no missing packages ... ## test repo files ... ## test repo files ... ## Verify rsyslog config ... ## Verify latest installed kernel is running ... ## Verify RPMs ... ## install zsh ... ## List available groups.. ## install zsh ...
LOG FILE = /root/valid/src/validate.log
## Summary ##

######################################################################################
# NEW TEST: ## Open a bugzilla
######################################################################################

Comment 3 mkovacik 2012-04-23 10:01:41 UTC
IMAGE ID= 
=====image_validation.sh Mon Apr 23 05:58:32 EDT 2012=====
######################################################################################
# NEW TEST: ## Open a bugzilla
######################################################################################
######################################################################################
# NEW TEST: Fetching the identity doc Details
######################################################################################
Verifying that signature exists
COMMAND:  echo 1
RESULT: 1 
EXPECTED RESULT: 1
RETURN CODE: 0
PASS
Verifying the IMAGE ID
COMMAND:  echo 1
RESULT: 1 
EXPECTED RESULT: 1
RETURN CODE: 0
PASS
Verifying the Architecture
COMMAND:  echo 1
RESULT: 1 
EXPECTED RESULT: 1
RETURN CODE: 0
PASS
This Host => ec2-107-22-91-181.compute-1.amazonaws.com with Image Id : ami-eaff2483, is launched with Instance Id : i-ba377ddd , Instance Type : t1.micro and Arch : x86_64 in the Region : us-east-1c
The Validate Signature is : KTBLNFI594y/zrgzx4klzP9VO1PIADE3oQ1mQoVvuyZYc9vSQ7i/iIkLxhwvU5kYC/T5200Vauie
fiA4xOZYyMDhq3XqEZ/4xE1IL301BGeg03z8xVhCAb47m18zNpdkDZ5yTrG2Q7H3ZQdXt/4Czdg+
RXzRL3y2E+0zQprkRfk=
This is a Cloud Access image
/root/valid/src
domU-12-31-39-0A-3D-B8
Red Hat Enterprise Linux Server release 6.3 Beta (Santiago)
######################################################################################
# NEW TEST: The selected image has the version RHEL 6.3
######################################################################################
ami is a BETA
######################################################################################
# NEW TEST: ## Verify auditd is on ... 
######################################################################################
COMMAND:  /sbin/chkconfig --list auditd | grep 3:on
RESULT: auditd         	0:off	1:off	2:on	3:on	4:on	5:on	6:off 
EXPECTED RESULT: 
RETURN CODE: 0
PASS
COMMAND:  /sbin/chkconfig --list auditd | grep 5:on
RESULT: auditd         	0:off	1:off	2:on	3:on	4:on	5:on	6:off 
EXPECTED RESULT: 
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify audit.rules ... 
######################################################################################
COMMAND:  md5sum /etc/audit/audit.rules | cut -f 1 -d  " "
RESULT: f9869e1191838c461f5b9051c78a638d 
EXPECTED RESULT: f9869e1191838c461f5b9051c78a638d
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify auditd.conf ... 
######################################################################################
COMMAND:  md5sum /etc/audit/auditd.conf | cut -f 1 -d  " "
RESULT: e1886162554c18906df2ecd258aa4794 
EXPECTED RESULT: 612ddf28c3916530d47ef56a1b1ed1ed
RETURN CODE: 0
FAIL2
e1886162554c18906df2ecd258aa4794
######################################################################################
# NEW TEST: ## Verify auditd sysconfig ... 
######################################################################################
COMMAND:  md5sum /etc/sysconfig/auditd | cut -f 1 -d  " "
RESULT: d4d43637708e30418c30003e212f76fc 
EXPECTED RESULT: 123beb3a97a32d96eba4f11509e39da2
RETURN CODE: 0
FAIL2
d4d43637708e30418c30003e212f76fc
######################################################################################
# NEW TEST: ## Verify bash_history ... 
######################################################################################
COMMAND:  cat ~/.bash_history | wc -l 
RESULT: 0 
EXPECTED RESULT: 0
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify  chkconfig ... 
######################################################################################
COMMAND:  chkconfig --list | grep crond | cut -f 5
RESULT: 3:on 
EXPECTED RESULT: 3:on
RETURN CODE: 0
PASS
COMMAND:  chkconfig --list | grep  iptables | cut -f 5
RESULT: 3:on 
EXPECTED RESULT: 3:on
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify rh-cloud-firstboot is OFF ... 
######################################################################################
COMMAND:  chkconfig --list | grep rh-cloud | grep 3:off | wc -l
RESULT: 1 
EXPECTED RESULT: 1
RETURN CODE: 0
PASS
/etc/sysconfig/rh-cloud-firstboot FOUND
COMMAND:  echo true
RESULT: true 
EXPECTED RESULT: 
RETURN CODE: 0
PASS
COMMAND:  cat /etc/sysconfig/rh-cloud-firstboot
RESULT: RUN_FIRSTBOOT=NO 
EXPECTED RESULT: RUN_FIRSTBOOT=NO
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Partition Format  ...
######################################################################################
mount | grep /dev/xvde1 | awk '{ print  }'
COMMAND:  echo ext4
RESULT: ext4 
EXPECTED RESULT: ext4
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Partition Size ...
######################################################################################
size=5905712
COMMAND:  echo true
RESULT: true 
EXPECTED RESULT: true
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: Fetching the identity doc Details
######################################################################################
Verifying that signature exists
COMMAND:  echo 1
RESULT: 1 
EXPECTED RESULT: 1
RETURN CODE: 0
PASS
Verifying the IMAGE ID
COMMAND:  echo 1
RESULT: 1 
EXPECTED RESULT: 1
RETURN CODE: 0
PASS
Verifying the Architecture
COMMAND:  echo 1
RESULT: 1 
EXPECTED RESULT: 1
RETURN CODE: 0
PASS
This Host => ec2-107-22-91-181.compute-1.amazonaws.com with Image Id : ami-eaff2483, is launched with Instance Id : i-ba377ddd , Instance Type : t1.micro and Arch : x86_64 in the Region : us-east-1c
The Validate Signature is : KTBLNFI594y/zrgzx4klzP9VO1PIADE3oQ1mQoVvuyZYc9vSQ7i/iIkLxhwvU5kYC/T5200Vauie
fiA4xOZYyMDhq3XqEZ/4xE1IL301BGeg03z8xVhCAb47m18zNpdkDZ5yTrG2Q7H3ZQdXt/4Czdg+
RXzRL3y2E+0zQprkRfk=
This is a Cloud Access image
######################################################################################
# NEW TEST: ## Verify GPG checking ... 
######################################################################################
COMMAND:  grep '^gpgcheck=1' /etc/yum.repos.d/redhat-*.repo | cut -d\= -f2 | sort -f | uniq
RESULT: 1 
EXPECTED RESULT: 1
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify GPG Keys ... 
######################################################################################
COMMAND:  rpm -qa gpg-pubkey* | wc -l 
RESULT: 2 
EXPECTED RESULT: 2
RETURN CODE: 0
PASS
SKIPPING TEST, BETA DETECTED
######################################################################################
# NEW TEST: ## Verify group file ... 
######################################################################################
COMMAND:  cat /etc/group | grep root:x:0
RESULT: root:x:0: 
EXPECTED RESULT: root:x:0:root
RETURN CODE: 0
FAIL2
root:x:0:
COMMAND:  cat /etc/group | grep bin:x:1
RESULT: bin:x:1:bin,daemon 
EXPECTED RESULT: bin:x:1:root,bin,daemon
RETURN CODE: 0
FAIL2
bin:x:1:bin,daemon
COMMAND:  cat /etc/group | grep daemon:x:2
RESULT: daemon:x:2:bin,daemon 
EXPECTED RESULT: daemon:x:2:root,bin,daemon
RETURN CODE: 0
FAIL2
daemon:x:2:bin,daemon
COMMAND:  cat /etc/group | grep nobody:x:99
RESULT: nobody:x:99: 
EXPECTED RESULT: nobody:x:99:
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ##test menu.lst ... 
######################################################################################
COMMAND:  file /boot/grub/menu.lst  | grep symbolic | wc -l
RESULT: 0 
EXPECTED RESULT: 1
RETURN CODE: 0
FAIL2
0
COMMAND:  file /boot/grub/menu.lst  | grep grub.conf | wc -l
RESULT: 0 
EXPECTED RESULT: 1
RETURN CODE: 0
FAIL2
0
COMMAND:  cat /boot/grub/grub.conf  | grep "(hd0,0)" | wc -l
RESULT: 2 
EXPECTED RESULT: 0
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify runlevel ... 
######################################################################################
COMMAND:  cat /etc/inittab | grep id:
RESULT: id:3:initdefault: 
EXPECTED RESULT: id:3:initdefault:
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify iptables ... 
######################################################################################
COMMAND: /etc/init.d/iptables status | grep REJECT 
5    REJECT     all  --  0.0.0.0/0            0.0.0.0/0           reject-with icmp-host-prohibited 
1    REJECT     all  --  0.0.0.0/0            0.0.0.0/0           reject-with icmp-host-prohibited 
RETURN CODE: 0
COMMAND:  /etc/init.d/iptables status | grep :22 | grep ACCEPT | wc -l 
RESULT: 1 
EXPECTED RESULT: 1
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify /etc/ld.so.conf.d/libc6-xen.conf is not present ... 
######################################################################################
COMMAND:  ls /etc/ld.so.conf.d/libc6-xen.conf
ls: cannot access /etc/ld.so.conf.d/libc6-xen.conf: No such file or directory
RESULT:  
EXPECTED RESULT: 2
RETURN CODE: 2
PASS
######################################################################################
# NEW TEST: ##Verify memory match hwp ... 
######################################################################################
cat /proc/meminfo | grep MemTotal: | awk '{print }'
FOUND MEMORY OF 604856 > hwp MEMORY of 600000
COMMAND:  echo true
RESULT: true 
EXPECTED RESULT: 
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify nameserver ... 
######################################################################################
COMMAND:  /usr/bin/dig clock.redhat.com 2>> /root/valid/src/validate.log | grep 66.187.233.4  | wc -l
RESULT: 1 
EXPECTED RESULT: 
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify networking ... 
######################################################################################
COMMAND:  grep ^NETWORKING= /etc/sysconfig/network | cut -d\= -f2
RESULT: yes 
EXPECTED RESULT: yes
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify device ... 
######################################################################################
COMMAND:  grep ^DEVICE= /etc/sysconfig/network-scripts/ifcfg-eth0 | cut -d\= -f2
RESULT: eth0 
EXPECTED RESULT: eth0
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify no missing packages ... 
######################################################################################
COMMAND: /bin/rpm -qa --queryformat='%{NAME}\n' > /tmp/rpmqa.tmp
RETURN CODE: 0
COUNT = 0
COMMAND:  echo test failed
RESULT: test failed 
EXPECTED RESULT: 1
RETURN CODE: 0
FAIL2
test failed
######################################################################################
# NEW TEST: ## Verify new passwd file ... 
######################################################################################
COMMAND:  cat /etc/passwd | grep root:x:0
RESULT: root:x:0:0:root:/root:/bin/bash 
EXPECTED RESULT: root:x:0:0:root:/root:/bin/bash
RETURN CODE: 0
PASS
COMMAND:  cat /etc/passwd | grep nobody:x:99
RESULT: nobody:x:99:99:Nobody:/:/sbin/nologin 
EXPECTED RESULT: nobody:x:99:99:Nobody:/:/sbin/nologin
RETURN CODE: 0
PASS
COMMAND:  cat /etc/passwd | grep sshd
RESULT: sshd:x:74:74:Privilege-separated SSH:/var/empty/sshd:/sbin/nologin 
EXPECTED RESULT: sshd:x:74:74:Privilege-separated SSH:/var/empty/sshd:/sbin/nologin
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## test repo files ... 
######################################################################################
COMMAND:  ls /etc/yum.repos.d/ | wc -l 
RESULT: 6 
EXPECTED RESULT: 4
RETURN CODE: 0
FAIL2
6
COMMAND:  ls /etc/yum.repos.d/redhat* | wc -l
RESULT: 4 
EXPECTED RESULT: 2
RETURN CODE: 0
FAIL2
4
COMMAND:  ls /etc/yum.repos.d/rhel* | wc -l
RESULT: 1 
EXPECTED RESULT: 0
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify resize2fs ... 
######################################################################################
COMMAND: resize2fs -p /dev/xvde1 15000M
resize2fs 1.41.12 (17-May-2010)
RETURN CODE: 0
COMMAND:  df -h | grep 15G | wc -l 
RESULT: 1 
EXPECTED RESULT: 1
RETURN CODE: 0
PASS
/root/valid/src
domU-12-31-39-0A-3D-B8
Red Hat Enterprise Linux Server release 6.3 Beta (Santiago)
######################################################################################
# NEW TEST: The selected image has the version RHEL 6.3
######################################################################################
ami is a BETA
######################################################################################
# NEW TEST: ## /sbin/getenforce ... 
######################################################################################
COMMAND:  /usr/sbin/getenforce
RESULT: Enforcing 
EXPECTED RESULT: Enforcing
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify SELINUX enforcing ... 
######################################################################################
COMMAND:  grep ^SELINUX= /etc/sysconfig/selinux | cut -d\= -f2
RESULT: enforcing 
EXPECTED RESULT: enforcing
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify SELINUXTYPE targeted ... 
######################################################################################
COMMAND:  grep ^SELINUXTYPE= /etc/sysconfig/selinux | cut -d\= -f2
RESULT: targeted 
EXPECTED RESULT: targeted
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Flip Selinux Permissive ... 
######################################################################################
COMMAND:  /usr/sbin/setenforce Permissive && /usr/sbin/getenforce
RESULT: Permissive 
EXPECTED RESULT: Permissive
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Flip Selinux Enforcing ... 
######################################################################################
COMMAND:  /usr/sbin/setenforce Enforcing && /usr/sbin/getenforce
RESULT: Enforcing 
EXPECTED RESULT: Enforcing
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify new shells file ... 
######################################################################################
COMMAND:  cat /etc/shells | grep bash
RESULT: /bin/bash 
EXPECTED RESULT: /bin/bash
RETURN CODE: 0
PASS
COMMAND:  cat /etc/shells | grep nologin
RESULT: /sbin/nologin 
EXPECTED RESULT: /sbin/nologin
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify sshd_config settings ...
######################################################################################
COMMAND:  cat /etc/ssh/sshd_config  | grep  PasswordAuthentication | grep no | wc -l
RESULT: 1 
EXPECTED RESULT: 1
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify sshd ...
######################################################################################
COMMAND:  chkconfig --list | grep sshd
RESULT: sshd           	0:off	1:off	2:on	3:on	4:on	5:on	6:off 
EXPECTED RESULT: sshd           	0:off	1:off	2:on	3:on	4:on	5:on	6:off
RETURN CODE: 0
PASS
COMMAND:  /etc/init.d/sshd status | grep running | wc -l
RESULT: 1 
EXPECTED RESULT: 1
RETURN CODE: 0
PASS
this machine doesn't require swap
######################################################################################
# NEW TEST: ## Verify rsyslog is on ... 
######################################################################################
COMMAND:  chkconfig --list | grep rsyslog | cut -f 5
RESULT: 3:on 
EXPECTED RESULT: 3:on
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify rsyslog config ... 
######################################################################################
COMMAND:  md5sum /etc/rsyslog.conf | cut -f 1 -d  " "
RESULT: 8b91b32300134e98ef4aee632ed61e21 
EXPECTED RESULT: dd356958ca9c4e779f7fac13dde3c1b5
RETURN CODE: 0
FAIL2
8b91b32300134e98ef4aee632ed61e21
######################################################################################
# NEW TEST: ## Verify no systemid file ... 
######################################################################################
COMMAND:  echo true
RESULT: true 
EXPECTED RESULT: 
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify kernel name ... 
######################################################################################
COMMAND:  /bin/uname -s
RESULT: Linux 
EXPECTED RESULT: Linux
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify latest installed kernel is running ... 
######################################################################################
RHEL VERSION IS 6
LATEST_RPM_KERNEL_VERSION=rpm -q kernel --last | head -n 1 |  cut -c 8-60 | cut -d ' ' -f 1
CURRENT_UNAME_KERNAL_VERSION=2.6.32-262.el6
assert latest rpm kernel = uname -r
COMMAND:  uname -r | sed  's/\(.*\)......./\1/'
RESULT: 2.6.32-262.el6 
EXPECTED RESULT: 2.6.32-262.el6.x86_64
RETURN CODE: 0
FAIL2
2.6.32-262.el6
######################################################################################
# NEW TEST: ## Verify latest kenerl is in /boot/grub/menu.1st ... 
######################################################################################
COMMAND:  cat /boot/grub/menu.lst | grep 2.6.32-262.el6.x86_64
RESULT: title RHEL6.3-20120416.0-Server-x86_64-starter-ec2 (2.6.32-262.el6.x86_64)
        kernel /boot/vmlinuz-2.6.32-262.el6.x86_64 ro root=LABEL=_/ 
        initrd /boot/initramfs-2.6.32-262.el6.x86_64.img 
EXPECTED RESULT: 
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify operating system ... 
######################################################################################
COMMAND:  /bin/uname -o
RESULT: GNU/Linux 
EXPECTED RESULT: GNU/Linux
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify /etc/sysconfig/kernel ... 
######################################################################################
COMMAND:  ls /etc/sysconfig/kernel
RESULT: /etc/sysconfig/kernel 
EXPECTED RESULT:

Comment 4 mkovacik 2012-04-23 10:01:44 UTC
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify /etc/sysconfig/kernel contains UPDATEDEFAULT ... 
######################################################################################
COMMAND:  cat /etc/sysconfig/kernel | grep UPDATEDEFAULT=yes
RESULT: UPDATEDEFAULT=yes 
EXPECTED RESULT: 
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify /etc/sysconfig/kernel contains DEFAULTKERNEL ... 
######################################################################################
COMMAND:  cat /etc/sysconfig/kernel | grep DEFAULTKERNEL=kernel
RESULT: DEFAULTKERNEL=kernel 
EXPECTED RESULT: 
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify system up to date
######################################################################################
COMMAND:  _check_sys_update_phase1
# no update was required
RESULT: # checking sys update done
# no update was required 
EXPECTED RESULT: 
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify RPMs ... 
######################################################################################
....L....  c /etc/pam.d/fingerprint-auth
....L....  c /etc/pam.d/password-auth
....L....  c /etc/pam.d/smartcard-auth
....L....  c /etc/pam.d/system-auth
.M.......    /var/cache/yum
    S file Size differs
    M Mode differs (includes permissions and file type)
    5 MD5 sum differs
    D Device major/minor number mismatch
    L readLink(2) path mismatch
    U User ownership differs
    G Group ownership differs
    T mTime differs

COMMAND:  cat /tmp/rpmqaV.txt | wc -l
RESULT: 5 
EXPECTED RESULT: 4
RETURN CODE: 0
FAIL2
5
######################################################################################
# NEW TEST: ## Verify Version 2 ... 
######################################################################################
COMMAND:  /bin/rpm -q --queryformat '%{RELEASE}\n' redhat-release-server | cut -d. -f1,2
RESULT: 6.3 
EXPECTED RESULT: 6.3
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify packager ... 
######################################################################################
COMMAND:  cat /tmp/Packager | grep -v 'Red Hat, Inc.' |  grep -v crash-trace-commandPackager| wc -l
RESULT: 0 
EXPECTED RESULT: 0
RETURN CODE: 0
PASS
crash-trace-commandPackager    : Lai Jiangshan <laijs.com>
######################################################################################
# NEW TEST: ## List the configured repositories...
######################################################################################
COMMAND:  /usr/bin/yum repolist
Unable to read consumer identity
Repo rhui-us-east-1-rhel-server-releases-beta forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-beta-key.pem
Repo rhui-us-east-1-rhel-server-releases-optional-beta forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-beta-key.pem
Repo rhui-us-east-1-rhel-server-releases forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-key.pem
Repo rhui-us-east-1-rhel-server-releases-optional forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-key.pem
RESULT: Loaded plugins: amazon-id, product-id, rhui-lb, security, subscription-manager
Updating certificate-based repositories.
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/dist/rhel/rhui/server/6/6Server/x86_64/os error was
14: problem with the local client certificate
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/beta/rhel/rhui/server/6/6Server/x86_64/os error was
14: problem with the local client certificate
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/dist/rhel/rhui/server/6/6Server/x86_64/optional/os error was
14: problem with the local client certificate
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/beta/rhel/rhui/server/6/6Server/x86_64/optional/os error was
14: problem with the local client certificate
repo id                                    repo name                      status
rhui-us-east-1-client-config-server-6      Red Hat Update Infrastructure  1
rhui-us-east-1-client-config-server-6-beta Red Hat Update Infrastructure  0
repolist: 1 
EXPECTED RESULT: 
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Search zsh...
######################################################################################
COMMAND:  /usr/bin/yum search zsh
Unable to read consumer identity
Repo rhui-us-east-1-rhel-server-releases-beta forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-beta-key.pem
Repo rhui-us-east-1-rhel-server-releases-optional-beta forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-beta-key.pem
Repo rhui-us-east-1-rhel-server-releases forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-key.pem
Repo rhui-us-east-1-rhel-server-releases-optional forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-key.pem
Warning: No matches found for: zsh
RESULT: Loaded plugins: amazon-id, product-id, rhui-lb, security, subscription-manager
Updating certificate-based repositories.
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/dist/rhel/rhui/server/6/6Server/x86_64/os error was
14: problem with the local client certificate
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/beta/rhel/rhui/server/6/6Server/x86_64/os error was
14: problem with the local client certificate
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/dist/rhel/rhui/server/6/6Server/x86_64/optional/os error was
14: problem with the local client certificate
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/beta/rhel/rhui/server/6/6Server/x86_64/optional/os error was
14: problem with the local client certificate
No Matches found 
EXPECTED RESULT: 
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## install zsh ... 
######################################################################################
COMMAND: /usr/bin/yum -y install zsh
Unable to read consumer identity
Repo rhui-us-east-1-rhel-server-releases-beta forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-beta-key.pem
Repo rhui-us-east-1-rhel-server-releases-optional-beta forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-beta-key.pem
Repo rhui-us-east-1-rhel-server-releases forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-key.pem
Repo rhui-us-east-1-rhel-server-releases-optional forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-key.pem
Error: Nothing to do
RETURN CODE: 1
COMMAND:  /bin/rpm -q --queryformat '%{NAME}\n' zsh
RESULT: package zsh is not installed 
EXPECTED RESULT: zsh
RETURN CODE: 1
FAIL1
package zsh is not installed
######################################################################################
# NEW TEST: ## List available groups..
######################################################################################
COMMAND:  /usr/bin/yum grouplist
Unable to read consumer identity
Repo rhui-us-east-1-rhel-server-releases-beta forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-beta-key.pem
Repo rhui-us-east-1-rhel-server-releases-optional-beta forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-beta-key.pem
Repo rhui-us-east-1-rhel-server-releases forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-key.pem
Repo rhui-us-east-1-rhel-server-releases-optional forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-key.pem
Error: Cannot retrieve repository metadata (repomd.xml) for repository: rhui-us-east-1-rhel-server-releases. Please verify its path and try again
RESULT: Loaded plugins: amazon-id, product-id, rhui-lb, security, subscription-manager
Updating certificate-based repositories.
Setting up Group Process
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/dist/rhel/rhui/server/6/6Server/x86_64/os error was
14: problem with the local client certificate 
EXPECTED RESULT: 
RETURN CODE: 1
FAIL1
Loaded plugins: amazon-id, product-id, rhui-lb, security, subscription-manager Updating certificate-based repositories. Setting up Group Process Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/dist/rhel/rhui/server/6/6Server/x86_64/os error was 14: problem with the local client certificate
######################################################################################
# NEW TEST: ## Install Development tools group...
######################################################################################
COMMAND:  /usr/bin/yum -y groupinstall 'Development tools'
Unable to read consumer identity
Repo rhui-us-east-1-rhel-server-releases-beta forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-beta-key.pem
Repo rhui-us-east-1-rhel-server-releases-optional-beta forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-beta-key.pem
Repo rhui-us-east-1-rhel-server-releases forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-key.pem
Repo rhui-us-east-1-rhel-server-releases-optional forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-key.pem
Warning: Group Development tools does not exist.
RESULT: Loaded plugins: amazon-id, product-id, rhui-lb, security, subscription-manager
Updating certificate-based repositories.
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/dist/rhel/rhui/server/6/6Server/x86_64/os error was
14: problem with the local client certificate
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/beta/rhel/rhui/server/6/6Server/x86_64/os error was
14: problem with the local client certificate
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/dist/rhel/rhui/server/6/6Server/x86_64/optional/os error was
14: problem with the local client certificate
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/beta/rhel/rhui/server/6/6Server/x86_64/optional/os error was
14: problem with the local client certificate
Setting up Group Process
No packages in any requested group available to install or update 
EXPECTED RESULT: 
RETURN CODE: 0
PASS
# checking possible sys update
Loaded plugins: amazon-id, product-id, rhui-lb, security, subscription-manager
Updating certificate-based repositories.
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/dist/rhel/rhui/server/6/6Server/x86_64/os error was
14: problem with the local client certificate
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/beta/rhel/rhui/server/6/6Server/x86_64/os error was
14: problem with the local client certificate
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/dist/rhel/rhui/server/6/6Server/x86_64/optional/os error was
14: problem with the local client certificate
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/beta/rhel/rhui/server/6/6Server/x86_64/optional/os error was
14: problem with the local client certificate
# no sys update found
######################################################################################
# NEW TEST: ## Verify yum update ... 
######################################################################################
COMMAND:  /usr/bin/yum -y update
Unable to read consumer identity
Repo rhui-us-east-1-rhel-server-releases-beta forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-beta-key.pem
Repo rhui-us-east-1-rhel-server-releases-optional-beta forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-beta-key.pem
Repo rhui-us-east-1-rhel-server-releases forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-key.pem
Repo rhui-us-east-1-rhel-server-releases-optional forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-key.pem
RESULT: Loaded plugins: amazon-id, product-id, rhui-lb, security, subscription-manager
Updating certificate-based repositories.
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/dist/rhel/rhui/server/6/6Server/x86_64/os error was
14: problem with the local client certificate
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/beta/rhel/rhui/server/6/6Server/x86_64/os error was
14: problem with the local client certificate
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/dist/rhel/rhui/server/6/6Server/x86_64/optional/os error was
14: problem with the local client certificate
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/beta/rhel/rhui/server/6/6Server/x86_64/optional/os error was
14: problem with the local client certificate
Setting up Update Process
No Packages marked for Update 
EXPECTED RESULT: 
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify no fa1lures in rpm package ... 
######################################################################################
COMMAND:  cat /root/valid/src/validate.log | grep 'failure in rpm package' | wc -l
RESULT: 1 
EXPECTED RESULT: 1
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify no rpm scriplet fa1lures ... 
######################################################################################
COMMAND:  cat /root/valid/src/validate.log | grep 'scriptlet failed, exit status 1' | wc -l
RESULT: 1 
EXPECTED RESULT: 1
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify package removal... 
######################################################################################
COMMAND: /bin/rpm -e zsh
error: package zsh is not installed
RETURN CODE: 1
COMMAND:  /bin/rpm -q zsh
RESULT: package zsh is not installed 
EXPECTED RESULT: package zsh is not installed
RETURN CODE: 1
PASS
######################################################################################
# NEW TEST: ## install zsh ... 
######################################################################################
COMMAND: /usr/bin/yum -y install zsh
Unable to read consumer identity
Repo rhui-us-east-1-rhel-server-releases-beta forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-beta-key.pem
Repo rhui-us-east-1-rhel-server-releases-optional-beta forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-beta-key.pem
Repo rhui-us-east-1-rhel-server-releases forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-key.pem
Repo rhui-us-east-1-rhel-server-releases-optional forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-key.pem
Error: Nothing to do
RETURN CODE: 1
COMMAND:  /bin/rpm -q --queryformat '%{NAME}\n' zsh
RESULT: package zsh is not installed 
EXPECTED RESULT: zsh
RETURN CODE: 1
FAIL1
package zsh is not installed
######################################################################################
# NEW TEST: ## Verify package removal ... 
######################################################################################
COMMAND: /bin/rpm -e zsh
error: package zsh is not installed
RETURN CODE: 1
COMMAND:  /bin/rpm -q zsh
RESULT: package zsh is not installed 
EXPECTED RESULT: package zsh is not installed
RETURN CODE: 1
PASS
# checking possible sys update
Loaded plugins: amazon-id, product-id, rhui-lb, security, subscription-manager
Updating certificate-based repositories.
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/dist/rhel/rhui/server/6/6Server/x86_64/os error was
14: problem with the local client certificate
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/beta/rhel/rhui/server/6/6Server/x86_64/os error was
14: problem with the local client certificate
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/dist/rhel/rhui/server/6/6Server/x86_64/optional/os error was
14: problem with the local client certificate
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/beta/rhel/rhui/server/6/6Server/x86_64/optional/os error was
14: problem with the local client certificate
# no sys update found
######################################################################################
# NEW TEST: ## Verify yum update ... 
######################################################################################
COMMAND:  /usr/bin/yum -y update
Unable to read consumer identity
Repo rhui-us-east-1-rhel-server-releases-beta forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-beta-key.pem
Repo rhui-us-east-1-rhel-server-releases-optional-beta forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-beta-key.pem
Repo rhui-us-east-1-rhel-server-releases forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-key.pem
Repo rhui-us-east-1-rhel-server-releases-optional forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-key.pem
RESULT: Loaded plugins: amazon-id, product-id, rhui-lb, security, subscription-manager
Updating certificate-based repositories.
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/dist/rhel/rhui/server/6/6Server/x86_64/os error was
14: problem with the local client certificate
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/beta/rhel/rhui/server/6/6Server/x86_64/os error was
14: problem with the local client certificate
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/dist/rhel/rhui/server/6/6Server/x86_64/optional/os error was
14: problem with the local client certificate
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/beta/rhel/rhui/server/6/6Server/x86_64/optional/os error was
14: problem with the local client certificate
Setting up Update Process
No Packages marked for Update 
EXPECTED RESULT: 
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify disabled yum plugin ... 
######################################################################################
COMMAND:  grep ^enabled /etc/yum/pluginconf.d/rhnplugin.conf | grep -v '^#' | cut -d\= -f2 | awk '{print }' | sort -f | uniq
RESULT:  0 
EXPECTED RESULT: 
RETURN CODE: 0
PASS

## Summary ##
FAILURES = 16
FAILED TESTS = ## Verify auditd.conf ... ## Verify auditd sysconfig ... ## Verify group file ... ## Verify group file ... ## Verify group file ... ##test menu.lst ... ##test menu.lst ... ## Verify no missing packages ... ## test repo files ... ## test repo files ... ## Verify rsyslog config ... ## Verify latest installed kernel is running ... ## Verify RPMs ... ## install zsh ... ## List available groups.. ## install zsh ...
LOG FILE = /root/valid/src/validate.log
## Summary ##

######################################################################################
# NEW TEST: ## Open a bugzilla
######################################################################################

Comment 5 mkovacik 2012-04-23 10:01:58 UTC
IMAGE ID= 
=====image_validation.sh Mon Apr 23 06:00:42 EDT 2012=====
######################################################################################
# NEW TEST: ## Open a bugzilla
######################################################################################
######################################################################################
# NEW TEST: Fetching the identity doc Details
######################################################################################
Verifying that signature exists
COMMAND:  echo 1
RESULT: 1 
EXPECTED RESULT: 1
RETURN CODE: 0
PASS
Verifying the IMAGE ID
COMMAND:  echo 1
RESULT: 1 
EXPECTED RESULT: 1
RETURN CODE: 0
PASS
Verifying the Architecture
COMMAND:  echo 1
RESULT: 1 
EXPECTED RESULT: 1
RETURN CODE: 0
PASS
This Host => ec2-174-129-72-182.compute-1.amazonaws.com with Image Id : ami-eaff2483, is launched with Instance Id : i-20347e47 , Instance Type : m1.large and Arch : x86_64 in the Region : us-east-1d
The Validate Signature is : eXQXXTI592/rKwIvlzIzEu5IauSpJL6ialeJiSprkL0nqTmvOxmVBoEJy8M6kN1r3qScoILQ12Di
pATyPnyjsONe6dvUqLSV5MJyLlztwf1bKGSRjl0gfY/r0+7/WRoxFOIyyIqyfpi4FYVkRKFCNWoi
6GSe2K8nIxndcALjl7k=
This is a Cloud Access image
/root/valid/src
ip-10-98-18-223
Red Hat Enterprise Linux Server release 6.3 Beta (Santiago)
######################################################################################
# NEW TEST: The selected image has the version RHEL 6.3
######################################################################################
ami is a BETA
######################################################################################
# NEW TEST: ## Verify auditd is on ... 
######################################################################################
COMMAND:  /sbin/chkconfig --list auditd | grep 3:on
RESULT: auditd         	0:off	1:off	2:on	3:on	4:on	5:on	6:off 
EXPECTED RESULT: 
RETURN CODE: 0
PASS
COMMAND:  /sbin/chkconfig --list auditd | grep 5:on
RESULT: auditd         	0:off	1:off	2:on	3:on	4:on	5:on	6:off 
EXPECTED RESULT: 
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify audit.rules ... 
######################################################################################
COMMAND:  md5sum /etc/audit/audit.rules | cut -f 1 -d  " "
RESULT: f9869e1191838c461f5b9051c78a638d 
EXPECTED RESULT: f9869e1191838c461f5b9051c78a638d
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify auditd.conf ... 
######################################################################################
COMMAND:  md5sum /etc/audit/auditd.conf | cut -f 1 -d  " "
RESULT: e1886162554c18906df2ecd258aa4794 
EXPECTED RESULT: 612ddf28c3916530d47ef56a1b1ed1ed
RETURN CODE: 0
FAIL2
e1886162554c18906df2ecd258aa4794
######################################################################################
# NEW TEST: ## Verify auditd sysconfig ... 
######################################################################################
COMMAND:  md5sum /etc/sysconfig/auditd | cut -f 1 -d  " "
RESULT: d4d43637708e30418c30003e212f76fc 
EXPECTED RESULT: 123beb3a97a32d96eba4f11509e39da2
RETURN CODE: 0
FAIL2
d4d43637708e30418c30003e212f76fc
######################################################################################
# NEW TEST: ## Verify bash_history ... 
######################################################################################
COMMAND:  cat ~/.bash_history | wc -l 
RESULT: 0 
EXPECTED RESULT: 0
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify  chkconfig ... 
######################################################################################
COMMAND:  chkconfig --list | grep crond | cut -f 5
RESULT: 3:on 
EXPECTED RESULT: 3:on
RETURN CODE: 0
PASS
COMMAND:  chkconfig --list | grep  iptables | cut -f 5
RESULT: 3:on 
EXPECTED RESULT: 3:on
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify rh-cloud-firstboot is OFF ... 
######################################################################################
COMMAND:  chkconfig --list | grep rh-cloud | grep 3:off | wc -l
RESULT: 1 
EXPECTED RESULT: 1
RETURN CODE: 0
PASS
/etc/sysconfig/rh-cloud-firstboot FOUND
COMMAND:  echo true
RESULT: true 
EXPECTED RESULT: 
RETURN CODE: 0
PASS
COMMAND:  cat /etc/sysconfig/rh-cloud-firstboot
RESULT: RUN_FIRSTBOOT=NO 
EXPECTED RESULT: RUN_FIRSTBOOT=NO
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Partition Format  ...
######################################################################################
mount | grep /dev/xvde1 | awk '{ print  }'
COMMAND:  echo ext4
RESULT: ext4 
EXPECTED RESULT: ext4
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Partition Size ...
######################################################################################
size=5905712
COMMAND:  echo true
RESULT: true 
EXPECTED RESULT: true
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: Fetching the identity doc Details
######################################################################################
Verifying that signature exists
COMMAND:  echo 1
RESULT: 1 
EXPECTED RESULT: 1
RETURN CODE: 0
PASS
Verifying the IMAGE ID
COMMAND:  echo 1
RESULT: 1 
EXPECTED RESULT: 1
RETURN CODE: 0
PASS
Verifying the Architecture
COMMAND:  echo 1
RESULT: 1 
EXPECTED RESULT: 1
RETURN CODE: 0
PASS
This Host => ec2-174-129-72-182.compute-1.amazonaws.com with Image Id : ami-eaff2483, is launched with Instance Id : i-20347e47 , Instance Type : m1.large and Arch : x86_64 in the Region : us-east-1d
The Validate Signature is : eXQXXTI592/rKwIvlzIzEu5IauSpJL6ialeJiSprkL0nqTmvOxmVBoEJy8M6kN1r3qScoILQ12Di
pATyPnyjsONe6dvUqLSV5MJyLlztwf1bKGSRjl0gfY/r0+7/WRoxFOIyyIqyfpi4FYVkRKFCNWoi
6GSe2K8nIxndcALjl7k=
This is a Cloud Access image
######################################################################################
# NEW TEST: ## Verify GPG checking ... 
######################################################################################
COMMAND:  grep '^gpgcheck=1' /etc/yum.repos.d/redhat-*.repo | cut -d\= -f2 | sort -f | uniq
RESULT: 1 
EXPECTED RESULT: 1
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify GPG Keys ... 
######################################################################################
COMMAND:  rpm -qa gpg-pubkey* | wc -l 
RESULT: 2 
EXPECTED RESULT: 2
RETURN CODE: 0
PASS
SKIPPING TEST, BETA DETECTED
######################################################################################
# NEW TEST: ## Verify group file ... 
######################################################################################
COMMAND:  cat /etc/group | grep root:x:0
RESULT: root:x:0: 
EXPECTED RESULT: root:x:0:root
RETURN CODE: 0
FAIL2
root:x:0:
COMMAND:  cat /etc/group | grep bin:x:1
RESULT: bin:x:1:bin,daemon 
EXPECTED RESULT: bin:x:1:root,bin,daemon
RETURN CODE: 0
FAIL2
bin:x:1:bin,daemon
COMMAND:  cat /etc/group | grep daemon:x:2
RESULT: daemon:x:2:bin,daemon 
EXPECTED RESULT: daemon:x:2:root,bin,daemon
RETURN CODE: 0
FAIL2
daemon:x:2:bin,daemon
COMMAND:  cat /etc/group | grep nobody:x:99
RESULT: nobody:x:99: 
EXPECTED RESULT: nobody:x:99:
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ##test menu.lst ... 
######################################################################################
COMMAND:  file /boot/grub/menu.lst  | grep symbolic | wc -l
RESULT: 0 
EXPECTED RESULT: 1
RETURN CODE: 0
FAIL2
0
COMMAND:  file /boot/grub/menu.lst  | grep grub.conf | wc -l
RESULT: 0 
EXPECTED RESULT: 1
RETURN CODE: 0
FAIL2
0
COMMAND:  cat /boot/grub/grub.conf  | grep "(hd0,0)" | wc -l
RESULT: 2 
EXPECTED RESULT: 0
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify runlevel ... 
######################################################################################
COMMAND:  cat /etc/inittab | grep id:
RESULT: id:3:initdefault: 
EXPECTED RESULT: id:3:initdefault:
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify iptables ... 
######################################################################################
COMMAND: /etc/init.d/iptables status | grep REJECT 
5    REJECT     all  --  0.0.0.0/0            0.0.0.0/0           reject-with icmp-host-prohibited 
1    REJECT     all  --  0.0.0.0/0            0.0.0.0/0           reject-with icmp-host-prohibited 
RETURN CODE: 0
COMMAND:  /etc/init.d/iptables status | grep :22 | grep ACCEPT | wc -l 
RESULT: 1 
EXPECTED RESULT: 1
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify /etc/ld.so.conf.d/libc6-xen.conf is not present ... 
######################################################################################
COMMAND:  ls /etc/ld.so.conf.d/libc6-xen.conf
ls: cannot access /etc/ld.so.conf.d/libc6-xen.conf: No such file or directory
RESULT:  
EXPECTED RESULT: 2
RETURN CODE: 2
PASS
######################################################################################
# NEW TEST: ##Verify memory match hwp ... 
######################################################################################
cat /proc/meminfo | grep MemTotal: | awk '{print }'
FOUND MEMORY OF 7646172 > hwp MEMORY of 7500000
COMMAND:  echo true
RESULT: true 
EXPECTED RESULT: 
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify nameserver ... 
######################################################################################
COMMAND:  /usr/bin/dig clock.redhat.com 2>> /root/valid/src/validate.log | grep 66.187.233.4  | wc -l
RESULT: 1 
EXPECTED RESULT: 
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify networking ... 
######################################################################################
COMMAND:  grep ^NETWORKING= /etc/sysconfig/network | cut -d\= -f2
RESULT: yes 
EXPECTED RESULT: yes
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify device ... 
######################################################################################
COMMAND:  grep ^DEVICE= /etc/sysconfig/network-scripts/ifcfg-eth0 | cut -d\= -f2
RESULT: eth0 
EXPECTED RESULT: eth0
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify no missing packages ... 
######################################################################################
COMMAND: /bin/rpm -qa --queryformat='%{NAME}\n' > /tmp/rpmqa.tmp
RETURN CODE: 0
COUNT = 0
COMMAND:  echo test failed
RESULT: test failed 
EXPECTED RESULT: 1
RETURN CODE: 0
FAIL2
test failed
######################################################################################
# NEW TEST: ## Verify new passwd file ... 
######################################################################################
COMMAND:  cat /etc/passwd | grep root:x:0
RESULT: root:x:0:0:root:/root:/bin/bash 
EXPECTED RESULT: root:x:0:0:root:/root:/bin/bash
RETURN CODE: 0
PASS
COMMAND:  cat /etc/passwd | grep nobody:x:99
RESULT: nobody:x:99:99:Nobody:/:/sbin/nologin 
EXPECTED RESULT: nobody:x:99:99:Nobody:/:/sbin/nologin
RETURN CODE: 0
PASS
COMMAND:  cat /etc/passwd | grep sshd
RESULT: sshd:x:74:74:Privilege-separated SSH:/var/empty/sshd:/sbin/nologin 
EXPECTED RESULT: sshd:x:74:74:Privilege-separated SSH:/var/empty/sshd:/sbin/nologin
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## test repo files ... 
######################################################################################
COMMAND:  ls /etc/yum.repos.d/ | wc -l 
RESULT: 6 
EXPECTED RESULT: 4
RETURN CODE: 0
FAIL2
6
COMMAND:  ls /etc/yum.repos.d/redhat* | wc -l
RESULT: 4 
EXPECTED RESULT: 2
RETURN CODE: 0
FAIL2
4
COMMAND:  ls /etc/yum.repos.d/rhel* | wc -l
RESULT: 1 
EXPECTED RESULT: 0
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify resize2fs ... 
######################################################################################
COMMAND: resize2fs -p /dev/xvde1 15000M
resize2fs 1.41.12 (17-May-2010)
RETURN CODE: 0
COMMAND:  df -h | grep 15G | wc -l 
RESULT: 1 
EXPECTED RESULT: 1
RETURN CODE: 0
PASS
/root/valid/src
ip-10-98-18-223
Red Hat Enterprise Linux Server release 6.3 Beta (Santiago)
######################################################################################
# NEW TEST: The selected image has the version RHEL 6.3
######################################################################################
ami is a BETA
######################################################################################
# NEW TEST: ## /sbin/getenforce ... 
######################################################################################
COMMAND:  /usr/sbin/getenforce
RESULT: Enforcing 
EXPECTED RESULT: Enforcing
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify SELINUX enforcing ... 
######################################################################################
COMMAND:  grep ^SELINUX= /etc/sysconfig/selinux | cut -d\= -f2
RESULT: enforcing 
EXPECTED RESULT: enforcing
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify SELINUXTYPE targeted ... 
######################################################################################
COMMAND:  grep ^SELINUXTYPE= /etc/sysconfig/selinux | cut -d\= -f2
RESULT: targeted 
EXPECTED RESULT: targeted
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Flip Selinux Permissive ... 
######################################################################################
COMMAND:  /usr/sbin/setenforce Permissive && /usr/sbin/getenforce
RESULT: Permissive 
EXPECTED RESULT: Permissive
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Flip Selinux Enforcing ... 
######################################################################################
COMMAND:  /usr/sbin/setenforce Enforcing && /usr/sbin/getenforce
RESULT: Enforcing 
EXPECTED RESULT: Enforcing
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify new shells file ... 
######################################################################################
COMMAND:  cat /etc/shells | grep bash
RESULT: /bin/bash 
EXPECTED RESULT: /bin/bash
RETURN CODE: 0
PASS
COMMAND:  cat /etc/shells | grep nologin
RESULT: /sbin/nologin 
EXPECTED RESULT: /sbin/nologin
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify sshd_config settings ...
######################################################################################
COMMAND:  cat /etc/ssh/sshd_config  | grep  PasswordAuthentication | grep no | wc -l
RESULT: 1 
EXPECTED RESULT: 1
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify sshd ...
######################################################################################
COMMAND:  chkconfig --list | grep sshd
RESULT: sshd           	0:off	1:off	2:on	3:on	4:on	5:on	6:off 
EXPECTED RESULT: sshd           	0:off	1:off	2:on	3:on	4:on	5:on	6:off
RETURN CODE: 0
PASS
COMMAND:  /etc/init.d/sshd status | grep running | wc -l
RESULT: 1 
EXPECTED RESULT: 1
RETURN CODE: 0
PASS
this machine doesn't require swap
######################################################################################
# NEW TEST: ## Verify rsyslog is on ... 
######################################################################################
COMMAND:  chkconfig --list | grep rsyslog | cut -f 5
RESULT: 3:on 
EXPECTED RESULT: 3:on
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify rsyslog config ... 
######################################################################################
COMMAND:  md5sum /etc/rsyslog.conf | cut -f 1 -d  " "
RESULT: 8b91b32300134e98ef4aee632ed61e21 
EXPECTED RESULT: dd356958ca9c4e779f7fac13dde3c1b5
RETURN CODE: 0
FAIL2
8b91b32300134e98ef4aee632ed61e21
######################################################################################
# NEW TEST: ## Verify no systemid file ... 
######################################################################################
COMMAND:  echo true
RESULT: true 
EXPECTED RESULT: 
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify kernel name ... 
######################################################################################
COMMAND:  /bin/uname -s
RESULT: Linux 
EXPECTED RESULT: Linux
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify latest installed kernel is running ... 
######################################################################################
RHEL VERSION IS 6
LATEST_RPM_KERNEL_VERSION=rpm -q kernel --last | head -n 1 |  cut -c 8-60 | cut -d ' ' -f 1
CURRENT_UNAME_KERNAL_VERSION=2.6.32-262.el6
assert latest rpm kernel = uname -r
COMMAND:  uname -r | sed  's/\(.*\)......./\1/'
RESULT: 2.6.32-262.el6 
EXPECTED RESULT: 2.6.32-262.el6.x86_64
RETURN CODE: 0
FAIL2
2.6.32-262.el6
######################################################################################
# NEW TEST: ## Verify latest kenerl is in /boot/grub/menu.1st ... 
######################################################################################
COMMAND:  cat /boot/grub/menu.lst | grep 2.6.32-262.el6.x86_64
RESULT: title RHEL6.3-20120416.0-Server-x86_64-starter-ec2 (2.6.32-262.el6.x86_64)
        kernel /boot/vmlinuz-2.6.32-262.el6.x86_64 ro root=LABEL=_/ 
        initrd /boot/initramfs-2.6.32-262.el6.x86_64.img 
EXPECTED RESULT: 
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify operating system ... 
######################################################################################
COMMAND:  /bin/uname -o
RESULT: GNU/Linux 
EXPECTED RESULT: GNU/Linux
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify /etc/sysconfig/kernel ... 
######################################################################################
COMMAND:  ls /etc/sysconfig/kernel
RESULT: /etc/sysconfig/kernel 
EXPECTED RESULT:

Comment 6 mkovacik 2012-04-23 10:02:01 UTC
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify /etc/sysconfig/kernel contains UPDATEDEFAULT ... 
######################################################################################
COMMAND:  cat /etc/sysconfig/kernel | grep UPDATEDEFAULT=yes
RESULT: UPDATEDEFAULT=yes 
EXPECTED RESULT: 
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify /etc/sysconfig/kernel contains DEFAULTKERNEL ... 
######################################################################################
COMMAND:  cat /etc/sysconfig/kernel | grep DEFAULTKERNEL=kernel
RESULT: DEFAULTKERNEL=kernel 
EXPECTED RESULT: 
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify system up to date
######################################################################################
COMMAND:  _check_sys_update_phase1
# no update was required
RESULT: # checking sys update done
# no update was required 
EXPECTED RESULT: 
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify RPMs ... 
######################################################################################
....L....  c /etc/pam.d/fingerprint-auth
....L....  c /etc/pam.d/password-auth
....L....  c /etc/pam.d/smartcard-auth
....L....  c /etc/pam.d/system-auth
.M.......    /var/cache/yum
    S file Size differs
    M Mode differs (includes permissions and file type)
    5 MD5 sum differs
    D Device major/minor number mismatch
    L readLink(2) path mismatch
    U User ownership differs
    G Group ownership differs
    T mTime differs

COMMAND:  cat /tmp/rpmqaV.txt | wc -l
RESULT: 5 
EXPECTED RESULT: 4
RETURN CODE: 0
FAIL2
5
######################################################################################
# NEW TEST: ## Verify Version 2 ... 
######################################################################################
COMMAND:  /bin/rpm -q --queryformat '%{RELEASE}\n' redhat-release-server | cut -d. -f1,2
RESULT: 6.3 
EXPECTED RESULT: 6.3
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify packager ... 
######################################################################################
COMMAND:  cat /tmp/Packager | grep -v 'Red Hat, Inc.' |  grep -v crash-trace-commandPackager| wc -l
RESULT: 0 
EXPECTED RESULT: 0
RETURN CODE: 0
PASS
crash-trace-commandPackager    : Lai Jiangshan <laijs.com>
######################################################################################
# NEW TEST: ## List the configured repositories...
######################################################################################
COMMAND:  /usr/bin/yum repolist
Unable to read consumer identity
Repo rhui-us-east-1-rhel-server-releases-beta forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-beta-key.pem
Repo rhui-us-east-1-rhel-server-releases-optional-beta forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-beta-key.pem
Repo rhui-us-east-1-rhel-server-releases forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-key.pem
Repo rhui-us-east-1-rhel-server-releases-optional forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-key.pem
RESULT: Loaded plugins: amazon-id, product-id, rhui-lb, security, subscription-manager
Updating certificate-based repositories.
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/dist/rhel/rhui/server/6/6Server/x86_64/os error was
14: problem with the local client certificate
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/beta/rhel/rhui/server/6/6Server/x86_64/os error was
14: problem with the local client certificate
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/dist/rhel/rhui/server/6/6Server/x86_64/optional/os error was
14: problem with the local client certificate
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/beta/rhel/rhui/server/6/6Server/x86_64/optional/os error was
14: problem with the local client certificate
repo id                                    repo name                      status
rhui-us-east-1-client-config-server-6      Red Hat Update Infrastructure  1
rhui-us-east-1-client-config-server-6-beta Red Hat Update Infrastructure  0
repolist: 1 
EXPECTED RESULT: 
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Search zsh...
######################################################################################
COMMAND:  /usr/bin/yum search zsh
Unable to read consumer identity
Repo rhui-us-east-1-rhel-server-releases-beta forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-beta-key.pem
Repo rhui-us-east-1-rhel-server-releases-optional-beta forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-beta-key.pem
Repo rhui-us-east-1-rhel-server-releases forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-key.pem
Repo rhui-us-east-1-rhel-server-releases-optional forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-key.pem
Warning: No matches found for: zsh
RESULT: Loaded plugins: amazon-id, product-id, rhui-lb, security, subscription-manager
Updating certificate-based repositories.
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/dist/rhel/rhui/server/6/6Server/x86_64/os error was
14: problem with the local client certificate
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/beta/rhel/rhui/server/6/6Server/x86_64/os error was
14: problem with the local client certificate
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/dist/rhel/rhui/server/6/6Server/x86_64/optional/os error was
14: problem with the local client certificate
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/beta/rhel/rhui/server/6/6Server/x86_64/optional/os error was
14: problem with the local client certificate
No Matches found 
EXPECTED RESULT: 
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## install zsh ... 
######################################################################################
COMMAND: /usr/bin/yum -y install zsh
Unable to read consumer identity
Repo rhui-us-east-1-rhel-server-releases-beta forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-beta-key.pem
Repo rhui-us-east-1-rhel-server-releases-optional-beta forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-beta-key.pem
Repo rhui-us-east-1-rhel-server-releases forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-key.pem
Repo rhui-us-east-1-rhel-server-releases-optional forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-key.pem
Error: Nothing to do
RETURN CODE: 1
COMMAND:  /bin/rpm -q --queryformat '%{NAME}\n' zsh
RESULT: package zsh is not installed 
EXPECTED RESULT: zsh
RETURN CODE: 1
FAIL1
package zsh is not installed
######################################################################################
# NEW TEST: ## List available groups..
######################################################################################
COMMAND:  /usr/bin/yum grouplist
Unable to read consumer identity
Repo rhui-us-east-1-rhel-server-releases-beta forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-beta-key.pem
Repo rhui-us-east-1-rhel-server-releases-optional-beta forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-beta-key.pem
Repo rhui-us-east-1-rhel-server-releases forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-key.pem
Repo rhui-us-east-1-rhel-server-releases-optional forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-key.pem
Error: Cannot retrieve repository metadata (repomd.xml) for repository: rhui-us-east-1-rhel-server-releases. Please verify its path and try again
RESULT: Loaded plugins: amazon-id, product-id, rhui-lb, security, subscription-manager
Updating certificate-based repositories.
Setting up Group Process
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/dist/rhel/rhui/server/6/6Server/x86_64/os error was
14: problem with the local client certificate 
EXPECTED RESULT: 
RETURN CODE: 1
FAIL1
Loaded plugins: amazon-id, product-id, rhui-lb, security, subscription-manager Updating certificate-based repositories. Setting up Group Process Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/dist/rhel/rhui/server/6/6Server/x86_64/os error was 14: problem with the local client certificate
######################################################################################
# NEW TEST: ## Install Development tools group...
######################################################################################
COMMAND:  /usr/bin/yum -y groupinstall 'Development tools'
Unable to read consumer identity
Repo rhui-us-east-1-rhel-server-releases-beta forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-beta-key.pem
Repo rhui-us-east-1-rhel-server-releases-optional-beta forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-beta-key.pem
Repo rhui-us-east-1-rhel-server-releases forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-key.pem
Repo rhui-us-east-1-rhel-server-releases-optional forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-key.pem
Warning: Group Development tools does not exist.
RESULT: Loaded plugins: amazon-id, product-id, rhui-lb, security, subscription-manager
Updating certificate-based repositories.
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/dist/rhel/rhui/server/6/6Server/x86_64/os error was
14: problem with the local client certificate
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/beta/rhel/rhui/server/6/6Server/x86_64/os error was
14: problem with the local client certificate
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/dist/rhel/rhui/server/6/6Server/x86_64/optional/os error was
14: problem with the local client certificate
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/beta/rhel/rhui/server/6/6Server/x86_64/optional/os error was
14: problem with the local client certificate
Setting up Group Process
No packages in any requested group available to install or update 
EXPECTED RESULT: 
RETURN CODE: 0
PASS
# checking possible sys update
Loaded plugins: amazon-id, product-id, rhui-lb, security, subscription-manager
Updating certificate-based repositories.
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/dist/rhel/rhui/server/6/6Server/x86_64/os error was
14: problem with the local client certificate
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/beta/rhel/rhui/server/6/6Server/x86_64/os error was
14: problem with the local client certificate
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/dist/rhel/rhui/server/6/6Server/x86_64/optional/os error was
14: problem with the local client certificate
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/beta/rhel/rhui/server/6/6Server/x86_64/optional/os error was
14: problem with the local client certificate
# no sys update found
######################################################################################
# NEW TEST: ## Verify yum update ... 
######################################################################################
COMMAND:  /usr/bin/yum -y update
Unable to read consumer identity
Repo rhui-us-east-1-rhel-server-releases-beta forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-beta-key.pem
Repo rhui-us-east-1-rhel-server-releases-optional-beta forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-beta-key.pem
Repo rhui-us-east-1-rhel-server-releases forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-key.pem
Repo rhui-us-east-1-rhel-server-releases-optional forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-key.pem
RESULT: Loaded plugins: amazon-id, product-id, rhui-lb, security, subscription-manager
Updating certificate-based repositories.
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/dist/rhel/rhui/server/6/6Server/x86_64/os error was
14: problem with the local client certificate
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/beta/rhel/rhui/server/6/6Server/x86_64/os error was
14: problem with the local client certificate
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/dist/rhel/rhui/server/6/6Server/x86_64/optional/os error was
14: problem with the local client certificate
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/beta/rhel/rhui/server/6/6Server/x86_64/optional/os error was
14: problem with the local client certificate
Setting up Update Process
No Packages marked for Update 
EXPECTED RESULT: 
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify no fa1lures in rpm package ... 
######################################################################################
COMMAND:  cat /root/valid/src/validate.log | grep 'failure in rpm package' | wc -l
RESULT: 1 
EXPECTED RESULT: 1
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify no rpm scriplet fa1lures ... 
######################################################################################
COMMAND:  cat /root/valid/src/validate.log | grep 'scriptlet failed, exit status 1' | wc -l
RESULT: 1 
EXPECTED RESULT: 1
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify package removal... 
######################################################################################
COMMAND: /bin/rpm -e zsh
error: package zsh is not installed
RETURN CODE: 1
COMMAND:  /bin/rpm -q zsh
RESULT: package zsh is not installed 
EXPECTED RESULT: package zsh is not installed
RETURN CODE: 1
PASS
######################################################################################
# NEW TEST: ## install zsh ... 
######################################################################################
COMMAND: /usr/bin/yum -y install zsh
Unable to read consumer identity
Repo rhui-us-east-1-rhel-server-releases-beta forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-beta-key.pem
Repo rhui-us-east-1-rhel-server-releases-optional-beta forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-beta-key.pem
Repo rhui-us-east-1-rhel-server-releases forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-key.pem
Repo rhui-us-east-1-rhel-server-releases-optional forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-key.pem
Error: Nothing to do
RETURN CODE: 1
COMMAND:  /bin/rpm -q --queryformat '%{NAME}\n' zsh
RESULT: package zsh is not installed 
EXPECTED RESULT: zsh
RETURN CODE: 1
FAIL1
package zsh is not installed
######################################################################################
# NEW TEST: ## Verify package removal ... 
######################################################################################
COMMAND: /bin/rpm -e zsh
error: package zsh is not installed
RETURN CODE: 1
COMMAND:  /bin/rpm -q zsh
RESULT: package zsh is not installed 
EXPECTED RESULT: package zsh is not installed
RETURN CODE: 1
PASS
# checking possible sys update
Loaded plugins: amazon-id, product-id, rhui-lb, security, subscription-manager
Updating certificate-based repositories.
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/dist/rhel/rhui/server/6/6Server/x86_64/os error was
14: problem with the local client certificate
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/beta/rhel/rhui/server/6/6Server/x86_64/os error was
14: problem with the local client certificate
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/dist/rhel/rhui/server/6/6Server/x86_64/optional/os error was
14: problem with the local client certificate
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/beta/rhel/rhui/server/6/6Server/x86_64/optional/os error was
14: problem with the local client certificate
# no sys update found
######################################################################################
# NEW TEST: ## Verify yum update ... 
######################################################################################
COMMAND:  /usr/bin/yum -y update
Unable to read consumer identity
Repo rhui-us-east-1-rhel-server-releases-beta forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-beta-key.pem
Repo rhui-us-east-1-rhel-server-releases-optional-beta forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-beta-key.pem
Repo rhui-us-east-1-rhel-server-releases forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-key.pem
Repo rhui-us-east-1-rhel-server-releases-optional forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-key.pem
RESULT: Loaded plugins: amazon-id, product-id, rhui-lb, security, subscription-manager
Updating certificate-based repositories.
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/dist/rhel/rhui/server/6/6Server/x86_64/os error was
14: problem with the local client certificate
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/beta/rhel/rhui/server/6/6Server/x86_64/os error was
14: problem with the local client certificate
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/dist/rhel/rhui/server/6/6Server/x86_64/optional/os error was
14: problem with the local client certificate
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/beta/rhel/rhui/server/6/6Server/x86_64/optional/os error was
14: problem with the local client certificate
Setting up Update Process
No Packages marked for Update 
EXPECTED RESULT: 
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify disabled yum plugin ... 
######################################################################################
COMMAND:  grep ^enabled /etc/yum/pluginconf.d/rhnplugin.conf | grep -v '^#' | cut -d\= -f2 | awk '{print }' | sort -f | uniq
RESULT:  0 
EXPECTED RESULT: 
RETURN CODE: 0
PASS

## Summary ##
FAILURES = 16
FAILED TESTS = ## Verify auditd.conf ... ## Verify auditd sysconfig ... ## Verify group file ... ## Verify group file ... ## Verify group file ... ##test menu.lst ... ##test menu.lst ... ## Verify no missing packages ... ## test repo files ... ## test repo files ... ## Verify rsyslog config ... ## Verify latest installed kernel is running ... ## Verify RPMs ... ## install zsh ... ## List available groups.. ## install zsh ...
LOG FILE = /root/valid/src/validate.log
## Summary ##

######################################################################################
# NEW TEST: ## Open a bugzilla
######################################################################################

Comment 7 mkovacik 2012-04-23 10:03:49 UTC
IMAGE ID= 
=====image_validation.sh Mon Apr 23 06:02:42 EDT 2012=====
######################################################################################
# NEW TEST: ## Open a bugzilla
######################################################################################
######################################################################################
# NEW TEST: Fetching the identity doc Details
######################################################################################
Verifying that signature exists
COMMAND:  echo 1
RESULT: 1 
EXPECTED RESULT: 1
RETURN CODE: 0
PASS
Verifying the IMAGE ID
COMMAND:  echo 1
RESULT: 1 
EXPECTED RESULT: 1
RETURN CODE: 0
PASS
Verifying the Architecture
COMMAND:  echo 1
RESULT: 1 
EXPECTED RESULT: 1
RETURN CODE: 0
PASS
This Host => ec2-67-202-0-92.compute-1.amazonaws.com with Image Id : ami-eaff2483, is launched with Instance Id : i-a4347ec3 , Instance Type : m2.xlarge and Arch : x86_64 in the Region : us-east-1c
The Validate Signature is : LBfhUYZqq3+wSikPwZZasZPbAEKvJQ9HEos7disFaKHTifKElGyniOTpAOml3RwVS3507T/WyOEg
+nollEhHFPS4jkhYLs5gaPkoJOPQ637nEERvH2mQigo3w4pYMS53KNLnUNJ9eJTBItu0zhX1mApC
9rqiQeen1rZWCUWspNc=
This is a Cloud Access image
/root/valid/src
domU-12-31-39-16-15-13
Red Hat Enterprise Linux Server release 6.3 Beta (Santiago)
######################################################################################
# NEW TEST: The selected image has the version RHEL 6.3
######################################################################################
ami is a BETA
######################################################################################
# NEW TEST: ## Verify auditd is on ... 
######################################################################################
COMMAND:  /sbin/chkconfig --list auditd | grep 3:on
RESULT: auditd         	0:off	1:off	2:on	3:on	4:on	5:on	6:off 
EXPECTED RESULT: 
RETURN CODE: 0
PASS
COMMAND:  /sbin/chkconfig --list auditd | grep 5:on
RESULT: auditd         	0:off	1:off	2:on	3:on	4:on	5:on	6:off 
EXPECTED RESULT: 
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify audit.rules ... 
######################################################################################
COMMAND:  md5sum /etc/audit/audit.rules | cut -f 1 -d  " "
RESULT: f9869e1191838c461f5b9051c78a638d 
EXPECTED RESULT: f9869e1191838c461f5b9051c78a638d
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify auditd.conf ... 
######################################################################################
COMMAND:  md5sum /etc/audit/auditd.conf | cut -f 1 -d  " "
RESULT: e1886162554c18906df2ecd258aa4794 
EXPECTED RESULT: 612ddf28c3916530d47ef56a1b1ed1ed
RETURN CODE: 0
FAIL2
e1886162554c18906df2ecd258aa4794
######################################################################################
# NEW TEST: ## Verify auditd sysconfig ... 
######################################################################################
COMMAND:  md5sum /etc/sysconfig/auditd | cut -f 1 -d  " "
RESULT: d4d43637708e30418c30003e212f76fc 
EXPECTED RESULT: 123beb3a97a32d96eba4f11509e39da2
RETURN CODE: 0
FAIL2
d4d43637708e30418c30003e212f76fc
######################################################################################
# NEW TEST: ## Verify bash_history ... 
######################################################################################
COMMAND:  cat ~/.bash_history | wc -l 
RESULT: 0 
EXPECTED RESULT: 0
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify  chkconfig ... 
######################################################################################
COMMAND:  chkconfig --list | grep crond | cut -f 5
RESULT: 3:on 
EXPECTED RESULT: 3:on
RETURN CODE: 0
PASS
COMMAND:  chkconfig --list | grep  iptables | cut -f 5
RESULT: 3:on 
EXPECTED RESULT: 3:on
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify rh-cloud-firstboot is OFF ... 
######################################################################################
COMMAND:  chkconfig --list | grep rh-cloud | grep 3:off | wc -l
RESULT: 1 
EXPECTED RESULT: 1
RETURN CODE: 0
PASS
/etc/sysconfig/rh-cloud-firstboot FOUND
COMMAND:  echo true
RESULT: true 
EXPECTED RESULT: 
RETURN CODE: 0
PASS
COMMAND:  cat /etc/sysconfig/rh-cloud-firstboot
RESULT: RUN_FIRSTBOOT=NO 
EXPECTED RESULT: RUN_FIRSTBOOT=NO
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Partition Format  ...
######################################################################################
mount | grep /dev/xvde1 | awk '{ print  }'
COMMAND:  echo ext4
RESULT: ext4 
EXPECTED RESULT: ext4
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Partition Size ...
######################################################################################
size=5905712
COMMAND:  echo true
RESULT: true 
EXPECTED RESULT: true
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: Fetching the identity doc Details
######################################################################################
Verifying that signature exists
COMMAND:  echo 1
RESULT: 1 
EXPECTED RESULT: 1
RETURN CODE: 0
PASS
Verifying the IMAGE ID
COMMAND:  echo 1
RESULT: 1 
EXPECTED RESULT: 1
RETURN CODE: 0
PASS
Verifying the Architecture
COMMAND:  echo 1
RESULT: 1 
EXPECTED RESULT: 1
RETURN CODE: 0
PASS
This Host => ec2-67-202-0-92.compute-1.amazonaws.com with Image Id : ami-eaff2483, is launched with Instance Id : i-a4347ec3 , Instance Type : m2.xlarge and Arch : x86_64 in the Region : us-east-1c
The Validate Signature is : LBfhUYZqq3+wSikPwZZasZPbAEKvJQ9HEos7disFaKHTifKElGyniOTpAOml3RwVS3507T/WyOEg
+nollEhHFPS4jkhYLs5gaPkoJOPQ637nEERvH2mQigo3w4pYMS53KNLnUNJ9eJTBItu0zhX1mApC
9rqiQeen1rZWCUWspNc=
This is a Cloud Access image
######################################################################################
# NEW TEST: ## Verify GPG checking ... 
######################################################################################
COMMAND:  grep '^gpgcheck=1' /etc/yum.repos.d/redhat-*.repo | cut -d\= -f2 | sort -f | uniq
RESULT: 1 
EXPECTED RESULT: 1
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify GPG Keys ... 
######################################################################################
COMMAND:  rpm -qa gpg-pubkey* | wc -l 
RESULT: 2 
EXPECTED RESULT: 2
RETURN CODE: 0
PASS
SKIPPING TEST, BETA DETECTED
######################################################################################
# NEW TEST: ## Verify group file ... 
######################################################################################
COMMAND:  cat /etc/group | grep root:x:0
RESULT: root:x:0: 
EXPECTED RESULT: root:x:0:root
RETURN CODE: 0
FAIL2
root:x:0:
COMMAND:  cat /etc/group | grep bin:x:1
RESULT: bin:x:1:bin,daemon 
EXPECTED RESULT: bin:x:1:root,bin,daemon
RETURN CODE: 0
FAIL2
bin:x:1:bin,daemon
COMMAND:  cat /etc/group | grep daemon:x:2
RESULT: daemon:x:2:bin,daemon 
EXPECTED RESULT: daemon:x:2:root,bin,daemon
RETURN CODE: 0
FAIL2
daemon:x:2:bin,daemon
COMMAND:  cat /etc/group | grep nobody:x:99
RESULT: nobody:x:99: 
EXPECTED RESULT: nobody:x:99:
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ##test menu.lst ... 
######################################################################################
COMMAND:  file /boot/grub/menu.lst  | grep symbolic | wc -l
RESULT: 0 
EXPECTED RESULT: 1
RETURN CODE: 0
FAIL2
0
COMMAND:  file /boot/grub/menu.lst  | grep grub.conf | wc -l
RESULT: 0 
EXPECTED RESULT: 1
RETURN CODE: 0
FAIL2
0
COMMAND:  cat /boot/grub/grub.conf  | grep "(hd0,0)" | wc -l
RESULT: 2 
EXPECTED RESULT: 0
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify runlevel ... 
######################################################################################
COMMAND:  cat /etc/inittab | grep id:
RESULT: id:3:initdefault: 
EXPECTED RESULT: id:3:initdefault:
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify iptables ... 
######################################################################################
COMMAND: /etc/init.d/iptables status | grep REJECT 
5    REJECT     all  --  0.0.0.0/0            0.0.0.0/0           reject-with icmp-host-prohibited 
1    REJECT     all  --  0.0.0.0/0            0.0.0.0/0           reject-with icmp-host-prohibited 
RETURN CODE: 0
COMMAND:  /etc/init.d/iptables status | grep :22 | grep ACCEPT | wc -l 
RESULT: 1 
EXPECTED RESULT: 1
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify /etc/ld.so.conf.d/libc6-xen.conf is not present ... 
######################################################################################
COMMAND:  ls /etc/ld.so.conf.d/libc6-xen.conf
ls: cannot access /etc/ld.so.conf.d/libc6-xen.conf: No such file or directory
RESULT:  
EXPECTED RESULT: 2
RETURN CODE: 2
PASS
######################################################################################
# NEW TEST: ##Verify memory match hwp ... 
######################################################################################
cat /proc/meminfo | grep MemTotal: | awk '{print }'
FOUND MEMORY OF 17524268 > hwp MEMORY of 17100000
COMMAND:  echo true
RESULT: true 
EXPECTED RESULT: 
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify nameserver ... 
######################################################################################
COMMAND:  /usr/bin/dig clock.redhat.com 2>> /root/valid/src/validate.log | grep 66.187.233.4  | wc -l
RESULT: 1 
EXPECTED RESULT: 
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify networking ... 
######################################################################################
COMMAND:  grep ^NETWORKING= /etc/sysconfig/network | cut -d\= -f2
RESULT: yes 
EXPECTED RESULT: yes
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify device ... 
######################################################################################
COMMAND:  grep ^DEVICE= /etc/sysconfig/network-scripts/ifcfg-eth0 | cut -d\= -f2
RESULT: eth0 
EXPECTED RESULT: eth0
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify no missing packages ... 
######################################################################################
COMMAND: /bin/rpm -qa --queryformat='%{NAME}\n' > /tmp/rpmqa.tmp
RETURN CODE: 0
COUNT = 0
COMMAND:  echo test failed
RESULT: test failed 
EXPECTED RESULT: 1
RETURN CODE: 0
FAIL2
test failed
######################################################################################
# NEW TEST: ## Verify new passwd file ... 
######################################################################################
COMMAND:  cat /etc/passwd | grep root:x:0
RESULT: root:x:0:0:root:/root:/bin/bash 
EXPECTED RESULT: root:x:0:0:root:/root:/bin/bash
RETURN CODE: 0
PASS
COMMAND:  cat /etc/passwd | grep nobody:x:99
RESULT: nobody:x:99:99:Nobody:/:/sbin/nologin 
EXPECTED RESULT: nobody:x:99:99:Nobody:/:/sbin/nologin
RETURN CODE: 0
PASS
COMMAND:  cat /etc/passwd | grep sshd
RESULT: sshd:x:74:74:Privilege-separated SSH:/var/empty/sshd:/sbin/nologin 
EXPECTED RESULT: sshd:x:74:74:Privilege-separated SSH:/var/empty/sshd:/sbin/nologin
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## test repo files ... 
######################################################################################
COMMAND:  ls /etc/yum.repos.d/ | wc -l 
RESULT: 6 
EXPECTED RESULT: 4
RETURN CODE: 0
FAIL2
6
COMMAND:  ls /etc/yum.repos.d/redhat* | wc -l
RESULT: 4 
EXPECTED RESULT: 2
RETURN CODE: 0
FAIL2
4
COMMAND:  ls /etc/yum.repos.d/rhel* | wc -l
RESULT: 1 
EXPECTED RESULT: 0
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify resize2fs ... 
######################################################################################
COMMAND: resize2fs -p /dev/xvde1 15000M
resize2fs 1.41.12 (17-May-2010)
RETURN CODE: 0
COMMAND:  df -h | grep 15G | wc -l 
RESULT: 1 
EXPECTED RESULT: 1
RETURN CODE: 0
PASS
/root/valid/src
domU-12-31-39-16-15-13
Red Hat Enterprise Linux Server release 6.3 Beta (Santiago)
######################################################################################
# NEW TEST: The selected image has the version RHEL 6.3
######################################################################################
ami is a BETA
######################################################################################
# NEW TEST: ## /sbin/getenforce ... 
######################################################################################
COMMAND:  /usr/sbin/getenforce
RESULT: Enforcing 
EXPECTED RESULT: Enforcing
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify SELINUX enforcing ... 
######################################################################################
COMMAND:  grep ^SELINUX= /etc/sysconfig/selinux | cut -d\= -f2
RESULT: enforcing 
EXPECTED RESULT: enforcing
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify SELINUXTYPE targeted ... 
######################################################################################
COMMAND:  grep ^SELINUXTYPE= /etc/sysconfig/selinux | cut -d\= -f2
RESULT: targeted 
EXPECTED RESULT: targeted
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Flip Selinux Permissive ... 
######################################################################################
COMMAND:  /usr/sbin/setenforce Permissive && /usr/sbin/getenforce
RESULT: Permissive 
EXPECTED RESULT: Permissive
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Flip Selinux Enforcing ... 
######################################################################################
COMMAND:  /usr/sbin/setenforce Enforcing && /usr/sbin/getenforce
RESULT: Enforcing 
EXPECTED RESULT: Enforcing
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify new shells file ... 
######################################################################################
COMMAND:  cat /etc/shells | grep bash
RESULT: /bin/bash 
EXPECTED RESULT: /bin/bash
RETURN CODE: 0
PASS
COMMAND:  cat /etc/shells | grep nologin
RESULT: /sbin/nologin 
EXPECTED RESULT: /sbin/nologin
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify sshd_config settings ...
######################################################################################
COMMAND:  cat /etc/ssh/sshd_config  | grep  PasswordAuthentication | grep no | wc -l
RESULT: 1 
EXPECTED RESULT: 1
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify sshd ...
######################################################################################
COMMAND:  chkconfig --list | grep sshd
RESULT: sshd           	0:off	1:off	2:on	3:on	4:on	5:on	6:off 
EXPECTED RESULT: sshd           	0:off	1:off	2:on	3:on	4:on	5:on	6:off
RETURN CODE: 0
PASS
COMMAND:  /etc/init.d/sshd status | grep running | wc -l
RESULT: 1 
EXPECTED RESULT: 1
RETURN CODE: 0
PASS
this machine doesn't require swap
######################################################################################
# NEW TEST: ## Verify rsyslog is on ... 
######################################################################################
COMMAND:  chkconfig --list | grep rsyslog | cut -f 5
RESULT: 3:on 
EXPECTED RESULT: 3:on
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify rsyslog config ... 
######################################################################################
COMMAND:  md5sum /etc/rsyslog.conf | cut -f 1 -d  " "
RESULT: 8b91b32300134e98ef4aee632ed61e21 
EXPECTED RESULT: dd356958ca9c4e779f7fac13dde3c1b5
RETURN CODE: 0
FAIL2
8b91b32300134e98ef4aee632ed61e21
######################################################################################
# NEW TEST: ## Verify no systemid file ... 
######################################################################################
COMMAND:  echo true
RESULT: true 
EXPECTED RESULT: 
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify kernel name ... 
######################################################################################
COMMAND:  /bin/uname -s
RESULT: Linux 
EXPECTED RESULT: Linux
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify latest installed kernel is running ... 
######################################################################################
RHEL VERSION IS 6
LATEST_RPM_KERNEL_VERSION=rpm -q kernel --last | head -n 1 |  cut -c 8-60 | cut -d ' ' -f 1
CURRENT_UNAME_KERNAL_VERSION=2.6.32-262.el6
assert latest rpm kernel = uname -r
COMMAND:  uname -r | sed  's/\(.*\)......./\1/'
RESULT: 2.6.32-262.el6 
EXPECTED RESULT: 2.6.32-262.el6.x86_64
RETURN CODE: 0
FAIL2
2.6.32-262.el6
######################################################################################
# NEW TEST: ## Verify latest kenerl is in /boot/grub/menu.1st ... 
######################################################################################
COMMAND:  cat /boot/grub/menu.lst | grep 2.6.32-262.el6.x86_64
RESULT: title RHEL6.3-20120416.0-Server-x86_64-starter-ec2 (2.6.32-262.el6.x86_64)
        kernel /boot/vmlinuz-2.6.32-262.el6.x86_64 ro root=LABEL=_/ 
        initrd /boot/initramfs-2.6.32-262.el6.x86_64.img 
EXPECTED RESULT: 
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify operating system ... 
######################################################################################
COMMAND:  /bin/uname -o
RESULT: GNU/Linux 
EXPECTED RESULT: GNU/Linux
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify /etc/sysconfig/kernel ... 
######################################################################################
COMMAND:  ls /etc/sysconfig/kernel
RESULT: /etc/sysconfig/kernel 
EXPECTED RESULT:

Comment 8 mkovacik 2012-04-23 10:03:52 UTC
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify /etc/sysconfig/kernel contains UPDATEDEFAULT ... 
######################################################################################
COMMAND:  cat /etc/sysconfig/kernel | grep UPDATEDEFAULT=yes
RESULT: UPDATEDEFAULT=yes 
EXPECTED RESULT: 
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify /etc/sysconfig/kernel contains DEFAULTKERNEL ... 
######################################################################################
COMMAND:  cat /etc/sysconfig/kernel | grep DEFAULTKERNEL=kernel
RESULT: DEFAULTKERNEL=kernel 
EXPECTED RESULT: 
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify system up to date
######################################################################################
COMMAND:  _check_sys_update_phase1
# no update was required
RESULT: # checking sys update done
# no update was required 
EXPECTED RESULT: 
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify RPMs ... 
######################################################################################
....L....  c /etc/pam.d/fingerprint-auth
....L....  c /etc/pam.d/password-auth
....L....  c /etc/pam.d/smartcard-auth
....L....  c /etc/pam.d/system-auth
.M.......    /var/cache/yum
    S file Size differs
    M Mode differs (includes permissions and file type)
    5 MD5 sum differs
    D Device major/minor number mismatch
    L readLink(2) path mismatch
    U User ownership differs
    G Group ownership differs
    T mTime differs

COMMAND:  cat /tmp/rpmqaV.txt | wc -l
RESULT: 5 
EXPECTED RESULT: 4
RETURN CODE: 0
FAIL2
5
######################################################################################
# NEW TEST: ## Verify Version 2 ... 
######################################################################################
COMMAND:  /bin/rpm -q --queryformat '%{RELEASE}\n' redhat-release-server | cut -d. -f1,2
RESULT: 6.3 
EXPECTED RESULT: 6.3
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify packager ... 
######################################################################################
COMMAND:  cat /tmp/Packager | grep -v 'Red Hat, Inc.' |  grep -v crash-trace-commandPackager| wc -l
RESULT: 0 
EXPECTED RESULT: 0
RETURN CODE: 0
PASS
crash-trace-commandPackager    : Lai Jiangshan <laijs.com>
######################################################################################
# NEW TEST: ## List the configured repositories...
######################################################################################
COMMAND:  /usr/bin/yum repolist
Unable to read consumer identity
Repo rhui-us-east-1-rhel-server-releases-beta forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-beta-key.pem
Repo rhui-us-east-1-rhel-server-releases-optional-beta forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-beta-key.pem
Repo rhui-us-east-1-rhel-server-releases forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-key.pem
Repo rhui-us-east-1-rhel-server-releases-optional forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-key.pem
RESULT: Loaded plugins: amazon-id, product-id, rhui-lb, security, subscription-manager
Updating certificate-based repositories.
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/dist/rhel/rhui/server/6/6Server/x86_64/os error was
14: problem with the local client certificate
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/beta/rhel/rhui/server/6/6Server/x86_64/os error was
14: problem with the local client certificate
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/dist/rhel/rhui/server/6/6Server/x86_64/optional/os error was
14: problem with the local client certificate
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/beta/rhel/rhui/server/6/6Server/x86_64/optional/os error was
14: problem with the local client certificate
repo id                                    repo name                      status
rhui-us-east-1-client-config-server-6      Red Hat Update Infrastructure  1
rhui-us-east-1-client-config-server-6-beta Red Hat Update Infrastructure  0
repolist: 1 
EXPECTED RESULT: 
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Search zsh...
######################################################################################
COMMAND:  /usr/bin/yum search zsh
Unable to read consumer identity
Repo rhui-us-east-1-rhel-server-releases-beta forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-beta-key.pem
Repo rhui-us-east-1-rhel-server-releases-optional-beta forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-beta-key.pem
Repo rhui-us-east-1-rhel-server-releases forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-key.pem
Repo rhui-us-east-1-rhel-server-releases-optional forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-key.pem
Warning: No matches found for: zsh
RESULT: Loaded plugins: amazon-id, product-id, rhui-lb, security, subscription-manager
Updating certificate-based repositories.
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/dist/rhel/rhui/server/6/6Server/x86_64/os error was
14: problem with the local client certificate
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/beta/rhel/rhui/server/6/6Server/x86_64/os error was
14: problem with the local client certificate
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/dist/rhel/rhui/server/6/6Server/x86_64/optional/os error was
14: problem with the local client certificate
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/beta/rhel/rhui/server/6/6Server/x86_64/optional/os error was
14: problem with the local client certificate
No Matches found 
EXPECTED RESULT: 
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## install zsh ... 
######################################################################################
COMMAND: /usr/bin/yum -y install zsh
Unable to read consumer identity
Repo rhui-us-east-1-rhel-server-releases-beta forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-beta-key.pem
Repo rhui-us-east-1-rhel-server-releases-optional-beta forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-beta-key.pem
Repo rhui-us-east-1-rhel-server-releases forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-key.pem
Repo rhui-us-east-1-rhel-server-releases-optional forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-key.pem
Error: Nothing to do
RETURN CODE: 1
COMMAND:  /bin/rpm -q --queryformat '%{NAME}\n' zsh
RESULT: package zsh is not installed 
EXPECTED RESULT: zsh
RETURN CODE: 1
FAIL1
package zsh is not installed
######################################################################################
# NEW TEST: ## List available groups..
######################################################################################
COMMAND:  /usr/bin/yum grouplist
Unable to read consumer identity
Repo rhui-us-east-1-rhel-server-releases-beta forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-beta-key.pem
Repo rhui-us-east-1-rhel-server-releases-optional-beta forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-beta-key.pem
Repo rhui-us-east-1-rhel-server-releases forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-key.pem
Repo rhui-us-east-1-rhel-server-releases-optional forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-key.pem
Error: Cannot retrieve repository metadata (repomd.xml) for repository: rhui-us-east-1-rhel-server-releases. Please verify its path and try again
RESULT: Loaded plugins: amazon-id, product-id, rhui-lb, security, subscription-manager
Updating certificate-based repositories.
Setting up Group Process
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/dist/rhel/rhui/server/6/6Server/x86_64/os error was
14: problem with the local client certificate 
EXPECTED RESULT: 
RETURN CODE: 1
FAIL1
Loaded plugins: amazon-id, product-id, rhui-lb, security, subscription-manager Updating certificate-based repositories. Setting up Group Process Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/dist/rhel/rhui/server/6/6Server/x86_64/os error was 14: problem with the local client certificate
######################################################################################
# NEW TEST: ## Install Development tools group...
######################################################################################
COMMAND:  /usr/bin/yum -y groupinstall 'Development tools'
Unable to read consumer identity
Repo rhui-us-east-1-rhel-server-releases-beta forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-beta-key.pem
Repo rhui-us-east-1-rhel-server-releases-optional-beta forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-beta-key.pem
Repo rhui-us-east-1-rhel-server-releases forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-key.pem
Repo rhui-us-east-1-rhel-server-releases-optional forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-key.pem
Warning: Group Development tools does not exist.
RESULT: Loaded plugins: amazon-id, product-id, rhui-lb, security, subscription-manager
Updating certificate-based repositories.
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/dist/rhel/rhui/server/6/6Server/x86_64/os error was
14: problem with the local client certificate
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/beta/rhel/rhui/server/6/6Server/x86_64/os error was
14: problem with the local client certificate
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/dist/rhel/rhui/server/6/6Server/x86_64/optional/os error was
14: problem with the local client certificate
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/beta/rhel/rhui/server/6/6Server/x86_64/optional/os error was
14: problem with the local client certificate
Setting up Group Process
No packages in any requested group available to install or update 
EXPECTED RESULT: 
RETURN CODE: 0
PASS
# checking possible sys update
Loaded plugins: amazon-id, product-id, rhui-lb, security, subscription-manager
Updating certificate-based repositories.
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/dist/rhel/rhui/server/6/6Server/x86_64/os error was
14: problem with the local client certificate
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/beta/rhel/rhui/server/6/6Server/x86_64/os error was
14: problem with the local client certificate
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/dist/rhel/rhui/server/6/6Server/x86_64/optional/os error was
14: problem with the local client certificate
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/beta/rhel/rhui/server/6/6Server/x86_64/optional/os error was
14: problem with the local client certificate
# no sys update found
######################################################################################
# NEW TEST: ## Verify yum update ... 
######################################################################################
COMMAND:  /usr/bin/yum -y update
Unable to read consumer identity
Repo rhui-us-east-1-rhel-server-releases-beta forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-beta-key.pem
Repo rhui-us-east-1-rhel-server-releases-optional-beta forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-beta-key.pem
Repo rhui-us-east-1-rhel-server-releases forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-key.pem
Repo rhui-us-east-1-rhel-server-releases-optional forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-key.pem
RESULT: Loaded plugins: amazon-id, product-id, rhui-lb, security, subscription-manager
Updating certificate-based repositories.
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/dist/rhel/rhui/server/6/6Server/x86_64/os error was
14: problem with the local client certificate
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/beta/rhel/rhui/server/6/6Server/x86_64/os error was
14: problem with the local client certificate
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/dist/rhel/rhui/server/6/6Server/x86_64/optional/os error was
14: problem with the local client certificate
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/beta/rhel/rhui/server/6/6Server/x86_64/optional/os error was
14: problem with the local client certificate
Setting up Update Process
No Packages marked for Update 
EXPECTED RESULT: 
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify no fa1lures in rpm package ... 
######################################################################################
COMMAND:  cat /root/valid/src/validate.log | grep 'failure in rpm package' | wc -l
RESULT: 1 
EXPECTED RESULT: 1
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify no rpm scriplet fa1lures ... 
######################################################################################
COMMAND:  cat /root/valid/src/validate.log | grep 'scriptlet failed, exit status 1' | wc -l
RESULT: 1 
EXPECTED RESULT: 1
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify package removal... 
######################################################################################
COMMAND: /bin/rpm -e zsh
error: package zsh is not installed
RETURN CODE: 1
COMMAND:  /bin/rpm -q zsh
RESULT: package zsh is not installed 
EXPECTED RESULT: package zsh is not installed
RETURN CODE: 1
PASS
######################################################################################
# NEW TEST: ## install zsh ... 
######################################################################################
COMMAND: /usr/bin/yum -y install zsh
Unable to read consumer identity
Repo rhui-us-east-1-rhel-server-releases-beta forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-beta-key.pem
Repo rhui-us-east-1-rhel-server-releases-optional-beta forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-beta-key.pem
Repo rhui-us-east-1-rhel-server-releases forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-key.pem
Repo rhui-us-east-1-rhel-server-releases-optional forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-key.pem
Error: Nothing to do
RETURN CODE: 1
COMMAND:  /bin/rpm -q --queryformat '%{NAME}\n' zsh
RESULT: package zsh is not installed 
EXPECTED RESULT: zsh
RETURN CODE: 1
FAIL1
package zsh is not installed
######################################################################################
# NEW TEST: ## Verify package removal ... 
######################################################################################
COMMAND: /bin/rpm -e zsh
error: package zsh is not installed
RETURN CODE: 1
COMMAND:  /bin/rpm -q zsh
RESULT: package zsh is not installed 
EXPECTED RESULT: package zsh is not installed
RETURN CODE: 1
PASS
# checking possible sys update
Loaded plugins: amazon-id, product-id, rhui-lb, security, subscription-manager
Updating certificate-based repositories.
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/dist/rhel/rhui/server/6/6Server/x86_64/os error was
14: problem with the local client certificate
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/beta/rhel/rhui/server/6/6Server/x86_64/os error was
14: problem with the local client certificate
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/dist/rhel/rhui/server/6/6Server/x86_64/optional/os error was
14: problem with the local client certificate
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/beta/rhel/rhui/server/6/6Server/x86_64/optional/os error was
14: problem with the local client certificate
# no sys update found
######################################################################################
# NEW TEST: ## Verify yum update ... 
######################################################################################
COMMAND:  /usr/bin/yum -y update
Unable to read consumer identity
Repo rhui-us-east-1-rhel-server-releases-beta forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-beta-key.pem
Repo rhui-us-east-1-rhel-server-releases-optional-beta forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-beta-key.pem
Repo rhui-us-east-1-rhel-server-releases forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-key.pem
Repo rhui-us-east-1-rhel-server-releases-optional forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-key.pem
RESULT: Loaded plugins: amazon-id, product-id, rhui-lb, security, subscription-manager
Updating certificate-based repositories.
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/dist/rhel/rhui/server/6/6Server/x86_64/os error was
14: problem with the local client certificate
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/beta/rhel/rhui/server/6/6Server/x86_64/os error was
14: problem with the local client certificate
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/dist/rhel/rhui/server/6/6Server/x86_64/optional/os error was
14: problem with the local client certificate
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/beta/rhel/rhui/server/6/6Server/x86_64/optional/os error was
14: problem with the local client certificate
Setting up Update Process
No Packages marked for Update 
EXPECTED RESULT: 
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify disabled yum plugin ... 
######################################################################################
COMMAND:  grep ^enabled /etc/yum/pluginconf.d/rhnplugin.conf | grep -v '^#' | cut -d\= -f2 | awk '{print }' | sort -f | uniq
RESULT:  0 
EXPECTED RESULT: 
RETURN CODE: 0
PASS

## Summary ##
FAILURES = 16
FAILED TESTS = ## Verify auditd.conf ... ## Verify auditd sysconfig ... ## Verify group file ... ## Verify group file ... ## Verify group file ... ##test menu.lst ... ##test menu.lst ... ## Verify no missing packages ... ## test repo files ... ## test repo files ... ## Verify rsyslog config ... ## Verify latest installed kernel is running ... ## Verify RPMs ... ## install zsh ... ## List available groups.. ## install zsh ...
LOG FILE = /root/valid/src/validate.log
## Summary ##

######################################################################################
# NEW TEST: ## Open a bugzilla
######################################################################################

Comment 9 mkovacik 2012-04-23 10:04:15 UTC
IMAGE ID= ami-eaff2483_us-east-1_m1.xlarge
###### TEST KERNEL AFTER REBOOT ####  
######################################################################################
# NEW TEST: ## Verify disabled yum plugin ... 
######################################################################################
COMMAND:  grep ^enabled /etc/yum/pluginconf.d/rhnplugin.conf | grep -v '^#' | cut -d\= -f2 | awk '{print }' | sort -f | uniq
RESULT:  0 
EXPECTED RESULT: 
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify kernel name ... 
######################################################################################
COMMAND:  /bin/uname -s
RESULT: Linux 
EXPECTED RESULT: Linux
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify latest installed kernel is running ... 
######################################################################################
RHEL VERSION IS 6
LATEST_RPM_KERNEL_VERSION=rpm -q kernel --last | head -n 1 |  cut -c 8-60 | cut -d ' ' -f 1
CURRENT_UNAME_KERNAL_VERSION=2.6.32-262.el6
assert latest rpm kernel = uname -r
COMMAND:  uname -r | sed  's/\(.*\)......./\1/'
RESULT: 2.6.32-262.el6 
EXPECTED RESULT: 2.6.32-262.el6.x86_64
RETURN CODE: 0
FAIL2
2.6.32-262.el6
######################################################################################
# NEW TEST: ## Verify latest kenerl is in /boot/grub/menu.1st ... 
######################################################################################
COMMAND:  cat /boot/grub/menu.lst | grep 2.6.32-262.el6.x86_64
RESULT: title RHEL6.3-20120416.0-Server-x86_64-starter-ec2 (2.6.32-262.el6.x86_64)
        kernel /boot/vmlinuz-2.6.32-262.el6.x86_64 ro root=LABEL=_/ 
        initrd /boot/initramfs-2.6.32-262.el6.x86_64.img 
EXPECTED RESULT: 
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify operating system ... 
######################################################################################
COMMAND:  /bin/uname -o
RESULT: GNU/Linux 
EXPECTED RESULT: GNU/Linux
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify /etc/sysconfig/kernel ... 
######################################################################################
COMMAND:  ls /etc/sysconfig/kernel
RESULT: /etc/sysconfig/kernel 
EXPECTED RESULT: 
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify /etc/sysconfig/kernel contains UPDATEDEFAULT ... 
######################################################################################
COMMAND:  cat /etc/sysconfig/kernel | grep UPDATEDEFAULT=yes
RESULT: UPDATEDEFAULT=yes 
EXPECTED RESULT: 
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify /etc/sysconfig/kernel contains DEFAULTKERNEL ... 
######################################################################################
COMMAND:  cat /etc/sysconfig/kernel | grep DEFAULTKERNEL=kernel
RESULT: DEFAULTKERNEL=kernel 
EXPECTED RESULT: 
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify system up to date
######################################################################################
COMMAND:  _check_sys_update_phase1
# no update was required
RESULT: # checking sys update done
# no update was required 
EXPECTED RESULT: 
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ##Verify memory match hwp ... 
######################################################################################
cat /proc/meminfo | grep MemTotal: | awk '{print }'
FOUND MEMORY OF 15371764 > hwp MEMORY of 15000000
COMMAND:  echo true
RESULT: true 
EXPECTED RESULT: 
RETURN CODE: 0
PASS
hostname
######################################################################################
# NEW TEST: The selected image has the version RHEL 6.3
######################################################################################

## Summary ##
FAILURES = 17
FAILED TESTS = ## Verify auditd.conf ... ## Verify auditd sysconfig ... ## Verify group file ... ## Verify group file ... ## Verify group file ... ##test menu.lst ... ##test menu.lst ... ## Verify no missing packages ... ## test repo files ... ## test repo files ... ## Verify rsyslog config ... ## Verify latest installed kernel is running ... ## Verify RPMs ... ## install zsh ... ## List available groups.. ## install zsh ...
## Verify latest installed kernel is running ...
LOG FILE = /root/valid/src/validate.log
## Summary ##

######################################################################################
# NEW TEST: ## Open a bugzilla
######################################################################################

Comment 10 mkovacik 2012-04-23 10:05:34 UTC
IMAGE ID= 
=====image_validation.sh Mon Apr 23 06:04:41 EDT 2012=====
######################################################################################
# NEW TEST: ## Open a bugzilla
######################################################################################
######################################################################################
# NEW TEST: Fetching the identity doc Details
######################################################################################
Verifying that signature exists
COMMAND:  echo 1
RESULT: 1 
EXPECTED RESULT: 1
RETURN CODE: 0
PASS
Verifying the IMAGE ID
COMMAND:  echo 1
RESULT: 1 
EXPECTED RESULT: 1
RETURN CODE: 0
PASS
Verifying the Architecture
COMMAND:  echo 1
RESULT: 1 
EXPECTED RESULT: 1
RETURN CODE: 0
PASS
This Host => ec2-23-20-248-181.compute-1.amazonaws.com with Image Id : ami-eaff2483, is launched with Instance Id : i-1c357f7b , Instance Type : m2.2xlarge and Arch : x86_64 in the Region : us-east-1d
The Validate Signature is : BkYTVFdex1/kS9zt4+zNciMJPRtNCtCFPjBD8VTgckvrgb7fo/CxHxwXCKZM/8T0t0JjM7hQ5E1a
6DXYaTCBdw0GzWbrPSOLa27ULioR9Os0lFgZGC4z2vJwh0SX4IKpLy36byNPeiC0MObATF+B/BzR
YPOnXgJ7sLOlNWiqqJU=
This is a Cloud Access image
/root/valid/src
ip-10-115-6-136
Red Hat Enterprise Linux Server release 6.3 Beta (Santiago)
######################################################################################
# NEW TEST: The selected image has the version RHEL 6.3
######################################################################################
ami is a BETA
######################################################################################
# NEW TEST: ## Verify auditd is on ... 
######################################################################################
COMMAND:  /sbin/chkconfig --list auditd | grep 3:on
RESULT: auditd         	0:off	1:off	2:on	3:on	4:on	5:on	6:off 
EXPECTED RESULT: 
RETURN CODE: 0
PASS
COMMAND:  /sbin/chkconfig --list auditd | grep 5:on
RESULT: auditd         	0:off	1:off	2:on	3:on	4:on	5:on	6:off 
EXPECTED RESULT: 
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify audit.rules ... 
######################################################################################
COMMAND:  md5sum /etc/audit/audit.rules | cut -f 1 -d  " "
RESULT: f9869e1191838c461f5b9051c78a638d 
EXPECTED RESULT: f9869e1191838c461f5b9051c78a638d
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify auditd.conf ... 
######################################################################################
COMMAND:  md5sum /etc/audit/auditd.conf | cut -f 1 -d  " "
RESULT: e1886162554c18906df2ecd258aa4794 
EXPECTED RESULT: 612ddf28c3916530d47ef56a1b1ed1ed
RETURN CODE: 0
FAIL2
e1886162554c18906df2ecd258aa4794
######################################################################################
# NEW TEST: ## Verify auditd sysconfig ... 
######################################################################################
COMMAND:  md5sum /etc/sysconfig/auditd | cut -f 1 -d  " "
RESULT: d4d43637708e30418c30003e212f76fc 
EXPECTED RESULT: 123beb3a97a32d96eba4f11509e39da2
RETURN CODE: 0
FAIL2
d4d43637708e30418c30003e212f76fc
######################################################################################
# NEW TEST: ## Verify bash_history ... 
######################################################################################
COMMAND:  cat ~/.bash_history | wc -l 
RESULT: 0 
EXPECTED RESULT: 0
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify  chkconfig ... 
######################################################################################
COMMAND:  chkconfig --list | grep crond | cut -f 5
RESULT: 3:on 
EXPECTED RESULT: 3:on
RETURN CODE: 0
PASS
COMMAND:  chkconfig --list | grep  iptables | cut -f 5
RESULT: 3:on 
EXPECTED RESULT: 3:on
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify rh-cloud-firstboot is OFF ... 
######################################################################################
COMMAND:  chkconfig --list | grep rh-cloud | grep 3:off | wc -l
RESULT: 1 
EXPECTED RESULT: 1
RETURN CODE: 0
PASS
/etc/sysconfig/rh-cloud-firstboot FOUND
COMMAND:  echo true
RESULT: true 
EXPECTED RESULT: 
RETURN CODE: 0
PASS
COMMAND:  cat /etc/sysconfig/rh-cloud-firstboot
RESULT: RUN_FIRSTBOOT=NO 
EXPECTED RESULT: RUN_FIRSTBOOT=NO
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Partition Format  ...
######################################################################################
mount | grep /dev/xvde1 | awk '{ print  }'
COMMAND:  echo ext4
RESULT: ext4 
EXPECTED RESULT: ext4
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Partition Size ...
######################################################################################
size=5905712
COMMAND:  echo true
RESULT: true 
EXPECTED RESULT: true
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: Fetching the identity doc Details
######################################################################################
Verifying that signature exists
COMMAND:  echo 1
RESULT: 1 
EXPECTED RESULT: 1
RETURN CODE: 0
PASS
Verifying the IMAGE ID
COMMAND:  echo 1
RESULT: 1 
EXPECTED RESULT: 1
RETURN CODE: 0
PASS
Verifying the Architecture
COMMAND:  echo 1
RESULT: 1 
EXPECTED RESULT: 1
RETURN CODE: 0
PASS
This Host => ec2-23-20-248-181.compute-1.amazonaws.com with Image Id : ami-eaff2483, is launched with Instance Id : i-1c357f7b , Instance Type : m2.2xlarge and Arch : x86_64 in the Region : us-east-1d
The Validate Signature is : BkYTVFdex1/kS9zt4+zNciMJPRtNCtCFPjBD8VTgckvrgb7fo/CxHxwXCKZM/8T0t0JjM7hQ5E1a
6DXYaTCBdw0GzWbrPSOLa27ULioR9Os0lFgZGC4z2vJwh0SX4IKpLy36byNPeiC0MObATF+B/BzR
YPOnXgJ7sLOlNWiqqJU=
This is a Cloud Access image
######################################################################################
# NEW TEST: ## Verify GPG checking ... 
######################################################################################
COMMAND:  grep '^gpgcheck=1' /etc/yum.repos.d/redhat-*.repo | cut -d\= -f2 | sort -f | uniq
RESULT: 1 
EXPECTED RESULT: 1
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify GPG Keys ... 
######################################################################################
COMMAND:  rpm -qa gpg-pubkey* | wc -l 
RESULT: 2 
EXPECTED RESULT: 2
RETURN CODE: 0
PASS
SKIPPING TEST, BETA DETECTED
######################################################################################
# NEW TEST: ## Verify group file ... 
######################################################################################
COMMAND:  cat /etc/group | grep root:x:0
RESULT: root:x:0: 
EXPECTED RESULT: root:x:0:root
RETURN CODE: 0
FAIL2
root:x:0:
COMMAND:  cat /etc/group | grep bin:x:1
RESULT: bin:x:1:bin,daemon 
EXPECTED RESULT: bin:x:1:root,bin,daemon
RETURN CODE: 0
FAIL2
bin:x:1:bin,daemon
COMMAND:  cat /etc/group | grep daemon:x:2
RESULT: daemon:x:2:bin,daemon 
EXPECTED RESULT: daemon:x:2:root,bin,daemon
RETURN CODE: 0
FAIL2
daemon:x:2:bin,daemon
COMMAND:  cat /etc/group | grep nobody:x:99
RESULT: nobody:x:99: 
EXPECTED RESULT: nobody:x:99:
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ##test menu.lst ... 
######################################################################################
COMMAND:  file /boot/grub/menu.lst  | grep symbolic | wc -l
RESULT: 0 
EXPECTED RESULT: 1
RETURN CODE: 0
FAIL2
0
COMMAND:  file /boot/grub/menu.lst  | grep grub.conf | wc -l
RESULT: 0 
EXPECTED RESULT: 1
RETURN CODE: 0
FAIL2
0
COMMAND:  cat /boot/grub/grub.conf  | grep "(hd0,0)" | wc -l
RESULT: 2 
EXPECTED RESULT: 0
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify runlevel ... 
######################################################################################
COMMAND:  cat /etc/inittab | grep id:
RESULT: id:3:initdefault: 
EXPECTED RESULT: id:3:initdefault:
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify iptables ... 
######################################################################################
COMMAND: /etc/init.d/iptables status | grep REJECT 
5    REJECT     all  --  0.0.0.0/0            0.0.0.0/0           reject-with icmp-host-prohibited 
1    REJECT     all  --  0.0.0.0/0            0.0.0.0/0           reject-with icmp-host-prohibited 
RETURN CODE: 0
COMMAND:  /etc/init.d/iptables status | grep :22 | grep ACCEPT | wc -l 
RESULT: 1 
EXPECTED RESULT: 1
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify /etc/ld.so.conf.d/libc6-xen.conf is not present ... 
######################################################################################
COMMAND:  ls /etc/ld.so.conf.d/libc6-xen.conf
ls: cannot access /etc/ld.so.conf.d/libc6-xen.conf: No such file or directory
RESULT:  
EXPECTED RESULT: 2
RETURN CODE: 2
PASS
######################################################################################
# NEW TEST: ##Verify memory match hwp ... 
######################################################################################
cat /proc/meminfo | grep MemTotal: | awk '{print }'
FOUND MEMORY OF 35127956 > hwp MEMORY of 34200000
COMMAND:  echo true
RESULT: true 
EXPECTED RESULT: 
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify nameserver ... 
######################################################################################
COMMAND:  /usr/bin/dig clock.redhat.com 2>> /root/valid/src/validate.log | grep 66.187.233.4  | wc -l
RESULT: 1 
EXPECTED RESULT: 
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify networking ... 
######################################################################################
COMMAND:  grep ^NETWORKING= /etc/sysconfig/network | cut -d\= -f2
RESULT: yes 
EXPECTED RESULT: yes
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify device ... 
######################################################################################
COMMAND:  grep ^DEVICE= /etc/sysconfig/network-scripts/ifcfg-eth0 | cut -d\= -f2
RESULT: eth0 
EXPECTED RESULT: eth0
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify no missing packages ... 
######################################################################################
COMMAND: /bin/rpm -qa --queryformat='%{NAME}\n' > /tmp/rpmqa.tmp
RETURN CODE: 0
COUNT = 0
COMMAND:  echo test failed
RESULT: test failed 
EXPECTED RESULT: 1
RETURN CODE: 0
FAIL2
test failed
######################################################################################
# NEW TEST: ## Verify new passwd file ... 
######################################################################################
COMMAND:  cat /etc/passwd | grep root:x:0
RESULT: root:x:0:0:root:/root:/bin/bash 
EXPECTED RESULT: root:x:0:0:root:/root:/bin/bash
RETURN CODE: 0
PASS
COMMAND:  cat /etc/passwd | grep nobody:x:99
RESULT: nobody:x:99:99:Nobody:/:/sbin/nologin 
EXPECTED RESULT: nobody:x:99:99:Nobody:/:/sbin/nologin
RETURN CODE: 0
PASS
COMMAND:  cat /etc/passwd | grep sshd
RESULT: sshd:x:74:74:Privilege-separated SSH:/var/empty/sshd:/sbin/nologin 
EXPECTED RESULT: sshd:x:74:74:Privilege-separated SSH:/var/empty/sshd:/sbin/nologin
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## test repo files ... 
######################################################################################
COMMAND:  ls /etc/yum.repos.d/ | wc -l 
RESULT: 6 
EXPECTED RESULT: 4
RETURN CODE: 0
FAIL2
6
COMMAND:  ls /etc/yum.repos.d/redhat* | wc -l
RESULT: 4 
EXPECTED RESULT: 2
RETURN CODE: 0
FAIL2
4
COMMAND:  ls /etc/yum.repos.d/rhel* | wc -l
RESULT: 1 
EXPECTED RESULT: 0
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify resize2fs ... 
######################################################################################
COMMAND: resize2fs -p /dev/xvde1 15000M
resize2fs 1.41.12 (17-May-2010)
RETURN CODE: 0
COMMAND:  df -h | grep 15G | wc -l 
RESULT: 1 
EXPECTED RESULT: 1
RETURN CODE: 0
PASS
/root/valid/src
ip-10-115-6-136
Red Hat Enterprise Linux Server release 6.3 Beta (Santiago)
######################################################################################
# NEW TEST: The selected image has the version RHEL 6.3
######################################################################################
ami is a BETA
######################################################################################
# NEW TEST: ## /sbin/getenforce ... 
######################################################################################
COMMAND:  /usr/sbin/getenforce
RESULT: Enforcing 
EXPECTED RESULT: Enforcing
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify SELINUX enforcing ... 
######################################################################################
COMMAND:  grep ^SELINUX= /etc/sysconfig/selinux | cut -d\= -f2
RESULT: enforcing 
EXPECTED RESULT: enforcing
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify SELINUXTYPE targeted ... 
######################################################################################
COMMAND:  grep ^SELINUXTYPE= /etc/sysconfig/selinux | cut -d\= -f2
RESULT: targeted 
EXPECTED RESULT: targeted
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Flip Selinux Permissive ... 
######################################################################################
COMMAND:  /usr/sbin/setenforce Permissive && /usr/sbin/getenforce
RESULT: Permissive 
EXPECTED RESULT: Permissive
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Flip Selinux Enforcing ... 
######################################################################################
COMMAND:  /usr/sbin/setenforce Enforcing && /usr/sbin/getenforce
RESULT: Enforcing 
EXPECTED RESULT: Enforcing
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify new shells file ... 
######################################################################################
COMMAND:  cat /etc/shells | grep bash
RESULT: /bin/bash 
EXPECTED RESULT: /bin/bash
RETURN CODE: 0
PASS
COMMAND:  cat /etc/shells | grep nologin
RESULT: /sbin/nologin 
EXPECTED RESULT: /sbin/nologin
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify sshd_config settings ...
######################################################################################
COMMAND:  cat /etc/ssh/sshd_config  | grep  PasswordAuthentication | grep no | wc -l
RESULT: 1 
EXPECTED RESULT: 1
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify sshd ...
######################################################################################
COMMAND:  chkconfig --list | grep sshd
RESULT: sshd           	0:off	1:off	2:on	3:on	4:on	5:on	6:off 
EXPECTED RESULT: sshd           	0:off	1:off	2:on	3:on	4:on	5:on	6:off
RETURN CODE: 0
PASS
COMMAND:  /etc/init.d/sshd status | grep running | wc -l
RESULT: 1 
EXPECTED RESULT: 1
RETURN CODE: 0
PASS
this machine doesn't require swap
######################################################################################
# NEW TEST: ## Verify rsyslog is on ... 
######################################################################################
COMMAND:  chkconfig --list | grep rsyslog | cut -f 5
RESULT: 3:on 
EXPECTED RESULT: 3:on
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify rsyslog config ... 
######################################################################################
COMMAND:  md5sum /etc/rsyslog.conf | cut -f 1 -d  " "
RESULT: 8b91b32300134e98ef4aee632ed61e21 
EXPECTED RESULT: dd356958ca9c4e779f7fac13dde3c1b5
RETURN CODE: 0
FAIL2
8b91b32300134e98ef4aee632ed61e21
######################################################################################
# NEW TEST: ## Verify no systemid file ... 
######################################################################################
COMMAND:  echo true
RESULT: true 
EXPECTED RESULT: 
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify kernel name ... 
######################################################################################
COMMAND:  /bin/uname -s
RESULT: Linux 
EXPECTED RESULT: Linux
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify latest installed kernel is running ... 
######################################################################################
RHEL VERSION IS 6
LATEST_RPM_KERNEL_VERSION=rpm -q kernel --last | head -n 1 |  cut -c 8-60 | cut -d ' ' -f 1
CURRENT_UNAME_KERNAL_VERSION=2.6.32-262.el6
assert latest rpm kernel = uname -r
COMMAND:  uname -r | sed  's/\(.*\)......./\1/'
RESULT: 2.6.32-262.el6 
EXPECTED RESULT: 2.6.32-262.el6.x86_64
RETURN CODE: 0
FAIL2
2.6.32-262.el6
######################################################################################
# NEW TEST: ## Verify latest kenerl is in /boot/grub/menu.1st ... 
######################################################################################
COMMAND:  cat /boot/grub/menu.lst | grep 2.6.32-262.el6.x86_64
RESULT: title RHEL6.3-20120416.0-Server-x86_64-starter-ec2 (2.6.32-262.el6.x86_64)
        kernel /boot/vmlinuz-2.6.32-262.el6.x86_64 ro root=LABEL=_/ 
        initrd /boot/initramfs-2.6.32-262.el6.x86_64.img 
EXPECTED RESULT: 
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify operating system ... 
######################################################################################
COMMAND:  /bin/uname -o
RESULT: GNU/Linux 
EXPECTED RESULT: GNU/Linux
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify /etc/sysconfig/kernel ... 
######################################################################################
COMMAND:  ls /etc/sysconfig/kernel
RESULT: /etc/sysconfig/kernel 
EXPECTED RESULT:

Comment 11 mkovacik 2012-04-23 10:05:37 UTC
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify /etc/sysconfig/kernel contains UPDATEDEFAULT ... 
######################################################################################
COMMAND:  cat /etc/sysconfig/kernel | grep UPDATEDEFAULT=yes
RESULT: UPDATEDEFAULT=yes 
EXPECTED RESULT: 
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify /etc/sysconfig/kernel contains DEFAULTKERNEL ... 
######################################################################################
COMMAND:  cat /etc/sysconfig/kernel | grep DEFAULTKERNEL=kernel
RESULT: DEFAULTKERNEL=kernel 
EXPECTED RESULT: 
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify system up to date
######################################################################################
COMMAND:  _check_sys_update_phase1
# no update was required
RESULT: # checking sys update done
# no update was required 
EXPECTED RESULT: 
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify RPMs ... 
######################################################################################
....L....  c /etc/pam.d/fingerprint-auth
....L....  c /etc/pam.d/password-auth
....L....  c /etc/pam.d/smartcard-auth
....L....  c /etc/pam.d/system-auth
.M.......    /var/cache/yum
    S file Size differs
    M Mode differs (includes permissions and file type)
    5 MD5 sum differs
    D Device major/minor number mismatch
    L readLink(2) path mismatch
    U User ownership differs
    G Group ownership differs
    T mTime differs

COMMAND:  cat /tmp/rpmqaV.txt | wc -l
RESULT: 5 
EXPECTED RESULT: 4
RETURN CODE: 0
FAIL2
5
######################################################################################
# NEW TEST: ## Verify Version 2 ... 
######################################################################################
COMMAND:  /bin/rpm -q --queryformat '%{RELEASE}\n' redhat-release-server | cut -d. -f1,2
RESULT: 6.3 
EXPECTED RESULT: 6.3
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify packager ... 
######################################################################################
COMMAND:  cat /tmp/Packager | grep -v 'Red Hat, Inc.' |  grep -v crash-trace-commandPackager| wc -l
RESULT: 0 
EXPECTED RESULT: 0
RETURN CODE: 0
PASS
crash-trace-commandPackager    : Lai Jiangshan <laijs.com>
######################################################################################
# NEW TEST: ## List the configured repositories...
######################################################################################
COMMAND:  /usr/bin/yum repolist
Unable to read consumer identity
Repo rhui-us-east-1-rhel-server-releases-beta forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-beta-key.pem
Repo rhui-us-east-1-rhel-server-releases-optional-beta forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-beta-key.pem
Repo rhui-us-east-1-rhel-server-releases forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-key.pem
Repo rhui-us-east-1-rhel-server-releases-optional forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-key.pem
RESULT: Loaded plugins: amazon-id, product-id, rhui-lb, security, subscription-manager
Updating certificate-based repositories.
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/dist/rhel/rhui/server/6/6Server/x86_64/os error was
14: problem with the local client certificate
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/beta/rhel/rhui/server/6/6Server/x86_64/os error was
14: problem with the local client certificate
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/dist/rhel/rhui/server/6/6Server/x86_64/optional/os error was
14: problem with the local client certificate
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/beta/rhel/rhui/server/6/6Server/x86_64/optional/os error was
14: problem with the local client certificate
repo id                                    repo name                      status
rhui-us-east-1-client-config-server-6      Red Hat Update Infrastructure  1
rhui-us-east-1-client-config-server-6-beta Red Hat Update Infrastructure  0
repolist: 1 
EXPECTED RESULT: 
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Search zsh...
######################################################################################
COMMAND:  /usr/bin/yum search zsh
Unable to read consumer identity
Repo rhui-us-east-1-rhel-server-releases-beta forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-beta-key.pem
Repo rhui-us-east-1-rhel-server-releases-optional-beta forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-beta-key.pem
Repo rhui-us-east-1-rhel-server-releases forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-key.pem
Repo rhui-us-east-1-rhel-server-releases-optional forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-key.pem
Warning: No matches found for: zsh
RESULT: Loaded plugins: amazon-id, product-id, rhui-lb, security, subscription-manager
Updating certificate-based repositories.
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/dist/rhel/rhui/server/6/6Server/x86_64/os error was
14: problem with the local client certificate
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/beta/rhel/rhui/server/6/6Server/x86_64/os error was
14: problem with the local client certificate
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/dist/rhel/rhui/server/6/6Server/x86_64/optional/os error was
14: problem with the local client certificate
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/beta/rhel/rhui/server/6/6Server/x86_64/optional/os error was
14: problem with the local client certificate
No Matches found 
EXPECTED RESULT: 
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## install zsh ... 
######################################################################################
COMMAND: /usr/bin/yum -y install zsh
Unable to read consumer identity
Repo rhui-us-east-1-rhel-server-releases-beta forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-beta-key.pem
Repo rhui-us-east-1-rhel-server-releases-optional-beta forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-beta-key.pem
Repo rhui-us-east-1-rhel-server-releases forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-key.pem
Repo rhui-us-east-1-rhel-server-releases-optional forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-key.pem
Error: Nothing to do
RETURN CODE: 1
COMMAND:  /bin/rpm -q --queryformat '%{NAME}\n' zsh
RESULT: package zsh is not installed 
EXPECTED RESULT: zsh
RETURN CODE: 1
FAIL1
package zsh is not installed
######################################################################################
# NEW TEST: ## List available groups..
######################################################################################
COMMAND:  /usr/bin/yum grouplist
Unable to read consumer identity
Repo rhui-us-east-1-rhel-server-releases-beta forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-beta-key.pem
Repo rhui-us-east-1-rhel-server-releases-optional-beta forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-beta-key.pem
Repo rhui-us-east-1-rhel-server-releases forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-key.pem
Repo rhui-us-east-1-rhel-server-releases-optional forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-key.pem
Error: Cannot retrieve repository metadata (repomd.xml) for repository: rhui-us-east-1-rhel-server-releases. Please verify its path and try again
RESULT: Loaded plugins: amazon-id, product-id, rhui-lb, security, subscription-manager
Updating certificate-based repositories.
Setting up Group Process
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/dist/rhel/rhui/server/6/6Server/x86_64/os error was
14: problem with the local client certificate 
EXPECTED RESULT: 
RETURN CODE: 1
FAIL1
Loaded plugins: amazon-id, product-id, rhui-lb, security, subscription-manager Updating certificate-based repositories. Setting up Group Process Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/dist/rhel/rhui/server/6/6Server/x86_64/os error was 14: problem with the local client certificate
######################################################################################
# NEW TEST: ## Install Development tools group...
######################################################################################
COMMAND:  /usr/bin/yum -y groupinstall 'Development tools'
Unable to read consumer identity
Repo rhui-us-east-1-rhel-server-releases-beta forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-beta-key.pem
Repo rhui-us-east-1-rhel-server-releases-optional-beta forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-beta-key.pem
Repo rhui-us-east-1-rhel-server-releases forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-key.pem
Repo rhui-us-east-1-rhel-server-releases-optional forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-key.pem
Warning: Group Development tools does not exist.
RESULT: Loaded plugins: amazon-id, product-id, rhui-lb, security, subscription-manager
Updating certificate-based repositories.
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/dist/rhel/rhui/server/6/6Server/x86_64/os error was
14: problem with the local client certificate
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/beta/rhel/rhui/server/6/6Server/x86_64/os error was
14: problem with the local client certificate
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/dist/rhel/rhui/server/6/6Server/x86_64/optional/os error was
14: problem with the local client certificate
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/beta/rhel/rhui/server/6/6Server/x86_64/optional/os error was
14: problem with the local client certificate
Setting up Group Process
No packages in any requested group available to install or update 
EXPECTED RESULT: 
RETURN CODE: 0
PASS
# checking possible sys update
Loaded plugins: amazon-id, product-id, rhui-lb, security, subscription-manager
Updating certificate-based repositories.
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/dist/rhel/rhui/server/6/6Server/x86_64/os error was
14: problem with the local client certificate
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/beta/rhel/rhui/server/6/6Server/x86_64/os error was
14: problem with the local client certificate
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/dist/rhel/rhui/server/6/6Server/x86_64/optional/os error was
14: problem with the local client certificate
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/beta/rhel/rhui/server/6/6Server/x86_64/optional/os error was
14: problem with the local client certificate
# no sys update found
######################################################################################
# NEW TEST: ## Verify yum update ... 
######################################################################################
COMMAND:  /usr/bin/yum -y update
Unable to read consumer identity
Repo rhui-us-east-1-rhel-server-releases-beta forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-beta-key.pem
Repo rhui-us-east-1-rhel-server-releases-optional-beta forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-beta-key.pem
Repo rhui-us-east-1-rhel-server-releases forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-key.pem
Repo rhui-us-east-1-rhel-server-releases-optional forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-key.pem
RESULT: Loaded plugins: amazon-id, product-id, rhui-lb, security, subscription-manager
Updating certificate-based repositories.
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/dist/rhel/rhui/server/6/6Server/x86_64/os error was
14: problem with the local client certificate
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/beta/rhel/rhui/server/6/6Server/x86_64/os error was
14: problem with the local client certificate
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/dist/rhel/rhui/server/6/6Server/x86_64/optional/os error was
14: problem with the local client certificate
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/beta/rhel/rhui/server/6/6Server/x86_64/optional/os error was
14: problem with the local client certificate
Setting up Update Process
No Packages marked for Update 
EXPECTED RESULT: 
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify no fa1lures in rpm package ... 
######################################################################################
COMMAND:  cat /root/valid/src/validate.log | grep 'failure in rpm package' | wc -l
RESULT: 1 
EXPECTED RESULT: 1
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify no rpm scriplet fa1lures ... 
######################################################################################
COMMAND:  cat /root/valid/src/validate.log | grep 'scriptlet failed, exit status 1' | wc -l
RESULT: 1 
EXPECTED RESULT: 1
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify package removal... 
######################################################################################
COMMAND: /bin/rpm -e zsh
error: package zsh is not installed
RETURN CODE: 1
COMMAND:  /bin/rpm -q zsh
RESULT: package zsh is not installed 
EXPECTED RESULT: package zsh is not installed
RETURN CODE: 1
PASS
######################################################################################
# NEW TEST: ## install zsh ... 
######################################################################################
COMMAND: /usr/bin/yum -y install zsh
Unable to read consumer identity
Repo rhui-us-east-1-rhel-server-releases-beta forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-beta-key.pem
Repo rhui-us-east-1-rhel-server-releases-optional-beta forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-beta-key.pem
Repo rhui-us-east-1-rhel-server-releases forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-key.pem
Repo rhui-us-east-1-rhel-server-releases-optional forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-key.pem
Error: Nothing to do
RETURN CODE: 1
COMMAND:  /bin/rpm -q --queryformat '%{NAME}\n' zsh
RESULT: package zsh is not installed 
EXPECTED RESULT: zsh
RETURN CODE: 1
FAIL1
package zsh is not installed
######################################################################################
# NEW TEST: ## Verify package removal ... 
######################################################################################
COMMAND: /bin/rpm -e zsh
error: package zsh is not installed
RETURN CODE: 1
COMMAND:  /bin/rpm -q zsh
RESULT: package zsh is not installed 
EXPECTED RESULT: package zsh is not installed
RETURN CODE: 1
PASS
# checking possible sys update
Loaded plugins: amazon-id, product-id, rhui-lb, security, subscription-manager
Updating certificate-based repositories.
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/dist/rhel/rhui/server/6/6Server/x86_64/os error was
14: problem with the local client certificate
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/beta/rhel/rhui/server/6/6Server/x86_64/os error was
14: problem with the local client certificate
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/dist/rhel/rhui/server/6/6Server/x86_64/optional/os error was
14: problem with the local client certificate
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/beta/rhel/rhui/server/6/6Server/x86_64/optional/os error was
14: problem with the local client certificate
# no sys update found
######################################################################################
# NEW TEST: ## Verify yum update ... 
######################################################################################
COMMAND:  /usr/bin/yum -y update
Unable to read consumer identity
Repo rhui-us-east-1-rhel-server-releases-beta forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-beta-key.pem
Repo rhui-us-east-1-rhel-server-releases-optional-beta forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-beta-key.pem
Repo rhui-us-east-1-rhel-server-releases forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-key.pem
Repo rhui-us-east-1-rhel-server-releases-optional forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-key.pem
RESULT: Loaded plugins: amazon-id, product-id, rhui-lb, security, subscription-manager
Updating certificate-based repositories.
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/dist/rhel/rhui/server/6/6Server/x86_64/os error was
14: problem with the local client certificate
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/beta/rhel/rhui/server/6/6Server/x86_64/os error was
14: problem with the local client certificate
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/dist/rhel/rhui/server/6/6Server/x86_64/optional/os error was
14: problem with the local client certificate
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/beta/rhel/rhui/server/6/6Server/x86_64/optional/os error was
14: problem with the local client certificate
Setting up Update Process
No Packages marked for Update 
EXPECTED RESULT: 
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify disabled yum plugin ... 
######################################################################################
COMMAND:  grep ^enabled /etc/yum/pluginconf.d/rhnplugin.conf | grep -v '^#' | cut -d\= -f2 | awk '{print }' | sort -f | uniq
RESULT:  0 
EXPECTED RESULT: 
RETURN CODE: 0
PASS

## Summary ##
FAILURES = 16
FAILED TESTS = ## Verify auditd.conf ... ## Verify auditd sysconfig ... ## Verify group file ... ## Verify group file ... ## Verify group file ... ##test menu.lst ... ##test menu.lst ... ## Verify no missing packages ... ## test repo files ... ## test repo files ... ## Verify rsyslog config ... ## Verify latest installed kernel is running ... ## Verify RPMs ... ## install zsh ... ## List available groups.. ## install zsh ...
LOG FILE = /root/valid/src/validate.log
## Summary ##

######################################################################################
# NEW TEST: ## Open a bugzilla
######################################################################################

Comment 12 mkovacik 2012-04-23 10:07:44 UTC
IMAGE ID= 
=====image_validation.sh Mon Apr 23 06:06:45 EDT 2012=====
######################################################################################
# NEW TEST: ## Open a bugzilla
######################################################################################
######################################################################################
# NEW TEST: Fetching the identity doc Details
######################################################################################
Verifying that signature exists
COMMAND:  echo 1
RESULT: 1 
EXPECTED RESULT: 1
RETURN CODE: 0
PASS
Verifying the IMAGE ID
COMMAND:  echo 1
RESULT: 1 
EXPECTED RESULT: 1
RETURN CODE: 0
PASS
Verifying the Architecture
COMMAND:  echo 1
RESULT: 1 
EXPECTED RESULT: 1
RETURN CODE: 0
PASS
This Host => ec2-107-22-52-79.compute-1.amazonaws.com with Image Id : ami-eaff2483, is launched with Instance Id : i-c84a00af , Instance Type : m2.4xlarge and Arch : x86_64 in the Region : us-east-1c
The Validate Signature is : g7TZuNAWYK4XgBcLx9cuwn+HXR+PI+RJ1iHwvlZAIxkfVt4sD9dFZnkBlYxHw9xca652uRY9H7xU
a8Du68+OwTIM06XnkVFyas+AyQl43Nf0HbP/hHASoHhspyIAGObxyEWL+WgUk5z6+GIln+nuRr1c
BUbiUkCeFwZEt010rXg=
This is a Cloud Access image
/root/valid/src
domU-12-31-39-17-16-8C
Red Hat Enterprise Linux Server release 6.3 Beta (Santiago)
######################################################################################
# NEW TEST: The selected image has the version RHEL 6.3
######################################################################################
ami is a BETA
######################################################################################
# NEW TEST: ## Verify auditd is on ... 
######################################################################################
COMMAND:  /sbin/chkconfig --list auditd | grep 3:on
RESULT: auditd         	0:off	1:off	2:on	3:on	4:on	5:on	6:off 
EXPECTED RESULT: 
RETURN CODE: 0
PASS
COMMAND:  /sbin/chkconfig --list auditd | grep 5:on
RESULT: auditd         	0:off	1:off	2:on	3:on	4:on	5:on	6:off 
EXPECTED RESULT: 
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify audit.rules ... 
######################################################################################
COMMAND:  md5sum /etc/audit/audit.rules | cut -f 1 -d  " "
RESULT: f9869e1191838c461f5b9051c78a638d 
EXPECTED RESULT: f9869e1191838c461f5b9051c78a638d
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify auditd.conf ... 
######################################################################################
COMMAND:  md5sum /etc/audit/auditd.conf | cut -f 1 -d  " "
RESULT: e1886162554c18906df2ecd258aa4794 
EXPECTED RESULT: 612ddf28c3916530d47ef56a1b1ed1ed
RETURN CODE: 0
FAIL2
e1886162554c18906df2ecd258aa4794
######################################################################################
# NEW TEST: ## Verify auditd sysconfig ... 
######################################################################################
COMMAND:  md5sum /etc/sysconfig/auditd | cut -f 1 -d  " "
RESULT: d4d43637708e30418c30003e212f76fc 
EXPECTED RESULT: 123beb3a97a32d96eba4f11509e39da2
RETURN CODE: 0
FAIL2
d4d43637708e30418c30003e212f76fc
######################################################################################
# NEW TEST: ## Verify bash_history ... 
######################################################################################
COMMAND:  cat ~/.bash_history | wc -l 
RESULT: 0 
EXPECTED RESULT: 0
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify  chkconfig ... 
######################################################################################
COMMAND:  chkconfig --list | grep crond | cut -f 5
RESULT: 3:on 
EXPECTED RESULT: 3:on
RETURN CODE: 0
PASS
COMMAND:  chkconfig --list | grep  iptables | cut -f 5
RESULT: 3:on 
EXPECTED RESULT: 3:on
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify rh-cloud-firstboot is OFF ... 
######################################################################################
COMMAND:  chkconfig --list | grep rh-cloud | grep 3:off | wc -l
RESULT: 1 
EXPECTED RESULT: 1
RETURN CODE: 0
PASS
/etc/sysconfig/rh-cloud-firstboot FOUND
COMMAND:  echo true
RESULT: true 
EXPECTED RESULT: 
RETURN CODE: 0
PASS
COMMAND:  cat /etc/sysconfig/rh-cloud-firstboot
RESULT: RUN_FIRSTBOOT=NO 
EXPECTED RESULT: RUN_FIRSTBOOT=NO
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Partition Format  ...
######################################################################################
mount | grep /dev/xvde1 | awk '{ print  }'
COMMAND:  echo ext4
RESULT: ext4 
EXPECTED RESULT: ext4
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Partition Size ...
######################################################################################
size=5905712
COMMAND:  echo true
RESULT: true 
EXPECTED RESULT: true
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: Fetching the identity doc Details
######################################################################################
Verifying that signature exists
COMMAND:  echo 1
RESULT: 1 
EXPECTED RESULT: 1
RETURN CODE: 0
PASS
Verifying the IMAGE ID
COMMAND:  echo 1
RESULT: 1 
EXPECTED RESULT: 1
RETURN CODE: 0
PASS
Verifying the Architecture
COMMAND:  echo 1
RESULT: 1 
EXPECTED RESULT: 1
RETURN CODE: 0
PASS
This Host => ec2-107-22-52-79.compute-1.amazonaws.com with Image Id : ami-eaff2483, is launched with Instance Id : i-c84a00af , Instance Type : m2.4xlarge and Arch : x86_64 in the Region : us-east-1c
The Validate Signature is : g7TZuNAWYK4XgBcLx9cuwn+HXR+PI+RJ1iHwvlZAIxkfVt4sD9dFZnkBlYxHw9xca652uRY9H7xU
a8Du68+OwTIM06XnkVFyas+AyQl43Nf0HbP/hHASoHhspyIAGObxyEWL+WgUk5z6+GIln+nuRr1c
BUbiUkCeFwZEt010rXg=
This is a Cloud Access image
######################################################################################
# NEW TEST: ## Verify GPG checking ... 
######################################################################################
COMMAND:  grep '^gpgcheck=1' /etc/yum.repos.d/redhat-*.repo | cut -d\= -f2 | sort -f | uniq
RESULT: 1 
EXPECTED RESULT: 1
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify GPG Keys ... 
######################################################################################
COMMAND:  rpm -qa gpg-pubkey* | wc -l 
RESULT: 2 
EXPECTED RESULT: 2
RETURN CODE: 0
PASS
SKIPPING TEST, BETA DETECTED
######################################################################################
# NEW TEST: ## Verify group file ... 
######################################################################################
COMMAND:  cat /etc/group | grep root:x:0
RESULT: root:x:0: 
EXPECTED RESULT: root:x:0:root
RETURN CODE: 0
FAIL2
root:x:0:
COMMAND:  cat /etc/group | grep bin:x:1
RESULT: bin:x:1:bin,daemon 
EXPECTED RESULT: bin:x:1:root,bin,daemon
RETURN CODE: 0
FAIL2
bin:x:1:bin,daemon
COMMAND:  cat /etc/group | grep daemon:x:2
RESULT: daemon:x:2:bin,daemon 
EXPECTED RESULT: daemon:x:2:root,bin,daemon
RETURN CODE: 0
FAIL2
daemon:x:2:bin,daemon
COMMAND:  cat /etc/group | grep nobody:x:99
RESULT: nobody:x:99: 
EXPECTED RESULT: nobody:x:99:
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ##test menu.lst ... 
######################################################################################
COMMAND:  file /boot/grub/menu.lst  | grep symbolic | wc -l
RESULT: 0 
EXPECTED RESULT: 1
RETURN CODE: 0
FAIL2
0
COMMAND:  file /boot/grub/menu.lst  | grep grub.conf | wc -l
RESULT: 0 
EXPECTED RESULT: 1
RETURN CODE: 0
FAIL2
0
COMMAND:  cat /boot/grub/grub.conf  | grep "(hd0,0)" | wc -l
RESULT: 2 
EXPECTED RESULT: 0
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify runlevel ... 
######################################################################################
COMMAND:  cat /etc/inittab | grep id:
RESULT: id:3:initdefault: 
EXPECTED RESULT: id:3:initdefault:
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify iptables ... 
######################################################################################
COMMAND: /etc/init.d/iptables status | grep REJECT 
5    REJECT     all  --  0.0.0.0/0            0.0.0.0/0           reject-with icmp-host-prohibited 
1    REJECT     all  --  0.0.0.0/0            0.0.0.0/0           reject-with icmp-host-prohibited 
RETURN CODE: 0
COMMAND:  /etc/init.d/iptables status | grep :22 | grep ACCEPT | wc -l 
RESULT: 1 
EXPECTED RESULT: 1
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify /etc/ld.so.conf.d/libc6-xen.conf is not present ... 
######################################################################################
COMMAND:  ls /etc/ld.so.conf.d/libc6-xen.conf
ls: cannot access /etc/ld.so.conf.d/libc6-xen.conf: No such file or directory
RESULT:  
EXPECTED RESULT: 2
RETURN CODE: 2
PASS
######################################################################################
# NEW TEST: ##Verify memory match hwp ... 
######################################################################################
cat /proc/meminfo | grep MemTotal: | awk '{print }'
FOUND MEMORY OF 70337128 > hwp MEMORY of 68400000
COMMAND:  echo true
RESULT: true 
EXPECTED RESULT: 
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify nameserver ... 
######################################################################################
COMMAND:  /usr/bin/dig clock.redhat.com 2>> /root/valid/src/validate.log | grep 66.187.233.4  | wc -l
RESULT: 1 
EXPECTED RESULT: 
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify networking ... 
######################################################################################
COMMAND:  grep ^NETWORKING= /etc/sysconfig/network | cut -d\= -f2
RESULT: yes 
EXPECTED RESULT: yes
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify device ... 
######################################################################################
COMMAND:  grep ^DEVICE= /etc/sysconfig/network-scripts/ifcfg-eth0 | cut -d\= -f2
RESULT: eth0 
EXPECTED RESULT: eth0
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify no missing packages ... 
######################################################################################
COMMAND: /bin/rpm -qa --queryformat='%{NAME}\n' > /tmp/rpmqa.tmp
RETURN CODE: 0
COUNT = 0
COMMAND:  echo test failed
RESULT: test failed 
EXPECTED RESULT: 1
RETURN CODE: 0
FAIL2
test failed
######################################################################################
# NEW TEST: ## Verify new passwd file ... 
######################################################################################
COMMAND:  cat /etc/passwd | grep root:x:0
RESULT: root:x:0:0:root:/root:/bin/bash 
EXPECTED RESULT: root:x:0:0:root:/root:/bin/bash
RETURN CODE: 0
PASS
COMMAND:  cat /etc/passwd | grep nobody:x:99
RESULT: nobody:x:99:99:Nobody:/:/sbin/nologin 
EXPECTED RESULT: nobody:x:99:99:Nobody:/:/sbin/nologin
RETURN CODE: 0
PASS
COMMAND:  cat /etc/passwd | grep sshd
RESULT: sshd:x:74:74:Privilege-separated SSH:/var/empty/sshd:/sbin/nologin 
EXPECTED RESULT: sshd:x:74:74:Privilege-separated SSH:/var/empty/sshd:/sbin/nologin
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## test repo files ... 
######################################################################################
COMMAND:  ls /etc/yum.repos.d/ | wc -l 
RESULT: 6 
EXPECTED RESULT: 4
RETURN CODE: 0
FAIL2
6
COMMAND:  ls /etc/yum.repos.d/redhat* | wc -l
RESULT: 4 
EXPECTED RESULT: 2
RETURN CODE: 0
FAIL2
4
COMMAND:  ls /etc/yum.repos.d/rhel* | wc -l
RESULT: 1 
EXPECTED RESULT: 0
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify resize2fs ... 
######################################################################################
COMMAND: resize2fs -p /dev/xvde1 15000M
resize2fs 1.41.12 (17-May-2010)
RETURN CODE: 0
COMMAND:  df -h | grep 15G | wc -l 
RESULT: 1 
EXPECTED RESULT: 1
RETURN CODE: 0
PASS
/root/valid/src
domU-12-31-39-17-16-8C
Red Hat Enterprise Linux Server release 6.3 Beta (Santiago)
######################################################################################
# NEW TEST: The selected image has the version RHEL 6.3
######################################################################################
ami is a BETA
######################################################################################
# NEW TEST: ## /sbin/getenforce ... 
######################################################################################
COMMAND:  /usr/sbin/getenforce
RESULT: Enforcing 
EXPECTED RESULT: Enforcing
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify SELINUX enforcing ... 
######################################################################################
COMMAND:  grep ^SELINUX= /etc/sysconfig/selinux | cut -d\= -f2
RESULT: enforcing 
EXPECTED RESULT: enforcing
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify SELINUXTYPE targeted ... 
######################################################################################
COMMAND:  grep ^SELINUXTYPE= /etc/sysconfig/selinux | cut -d\= -f2
RESULT: targeted 
EXPECTED RESULT: targeted
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Flip Selinux Permissive ... 
######################################################################################
COMMAND:  /usr/sbin/setenforce Permissive && /usr/sbin/getenforce
RESULT: Permissive 
EXPECTED RESULT: Permissive
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Flip Selinux Enforcing ... 
######################################################################################
COMMAND:  /usr/sbin/setenforce Enforcing && /usr/sbin/getenforce
RESULT: Enforcing 
EXPECTED RESULT: Enforcing
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify new shells file ... 
######################################################################################
COMMAND:  cat /etc/shells | grep bash
RESULT: /bin/bash 
EXPECTED RESULT: /bin/bash
RETURN CODE: 0
PASS
COMMAND:  cat /etc/shells | grep nologin
RESULT: /sbin/nologin 
EXPECTED RESULT: /sbin/nologin
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify sshd_config settings ...
######################################################################################
COMMAND:  cat /etc/ssh/sshd_config  | grep  PasswordAuthentication | grep no | wc -l
RESULT: 1 
EXPECTED RESULT: 1
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify sshd ...
######################################################################################
COMMAND:  chkconfig --list | grep sshd
RESULT: sshd           	0:off	1:off	2:on	3:on	4:on	5:on	6:off 
EXPECTED RESULT: sshd           	0:off	1:off	2:on	3:on	4:on	5:on	6:off
RETURN CODE: 0
PASS
COMMAND:  /etc/init.d/sshd status | grep running | wc -l
RESULT: 1 
EXPECTED RESULT: 1
RETURN CODE: 0
PASS
this machine doesn't require swap
######################################################################################
# NEW TEST: ## Verify rsyslog is on ... 
######################################################################################
COMMAND:  chkconfig --list | grep rsyslog | cut -f 5
RESULT: 3:on 
EXPECTED RESULT: 3:on
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify rsyslog config ... 
######################################################################################
COMMAND:  md5sum /etc/rsyslog.conf | cut -f 1 -d  " "
RESULT: 8b91b32300134e98ef4aee632ed61e21 
EXPECTED RESULT: dd356958ca9c4e779f7fac13dde3c1b5
RETURN CODE: 0
FAIL2
8b91b32300134e98ef4aee632ed61e21
######################################################################################
# NEW TEST: ## Verify no systemid file ... 
######################################################################################
COMMAND:  echo true
RESULT: true 
EXPECTED RESULT: 
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify kernel name ... 
######################################################################################
COMMAND:  /bin/uname -s
RESULT: Linux 
EXPECTED RESULT: Linux
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify latest installed kernel is running ... 
######################################################################################
RHEL VERSION IS 6
LATEST_RPM_KERNEL_VERSION=rpm -q kernel --last | head -n 1 |  cut -c 8-60 | cut -d ' ' -f 1
CURRENT_UNAME_KERNAL_VERSION=2.6.32-262.el6
assert latest rpm kernel = uname -r
COMMAND:  uname -r | sed  's/\(.*\)......./\1/'
RESULT: 2.6.32-262.el6 
EXPECTED RESULT: 2.6.32-262.el6.x86_64
RETURN CODE: 0
FAIL2
2.6.32-262.el6
######################################################################################
# NEW TEST: ## Verify latest kenerl is in /boot/grub/menu.1st ... 
######################################################################################
COMMAND:  cat /boot/grub/menu.lst | grep 2.6.32-262.el6.x86_64
RESULT: title RHEL6.3-20120416.0-Server-x86_64-starter-ec2 (2.6.32-262.el6.x86_64)
        kernel /boot/vmlinuz-2.6.32-262.el6.x86_64 ro root=LABEL=_/ 
        initrd /boot/initramfs-2.6.32-262.el6.x86_64.img 
EXPECTED RESULT: 
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify operating system ... 
######################################################################################
COMMAND:  /bin/uname -o
RESULT: GNU/Linux 
EXPECTED RESULT: GNU/Linux
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify /etc/sysconfig/kernel ... 
######################################################################################
COMMAND:  ls /etc/sysconfig/kernel
RESULT: /etc/sysconfig/kernel 
EXPECTED RESULT:

Comment 13 mkovacik 2012-04-23 10:07:48 UTC
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify /etc/sysconfig/kernel contains UPDATEDEFAULT ... 
######################################################################################
COMMAND:  cat /etc/sysconfig/kernel | grep UPDATEDEFAULT=yes
RESULT: UPDATEDEFAULT=yes 
EXPECTED RESULT: 
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify /etc/sysconfig/kernel contains DEFAULTKERNEL ... 
######################################################################################
COMMAND:  cat /etc/sysconfig/kernel | grep DEFAULTKERNEL=kernel
RESULT: DEFAULTKERNEL=kernel 
EXPECTED RESULT: 
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify system up to date
######################################################################################
COMMAND:  _check_sys_update_phase1
# no update was required
RESULT: # checking sys update done
# no update was required 
EXPECTED RESULT: 
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify RPMs ... 
######################################################################################
....L....  c /etc/pam.d/fingerprint-auth
....L....  c /etc/pam.d/password-auth
....L....  c /etc/pam.d/smartcard-auth
....L....  c /etc/pam.d/system-auth
.M.......    /var/cache/yum
    S file Size differs
    M Mode differs (includes permissions and file type)
    5 MD5 sum differs
    D Device major/minor number mismatch
    L readLink(2) path mismatch
    U User ownership differs
    G Group ownership differs
    T mTime differs

COMMAND:  cat /tmp/rpmqaV.txt | wc -l
RESULT: 5 
EXPECTED RESULT: 4
RETURN CODE: 0
FAIL2
5
######################################################################################
# NEW TEST: ## Verify Version 2 ... 
######################################################################################
COMMAND:  /bin/rpm -q --queryformat '%{RELEASE}\n' redhat-release-server | cut -d. -f1,2
RESULT: 6.3 
EXPECTED RESULT: 6.3
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify packager ... 
######################################################################################
COMMAND:  cat /tmp/Packager | grep -v 'Red Hat, Inc.' |  grep -v crash-trace-commandPackager| wc -l
RESULT: 0 
EXPECTED RESULT: 0
RETURN CODE: 0
PASS
crash-trace-commandPackager    : Lai Jiangshan <laijs.com>
######################################################################################
# NEW TEST: ## List the configured repositories...
######################################################################################
COMMAND:  /usr/bin/yum repolist
Unable to read consumer identity
Repo rhui-us-east-1-rhel-server-releases-beta forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-beta-key.pem
Repo rhui-us-east-1-rhel-server-releases-optional-beta forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-beta-key.pem
Repo rhui-us-east-1-rhel-server-releases forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-key.pem
Repo rhui-us-east-1-rhel-server-releases-optional forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-key.pem
RESULT: Loaded plugins: amazon-id, product-id, rhui-lb, security, subscription-manager
Updating certificate-based repositories.
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/dist/rhel/rhui/server/6/6Server/x86_64/os error was
14: problem with the local client certificate
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/beta/rhel/rhui/server/6/6Server/x86_64/os error was
14: problem with the local client certificate
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/dist/rhel/rhui/server/6/6Server/x86_64/optional/os error was
14: problem with the local client certificate
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/beta/rhel/rhui/server/6/6Server/x86_64/optional/os error was
14: problem with the local client certificate
repo id                                    repo name                      status
rhui-us-east-1-client-config-server-6      Red Hat Update Infrastructure  1
rhui-us-east-1-client-config-server-6-beta Red Hat Update Infrastructure  0
repolist: 1 
EXPECTED RESULT: 
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Search zsh...
######################################################################################
COMMAND:  /usr/bin/yum search zsh
Unable to read consumer identity
Repo rhui-us-east-1-rhel-server-releases-beta forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-beta-key.pem
Repo rhui-us-east-1-rhel-server-releases-optional-beta forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-beta-key.pem
Repo rhui-us-east-1-rhel-server-releases forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-key.pem
Repo rhui-us-east-1-rhel-server-releases-optional forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-key.pem
Warning: No matches found for: zsh
RESULT: Loaded plugins: amazon-id, product-id, rhui-lb, security, subscription-manager
Updating certificate-based repositories.
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/dist/rhel/rhui/server/6/6Server/x86_64/os error was
14: problem with the local client certificate
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/beta/rhel/rhui/server/6/6Server/x86_64/os error was
14: problem with the local client certificate
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/dist/rhel/rhui/server/6/6Server/x86_64/optional/os error was
14: problem with the local client certificate
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/beta/rhel/rhui/server/6/6Server/x86_64/optional/os error was
14: problem with the local client certificate
No Matches found 
EXPECTED RESULT: 
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## install zsh ... 
######################################################################################
COMMAND: /usr/bin/yum -y install zsh
Unable to read consumer identity
Repo rhui-us-east-1-rhel-server-releases-beta forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-beta-key.pem
Repo rhui-us-east-1-rhel-server-releases-optional-beta forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-beta-key.pem
Repo rhui-us-east-1-rhel-server-releases forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-key.pem
Repo rhui-us-east-1-rhel-server-releases-optional forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-key.pem
Error: Nothing to do
RETURN CODE: 1
COMMAND:  /bin/rpm -q --queryformat '%{NAME}\n' zsh
RESULT: package zsh is not installed 
EXPECTED RESULT: zsh
RETURN CODE: 1
FAIL1
package zsh is not installed
######################################################################################
# NEW TEST: ## List available groups..
######################################################################################
COMMAND:  /usr/bin/yum grouplist
Unable to read consumer identity
Repo rhui-us-east-1-rhel-server-releases-beta forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-beta-key.pem
Repo rhui-us-east-1-rhel-server-releases-optional-beta forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-beta-key.pem
Repo rhui-us-east-1-rhel-server-releases forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-key.pem
Repo rhui-us-east-1-rhel-server-releases-optional forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-key.pem
Error: Cannot retrieve repository metadata (repomd.xml) for repository: rhui-us-east-1-rhel-server-releases. Please verify its path and try again
RESULT: Loaded plugins: amazon-id, product-id, rhui-lb, security, subscription-manager
Updating certificate-based repositories.
Setting up Group Process
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/dist/rhel/rhui/server/6/6Server/x86_64/os error was
14: problem with the local client certificate 
EXPECTED RESULT: 
RETURN CODE: 1
FAIL1
Loaded plugins: amazon-id, product-id, rhui-lb, security, subscription-manager Updating certificate-based repositories. Setting up Group Process Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/dist/rhel/rhui/server/6/6Server/x86_64/os error was 14: problem with the local client certificate
######################################################################################
# NEW TEST: ## Install Development tools group...
######################################################################################
COMMAND:  /usr/bin/yum -y groupinstall 'Development tools'
Unable to read consumer identity
Repo rhui-us-east-1-rhel-server-releases-beta forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-beta-key.pem
Repo rhui-us-east-1-rhel-server-releases-optional-beta forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-beta-key.pem
Repo rhui-us-east-1-rhel-server-releases forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-key.pem
Repo rhui-us-east-1-rhel-server-releases-optional forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-key.pem
Warning: Group Development tools does not exist.
RESULT: Loaded plugins: amazon-id, product-id, rhui-lb, security, subscription-manager
Updating certificate-based repositories.
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/dist/rhel/rhui/server/6/6Server/x86_64/os error was
14: problem with the local client certificate
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/beta/rhel/rhui/server/6/6Server/x86_64/os error was
14: problem with the local client certificate
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/dist/rhel/rhui/server/6/6Server/x86_64/optional/os error was
14: problem with the local client certificate
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/beta/rhel/rhui/server/6/6Server/x86_64/optional/os error was
14: problem with the local client certificate
Setting up Group Process
No packages in any requested group available to install or update 
EXPECTED RESULT: 
RETURN CODE: 0
PASS
# checking possible sys update
Loaded plugins: amazon-id, product-id, rhui-lb, security, subscription-manager
Updating certificate-based repositories.
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/dist/rhel/rhui/server/6/6Server/x86_64/os error was
14: problem with the local client certificate
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/beta/rhel/rhui/server/6/6Server/x86_64/os error was
14: problem with the local client certificate
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/dist/rhel/rhui/server/6/6Server/x86_64/optional/os error was
14: problem with the local client certificate
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/beta/rhel/rhui/server/6/6Server/x86_64/optional/os error was
14: problem with the local client certificate
# no sys update found
######################################################################################
# NEW TEST: ## Verify yum update ... 
######################################################################################
COMMAND:  /usr/bin/yum -y update
Unable to read consumer identity
Repo rhui-us-east-1-rhel-server-releases-beta forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-beta-key.pem
Repo rhui-us-east-1-rhel-server-releases-optional-beta forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-beta-key.pem
Repo rhui-us-east-1-rhel-server-releases forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-key.pem
Repo rhui-us-east-1-rhel-server-releases-optional forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-key.pem
RESULT: Loaded plugins: amazon-id, product-id, rhui-lb, security, subscription-manager
Updating certificate-based repositories.
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/dist/rhel/rhui/server/6/6Server/x86_64/os error was
14: problem with the local client certificate
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/beta/rhel/rhui/server/6/6Server/x86_64/os error was
14: problem with the local client certificate
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/dist/rhel/rhui/server/6/6Server/x86_64/optional/os error was
14: problem with the local client certificate
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/beta/rhel/rhui/server/6/6Server/x86_64/optional/os error was
14: problem with the local client certificate
Setting up Update Process
No Packages marked for Update 
EXPECTED RESULT: 
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify no fa1lures in rpm package ... 
######################################################################################
COMMAND:  cat /root/valid/src/validate.log | grep 'failure in rpm package' | wc -l
RESULT: 1 
EXPECTED RESULT: 1
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify no rpm scriplet fa1lures ... 
######################################################################################
COMMAND:  cat /root/valid/src/validate.log | grep 'scriptlet failed, exit status 1' | wc -l
RESULT: 1 
EXPECTED RESULT: 1
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify package removal... 
######################################################################################
COMMAND: /bin/rpm -e zsh
error: package zsh is not installed
RETURN CODE: 1
COMMAND:  /bin/rpm -q zsh
RESULT: package zsh is not installed 
EXPECTED RESULT: package zsh is not installed
RETURN CODE: 1
PASS
######################################################################################
# NEW TEST: ## install zsh ... 
######################################################################################
COMMAND: /usr/bin/yum -y install zsh
Unable to read consumer identity
Repo rhui-us-east-1-rhel-server-releases-beta forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-beta-key.pem
Repo rhui-us-east-1-rhel-server-releases-optional-beta forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-beta-key.pem
Repo rhui-us-east-1-rhel-server-releases forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-key.pem
Repo rhui-us-east-1-rhel-server-releases-optional forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-key.pem
Error: Nothing to do
RETURN CODE: 1
COMMAND:  /bin/rpm -q --queryformat '%{NAME}\n' zsh
RESULT: package zsh is not installed 
EXPECTED RESULT: zsh
RETURN CODE: 1
FAIL1
package zsh is not installed
######################################################################################
# NEW TEST: ## Verify package removal ... 
######################################################################################
COMMAND: /bin/rpm -e zsh
error: package zsh is not installed
RETURN CODE: 1
COMMAND:  /bin/rpm -q zsh
RESULT: package zsh is not installed 
EXPECTED RESULT: package zsh is not installed
RETURN CODE: 1
PASS
# checking possible sys update
Loaded plugins: amazon-id, product-id, rhui-lb, security, subscription-manager
Updating certificate-based repositories.
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/dist/rhel/rhui/server/6/6Server/x86_64/os error was
14: problem with the local client certificate
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/beta/rhel/rhui/server/6/6Server/x86_64/os error was
14: problem with the local client certificate
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/dist/rhel/rhui/server/6/6Server/x86_64/optional/os error was
14: problem with the local client certificate
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/beta/rhel/rhui/server/6/6Server/x86_64/optional/os error was
14: problem with the local client certificate
# no sys update found
######################################################################################
# NEW TEST: ## Verify yum update ... 
######################################################################################
COMMAND:  /usr/bin/yum -y update
Unable to read consumer identity
Repo rhui-us-east-1-rhel-server-releases-beta forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-beta-key.pem
Repo rhui-us-east-1-rhel-server-releases-optional-beta forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-beta-key.pem
Repo rhui-us-east-1-rhel-server-releases forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-key.pem
Repo rhui-us-east-1-rhel-server-releases-optional forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-key.pem
RESULT: Loaded plugins: amazon-id, product-id, rhui-lb, security, subscription-manager
Updating certificate-based repositories.
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/dist/rhel/rhui/server/6/6Server/x86_64/os error was
14: problem with the local client certificate
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/beta/rhel/rhui/server/6/6Server/x86_64/os error was
14: problem with the local client certificate
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/dist/rhel/rhui/server/6/6Server/x86_64/optional/os error was
14: problem with the local client certificate
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/beta/rhel/rhui/server/6/6Server/x86_64/optional/os error was
14: problem with the local client certificate
Setting up Update Process
No Packages marked for Update 
EXPECTED RESULT: 
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify disabled yum plugin ... 
######################################################################################
COMMAND:  grep ^enabled /etc/yum/pluginconf.d/rhnplugin.conf | grep -v '^#' | cut -d\= -f2 | awk '{print }' | sort -f | uniq
RESULT:  0 
EXPECTED RESULT: 
RETURN CODE: 0
PASS

## Summary ##
FAILURES = 16
FAILED TESTS = ## Verify auditd.conf ... ## Verify auditd sysconfig ... ## Verify group file ... ## Verify group file ... ## Verify group file ... ##test menu.lst ... ##test menu.lst ... ## Verify no missing packages ... ## test repo files ... ## test repo files ... ## Verify rsyslog config ... ## Verify latest installed kernel is running ... ## Verify RPMs ... ## install zsh ... ## List available groups.. ## install zsh ...
LOG FILE = /root/valid/src/validate.log
## Summary ##

######################################################################################
# NEW TEST: ## Open a bugzilla
######################################################################################

Comment 14 mkovacik 2012-04-23 10:08:40 UTC
IMAGE ID= ami-eaff2483_us-east-1_t1.micro
###### TEST KERNEL AFTER REBOOT ####  
######################################################################################
# NEW TEST: ## Verify disabled yum plugin ... 
######################################################################################
COMMAND:  grep ^enabled /etc/yum/pluginconf.d/rhnplugin.conf | grep -v '^#' | cut -d\= -f2 | awk '{print }' | sort -f | uniq
RESULT:  0 
EXPECTED RESULT: 
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify kernel name ... 
######################################################################################
COMMAND:  /bin/uname -s
RESULT: Linux 
EXPECTED RESULT: Linux
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify latest installed kernel is running ... 
######################################################################################
RHEL VERSION IS 6
LATEST_RPM_KERNEL_VERSION=rpm -q kernel --last | head -n 1 |  cut -c 8-60 | cut -d ' ' -f 1
CURRENT_UNAME_KERNAL_VERSION=2.6.32-262.el6
assert latest rpm kernel = uname -r
COMMAND:  uname -r | sed  's/\(.*\)......./\1/'
RESULT: 2.6.32-262.el6 
EXPECTED RESULT: 2.6.32-262.el6.x86_64
RETURN CODE: 0
FAIL2
2.6.32-262.el6
######################################################################################
# NEW TEST: ## Verify latest kenerl is in /boot/grub/menu.1st ... 
######################################################################################
COMMAND:  cat /boot/grub/menu.lst | grep 2.6.32-262.el6.x86_64
RESULT: title RHEL6.3-20120416.0-Server-x86_64-starter-ec2 (2.6.32-262.el6.x86_64)
        kernel /boot/vmlinuz-2.6.32-262.el6.x86_64 ro root=LABEL=_/ 
        initrd /boot/initramfs-2.6.32-262.el6.x86_64.img 
EXPECTED RESULT: 
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify operating system ... 
######################################################################################
COMMAND:  /bin/uname -o
RESULT: GNU/Linux 
EXPECTED RESULT: GNU/Linux
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify /etc/sysconfig/kernel ... 
######################################################################################
COMMAND:  ls /etc/sysconfig/kernel
RESULT: /etc/sysconfig/kernel 
EXPECTED RESULT: 
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify /etc/sysconfig/kernel contains UPDATEDEFAULT ... 
######################################################################################
COMMAND:  cat /etc/sysconfig/kernel | grep UPDATEDEFAULT=yes
RESULT: UPDATEDEFAULT=yes 
EXPECTED RESULT: 
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify /etc/sysconfig/kernel contains DEFAULTKERNEL ... 
######################################################################################
COMMAND:  cat /etc/sysconfig/kernel | grep DEFAULTKERNEL=kernel
RESULT: DEFAULTKERNEL=kernel 
EXPECTED RESULT: 
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify system up to date
######################################################################################
COMMAND:  _check_sys_update_phase1
# no update was required
RESULT: # checking sys update done
# no update was required 
EXPECTED RESULT: 
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ##Verify memory match hwp ... 
######################################################################################
cat /proc/meminfo | grep MemTotal: | awk '{print }'
FOUND MEMORY OF 604856 > hwp MEMORY of 600000
COMMAND:  echo true
RESULT: true 
EXPECTED RESULT: 
RETURN CODE: 0
PASS
hostname
######################################################################################
# NEW TEST: The selected image has the version RHEL 6.3
######################################################################################

## Summary ##
FAILURES = 17
FAILED TESTS = ## Verify auditd.conf ... ## Verify auditd sysconfig ... ## Verify group file ... ## Verify group file ... ## Verify group file ... ##test menu.lst ... ##test menu.lst ... ## Verify no missing packages ... ## test repo files ... ## test repo files ... ## Verify rsyslog config ... ## Verify latest installed kernel is running ... ## Verify RPMs ... ## install zsh ... ## List available groups.. ## install zsh ...
## Verify latest installed kernel is running ...
LOG FILE = /root/valid/src/validate.log
## Summary ##

######################################################################################
# NEW TEST: ## Open a bugzilla
######################################################################################

Comment 15 mkovacik 2012-04-23 10:09:02 UTC
IMAGE ID= ami-eaff2483_us-east-1_m1.large
###### TEST KERNEL AFTER REBOOT ####  
######################################################################################
# NEW TEST: ## Verify disabled yum plugin ... 
######################################################################################
COMMAND:  grep ^enabled /etc/yum/pluginconf.d/rhnplugin.conf | grep -v '^#' | cut -d\= -f2 | awk '{print }' | sort -f | uniq
RESULT:  0 
EXPECTED RESULT: 
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify kernel name ... 
######################################################################################
COMMAND:  /bin/uname -s
RESULT: Linux 
EXPECTED RESULT: Linux
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify latest installed kernel is running ... 
######################################################################################
RHEL VERSION IS 6
LATEST_RPM_KERNEL_VERSION=rpm -q kernel --last | head -n 1 |  cut -c 8-60 | cut -d ' ' -f 1
CURRENT_UNAME_KERNAL_VERSION=2.6.32-262.el6
assert latest rpm kernel = uname -r
COMMAND:  uname -r | sed  's/\(.*\)......./\1/'
RESULT: 2.6.32-262.el6 
EXPECTED RESULT: 2.6.32-262.el6.x86_64
RETURN CODE: 0
FAIL2
2.6.32-262.el6
######################################################################################
# NEW TEST: ## Verify latest kenerl is in /boot/grub/menu.1st ... 
######################################################################################
COMMAND:  cat /boot/grub/menu.lst | grep 2.6.32-262.el6.x86_64
RESULT: title RHEL6.3-20120416.0-Server-x86_64-starter-ec2 (2.6.32-262.el6.x86_64)
        kernel /boot/vmlinuz-2.6.32-262.el6.x86_64 ro root=LABEL=_/ 
        initrd /boot/initramfs-2.6.32-262.el6.x86_64.img 
EXPECTED RESULT: 
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify operating system ... 
######################################################################################
COMMAND:  /bin/uname -o
RESULT: GNU/Linux 
EXPECTED RESULT: GNU/Linux
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify /etc/sysconfig/kernel ... 
######################################################################################
COMMAND:  ls /etc/sysconfig/kernel
RESULT: /etc/sysconfig/kernel 
EXPECTED RESULT: 
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify /etc/sysconfig/kernel contains UPDATEDEFAULT ... 
######################################################################################
COMMAND:  cat /etc/sysconfig/kernel | grep UPDATEDEFAULT=yes
RESULT: UPDATEDEFAULT=yes 
EXPECTED RESULT: 
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify /etc/sysconfig/kernel contains DEFAULTKERNEL ... 
######################################################################################
COMMAND:  cat /etc/sysconfig/kernel | grep DEFAULTKERNEL=kernel
RESULT: DEFAULTKERNEL=kernel 
EXPECTED RESULT: 
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify system up to date
######################################################################################
COMMAND:  _check_sys_update_phase1
# no update was required
RESULT: # checking sys update done
# no update was required 
EXPECTED RESULT: 
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ##Verify memory match hwp ... 
######################################################################################
cat /proc/meminfo | grep MemTotal: | awk '{print }'
FOUND MEMORY OF 7646172 > hwp MEMORY of 7500000
COMMAND:  echo true
RESULT: true 
EXPECTED RESULT: 
RETURN CODE: 0
PASS
hostname
######################################################################################
# NEW TEST: The selected image has the version RHEL 6.3
######################################################################################

## Summary ##
FAILURES = 17
FAILED TESTS = ## Verify auditd.conf ... ## Verify auditd sysconfig ... ## Verify group file ... ## Verify group file ... ## Verify group file ... ##test menu.lst ... ##test menu.lst ... ## Verify no missing packages ... ## test repo files ... ## test repo files ... ## Verify rsyslog config ... ## Verify latest installed kernel is running ... ## Verify RPMs ... ## install zsh ... ## List available groups.. ## install zsh ...
## Verify latest installed kernel is running ...
LOG FILE = /root/valid/src/validate.log
## Summary ##

######################################################################################
# NEW TEST: ## Open a bugzilla
######################################################################################

Comment 16 mkovacik 2012-04-23 10:09:48 UTC
IMAGE ID= 
=====image_validation.sh Mon Apr 23 06:08:46 EDT 2012=====
######################################################################################
# NEW TEST: ## Open a bugzilla
######################################################################################
######################################################################################
# NEW TEST: Fetching the identity doc Details
######################################################################################
Verifying that signature exists
COMMAND:  echo 1
RESULT: 1 
EXPECTED RESULT: 1
RETURN CODE: 0
PASS
Verifying the IMAGE ID
COMMAND:  echo 1
RESULT: 1 
EXPECTED RESULT: 1
RETURN CODE: 0
PASS
Verifying the Architecture
COMMAND:  echo 1
RESULT: 1 
EXPECTED RESULT: 1
RETURN CODE: 0
PASS
This Host => ec2-23-20-177-249.compute-1.amazonaws.com with Image Id : ami-eaff2483, is launched with Instance Id : i-6c4b010b , Instance Type : c1.xlarge and Arch : x86_64 in the Region : us-east-1d
The Validate Signature is : Xo1cT7SLukdt48+sGPVbH5bWAYnxlyiPLHnULzAjQA7J7rrbETic8dnxBtZeKnT/seEzpk8vlz23
71sQzU7vOnJzakfKqE1GSI1wy7q7WQEozXPso23jD46r23Cb38/1IJupGziuGadfNryynyCnpA7a
AxpkjJcOUv9JaJ+ztDA=
This is a Cloud Access image
/root/valid/src
ip-10-78-149-180
Red Hat Enterprise Linux Server release 6.3 Beta (Santiago)
######################################################################################
# NEW TEST: The selected image has the version RHEL 6.3
######################################################################################
ami is a BETA
######################################################################################
# NEW TEST: ## Verify auditd is on ... 
######################################################################################
COMMAND:  /sbin/chkconfig --list auditd | grep 3:on
RESULT: auditd         	0:off	1:off	2:on	3:on	4:on	5:on	6:off 
EXPECTED RESULT: 
RETURN CODE: 0
PASS
COMMAND:  /sbin/chkconfig --list auditd | grep 5:on
RESULT: auditd         	0:off	1:off	2:on	3:on	4:on	5:on	6:off 
EXPECTED RESULT: 
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify audit.rules ... 
######################################################################################
COMMAND:  md5sum /etc/audit/audit.rules | cut -f 1 -d  " "
RESULT: f9869e1191838c461f5b9051c78a638d 
EXPECTED RESULT: f9869e1191838c461f5b9051c78a638d
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify auditd.conf ... 
######################################################################################
COMMAND:  md5sum /etc/audit/auditd.conf | cut -f 1 -d  " "
RESULT: e1886162554c18906df2ecd258aa4794 
EXPECTED RESULT: 612ddf28c3916530d47ef56a1b1ed1ed
RETURN CODE: 0
FAIL2
e1886162554c18906df2ecd258aa4794
######################################################################################
# NEW TEST: ## Verify auditd sysconfig ... 
######################################################################################
COMMAND:  md5sum /etc/sysconfig/auditd | cut -f 1 -d  " "
RESULT: d4d43637708e30418c30003e212f76fc 
EXPECTED RESULT: 123beb3a97a32d96eba4f11509e39da2
RETURN CODE: 0
FAIL2
d4d43637708e30418c30003e212f76fc
######################################################################################
# NEW TEST: ## Verify bash_history ... 
######################################################################################
COMMAND:  cat ~/.bash_history | wc -l 
RESULT: 0 
EXPECTED RESULT: 0
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify  chkconfig ... 
######################################################################################
COMMAND:  chkconfig --list | grep crond | cut -f 5
RESULT: 3:on 
EXPECTED RESULT: 3:on
RETURN CODE: 0
PASS
COMMAND:  chkconfig --list | grep  iptables | cut -f 5
RESULT: 3:on 
EXPECTED RESULT: 3:on
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify rh-cloud-firstboot is OFF ... 
######################################################################################
COMMAND:  chkconfig --list | grep rh-cloud | grep 3:off | wc -l
RESULT: 1 
EXPECTED RESULT: 1
RETURN CODE: 0
PASS
/etc/sysconfig/rh-cloud-firstboot FOUND
COMMAND:  echo true
RESULT: true 
EXPECTED RESULT: 
RETURN CODE: 0
PASS
COMMAND:  cat /etc/sysconfig/rh-cloud-firstboot
RESULT: RUN_FIRSTBOOT=NO 
EXPECTED RESULT: RUN_FIRSTBOOT=NO
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Partition Format  ...
######################################################################################
mount | grep /dev/xvde1 | awk '{ print  }'
COMMAND:  echo ext4
RESULT: ext4 
EXPECTED RESULT: ext4
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Partition Size ...
######################################################################################
size=5905712
COMMAND:  echo true
RESULT: true 
EXPECTED RESULT: true
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: Fetching the identity doc Details
######################################################################################
Verifying that signature exists
COMMAND:  echo 1
RESULT: 1 
EXPECTED RESULT: 1
RETURN CODE: 0
PASS
Verifying the IMAGE ID
COMMAND:  echo 1
RESULT: 1 
EXPECTED RESULT: 1
RETURN CODE: 0
PASS
Verifying the Architecture
COMMAND:  echo 1
RESULT: 1 
EXPECTED RESULT: 1
RETURN CODE: 0
PASS
This Host => ec2-23-20-177-249.compute-1.amazonaws.com with Image Id : ami-eaff2483, is launched with Instance Id : i-6c4b010b , Instance Type : c1.xlarge and Arch : x86_64 in the Region : us-east-1d
The Validate Signature is : Xo1cT7SLukdt48+sGPVbH5bWAYnxlyiPLHnULzAjQA7J7rrbETic8dnxBtZeKnT/seEzpk8vlz23
71sQzU7vOnJzakfKqE1GSI1wy7q7WQEozXPso23jD46r23Cb38/1IJupGziuGadfNryynyCnpA7a
AxpkjJcOUv9JaJ+ztDA=
This is a Cloud Access image
######################################################################################
# NEW TEST: ## Verify GPG checking ... 
######################################################################################
COMMAND:  grep '^gpgcheck=1' /etc/yum.repos.d/redhat-*.repo | cut -d\= -f2 | sort -f | uniq
RESULT: 1 
EXPECTED RESULT: 1
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify GPG Keys ... 
######################################################################################
COMMAND:  rpm -qa gpg-pubkey* | wc -l 
RESULT: 2 
EXPECTED RESULT: 2
RETURN CODE: 0
PASS
SKIPPING TEST, BETA DETECTED
######################################################################################
# NEW TEST: ## Verify group file ... 
######################################################################################
COMMAND:  cat /etc/group | grep root:x:0
RESULT: root:x:0: 
EXPECTED RESULT: root:x:0:root
RETURN CODE: 0
FAIL2
root:x:0:
COMMAND:  cat /etc/group | grep bin:x:1
RESULT: bin:x:1:bin,daemon 
EXPECTED RESULT: bin:x:1:root,bin,daemon
RETURN CODE: 0
FAIL2
bin:x:1:bin,daemon
COMMAND:  cat /etc/group | grep daemon:x:2
RESULT: daemon:x:2:bin,daemon 
EXPECTED RESULT: daemon:x:2:root,bin,daemon
RETURN CODE: 0
FAIL2
daemon:x:2:bin,daemon
COMMAND:  cat /etc/group | grep nobody:x:99
RESULT: nobody:x:99: 
EXPECTED RESULT: nobody:x:99:
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ##test menu.lst ... 
######################################################################################
COMMAND:  file /boot/grub/menu.lst  | grep symbolic | wc -l
RESULT: 0 
EXPECTED RESULT: 1
RETURN CODE: 0
FAIL2
0
COMMAND:  file /boot/grub/menu.lst  | grep grub.conf | wc -l
RESULT: 0 
EXPECTED RESULT: 1
RETURN CODE: 0
FAIL2
0
COMMAND:  cat /boot/grub/grub.conf  | grep "(hd0,0)" | wc -l
RESULT: 2 
EXPECTED RESULT: 0
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify runlevel ... 
######################################################################################
COMMAND:  cat /etc/inittab | grep id:
RESULT: id:3:initdefault: 
EXPECTED RESULT: id:3:initdefault:
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify iptables ... 
######################################################################################
COMMAND: /etc/init.d/iptables status | grep REJECT 
5    REJECT     all  --  0.0.0.0/0            0.0.0.0/0           reject-with icmp-host-prohibited 
1    REJECT     all  --  0.0.0.0/0            0.0.0.0/0           reject-with icmp-host-prohibited 
RETURN CODE: 0
COMMAND:  /etc/init.d/iptables status | grep :22 | grep ACCEPT | wc -l 
RESULT: 1 
EXPECTED RESULT: 1
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify /etc/ld.so.conf.d/libc6-xen.conf is not present ... 
######################################################################################
COMMAND:  ls /etc/ld.so.conf.d/libc6-xen.conf
ls: cannot access /etc/ld.so.conf.d/libc6-xen.conf: No such file or directory
RESULT:  
EXPECTED RESULT: 2
RETURN CODE: 2
PASS
######################################################################################
# NEW TEST: ##Verify memory match hwp ... 
######################################################################################
cat /proc/meminfo | grep MemTotal: | awk '{print }'
FOUND MEMORY OF 7130376 > hwp MEMORY of 7000000
COMMAND:  echo true
RESULT: true 
EXPECTED RESULT: 
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify nameserver ... 
######################################################################################
COMMAND:  /usr/bin/dig clock.redhat.com 2>> /root/valid/src/validate.log | grep 66.187.233.4  | wc -l
RESULT: 1 
EXPECTED RESULT: 
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify networking ... 
######################################################################################
COMMAND:  grep ^NETWORKING= /etc/sysconfig/network | cut -d\= -f2
RESULT: yes 
EXPECTED RESULT: yes
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify device ... 
######################################################################################
COMMAND:  grep ^DEVICE= /etc/sysconfig/network-scripts/ifcfg-eth0 | cut -d\= -f2
RESULT: eth0 
EXPECTED RESULT: eth0
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify no missing packages ... 
######################################################################################
COMMAND: /bin/rpm -qa --queryformat='%{NAME}\n' > /tmp/rpmqa.tmp
RETURN CODE: 0
COUNT = 0
COMMAND:  echo test failed
RESULT: test failed 
EXPECTED RESULT: 1
RETURN CODE: 0
FAIL2
test failed
######################################################################################
# NEW TEST: ## Verify new passwd file ... 
######################################################################################
COMMAND:  cat /etc/passwd | grep root:x:0
RESULT: root:x:0:0:root:/root:/bin/bash 
EXPECTED RESULT: root:x:0:0:root:/root:/bin/bash
RETURN CODE: 0
PASS
COMMAND:  cat /etc/passwd | grep nobody:x:99
RESULT: nobody:x:99:99:Nobody:/:/sbin/nologin 
EXPECTED RESULT: nobody:x:99:99:Nobody:/:/sbin/nologin
RETURN CODE: 0
PASS
COMMAND:  cat /etc/passwd | grep sshd
RESULT: sshd:x:74:74:Privilege-separated SSH:/var/empty/sshd:/sbin/nologin 
EXPECTED RESULT: sshd:x:74:74:Privilege-separated SSH:/var/empty/sshd:/sbin/nologin
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## test repo files ... 
######################################################################################
COMMAND:  ls /etc/yum.repos.d/ | wc -l 
RESULT: 6 
EXPECTED RESULT: 4
RETURN CODE: 0
FAIL2
6
COMMAND:  ls /etc/yum.repos.d/redhat* | wc -l
RESULT: 4 
EXPECTED RESULT: 2
RETURN CODE: 0
FAIL2
4
COMMAND:  ls /etc/yum.repos.d/rhel* | wc -l
RESULT: 1 
EXPECTED RESULT: 0
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify resize2fs ... 
######################################################################################
COMMAND: resize2fs -p /dev/xvde1 15000M
resize2fs 1.41.12 (17-May-2010)
RETURN CODE: 0
COMMAND:  df -h | grep 15G | wc -l 
RESULT: 1 
EXPECTED RESULT: 1
RETURN CODE: 0
PASS
/root/valid/src
ip-10-78-149-180
Red Hat Enterprise Linux Server release 6.3 Beta (Santiago)
######################################################################################
# NEW TEST: The selected image has the version RHEL 6.3
######################################################################################
ami is a BETA
######################################################################################
# NEW TEST: ## /sbin/getenforce ... 
######################################################################################
COMMAND:  /usr/sbin/getenforce
RESULT: Enforcing 
EXPECTED RESULT: Enforcing
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify SELINUX enforcing ... 
######################################################################################
COMMAND:  grep ^SELINUX= /etc/sysconfig/selinux | cut -d\= -f2
RESULT: enforcing 
EXPECTED RESULT: enforcing
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify SELINUXTYPE targeted ... 
######################################################################################
COMMAND:  grep ^SELINUXTYPE= /etc/sysconfig/selinux | cut -d\= -f2
RESULT: targeted 
EXPECTED RESULT: targeted
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Flip Selinux Permissive ... 
######################################################################################
COMMAND:  /usr/sbin/setenforce Permissive && /usr/sbin/getenforce
RESULT: Permissive 
EXPECTED RESULT: Permissive
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Flip Selinux Enforcing ... 
######################################################################################
COMMAND:  /usr/sbin/setenforce Enforcing && /usr/sbin/getenforce
RESULT: Enforcing 
EXPECTED RESULT: Enforcing
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify new shells file ... 
######################################################################################
COMMAND:  cat /etc/shells | grep bash
RESULT: /bin/bash 
EXPECTED RESULT: /bin/bash
RETURN CODE: 0
PASS
COMMAND:  cat /etc/shells | grep nologin
RESULT: /sbin/nologin 
EXPECTED RESULT: /sbin/nologin
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify sshd_config settings ...
######################################################################################
COMMAND:  cat /etc/ssh/sshd_config  | grep  PasswordAuthentication | grep no | wc -l
RESULT: 1 
EXPECTED RESULT: 1
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify sshd ...
######################################################################################
COMMAND:  chkconfig --list | grep sshd
RESULT: sshd           	0:off	1:off	2:on	3:on	4:on	5:on	6:off 
EXPECTED RESULT: sshd           	0:off	1:off	2:on	3:on	4:on	5:on	6:off
RETURN CODE: 0
PASS
COMMAND:  /etc/init.d/sshd status | grep running | wc -l
RESULT: 1 
EXPECTED RESULT: 1
RETURN CODE: 0
PASS
this machine doesn't require swap
######################################################################################
# NEW TEST: ## Verify rsyslog is on ... 
######################################################################################
COMMAND:  chkconfig --list | grep rsyslog | cut -f 5
RESULT: 3:on 
EXPECTED RESULT: 3:on
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify rsyslog config ... 
######################################################################################
COMMAND:  md5sum /etc/rsyslog.conf | cut -f 1 -d  " "
RESULT: 8b91b32300134e98ef4aee632ed61e21 
EXPECTED RESULT: dd356958ca9c4e779f7fac13dde3c1b5
RETURN CODE: 0
FAIL2
8b91b32300134e98ef4aee632ed61e21
######################################################################################
# NEW TEST: ## Verify no systemid file ... 
######################################################################################
COMMAND:  echo true
RESULT: true 
EXPECTED RESULT: 
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify kernel name ... 
######################################################################################
COMMAND:  /bin/uname -s
RESULT: Linux 
EXPECTED RESULT: Linux
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify latest installed kernel is running ... 
######################################################################################
RHEL VERSION IS 6
LATEST_RPM_KERNEL_VERSION=rpm -q kernel --last | head -n 1 |  cut -c 8-60 | cut -d ' ' -f 1
CURRENT_UNAME_KERNAL_VERSION=2.6.32-262.el6
assert latest rpm kernel = uname -r
COMMAND:  uname -r | sed  's/\(.*\)......./\1/'
RESULT: 2.6.32-262.el6 
EXPECTED RESULT: 2.6.32-262.el6.x86_64
RETURN CODE: 0
FAIL2
2.6.32-262.el6
######################################################################################
# NEW TEST: ## Verify latest kenerl is in /boot/grub/menu.1st ... 
######################################################################################
COMMAND:  cat /boot/grub/menu.lst | grep 2.6.32-262.el6.x86_64
RESULT: title RHEL6.3-20120416.0-Server-x86_64-starter-ec2 (2.6.32-262.el6.x86_64)
        kernel /boot/vmlinuz-2.6.32-262.el6.x86_64 ro root=LABEL=_/ 
        initrd /boot/initramfs-2.6.32-262.el6.x86_64.img 
EXPECTED RESULT: 
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify operating system ... 
######################################################################################
COMMAND:  /bin/uname -o
RESULT: GNU/Linux 
EXPECTED RESULT: GNU/Linux
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify /etc/sysconfig/kernel ... 
######################################################################################
COMMAND:  ls /etc/sysconfig/kernel
RESULT: /etc/sysconfig/kernel 
EXPECTED RESULT:

Comment 17 mkovacik 2012-04-23 10:09:51 UTC
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify /etc/sysconfig/kernel contains UPDATEDEFAULT ... 
######################################################################################
COMMAND:  cat /etc/sysconfig/kernel | grep UPDATEDEFAULT=yes
RESULT: UPDATEDEFAULT=yes 
EXPECTED RESULT: 
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify /etc/sysconfig/kernel contains DEFAULTKERNEL ... 
######################################################################################
COMMAND:  cat /etc/sysconfig/kernel | grep DEFAULTKERNEL=kernel
RESULT: DEFAULTKERNEL=kernel 
EXPECTED RESULT: 
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify system up to date
######################################################################################
COMMAND:  _check_sys_update_phase1
# no update was required
RESULT: # checking sys update done
# no update was required 
EXPECTED RESULT: 
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify RPMs ... 
######################################################################################
....L....  c /etc/pam.d/fingerprint-auth
....L....  c /etc/pam.d/password-auth
....L....  c /etc/pam.d/smartcard-auth
....L....  c /etc/pam.d/system-auth
.M.......    /var/cache/yum
    S file Size differs
    M Mode differs (includes permissions and file type)
    5 MD5 sum differs
    D Device major/minor number mismatch
    L readLink(2) path mismatch
    U User ownership differs
    G Group ownership differs
    T mTime differs

COMMAND:  cat /tmp/rpmqaV.txt | wc -l
RESULT: 5 
EXPECTED RESULT: 4
RETURN CODE: 0
FAIL2
5
######################################################################################
# NEW TEST: ## Verify Version 2 ... 
######################################################################################
COMMAND:  /bin/rpm -q --queryformat '%{RELEASE}\n' redhat-release-server | cut -d. -f1,2
RESULT: 6.3 
EXPECTED RESULT: 6.3
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify packager ... 
######################################################################################
COMMAND:  cat /tmp/Packager | grep -v 'Red Hat, Inc.' |  grep -v crash-trace-commandPackager| wc -l
RESULT: 0 
EXPECTED RESULT: 0
RETURN CODE: 0
PASS
crash-trace-commandPackager    : Lai Jiangshan <laijs.com>
######################################################################################
# NEW TEST: ## List the configured repositories...
######################################################################################
COMMAND:  /usr/bin/yum repolist
Unable to read consumer identity
Repo rhui-us-east-1-rhel-server-releases-beta forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-beta-key.pem
Repo rhui-us-east-1-rhel-server-releases-optional-beta forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-beta-key.pem
Repo rhui-us-east-1-rhel-server-releases forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-key.pem
Repo rhui-us-east-1-rhel-server-releases-optional forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-key.pem
RESULT: Loaded plugins: amazon-id, product-id, rhui-lb, security, subscription-manager
Updating certificate-based repositories.
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/dist/rhel/rhui/server/6/6Server/x86_64/os error was
14: problem with the local client certificate
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/beta/rhel/rhui/server/6/6Server/x86_64/os error was
14: problem with the local client certificate
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/dist/rhel/rhui/server/6/6Server/x86_64/optional/os error was
14: problem with the local client certificate
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/beta/rhel/rhui/server/6/6Server/x86_64/optional/os error was
14: problem with the local client certificate
repo id                                    repo name                      status
rhui-us-east-1-client-config-server-6      Red Hat Update Infrastructure  1
rhui-us-east-1-client-config-server-6-beta Red Hat Update Infrastructure  0
repolist: 1 
EXPECTED RESULT: 
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Search zsh...
######################################################################################
COMMAND:  /usr/bin/yum search zsh
Unable to read consumer identity
Repo rhui-us-east-1-rhel-server-releases-beta forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-beta-key.pem
Repo rhui-us-east-1-rhel-server-releases-optional-beta forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-beta-key.pem
Repo rhui-us-east-1-rhel-server-releases forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-key.pem
Repo rhui-us-east-1-rhel-server-releases-optional forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-key.pem
Warning: No matches found for: zsh
RESULT: Loaded plugins: amazon-id, product-id, rhui-lb, security, subscription-manager
Updating certificate-based repositories.
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/dist/rhel/rhui/server/6/6Server/x86_64/os error was
14: problem with the local client certificate
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/beta/rhel/rhui/server/6/6Server/x86_64/os error was
14: problem with the local client certificate
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/dist/rhel/rhui/server/6/6Server/x86_64/optional/os error was
14: problem with the local client certificate
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/beta/rhel/rhui/server/6/6Server/x86_64/optional/os error was
14: problem with the local client certificate
No Matches found 
EXPECTED RESULT: 
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## install zsh ... 
######################################################################################
COMMAND: /usr/bin/yum -y install zsh
Unable to read consumer identity
Repo rhui-us-east-1-rhel-server-releases-beta forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-beta-key.pem
Repo rhui-us-east-1-rhel-server-releases-optional-beta forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-beta-key.pem
Repo rhui-us-east-1-rhel-server-releases forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-key.pem
Repo rhui-us-east-1-rhel-server-releases-optional forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-key.pem
Error: Nothing to do
RETURN CODE: 1
COMMAND:  /bin/rpm -q --queryformat '%{NAME}\n' zsh
RESULT: package zsh is not installed 
EXPECTED RESULT: zsh
RETURN CODE: 1
FAIL1
package zsh is not installed
######################################################################################
# NEW TEST: ## List available groups..
######################################################################################
COMMAND:  /usr/bin/yum grouplist
Unable to read consumer identity
Repo rhui-us-east-1-rhel-server-releases-beta forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-beta-key.pem
Repo rhui-us-east-1-rhel-server-releases-optional-beta forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-beta-key.pem
Repo rhui-us-east-1-rhel-server-releases forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-key.pem
Repo rhui-us-east-1-rhel-server-releases-optional forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-key.pem
Error: Cannot retrieve repository metadata (repomd.xml) for repository: rhui-us-east-1-rhel-server-releases. Please verify its path and try again
RESULT: Loaded plugins: amazon-id, product-id, rhui-lb, security, subscription-manager
Updating certificate-based repositories.
Setting up Group Process
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/dist/rhel/rhui/server/6/6Server/x86_64/os error was
14: problem with the local client certificate 
EXPECTED RESULT: 
RETURN CODE: 1
FAIL1
Loaded plugins: amazon-id, product-id, rhui-lb, security, subscription-manager Updating certificate-based repositories. Setting up Group Process Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/dist/rhel/rhui/server/6/6Server/x86_64/os error was 14: problem with the local client certificate
######################################################################################
# NEW TEST: ## Install Development tools group...
######################################################################################
COMMAND:  /usr/bin/yum -y groupinstall 'Development tools'
Unable to read consumer identity
Repo rhui-us-east-1-rhel-server-releases-beta forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-beta-key.pem
Repo rhui-us-east-1-rhel-server-releases-optional-beta forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-beta-key.pem
Repo rhui-us-east-1-rhel-server-releases forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-key.pem
Repo rhui-us-east-1-rhel-server-releases-optional forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-key.pem
Warning: Group Development tools does not exist.
RESULT: Loaded plugins: amazon-id, product-id, rhui-lb, security, subscription-manager
Updating certificate-based repositories.
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/dist/rhel/rhui/server/6/6Server/x86_64/os error was
14: problem with the local client certificate
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/beta/rhel/rhui/server/6/6Server/x86_64/os error was
14: problem with the local client certificate
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/dist/rhel/rhui/server/6/6Server/x86_64/optional/os error was
14: problem with the local client certificate
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/beta/rhel/rhui/server/6/6Server/x86_64/optional/os error was
14: problem with the local client certificate
Setting up Group Process
No packages in any requested group available to install or update 
EXPECTED RESULT: 
RETURN CODE: 0
PASS
# checking possible sys update
Loaded plugins: amazon-id, product-id, rhui-lb, security, subscription-manager
Updating certificate-based repositories.
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/dist/rhel/rhui/server/6/6Server/x86_64/os error was
14: problem with the local client certificate
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/beta/rhel/rhui/server/6/6Server/x86_64/os error was
14: problem with the local client certificate
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/dist/rhel/rhui/server/6/6Server/x86_64/optional/os error was
14: problem with the local client certificate
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/beta/rhel/rhui/server/6/6Server/x86_64/optional/os error was
14: problem with the local client certificate
# no sys update found
######################################################################################
# NEW TEST: ## Verify yum update ... 
######################################################################################
COMMAND:  /usr/bin/yum -y update
Unable to read consumer identity
Repo rhui-us-east-1-rhel-server-releases-beta forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-beta-key.pem
Repo rhui-us-east-1-rhel-server-releases-optional-beta forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-beta-key.pem
Repo rhui-us-east-1-rhel-server-releases forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-key.pem
Repo rhui-us-east-1-rhel-server-releases-optional forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-key.pem
RESULT: Loaded plugins: amazon-id, product-id, rhui-lb, security, subscription-manager
Updating certificate-based repositories.
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/dist/rhel/rhui/server/6/6Server/x86_64/os error was
14: problem with the local client certificate
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/beta/rhel/rhui/server/6/6Server/x86_64/os error was
14: problem with the local client certificate
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/dist/rhel/rhui/server/6/6Server/x86_64/optional/os error was
14: problem with the local client certificate
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/beta/rhel/rhui/server/6/6Server/x86_64/optional/os error was
14: problem with the local client certificate
Setting up Update Process
No Packages marked for Update 
EXPECTED RESULT: 
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify no fa1lures in rpm package ... 
######################################################################################
COMMAND:  cat /root/valid/src/validate.log | grep 'failure in rpm package' | wc -l
RESULT: 1 
EXPECTED RESULT: 1
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify no rpm scriplet fa1lures ... 
######################################################################################
COMMAND:  cat /root/valid/src/validate.log | grep 'scriptlet failed, exit status 1' | wc -l
RESULT: 1 
EXPECTED RESULT: 1
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify package removal... 
######################################################################################
COMMAND: /bin/rpm -e zsh
error: package zsh is not installed
RETURN CODE: 1
COMMAND:  /bin/rpm -q zsh
RESULT: package zsh is not installed 
EXPECTED RESULT: package zsh is not installed
RETURN CODE: 1
PASS
######################################################################################
# NEW TEST: ## install zsh ... 
######################################################################################
COMMAND: /usr/bin/yum -y install zsh
Unable to read consumer identity
Repo rhui-us-east-1-rhel-server-releases-beta forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-beta-key.pem
Repo rhui-us-east-1-rhel-server-releases-optional-beta forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-beta-key.pem
Repo rhui-us-east-1-rhel-server-releases forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-key.pem
Repo rhui-us-east-1-rhel-server-releases-optional forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-key.pem
Error: Nothing to do
RETURN CODE: 1
COMMAND:  /bin/rpm -q --queryformat '%{NAME}\n' zsh
RESULT: package zsh is not installed 
EXPECTED RESULT: zsh
RETURN CODE: 1
FAIL1
package zsh is not installed
######################################################################################
# NEW TEST: ## Verify package removal ... 
######################################################################################
COMMAND: /bin/rpm -e zsh
error: package zsh is not installed
RETURN CODE: 1
COMMAND:  /bin/rpm -q zsh
RESULT: package zsh is not installed 
EXPECTED RESULT: package zsh is not installed
RETURN CODE: 1
PASS
# checking possible sys update
Loaded plugins: amazon-id, product-id, rhui-lb, security, subscription-manager
Updating certificate-based repositories.
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/dist/rhel/rhui/server/6/6Server/x86_64/os error was
14: problem with the local client certificate
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/beta/rhel/rhui/server/6/6Server/x86_64/os error was
14: problem with the local client certificate
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/dist/rhel/rhui/server/6/6Server/x86_64/optional/os error was
14: problem with the local client certificate
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/beta/rhel/rhui/server/6/6Server/x86_64/optional/os error was
14: problem with the local client certificate
# no sys update found
######################################################################################
# NEW TEST: ## Verify yum update ... 
######################################################################################
COMMAND:  /usr/bin/yum -y update
Unable to read consumer identity
Repo rhui-us-east-1-rhel-server-releases-beta forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-beta-key.pem
Repo rhui-us-east-1-rhel-server-releases-optional-beta forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-beta-key.pem
Repo rhui-us-east-1-rhel-server-releases forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-key.pem
Repo rhui-us-east-1-rhel-server-releases-optional forced skip_if_unavailable=True due to: /etc/pki/entitlement/content-rhel6-key.pem
RESULT: Loaded plugins: amazon-id, product-id, rhui-lb, security, subscription-manager
Updating certificate-based repositories.
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/dist/rhel/rhui/server/6/6Server/x86_64/os error was
14: problem with the local client certificate
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/beta/rhel/rhui/server/6/6Server/x86_64/os error was
14: problem with the local client certificate
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/dist/rhel/rhui/server/6/6Server/x86_64/optional/os error was
14: problem with the local client certificate
Could not retrieve mirrorlist https://rhui2-cds01.us-east-1.aws.ce.redhat.com/pulp/mirror/content/beta/rhel/rhui/server/6/6Server/x86_64/optional/os error was
14: problem with the local client certificate
Setting up Update Process
No Packages marked for Update 
EXPECTED RESULT: 
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify disabled yum plugin ... 
######################################################################################
COMMAND:  grep ^enabled /etc/yum/pluginconf.d/rhnplugin.conf | grep -v '^#' | cut -d\= -f2 | awk '{print }' | sort -f | uniq
RESULT:  0 
EXPECTED RESULT: 
RETURN CODE: 0
PASS

## Summary ##
FAILURES = 16
FAILED TESTS = ## Verify auditd.conf ... ## Verify auditd sysconfig ... ## Verify group file ... ## Verify group file ... ## Verify group file ... ##test menu.lst ... ##test menu.lst ... ## Verify no missing packages ... ## test repo files ... ## test repo files ... ## Verify rsyslog config ... ## Verify latest installed kernel is running ... ## Verify RPMs ... ## install zsh ... ## List available groups.. ## install zsh ...
LOG FILE = /root/valid/src/validate.log
## Summary ##

######################################################################################
# NEW TEST: ## Open a bugzilla
######################################################################################

Comment 18 mkovacik 2012-04-23 10:10:57 UTC
IMAGE ID= ami-eaff2483_us-east-1_m2.xlarge
###### TEST KERNEL AFTER REBOOT ####  
######################################################################################
# NEW TEST: ## Verify disabled yum plugin ... 
######################################################################################
COMMAND:  grep ^enabled /etc/yum/pluginconf.d/rhnplugin.conf | grep -v '^#' | cut -d\= -f2 | awk '{print }' | sort -f | uniq
RESULT:  0 
EXPECTED RESULT: 
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify kernel name ... 
######################################################################################
COMMAND:  /bin/uname -s
RESULT: Linux 
EXPECTED RESULT: Linux
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify latest installed kernel is running ... 
######################################################################################
RHEL VERSION IS 6
LATEST_RPM_KERNEL_VERSION=rpm -q kernel --last | head -n 1 |  cut -c 8-60 | cut -d ' ' -f 1
CURRENT_UNAME_KERNAL_VERSION=2.6.32-262.el6
assert latest rpm kernel = uname -r
COMMAND:  uname -r | sed  's/\(.*\)......./\1/'
RESULT: 2.6.32-262.el6 
EXPECTED RESULT: 2.6.32-262.el6.x86_64
RETURN CODE: 0
FAIL2
2.6.32-262.el6
######################################################################################
# NEW TEST: ## Verify latest kenerl is in /boot/grub/menu.1st ... 
######################################################################################
COMMAND:  cat /boot/grub/menu.lst | grep 2.6.32-262.el6.x86_64
RESULT: title RHEL6.3-20120416.0-Server-x86_64-starter-ec2 (2.6.32-262.el6.x86_64)
        kernel /boot/vmlinuz-2.6.32-262.el6.x86_64 ro root=LABEL=_/ 
        initrd /boot/initramfs-2.6.32-262.el6.x86_64.img 
EXPECTED RESULT: 
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify operating system ... 
######################################################################################
COMMAND:  /bin/uname -o
RESULT: GNU/Linux 
EXPECTED RESULT: GNU/Linux
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify /etc/sysconfig/kernel ... 
######################################################################################
COMMAND:  ls /etc/sysconfig/kernel
RESULT: /etc/sysconfig/kernel 
EXPECTED RESULT: 
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify /etc/sysconfig/kernel contains UPDATEDEFAULT ... 
######################################################################################
COMMAND:  cat /etc/sysconfig/kernel | grep UPDATEDEFAULT=yes
RESULT: UPDATEDEFAULT=yes 
EXPECTED RESULT: 
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify /etc/sysconfig/kernel contains DEFAULTKERNEL ... 
######################################################################################
COMMAND:  cat /etc/sysconfig/kernel | grep DEFAULTKERNEL=kernel
RESULT: DEFAULTKERNEL=kernel 
EXPECTED RESULT: 
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify system up to date
######################################################################################
COMMAND:  _check_sys_update_phase1
# no update was required
RESULT: # checking sys update done
# no update was required 
EXPECTED RESULT: 
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ##Verify memory match hwp ... 
######################################################################################
cat /proc/meminfo | grep MemTotal: | awk '{print }'
FOUND MEMORY OF 17524268 > hwp MEMORY of 17100000
COMMAND:  echo true
RESULT: true 
EXPECTED RESULT: 
RETURN CODE: 0
PASS
hostname
######################################################################################
# NEW TEST: The selected image has the version RHEL 6.3
######################################################################################

## Summary ##
FAILURES = 17
FAILED TESTS = ## Verify auditd.conf ... ## Verify auditd sysconfig ... ## Verify group file ... ## Verify group file ... ## Verify group file ... ##test menu.lst ... ##test menu.lst ... ## Verify no missing packages ... ## test repo files ... ## test repo files ... ## Verify rsyslog config ... ## Verify latest installed kernel is running ... ## Verify RPMs ... ## install zsh ... ## List available groups.. ## install zsh ...
## Verify latest installed kernel is running ...
LOG FILE = /root/valid/src/validate.log
## Summary ##

######################################################################################
# NEW TEST: ## Open a bugzilla
######################################################################################

Comment 19 mkovacik 2012-04-23 10:13:04 UTC
IMAGE ID= ami-eaff2483_us-east-1_m2.2xlarge
###### TEST KERNEL AFTER REBOOT ####  
######################################################################################
# NEW TEST: ## Verify disabled yum plugin ... 
######################################################################################
COMMAND:  grep ^enabled /etc/yum/pluginconf.d/rhnplugin.conf | grep -v '^#' | cut -d\= -f2 | awk '{print }' | sort -f | uniq
RESULT:  0 
EXPECTED RESULT: 
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify kernel name ... 
######################################################################################
COMMAND:  /bin/uname -s
RESULT: Linux 
EXPECTED RESULT: Linux
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify latest installed kernel is running ... 
######################################################################################
RHEL VERSION IS 6
LATEST_RPM_KERNEL_VERSION=rpm -q kernel --last | head -n 1 |  cut -c 8-60 | cut -d ' ' -f 1
CURRENT_UNAME_KERNAL_VERSION=2.6.32-262.el6
assert latest rpm kernel = uname -r
COMMAND:  uname -r | sed  's/\(.*\)......./\1/'
RESULT: 2.6.32-262.el6 
EXPECTED RESULT: 2.6.32-262.el6.x86_64
RETURN CODE: 0
FAIL2
2.6.32-262.el6
######################################################################################
# NEW TEST: ## Verify latest kenerl is in /boot/grub/menu.1st ... 
######################################################################################
COMMAND:  cat /boot/grub/menu.lst | grep 2.6.32-262.el6.x86_64
RESULT: title RHEL6.3-20120416.0-Server-x86_64-starter-ec2 (2.6.32-262.el6.x86_64)
        kernel /boot/vmlinuz-2.6.32-262.el6.x86_64 ro root=LABEL=_/ 
        initrd /boot/initramfs-2.6.32-262.el6.x86_64.img 
EXPECTED RESULT: 
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify operating system ... 
######################################################################################
COMMAND:  /bin/uname -o
RESULT: GNU/Linux 
EXPECTED RESULT: GNU/Linux
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify /etc/sysconfig/kernel ... 
######################################################################################
COMMAND:  ls /etc/sysconfig/kernel
RESULT: /etc/sysconfig/kernel 
EXPECTED RESULT: 
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify /etc/sysconfig/kernel contains UPDATEDEFAULT ... 
######################################################################################
COMMAND:  cat /etc/sysconfig/kernel | grep UPDATEDEFAULT=yes
RESULT: UPDATEDEFAULT=yes 
EXPECTED RESULT: 
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify /etc/sysconfig/kernel contains DEFAULTKERNEL ... 
######################################################################################
COMMAND:  cat /etc/sysconfig/kernel | grep DEFAULTKERNEL=kernel
RESULT: DEFAULTKERNEL=kernel 
EXPECTED RESULT: 
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify system up to date
######################################################################################
COMMAND:  _check_sys_update_phase1
# no update was required
RESULT: # checking sys update done
# no update was required 
EXPECTED RESULT: 
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ##Verify memory match hwp ... 
######################################################################################
cat /proc/meminfo | grep MemTotal: | awk '{print }'
FOUND MEMORY OF 35127956 > hwp MEMORY of 34200000
COMMAND:  echo true
RESULT: true 
EXPECTED RESULT: 
RETURN CODE: 0
PASS
hostname
######################################################################################
# NEW TEST: The selected image has the version RHEL 6.3
######################################################################################

## Summary ##
FAILURES = 17
FAILED TESTS = ## Verify auditd.conf ... ## Verify auditd sysconfig ... ## Verify group file ... ## Verify group file ... ## Verify group file ... ##test menu.lst ... ##test menu.lst ... ## Verify no missing packages ... ## test repo files ... ## test repo files ... ## Verify rsyslog config ... ## Verify latest installed kernel is running ... ## Verify RPMs ... ## install zsh ... ## List available groups.. ## install zsh ...
## Verify latest installed kernel is running ...
LOG FILE = /root/valid/src/validate.log
## Summary ##

######################################################################################
# NEW TEST: ## Open a bugzilla
######################################################################################

Comment 20 mkovacik 2012-04-23 10:15:59 UTC
IMAGE ID= ami-eaff2483_us-east-1_m2.4xlarge
###### TEST KERNEL AFTER REBOOT ####  
######################################################################################
# NEW TEST: ## Verify disabled yum plugin ... 
######################################################################################
COMMAND:  grep ^enabled /etc/yum/pluginconf.d/rhnplugin.conf | grep -v '^#' | cut -d\= -f2 | awk '{print }' | sort -f | uniq
RESULT:  0 
EXPECTED RESULT: 
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify kernel name ... 
######################################################################################
COMMAND:  /bin/uname -s
RESULT: Linux 
EXPECTED RESULT: Linux
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify latest installed kernel is running ... 
######################################################################################
RHEL VERSION IS 6
LATEST_RPM_KERNEL_VERSION=rpm -q kernel --last | head -n 1 |  cut -c 8-60 | cut -d ' ' -f 1
CURRENT_UNAME_KERNAL_VERSION=2.6.32-262.el6
assert latest rpm kernel = uname -r
COMMAND:  uname -r | sed  's/\(.*\)......./\1/'
RESULT: 2.6.32-262.el6 
EXPECTED RESULT: 2.6.32-262.el6.x86_64
RETURN CODE: 0
FAIL2
2.6.32-262.el6
######################################################################################
# NEW TEST: ## Verify latest kenerl is in /boot/grub/menu.1st ... 
######################################################################################
COMMAND:  cat /boot/grub/menu.lst | grep 2.6.32-262.el6.x86_64
RESULT: title RHEL6.3-20120416.0-Server-x86_64-starter-ec2 (2.6.32-262.el6.x86_64)
        kernel /boot/vmlinuz-2.6.32-262.el6.x86_64 ro root=LABEL=_/ 
        initrd /boot/initramfs-2.6.32-262.el6.x86_64.img 
EXPECTED RESULT: 
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify operating system ... 
######################################################################################
COMMAND:  /bin/uname -o
RESULT: GNU/Linux 
EXPECTED RESULT: GNU/Linux
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify /etc/sysconfig/kernel ... 
######################################################################################
COMMAND:  ls /etc/sysconfig/kernel
RESULT: /etc/sysconfig/kernel 
EXPECTED RESULT: 
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify /etc/sysconfig/kernel contains UPDATEDEFAULT ... 
######################################################################################
COMMAND:  cat /etc/sysconfig/kernel | grep UPDATEDEFAULT=yes
RESULT: UPDATEDEFAULT=yes 
EXPECTED RESULT: 
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify /etc/sysconfig/kernel contains DEFAULTKERNEL ... 
######################################################################################
COMMAND:  cat /etc/sysconfig/kernel | grep DEFAULTKERNEL=kernel
RESULT: DEFAULTKERNEL=kernel 
EXPECTED RESULT: 
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify system up to date
######################################################################################
COMMAND:  _check_sys_update_phase1
# no update was required
RESULT: # checking sys update done
# no update was required 
EXPECTED RESULT: 
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ##Verify memory match hwp ... 
######################################################################################
cat /proc/meminfo | grep MemTotal: | awk '{print }'
FOUND MEMORY OF 70337128 > hwp MEMORY of 68400000
COMMAND:  echo true
RESULT: true 
EXPECTED RESULT: 
RETURN CODE: 0
PASS
hostname
######################################################################################
# NEW TEST: The selected image has the version RHEL 6.3
######################################################################################

## Summary ##
FAILURES = 17
FAILED TESTS = ## Verify auditd.conf ... ## Verify auditd sysconfig ... ## Verify group file ... ## Verify group file ... ## Verify group file ... ##test menu.lst ... ##test menu.lst ... ## Verify no missing packages ... ## test repo files ... ## test repo files ... ## Verify rsyslog config ... ## Verify latest installed kernel is running ... ## Verify RPMs ... ## install zsh ... ## List available groups.. ## install zsh ...
## Verify latest installed kernel is running ...
LOG FILE = /root/valid/src/validate.log
## Summary ##

######################################################################################
# NEW TEST: ## Open a bugzilla
######################################################################################

Comment 21 mkovacik 2012-04-23 10:16:44 UTC
IMAGE ID= ami-eaff2483_us-east-1_c1.xlarge
###### TEST KERNEL AFTER REBOOT ####  
######################################################################################
# NEW TEST: ## Verify disabled yum plugin ... 
######################################################################################
COMMAND:  grep ^enabled /etc/yum/pluginconf.d/rhnplugin.conf | grep -v '^#' | cut -d\= -f2 | awk '{print }' | sort -f | uniq
RESULT:  0 
EXPECTED RESULT: 
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify kernel name ... 
######################################################################################
COMMAND:  /bin/uname -s
RESULT: Linux 
EXPECTED RESULT: Linux
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify latest installed kernel is running ... 
######################################################################################
RHEL VERSION IS 6
LATEST_RPM_KERNEL_VERSION=rpm -q kernel --last | head -n 1 |  cut -c 8-60 | cut -d ' ' -f 1
CURRENT_UNAME_KERNAL_VERSION=2.6.32-262.el6
assert latest rpm kernel = uname -r
COMMAND:  uname -r | sed  's/\(.*\)......./\1/'
RESULT: 2.6.32-262.el6 
EXPECTED RESULT: 2.6.32-262.el6.x86_64
RETURN CODE: 0
FAIL2
2.6.32-262.el6
######################################################################################
# NEW TEST: ## Verify latest kenerl is in /boot/grub/menu.1st ... 
######################################################################################
COMMAND:  cat /boot/grub/menu.lst | grep 2.6.32-262.el6.x86_64
RESULT: title RHEL6.3-20120416.0-Server-x86_64-starter-ec2 (2.6.32-262.el6.x86_64)
        kernel /boot/vmlinuz-2.6.32-262.el6.x86_64 ro root=LABEL=_/ 
        initrd /boot/initramfs-2.6.32-262.el6.x86_64.img 
EXPECTED RESULT: 
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify operating system ... 
######################################################################################
COMMAND:  /bin/uname -o
RESULT: GNU/Linux 
EXPECTED RESULT: GNU/Linux
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify /etc/sysconfig/kernel ... 
######################################################################################
COMMAND:  ls /etc/sysconfig/kernel
RESULT: /etc/sysconfig/kernel 
EXPECTED RESULT: 
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify /etc/sysconfig/kernel contains UPDATEDEFAULT ... 
######################################################################################
COMMAND:  cat /etc/sysconfig/kernel | grep UPDATEDEFAULT=yes
RESULT: UPDATEDEFAULT=yes 
EXPECTED RESULT: 
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify /etc/sysconfig/kernel contains DEFAULTKERNEL ... 
######################################################################################
COMMAND:  cat /etc/sysconfig/kernel | grep DEFAULTKERNEL=kernel
RESULT: DEFAULTKERNEL=kernel 
EXPECTED RESULT: 
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ## Verify system up to date
######################################################################################
COMMAND:  _check_sys_update_phase1
# no update was required
RESULT: # checking sys update done
# no update was required 
EXPECTED RESULT: 
RETURN CODE: 0
PASS
######################################################################################
# NEW TEST: ##Verify memory match hwp ... 
######################################################################################
cat /proc/meminfo | grep MemTotal: | awk '{print }'
FOUND MEMORY OF 7130376 > hwp MEMORY of 7000000
COMMAND:  echo true
RESULT: true 
EXPECTED RESULT: 
RETURN CODE: 0
PASS
hostname
######################################################################################
# NEW TEST: The selected image has the version RHEL 6.3
######################################################################################

## Summary ##
FAILURES = 17
FAILED TESTS = ## Verify auditd.conf ... ## Verify auditd sysconfig ... ## Verify group file ... ## Verify group file ... ## Verify group file ... ##test menu.lst ... ##test menu.lst ... ## Verify no missing packages ... ## test repo files ... ## test repo files ... ## Verify rsyslog config ... ## Verify latest installed kernel is running ... ## Verify RPMs ... ## install zsh ... ## List available groups.. ## install zsh ...
## Verify latest installed kernel is running ...
LOG FILE = /root/valid/src/validate.log
## Summary ##

######################################################################################
# NEW TEST: ## Open a bugzilla
######################################################################################