Bug 815354
Summary: | ami-cef922a7 6.3 i386 us-east-1 | ||
---|---|---|---|
Product: | Cloud Image Validation | Reporter: | mkovacik |
Component: | images | Assignee: | wes hayutin <whayutin> |
Status: | CLOSED NOTABUG | QA Contact: | mkovacik |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | RHEL6.3 | ||
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | i386 | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2012-04-23 15:24:40 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 12:57:47 UTC
IMAGE ID= =====image_validation.sh Mon Apr 23 09:01:19 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-50-16-23-219.compute-1.amazonaws.com with Image Id : ami-cef922a7, is launched with Instance Id : i-e0742187 , Instance Type : c1.medium and Arch : i386 in the Region : us-east-1d The Validate Signature is : bZ97CDrRSnvw7sQ/w1FoWwYOlTbMywMizfuVb7QY1xek10TTxyun5sBUNQdJyFyjjZq6C1U80FJM pb9NPubYECTH4sV5ytsyLhRUaUsbYd/osFGolEZmzA8b7Qru6sLiiulXdiu/Tns5A482cg0ys09B cusa09jp5LTRgCYI6+c= This is a Cloud Access image /root/valid/src ip-10-245-99-172 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: e1886162554c18906df2ecd258aa4794 RETURN CODE: 0 PASS ###################################################################################### # NEW TEST: ## Verify auditd sysconfig ... ###################################################################################### COMMAND: md5sum /etc/sysconfig/auditd | cut -f 1 -d " " RESULT: d4d43637708e30418c30003e212f76fc EXPECTED RESULT: d4d43637708e30418c30003e212f76fc RETURN CODE: 0 PASS ###################################################################################### # 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-50-16-23-219.compute-1.amazonaws.com with Image Id : ami-cef922a7, is launched with Instance Id : i-e0742187 , Instance Type : c1.medium and Arch : i386 in the Region : us-east-1d The Validate Signature is : bZ97CDrRSnvw7sQ/w1FoWwYOlTbMywMizfuVb7QY1xek10TTxyun5sBUNQdJyFyjjZq6C1U80FJM pb9NPubYECTH4sV5ytsyLhRUaUsbYd/osFGolEZmzA8b7Qru6sLiiulXdiu/Tns5A482cg0ys09B cusa09jp5LTRgCYI6+c= 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 1752712 > hwp MEMORY of 1700000 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-245-99-172 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 ###################################################################################### # NEW TEST: ## Verify swap size ... ###################################################################################### parted -l | grep linux-swap | awk '{print $4}' | awk -F'MB' '{print $1}' swap size = 940 COMMAND: test 940 -gt 0 RESULT: EXPECTED RESULT: RETURN CODE: 0 PASS ###################################################################################### # NEW TEST: ## Verify turning on/off swap file ... ###################################################################################### COMMAND: /sbin/swapoff /dev/xvde3 && /sbin/swapon /dev/xvde3 RESULT: EXPECTED RESULT: RETURN CODE: 0 PASS ###################################################################################### # 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: false RESULT: EXPECTED RESULT: RETURN CODE: 1 FAIL2 213 main /root/valid/src/image_validation.sh _err 1 Error: wrong RHEL version detected: 6 ###################################################################################### # 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: nstalled kernel is running## 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.i686 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.i686 RESULT: title RHEL6.3-20120416.0-Server-i386-starter-ec2 (2.6.32-262.el6.i686) kernel /boot/vmlinuz-2.6.32-262.el6.i686 ro root=LABEL=_/ initrd /boot/initramfs-2.6.32-262.el6.i686.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 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/i386/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/i386/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/i386/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/i386/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/i386/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/i386/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/i386/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/i386/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/i386/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/i386/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/i386/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/i386/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/i386/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/i386/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/i386/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/i386/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/i386/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/i386/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/i386/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/i386/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/i386/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/i386/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/i386/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/i386/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/i386/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/i386/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/i386/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/i386/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/i386/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/i386/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 = 14 FAILED TESTS = ## 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 ... nstalled kernel is running## 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 ###################################################################################### IMAGE ID= =====image_validation.sh Mon Apr 23 09:03:39 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-20-12-137.compute-1.amazonaws.com with Image Id : ami-cef922a7, is launched with Instance Id : i-70772217 , Instance Type : t1.micro and Arch : i386 in the Region : us-east-1d The Validate Signature is : MdJHPR2tHsF9GdirknnJ8VzeJitrUtLN4wUHPHM77n61jzGzyQ79Ii/6Eo92lLdnbvbTL5b7c3UW B/CxjtdQFWCwEiv+ARdSlKUUPVfzpBntDQ/HIfdiEWVQonVWhdU+Vcz4Ze0y+H+k2w2UCRC27D+u vdjrOrqai6JWm6q5P7k= This is a Cloud Access image /root/valid/src ip-10-98-59-84 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: e1886162554c18906df2ecd258aa4794 RETURN CODE: 0 PASS ###################################################################################### # NEW TEST: ## Verify auditd sysconfig ... ###################################################################################### COMMAND: md5sum /etc/sysconfig/auditd | cut -f 1 -d " " RESULT: d4d43637708e30418c30003e212f76fc EXPECTED RESULT: d4d43637708e30418c30003e212f76fc RETURN CODE: 0 PASS ###################################################################################### # 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-20-12-137.compute-1.amazonaws.com with Image Id : ami-cef922a7, is launched with Instance Id : i-70772217 , Instance Type : t1.micro and Arch : i386 in the Region : us-east-1d The Validate Signature is : MdJHPR2tHsF9GdirknnJ8VzeJitrUtLN4wUHPHM77n61jzGzyQ79Ii/6Eo92lLdnbvbTL5b7c3UW B/CxjtdQFWCwEiv+ARdSlKUUPVfzpBntDQ/HIfdiEWVQonVWhdU+Vcz4Ze0y+H+k2w2UCRC27D+u vdjrOrqai6JWm6q5P7k= 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 610356 > 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 ip-10-98-59-84 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: false RESULT: EXPECTED RESULT: RETURN CODE: 1 FAIL2 213 main /root/valid/src/image_validation.sh _err 1 Error: wrong RHEL version detected: 6 ###################################################################################### # 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: nstalled kernel is running## 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.i686 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.i686 RESULT: title RHEL6.3-20120416.0-Server-i386-starter-ec2 (2.6.32-262.el6.i686) kernel /boot/vmlinuz-2.6.32-262.el6.i686 ro root=LABEL=_/ initrd /boot/initramfs-2.6.32-262.el6.i686.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 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/i386/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/i386/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/i386/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/i386/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/i386/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/i386/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/i386/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/i386/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/i386/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/i386/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/i386/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/i386/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/i386/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/i386/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/i386/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/i386/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/i386/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/i386/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/i386/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/i386/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/i386/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/i386/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/i386/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/i386/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/i386/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/i386/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/i386/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/i386/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/i386/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/i386/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 = 14 FAILED TESTS = ## 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 ... nstalled kernel is running## 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 ###################################################################################### IMAGE ID= =====image_validation.sh Mon Apr 23 09:05:40 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-22-10-23.compute-1.amazonaws.com with Image Id : ami-cef922a7, is launched with Instance Id : i-7876231f , Instance Type : m1.small and Arch : i386 in the Region : us-east-1c The Validate Signature is : HvYgmYfA3T4O5Z6mUXXFHnQuvNPz8hUEgSuMXn2IMILVAE2t+60DwC2u+68z6iLnayBfX4JCZm3h 8B73ybp+mcBCuVGtEVu0IutZmIIrSaBlrlHEM29RPbSgF4EMoOT45Nkwivb5NSlZ2/iQGI8On2zo SuKiZ/YdvfPqeALN0VQ= This is a Cloud Access image /root/valid/src domU-12-31-39-02-66-06 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: e1886162554c18906df2ecd258aa4794 RETURN CODE: 0 PASS ###################################################################################### # NEW TEST: ## Verify auditd sysconfig ... ###################################################################################### COMMAND: md5sum /etc/sysconfig/auditd | cut -f 1 -d " " RESULT: d4d43637708e30418c30003e212f76fc EXPECTED RESULT: d4d43637708e30418c30003e212f76fc RETURN CODE: 0 PASS ###################################################################################### # 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-22-10-23.compute-1.amazonaws.com with Image Id : ami-cef922a7, is launched with Instance Id : i-7876231f , Instance Type : m1.small and Arch : i386 in the Region : us-east-1c The Validate Signature is : HvYgmYfA3T4O5Z6mUXXFHnQuvNPz8hUEgSuMXn2IMILVAE2t+60DwC2u+68z6iLnayBfX4JCZm3h 8B73ybp+mcBCuVGtEVu0IutZmIIrSaBlrlHEM29RPbSgF4EMoOT45Nkwivb5NSlZ2/iQGI8On2zo SuKiZ/YdvfPqeALN0VQ= 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 1711868 > hwp MEMORY of 1700000 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-02-66-06 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 ###################################################################################### # NEW TEST: ## Verify swap size ... ###################################################################################### parted -l | grep linux-swap | awk '{print $4}' | awk -F'MB' '{print $1}' swap size = 940 COMMAND: test 940 -gt 0 RESULT: EXPECTED RESULT: RETURN CODE: 0 PASS ###################################################################################### # NEW TEST: ## Verify turning on/off swap file ... ###################################################################################### COMMAND: /sbin/swapoff /dev/xvde3 && /sbin/swapon /dev/xvde3 RESULT: EXPECTED RESULT: RETURN CODE: 0 PASS ###################################################################################### # 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: false RESULT: EXPECTED RESULT: RETURN CODE: 1 FAIL2 213 main /root/valid/src/image_validation.sh _err 1 Error: wrong RHEL version detected: 6 ###################################################################################### # 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: nstalled kernel is running## 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.i686 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.i686 RESULT: title RHEL6.3-20120416.0-Server-i386-starter-ec2 (2.6.32-262.el6.i686) kernel /boot/vmlinuz-2.6.32-262.el6.i686 ro root=LABEL=_/ initrd /boot/initramfs-2.6.32-262.el6.i686.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 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/i386/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/i386/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/i386/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/i386/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/i386/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/i386/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/i386/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/i386/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/i386/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/i386/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/i386/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/i386/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/i386/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/i386/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/i386/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/i386/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/i386/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/i386/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/i386/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/i386/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/i386/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/i386/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/i386/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/i386/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/i386/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/i386/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/i386/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/i386/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/i386/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/i386/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 = 14 FAILED TESTS = ## 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 ... nstalled kernel is running## 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 ###################################################################################### IMAGE ID= ami-cef922a7_us-east-1_c1.medium ###### 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: nstalled kernel is running## 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.i686 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.i686 RESULT: title RHEL6.3-20120416.0-Server-i386-starter-ec2 (2.6.32-262.el6.i686) kernel /boot/vmlinuz-2.6.32-262.el6.i686 ro root=LABEL=_/ initrd /boot/initramfs-2.6.32-262.el6.i686.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 1752712 > hwp MEMORY of 1700000 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 = 15 FAILED TESTS = ## 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 ... nstalled kernel is running## Verify latest installed kernel is running ... ## Verify RPMs ... ## install zsh ... ## List available groups.. ## install zsh ... nstalled kernel is running## Verify latest installed kernel is running ... LOG FILE = /root/valid/src/validate.log ## Summary ## ###################################################################################### # NEW TEST: ## Open a bugzilla ###################################################################################### IMAGE ID= ami-cef922a7_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: nstalled kernel is running## 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.i686 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.i686 RESULT: title RHEL6.3-20120416.0-Server-i386-starter-ec2 (2.6.32-262.el6.i686) kernel /boot/vmlinuz-2.6.32-262.el6.i686 ro root=LABEL=_/ initrd /boot/initramfs-2.6.32-262.el6.i686.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 610356 > 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 = 15 FAILED TESTS = ## 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 ... nstalled kernel is running## Verify latest installed kernel is running ... ## Verify RPMs ... ## install zsh ... ## List available groups.. ## install zsh ... nstalled kernel is running## Verify latest installed kernel is running ... LOG FILE = /root/valid/src/validate.log ## Summary ## ###################################################################################### # NEW TEST: ## Open a bugzilla ###################################################################################### IMAGE ID= ami-cef922a7_us-east-1_m1.small ###### 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: nstalled kernel is running## 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.i686 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.i686 RESULT: title RHEL6.3-20120416.0-Server-i386-starter-ec2 (2.6.32-262.el6.i686) kernel /boot/vmlinuz-2.6.32-262.el6.i686 ro root=LABEL=_/ initrd /boot/initramfs-2.6.32-262.el6.i686.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 1711868 > hwp MEMORY of 1700000 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 = 15 FAILED TESTS = ## 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 ... nstalled kernel is running## Verify latest installed kernel is running ... ## Verify RPMs ... ## install zsh ... ## List available groups.. ## install zsh ... nstalled kernel is running## Verify latest installed kernel is running ... LOG FILE = /root/valid/src/validate.log ## Summary ## ###################################################################################### # NEW TEST: ## Open a bugzilla ###################################################################################### Debugging validation tools |