Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 665464 Details for
Bug 888256
ami-877cf1ee RHEL 6.4 x86_64 us-east-1
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
ami-877cf1ee.yaml
ami-877cf1ee.yaml (text/yaml), 127.21 KB, created by
mkovacik
on 2012-12-18 12:09:48 UTC
(
hide
)
Description:
ami-877cf1ee.yaml
Filename:
MIME Type:
Creator:
mkovacik
Created:
2012-12-18 12:09:48 UTC
Size:
127.21 KB
patch
obsolete
>ami: ami-877cf1ee >arch: x86_64 >product: RHEL >region: us-east-1 >result: > cc1.4xlarge: > stage1: > testcase_01_ipv6: > - {command: grep NETWORKING_IPV6=no /etc/sysconfig/network, result: passed} > testcase_02_bash_history: > - {actual: "[ ! -f ~/.bash_history ] && echo 0 || cat ~/.bash_hist \rory | wc\ > \ -l\r\n1\r\n[root@ip-10-17-178-92 ~]# ", command: '[ ! -f ~/.bash_history > ] && echo 0 || cat ~/.bash_history | wc -l', expectation: "\r\n0\r\n", result: failed} > testcase_03_chkconfig: > - {command: chkconfig --list crond, expectation: '3:on', result: passed} > - {command: chkconfig --list iptables, expectation: '3:on', result: passed} > testcase_04_cloud_firstboot: > - {command: chkconfig --list rh-cloud-firstboot, expectation: '3:off', result: passed} > - {command: test -f /etc/sysconfig/rh-cloud-firstboot, result: passed} > - {command: cat /etc/sysconfig/rh-cloud-firstboot, expectation: RUN_FIRSTBOOT=NO, > result: passed} > testcase_05_grub: > - {command: test -h /boot/grub/menu.lst, result: passed} > - {command: readlink -e /boot/grub/menu.lst, expectation: /boot/grub/grub.conf, > result: passed} > testcase_06_inittab: > - {command: 'grep ''^id:'' /etc/inittab', expectation: 'id:3:initdefault', result: passed} > testcase_07_libc6_xen_conf: > - {command: test -f /etc/ld.so.conf.d/libc6-xen.conf, result: passed} > testcase_08_memory: > - {command: 'grep ''MemTotal:'' /proc/meminfo', match: ".*\r\nMemTotal:\\s*([0-9]+) ", > result: passed, value: '[''23146712'']'} > - {command: '[ 23146712 -gt 23000000 ]', result: passed} > testcase_09_nameserver: > - {command: dig clock.redhat.com | grep 66.187.233.4, result: passed} > testcase_10_networking: > - {command: grep '^NETWORKING=yes' /etc/sysconfig/network, result: passed} > - {command: grep '^DEVICE=eth0' /etc/sysconfig/network-scripts/ifcfg-eth0, result: passed} > testcase_11_package_set: > - {command: 'rpm -qa --queryformat ''%{NAME},'' && echo', match: ".*\r\n(.*),\r\ > \n.*", result: passed, value: '[''iwl5150-firmware,cvs,tzdata,iwl6050-firmware,hicolor-icon-theme,latencytop-common,prelink,nss-tools,xml-common,cpuspeed,gnupg2,glibc-common,fprintd-pam,man,libattr,hwloc,nss_compat_ossl,libcom_err,ledmon,SDL,popt,abrt-cli,python-libs,freetype,dstat,python-iniparse,libjpeg-turbo,elinks,python-dmidecode,db4,pinfo,pygobject2,libsepol,pam_passwdqc,python-gudev,shadow-utils,hunspell-en,libproxy-bin,libuuid,valgrind,libreport-compat,sqlite,mlocate,abrt,libtdb,lsof,abrt-tui,btparser,libitm,abrt-addon-kerneloops,libudev,scl-utils,python-nose,libgcrypt,zip,gettext,abrt-libs,eject,pytalloc,pcre,b43-fwcutter,libipa_hbac-python,file-libs,rfkill,rhn-client-tools,libvorbis,rt73usb-firmware,gnutls,lua,zd1211-firmware,libXau,lcms-libs,ql2200-firmware,libpath_utils,libldb,ivtv-firmware,sgpio,cyrus-sasl-gssapi,man-pages,libsss_autofs,checkpolicy,gpg-pubkey,libthai,bc,ethtool,gmp,perl-XML-Parser,m4,dejavu-sans-fonts,numactl,poppler-utils,perl-version,libXext,perl,libXfixes,perl-Test-Harness,libXft,perl-Module-Load-Conditional,libXdamage,perl-Package-Constants,java-1.7.0-openjdk,perl-IO-Zlib,gstreamer-plugins-base,perl-File-Fetch,python-matplotlib,perl-Object-Accessor,policycoreutils,perl-Compress-Raw-Bzip2,initscripts,libusb1,cups,libcollection,usermode,perl-CPAN,nfs-utils,perl-ExtUtils-Embed,lvm2-libs,perl-Parse-CPAN-Meta,rhn-check,perl-Time-HiRes,foomatic-db-ppds,xz-lzma-compat,mesa-dri-drivers,gstreamer,phonon-backend-gstreamer,flac,crda,MAKEDEV,virt-what,db4-utils,oddjob,libnih,cronie-anacron,make,certmonger,libhugetlbfs,ntpdate,groff,samba-winbind,cracklib,selinux-policy,openssl,dracut-kernel,hwdata,hal,plymouth-scripts,systemtap-runtime,qt-sqlite,samba-client,urw-fonts,subscription-manager,fipscheck-lib,openssh-server,ConsoleKit-libs,aic94xx-firmware,at,libgcc,sssd-client,ca-certificates,logrotate,filesystem,rhino,mesa-dri-filesystem,nss,foomatic-db-filesystem,mailx,kernel-firmware,openldap,iso-codes,xmlrpc-c-client,nss-softokn-freebl,curl,glibc,rpm-libs,bash,libuser,libcap,gpgme,info,gpm-libs,libstdc++,libsss_idmap,libxml2,theora-tools,chkconfig,libffi,audit-libs,python,nss-util,newt-python,libpng,libxml2-python,expat,python-ethtool,libtalloc,authconfig,bzip2-libs,python-simplejson,readline,pyOpenSSL,libselinux,rhnlib,glib2,python-rhsm,sed,yum-metadata-parser,dbus-glib,libproxy,libICE,libreport-plugin-reportuploader,libblkid,libreport-plugin-rhtsupport,xmlrpc-c,libreport-python,krb5-libs,abrt-addon-ccpp,tcp_wrappers-libs,libreport-plugin-mailx,libogg,libreport-plugin-logger,xz-libs,libreport-plugin-kerneloops,libidn,python-crypto,libcap-ng,python-setuptools,libgpg-error,numpy,pciutils-libs,python-ldap,libgssglue,python-lxml,procps,python-urlgrabber,libtevent,pytz,grep,python-kerberos,binutils,python-netaddr,pkgconfig,yum,elfutils-libs,pixman,atk,libtasn1,psmisc,cups-libs,libtiff,plymouth-core-libs,sysvinit-tools,libxcb,libmng,liboil,crash,ustr,libgudev1,hesiod,libtheora,libasyncns,keyutils,libini_config,libipa_hbac,libevent,libselinux-utils,blktrace,vim-minimal,pax,jasper-libs,libpcap,avahi-libs,c-ares,libusb,perl-libwww-perl,diffutils,perl-libxml-perl,libtar,dejavu-fonts-common,libedit,busybox,pth,poppler,perl-Pod-Escapes,dhcp-common,perl-Module-Pluggable,perl-Pod-Simple,perl-Locale-Maketext-Simple,perl-ExtUtils-ParseXS,perl-devel,perl-Module-Load,perl-IPC-Cmd,perl-IO-Compress-Base,perl-Compress-Raw-Zlib,perl-Compress-Zlib,perl-Archive-Tar,perl-Term-UI,perl-Archive-Extract,perl-ExtUtils-CBuilder,perl-DBI,perl-Digest-SHA,perl-URI,libgfortran,slang,openjpeg-libs,dmidecode,perl-IO-Compress-Bzip2,perl-DBD-SQLite,perl-Module-Build,perl-parent,perl-CGI,perl-CPANPLUS,perl-HTML-Parser,libXfont,e2fsprogs,tmpwatch,gstreamer-tools,iw,hal-libs,tcp_wrappers,eggdbus,libutempter,patch,device-mapper-persistent-data,portreserve,upstart,ed,time,dash,cdparanoia-libs,ncurses,less,gzip,cracklib-dicts,pam,fontconfig,alsa-lib,qt,libssh2,xdg-utils,rpcbind,pciutils,libsndfile,ghostscript-fonts,mysql-libs,fipscheck,bind-utils,ConsoleKit,pam_krb5,iwl6000-firmware,biosdevname,bfa-firmware,iwl6000g2a-firmware,readahead,dhclient,microcode_ctl,quota,acpid,seekwatcher,java-1.6.0-openjdk,perl-XML-Grove,tcpdump,yum-plugin-security,cas,iotop,grub,perf,gdb,man-pages-overrides,Red_Hat_Enterprise_Linux-Release_Notes-6-en-US,usbutils,perl-Crypt-SSLeay,psacct,audit,perl-core,perl-XML-Dumper,irqbalance,oprofile,efibootmgr,latencytop-tui,ltrace,rsync,nano,nfs4-acl-tools,mcelog,mtr,bridge-utils,libtopology,traceroute,dosfstools,latrace,trace-cmd,vconfig,atmel-firmware,ql23xx-firmware,ql2500-firmware,xorg-x11-drv-ati-firmware,rootfiles,iwl5000-firmware,redhat-indexhtml,ipw2100-firmware,iwl3945-firmware,iwl4965-firmware,ipw2200-firmware,gpg-pubkey,libX11,libXrender,libXi,libXtst,libXrandr,pango,pulseaudio-libs,libXt,giflib,qt3,libXv,libXxf86vm,gtk2,libfprint,redhat-release-server,iptables,iputils,util-linux-ng,libdrm,device-mapper-libs,device-mapper-event-libs,device-mapper-event,nfs-utils-lib,openssh,dmraid,rhnsd,yum-rhn-plugin,rh-amazon-rhui-client,cryptsetup-luks,foomatic-db,redhat-lsb-printing,mesa-libGL,mesa-libGLU,qt-x11,plymouth,wireless-tools,mdadm,cyrus-sasl,sssd,oddjob-mkhomedir,crontabs,cronie,redhat-lsb,yp-tools,libcgroup,ntp,samba-common,ipa-python,system-config-firewall-base,kbd-misc,dracut,kernel,hal-info,pm-utils,pcmciautils,kexec-tools,system-config-firewall-tui,cifs-utils,sysstat,system-config-network-tui,lvm2,openssh-clients,parted,iwl1000-firmware,krb5-workstation,setup,b43-openfwwf,jline,tzdata-java,iwl100-firmware,nss-sysinit,basesystem,smartmontools,libcurl,ncurses-base,rng-tools,rpm,ncurses-libs,latencytop,passwd,zlib,perl-XML-Twig,hdparm,dbus-libs,yum-utils,mingetty,nspr,libhugetlbfs-utils,rpm-python,libacl,vim-enhanced,dbus-python,gawk,sudo,m2crypto,elfutils-libelf,alsa-utils,python-dateutil,gamin,tcsh,sos,cyrus-sasl-lib,ntsysv,libproxy-python,libSM,crash-gcore-command,libreport,keyutils-libs,cyrus-sasl-plain,abrt-addon-python,findutils,unzip,libreport-cli,which,attr,python-paramiko,dbus,powertop,python-krbV,libnl,strace,python-pycurl,bzip2,setserial,python-nss,cpio,crash-trace-command,pygpgme,libtirpc,rdate,libdhash,tar,rt61pci-firmware,samba4-libs,e2fsprogs-libs,libertas-usb8388-firmware,libvisual,file,ql2400-firmware,libsemanage,xz,words,libref_array,nss-softokn,ql2100-firmware,libaio,net-tools,sg3_utils-libs,acl,mailcap,libss,fontpackages-filesystem,libfontenc,poppler-data,gdbm,libX11-common,perl-libs,cairo,perl-Params-Check,libXcursor,perl-ExtUtils-MakeMaker,libXinerama,perl-Log-Message,ghostscript,perl-IO-Compress-Zlib,pycairo,perl-Log-Message-Simple,libXcomposite,perl-Test-Simple,fprintd,perl-Module-CoreList,iproute,perl-Module-Loaded,udev,newt,device-mapper,atlas,kpartx,perl-DBIx-Simple,dmraid-events,perl-Time-Piece,rhn-setup,perl-HTML-Tagset,cryptsetup-luks-libs,xorg-x11-font-utils,foomatic,elfutils,mesa-dri1-drivers,libxslt,redhat-lsb-graphics,grubby,python-iwlib,desktop-file-utils,postfix,pinentry,rsyslog,hunspell,redhat-lsb-core,libgomp,ypbind,vim-common,samba-winbind-clients,coreutils-libs,iptables-ipv6,coreutils,kbd,module-init-tools,autofs,jpackage-utils,ipa-client,redhat-logos,selinux-policy-targeted,libpciaccess,numad,wget,rh-amazon-rhui-client-beta,bind-libs,setuptool,polkit'']'} > - {comment: 'RHEL must not lack packages: set([''nc'', ''cyrus-sasl-md5'', ''sysfsutils'', > ''neon'', ''stunnel'', ''man-pages-fr'', ''tcl'', ''gd'', ''mutt'', ''pam_pkcs11'', > ''libXaw'', ''pakchois'', ''krb5-pkinit-openssl'', ''nss_db'', ''postgresql-libs'', > ''nmap'', ''postgresql-plpython'', ''lslk'', ''compat-db43'', ''abrt-plugin-sosreport'', > ''ksh'', ''xterm'', ''libnfnetlink'', ''apr-util'', ''man-pages-es'', ''kernel-devel'', > ''ppl'', ''aspell'', ''libjpeg'', ''compat-db42'', ''mgetty'', ''net-snmp-libs'', > ''httpd-tools'', ''abrt-plugin-logger'', ''udftools'', ''expect'', ''mysql-connector-odbc'', > ''libgcj'', ''libicu'', ''ftp'', ''man-pages-pl'', ''finger'', ''postgresql-odbc'', > ''nss-pam-ldapd'', ''screen'', ''pcsc-lite-libs'', ''xinetd'', ''conman'', > ''sinjdoc'', ''abrt-plugin-rhtsupport'', ''symlinks'', ''postgresql'', ''dialog'', > ''libsysfs'', ''compat-db'', ''apr'', ''pam_ldap'', ''java-1.5.0-gcj'', > ''man-pages-ja'', ''mtools'', ''subversion'', ''httpd'', ''libnetfilter_conntrack'', > ''tokyocabinet'', ''urlview'', ''iptstate'', ''mod_perl'', ''cloog-ppl'', > ''telnet'', ''apr-util-ldap'', ''libXp'', ''libXpm'', ''postgresql-server'', > ''kernel-headers'', ''unix2dos'', ''man-pages-it'', ''tree'', ''mod_authz_ldap'', > ''postgresql-jdbc'', ''nscd'', ''compat-libstdc++-33'', ''MySQL-python'', > ''perl-BSD-Resource'', ''openldap-clients'', ''jwhois'', ''libart_lgpl'', > ''glibc-devel'', ''gcc'', ''mod_ssl'', ''net-snmp'', ''libXmu'', ''webalizer'', > ''perl-Date-Manip'', ''java_cup'', ''man-pages-ru'', ''man-pages-cs'', ''man-pages-ko'', > ''unixODBC'', ''lm_sensors-libs'', ''ncompress'', ''libtool-ltdl'', ''dos2unix'', > ''glibc-headers'', ''logwatch'', ''cpp'', ''openswan'', ''mpfr''])', result: fail} > testcase_12_passwd_group: > - {command: 'grep ''^root:x:0:0:root:/root:/bin/bash'' /etc/passwd', result: passed} > - {command: 'grep ''^nobody:x:99:99:Nobody:/:/sbin/nologin'' /etc/passwd', result: passed} > - {command: 'grep ''^sshd:x:74:74:Privilege-separated SSH:/var/empty/sshd:/sbin/nologin'' > /etc/passwd', result: passed} > - {command: 'grep ''^root:x:0:'' /etc/group', result: passed} > - {command: 'grep ''^daemon:x:2:bin,daemon'' /etc/group', result: passed} > - {command: 'grep ''^bin:x:1:bin,daemon'' /etc/group', result: passed} > testcase_13_resize2fs: > - {comment: resize2fs is not applicable for hvm instances, result: passed} > testcase_14_host_details: > - {command: '[ ! -z "`curl http://169.254.169.254/latest/dynamic/instance-identity/signature`" > ]', result: passed} > - {command: 'curl http://169.254.169.254/latest/dynamic/instance-identity/document', > match: '.*({.*}).*', result: passed, value: '[''{\r\n "instanceId" : "i-8289f7fc",\r\n "billingProducts" > : [ "bp-63a5400a" ],\r\n "version" : "2010-08-31",\r\n "accountId" : "567014786890",\r\n "instanceType" > : "cc1.4xlarge",\r\n "architecture" : "x86_64",\r\n "kernelId" : null,\r\n "ramdiskId" > : null,\r\n "pendingTime" : "2012-12-18T09:58:54Z",\r\n "imageId" : "ami-877cf1ee",\r\n "availabilityZone" > : "us-east-1a",\r\n "devpayProductCodes" : null,\r\n "privateIp" : "10.17.178.92",\r\n "region" > : "us-east-1"\r\n}'']'} > - {command: '[ "ami-877cf1ee" = "ami-877cf1ee" ]', result: passed} > - {command: '[ "x86_64" = "x86_64" ]', result: passed} > - {command: '[ "us-east-1" = "us-east-1" ]', result: passed} > - {command: '[ "bp-63a5400a" = "bp-63a5400a" ]', result: passed} > testcase_15_rhel_version: > - {command: 'rpm -q --qf ''%{RELEASE} > > '' --whatprovides redhat-release', match: ".*\r\n([0-9]\\.[0-9]\\..*)\r\n\ > .*", result: passed, value: '[''6.4.0.3.el6'']'} > - {actual: '1', command: '[ ''6.4-beta'' = ''6.4.0.3.'' ]', result: failed} > testcase_16_selinux: > - {command: getenforce, expectation: "\r\nEnforcing\r\n", result: passed} > - {command: grep '^SELINUX=enforcing' /etc/sysconfig/selinux, result: passed} > - {command: grep '^SELINUXTYPE=targeted' /etc/sysconfig/selinux, result: passed} > - {command: setenforce Permissive && getenforce, expectation: "\r\nPermissive\r\ > \n", result: passed} > - {command: setenforce Enforcing && getenforce, expectation: "\r\nEnforcing\r\ > \n", result: passed} > testcase_17_shells: > - {command: grep 'bin/bash$' /etc/shells, result: passed} > - {command: grep 'bin/nologin$' /etc/shells, result: passed} > testcase_18_sshd: > - {command: 'chkconfig --list sshd | grep ''0:off[[:space:]]*1:off[[:space:]]*2:on[[:space:]]*3:on[[:space:]]*4:on[[:space:]]*5:on[[:space:]]*6:off''', > result: passed} > - {command: service sshd status | grep running, result: passed} > - {command: grep 'PasswordAuthentication no' /etc/ssh/sshd_config, result: passed} > testcase_19_rhn_system_id: > - {command: '[ ! -f /etc/sysconfig/rhn/systemid ]', result: passed} > testcase_20_auditd: > - {command: md5sum /etc/audit/audit.rules | cut -f 1 -d ' ', expectation: f9869e1191838c461f5b9051c78a638d, > result: passed} > - {command: md5sum /etc/audit/auditd.conf | cut -f 1 -d ' ', expectation: e1886162554c18906df2ecd258aa4794, > result: passed} > - {command: md5sum /etc/sysconfig/auditd | cut -f 1 -d ' ', expectation: d4d43637708e30418c30003e212f76fc, > result: passed} > - {command: chkconfig --list auditd, expectation: '3:on.*5:on', result: passed} > testcase_21_disk_size_format: > - {command: 'mount | grep ''^/dev'' | awk ''{print $1}''', result: passed, value: /dev/xvda1} > - {command: 'echo ''###'' ;mount | grep ''^/'' | awk ''{print $3}''; echo ''###''', > match: ".*\r\n###\r\n(.*)\r\n###\r\n.*", result: passed, value: '[''/'']'} > - {command: 'echo ''###'' ;mount | grep ''^/'' | awk ''{print $5}''; echo ''###''', > match: ".*\r\n###\r\n(.*)\r\n###\r\n.*", result: passed, value: '[''ext4'']'} > - {command: '[ `df -k / | awk ''{ print $2 }'' | tail -n 1` -gt 3937219 ]', > result: passed} > - {command: '[ ext4 = ext4 ]', result: passed} > testcase_22_gpg_keys: > - {command: grep '^gpgcheck=' /etc/yum.repos.d/redhat-*.repo | cut -d\= -f2 > | sort -uf | tr -d ' ', expectation: "\r\n1\r\n", result: passed} > - {command: rpm -qa gpg-pubkey* | wc -l, expectation: "\r\n2\r\n", result: passed} > - {command: rpm -q gpg-pubkey-2fa658e0-45700c69, result: passed} > - {command: rpm -q gpg-pubkey-fd431d51-4ae0493b, result: passed} > testcase_23_syslog: > - {command: md5sum /etc/rsyslog.conf | cut -f 1 -d ' ', result: passed, value: 8b91b32300134e98ef4aee632ed61e21} > - {command: '[ 8b91b32300134e98ef4aee632ed61e21 = 8b91b32300134e98ef4aee632ed61e21 > ]', result: passed} > testcase_24_yum_plugin: > - {command: 'grep ''^enabled[[:space:]]*=[[:space:]]*[^0 ]'' /etc/yum/pluginconf.d/rhnplugin.conf', > result: passed} > testcase_26_verify_rpms: > - {command: rpm -Va --nomtime --nosize --nomd5 | sort -fu | wc -l, result: passed, > value: '5'} > - {command: 'rpm -q --queryformat ''%{RELEASE} > > '' redhat-release-server | cut -d. -f1,2', result: passed, value: '6.4'} > - {command: '[ 5 = 5 ]', result: passed} > - {actual: '1', command: '[ 6.4 = 6.4-beta ]', result: failed} > - {command: 'rpm -qa --queryformat ''%{PACKAGER} > > '' | sort -u | grep -v ''Red Hat, Inc.''', result: passed, value: "Lai Jiangshan\ > \ <laijs@cn.fujitsu.com>\r\n(none)"} > testcase_27_yum_repos: > - {command: ls /etc/yum.repos.d/*.repo | wc -l, result: passed, value: '5'} > - {command: ls /etc/yum.repos.d/redhat*.repo | wc -l, result: passed, value: '4'} > - {command: ls /etc/yum.repos.d/rhel*.repo | wc -l, result: passed, value: '1'} > - {actual: '1', command: '[ 5 = 6 ]', result: failed} > - {command: '[ 4 = 4 ]', result: passed} > - {actual: '1', command: '[ 1 = 0 ]', result: failed} > testcase_28_iptables: > - {command: 'service iptables status | grep :22 | grep ACCEPT | wc -l', expectation: "\r\n\ > 1\r\n", result: passed} > - {command: 'service iptables status | grep RELATED,ESTABLISHED | grep ACCEPT > | wc -l', expectation: "\r\n1\r\n", result: passed} > - {command: service iptables status | grep REJECT | grep all | grep 0.0.0.0/0 > | grep icmp-host-prohibited | wc -l, expectation: "\r\n2\r\n", result: passed} > testcase_29_swap_file: > - {comment: no swap for this instance type, result: passed} > testcase_30_rhn_certificates: > - {command: rpm -ql rh-amazon-rhui-client | egrep '.*\.(pem|crt)', result: passed, > value: "/etc/pki/entitlement/ca.crt\r\n/etc/pki/entitlement/cdn.redhat.com-chain.crt\r\ > \n/etc/pki/entitlement/product/content-rhel6.crt\r\n/etc/pki/entitlement/product/rhui-client-config-server-6.crt"} > - {command: openssl x509 -in /etc/pki/entitlement/ca.crt -noout -dates | grep > notAfter, result: passed, value: 'notAfter=Nov 30 19:46:02 2017 GMT'} > - {comment: '(/etc/pki/entitlement/ca.crt).notAfter=2017-11-30 19:46:02; expecting: > 2020-11-10 00:00:00', result: failed} > - {command: openssl x509 -in /etc/pki/entitlement/cdn.redhat.com-chain.crt -noout > -dates | grep notAfter, result: passed, value: 'notAfter=Mar 13 11:24:54 > 2030 GMT'} > - {comment: '(/etc/pki/entitlement/cdn.redhat.com-chain.crt).notAfter=2030-03-13 > 11:24:54; expecting: 2020-11-10 00:00:00', result: passed} > - {command: openssl x509 -in /etc/pki/entitlement/product/content-rhel6.crt > -noout -dates | grep notAfter, result: passed, value: 'notAfter=Nov 30 18:31:28 > 2020 GMT'} > - {comment: '(/etc/pki/entitlement/product/content-rhel6.crt).notAfter=2020-11-30 > 18:31:28; expecting: 2020-11-10 00:00:00', result: passed} > - {command: openssl x509 -in /etc/pki/entitlement/product/rhui-client-config-server-6.crt > -noout -dates | grep notAfter, result: passed, value: 'notAfter=Nov 30 18:38:07 > 2020 GMT'} > - {comment: '(/etc/pki/entitlement/product/rhui-client-config-server-6.crt).notAfter=2020-11-30 > 18:38:07; expecting: 2020-11-10 00:00:00', result: passed} > testcase_31_subscription_management: > - {command: yum --disablerepo="*" repolist | grep -i subscription-manager, result: passed} > - {command: yum --enableplugin=subscription-manager --disablerepo="*" repolist, > expectation: 'Loaded plugins:[^ > > ]*subscription-manager', result: passed} > - {command: subscription-manager list, expectation: 'Status:\s*Not.Subscribed', > result: passed} > testcase_50_yum_package_install: > - {command: yum repolist, result: passed} > - {command: yum search zsh, result: passed} > - {command: yum -y install zsh, result: passed} > - {command: 'rpm -q --queryformat ''%{NAME}'' zsh', result: passed} > - {command: rpm -e zsh, result: passed} > testcase_55_yum_group_install: > - {command: yum -y groupinstall 'Development tools', result: passed} > testcase_60_yum_update: > - {command: yum -y update, result: passed} > testcase_99_reboot: > - {command: reboot, result: passed} > stage2: > testcase_08_memory: > - {command: 'grep ''MemTotal:'' /proc/meminfo', match: ".*\r\nMemTotal:\\s*([0-9]+) ", > result: passed, value: '[''23146712'']'} > - {command: '[ 23146712 -gt 23000000 ]', result: passed} > testcase_25_uname: > - {command: uname -r, result: passed, value: 2.6.32-343.el6.x86_64} > - {command: 'rpm -q --queryformat ''%{VERSION}-%{RELEASE}.%{ARCH} > > '' kernel | sort | tail -1', result: passed, value: 2.6.32-343.el6.x86_64} > - {command: uname -o, result: passed, value: GNU/Linux} > - {command: '[ 2.6.32-343.el6.x86_64 = 2.6.32-343.el6.x86_64 ]', result: passed} > - {command: '[ GNU/Linux = ''GNU/Linux'' ]', result: passed} > - {command: grep UPDATEDEFAULT=yes /etc/sysconfig/kernel, result: passed} > - {command: grep DEFAULTKERNEL=kernel /etc/sysconfig/kernel, result: passed} > cc2.8xlarge: > stage1: > testcase_01_ipv6: > - {command: grep NETWORKING_IPV6=no /etc/sysconfig/network, result: passed} > testcase_02_bash_history: > - {actual: "[ ! -f ~/.bash_history ] && echo 0 || cat ~/.bash_hi \rstory | wc\ > \ -l\r\n1\r\n[root@ip-10-140-130-146 ~]# ", command: '[ ! -f ~/.bash_history > ] && echo 0 || cat ~/.bash_history | wc -l', expectation: "\r\n0\r\n", result: failed} > testcase_03_chkconfig: > - {command: chkconfig --list crond, expectation: '3:on', result: passed} > - {command: chkconfig --list iptables, expectation: '3:on', result: passed} > testcase_04_cloud_firstboot: > - {command: chkconfig --list rh-cloud-firstboot, expectation: '3:off', result: passed} > - {command: test -f /etc/sysconfig/rh-cloud-firstboot, result: passed} > - {command: cat /etc/sysconfig/rh-cloud-firstboot, expectation: RUN_FIRSTBOOT=NO, > result: passed} > testcase_05_grub: > - {command: test -h /boot/grub/menu.lst, result: passed} > - {command: readlink -e /boot/grub/menu.lst, expectation: /boot/grub/grub.conf, > result: passed} > testcase_06_inittab: > - {command: 'grep ''^id:'' /etc/inittab', expectation: 'id:3:initdefault', result: passed} > testcase_07_libc6_xen_conf: > - {command: test -f /etc/ld.so.conf.d/libc6-xen.conf, result: passed} > testcase_08_memory: > - {command: 'grep ''MemTotal:'' /proc/meminfo', match: ".*\r\nMemTotal:\\s*([0-9]+) ", > result: passed, value: '[''62533732'']'} > - {command: '[ 62533732 -gt 60500000 ]', result: passed} > testcase_09_nameserver: > - {command: dig clock.redhat.com | grep 66.187.233.4, result: passed} > testcase_10_networking: > - {command: grep '^NETWORKING=yes' /etc/sysconfig/network, result: passed} > - {command: grep '^DEVICE=eth0' /etc/sysconfig/network-scripts/ifcfg-eth0, result: passed} > testcase_11_package_set: > - {command: 'rpm -qa --queryformat ''%{NAME},'' && echo', match: ".*\r\n(.*),\r\ > \n.*", result: passed, value: '[''iwl5150-firmware,cvs,tzdata,iwl6050-firmware,hicolor-icon-theme,latencytop-common,prelink,nss-tools,xml-common,cpuspeed,gnupg2,glibc-common,fprintd-pam,man,libattr,hwloc,nss_compat_ossl,libcom_err,ledmon,SDL,popt,abrt-cli,python-libs,freetype,dstat,python-iniparse,libjpeg-turbo,elinks,python-dmidecode,db4,pinfo,pygobject2,libsepol,pam_passwdqc,python-gudev,shadow-utils,hunspell-en,libproxy-bin,libuuid,valgrind,libreport-compat,sqlite,mlocate,abrt,libtdb,lsof,abrt-tui,btparser,libitm,abrt-addon-kerneloops,libudev,scl-utils,python-nose,libgcrypt,zip,gettext,abrt-libs,eject,pytalloc,pcre,b43-fwcutter,libipa_hbac-python,file-libs,rfkill,rhn-client-tools,libvorbis,rt73usb-firmware,gnutls,lua,zd1211-firmware,libXau,lcms-libs,ql2200-firmware,libpath_utils,libldb,ivtv-firmware,sgpio,cyrus-sasl-gssapi,man-pages,libsss_autofs,checkpolicy,gpg-pubkey,libthai,bc,ethtool,gmp,perl-XML-Parser,m4,dejavu-sans-fonts,numactl,poppler-utils,perl-version,libXext,perl,libXfixes,perl-Test-Harness,libXft,perl-Module-Load-Conditional,libXdamage,perl-Package-Constants,java-1.7.0-openjdk,perl-IO-Zlib,gstreamer-plugins-base,perl-File-Fetch,python-matplotlib,perl-Object-Accessor,policycoreutils,perl-Compress-Raw-Bzip2,initscripts,libusb1,cups,libcollection,usermode,perl-CPAN,nfs-utils,perl-ExtUtils-Embed,lvm2-libs,perl-Parse-CPAN-Meta,rhn-check,perl-Time-HiRes,foomatic-db-ppds,xz-lzma-compat,mesa-dri-drivers,gstreamer,phonon-backend-gstreamer,flac,crda,MAKEDEV,virt-what,db4-utils,oddjob,libnih,cronie-anacron,make,certmonger,libhugetlbfs,ntpdate,groff,samba-winbind,cracklib,selinux-policy,openssl,dracut-kernel,hwdata,hal,plymouth-scripts,systemtap-runtime,qt-sqlite,samba-client,urw-fonts,subscription-manager,fipscheck-lib,openssh-server,ConsoleKit-libs,aic94xx-firmware,at,libgcc,sssd-client,ca-certificates,logrotate,filesystem,rhino,mesa-dri-filesystem,nss,foomatic-db-filesystem,mailx,kernel-firmware,openldap,iso-codes,xmlrpc-c-client,nss-softokn-freebl,curl,glibc,rpm-libs,bash,libuser,libcap,gpgme,info,gpm-libs,libstdc++,libsss_idmap,libxml2,theora-tools,chkconfig,libffi,audit-libs,python,nss-util,newt-python,libpng,libxml2-python,expat,python-ethtool,libtalloc,authconfig,bzip2-libs,python-simplejson,readline,pyOpenSSL,libselinux,rhnlib,glib2,python-rhsm,sed,yum-metadata-parser,dbus-glib,libproxy,libICE,libreport-plugin-reportuploader,libblkid,libreport-plugin-rhtsupport,xmlrpc-c,libreport-python,krb5-libs,abrt-addon-ccpp,tcp_wrappers-libs,libreport-plugin-mailx,libogg,libreport-plugin-logger,xz-libs,libreport-plugin-kerneloops,libidn,python-crypto,libcap-ng,python-setuptools,libgpg-error,numpy,pciutils-libs,python-ldap,libgssglue,python-lxml,procps,python-urlgrabber,libtevent,pytz,grep,python-kerberos,binutils,python-netaddr,pkgconfig,yum,elfutils-libs,pixman,atk,libtasn1,psmisc,cups-libs,libtiff,plymouth-core-libs,sysvinit-tools,libxcb,libmng,liboil,crash,ustr,libgudev1,hesiod,libtheora,libasyncns,keyutils,libini_config,libipa_hbac,libevent,libselinux-utils,blktrace,vim-minimal,pax,jasper-libs,libpcap,avahi-libs,c-ares,libusb,perl-libwww-perl,diffutils,perl-libxml-perl,libtar,dejavu-fonts-common,libedit,busybox,pth,poppler,perl-Pod-Escapes,dhcp-common,perl-Module-Pluggable,perl-Pod-Simple,perl-Locale-Maketext-Simple,perl-ExtUtils-ParseXS,perl-devel,perl-Module-Load,perl-IPC-Cmd,perl-IO-Compress-Base,perl-Compress-Raw-Zlib,perl-Compress-Zlib,perl-Archive-Tar,perl-Term-UI,perl-Archive-Extract,perl-ExtUtils-CBuilder,perl-DBI,perl-Digest-SHA,perl-URI,libgfortran,slang,openjpeg-libs,dmidecode,perl-IO-Compress-Bzip2,perl-DBD-SQLite,perl-Module-Build,perl-parent,perl-CGI,perl-CPANPLUS,perl-HTML-Parser,libXfont,e2fsprogs,tmpwatch,gstreamer-tools,iw,hal-libs,tcp_wrappers,eggdbus,libutempter,patch,device-mapper-persistent-data,portreserve,upstart,ed,time,dash,cdparanoia-libs,ncurses,less,gzip,cracklib-dicts,pam,fontconfig,alsa-lib,qt,libssh2,xdg-utils,rpcbind,pciutils,libsndfile,ghostscript-fonts,mysql-libs,fipscheck,bind-utils,ConsoleKit,pam_krb5,iwl6000-firmware,biosdevname,bfa-firmware,iwl6000g2a-firmware,readahead,dhclient,microcode_ctl,quota,acpid,seekwatcher,java-1.6.0-openjdk,perl-XML-Grove,tcpdump,yum-plugin-security,cas,iotop,grub,perf,gdb,man-pages-overrides,Red_Hat_Enterprise_Linux-Release_Notes-6-en-US,usbutils,perl-Crypt-SSLeay,psacct,audit,perl-core,perl-XML-Dumper,irqbalance,oprofile,efibootmgr,latencytop-tui,ltrace,rsync,nano,nfs4-acl-tools,mcelog,mtr,bridge-utils,libtopology,traceroute,dosfstools,latrace,trace-cmd,vconfig,atmel-firmware,ql23xx-firmware,ql2500-firmware,xorg-x11-drv-ati-firmware,rootfiles,iwl5000-firmware,redhat-indexhtml,ipw2100-firmware,iwl3945-firmware,iwl4965-firmware,ipw2200-firmware,gpg-pubkey,libX11,libXrender,libXi,libXtst,libXrandr,pango,pulseaudio-libs,libXt,giflib,qt3,libXv,libXxf86vm,gtk2,libfprint,redhat-release-server,iptables,iputils,util-linux-ng,libdrm,device-mapper-libs,device-mapper-event-libs,device-mapper-event,nfs-utils-lib,openssh,dmraid,rhnsd,yum-rhn-plugin,rh-amazon-rhui-client,cryptsetup-luks,foomatic-db,redhat-lsb-printing,mesa-libGL,mesa-libGLU,qt-x11,plymouth,wireless-tools,mdadm,cyrus-sasl,sssd,oddjob-mkhomedir,crontabs,cronie,redhat-lsb,yp-tools,libcgroup,ntp,samba-common,ipa-python,system-config-firewall-base,kbd-misc,dracut,kernel,hal-info,pm-utils,pcmciautils,kexec-tools,system-config-firewall-tui,cifs-utils,sysstat,system-config-network-tui,lvm2,openssh-clients,parted,iwl1000-firmware,krb5-workstation,setup,b43-openfwwf,jline,tzdata-java,iwl100-firmware,nss-sysinit,basesystem,smartmontools,libcurl,ncurses-base,rng-tools,rpm,ncurses-libs,latencytop,passwd,zlib,perl-XML-Twig,hdparm,dbus-libs,yum-utils,mingetty,nspr,libhugetlbfs-utils,rpm-python,libacl,vim-enhanced,dbus-python,gawk,sudo,m2crypto,elfutils-libelf,alsa-utils,python-dateutil,gamin,tcsh,sos,cyrus-sasl-lib,ntsysv,libproxy-python,libSM,crash-gcore-command,libreport,keyutils-libs,cyrus-sasl-plain,abrt-addon-python,findutils,unzip,libreport-cli,which,attr,python-paramiko,dbus,powertop,python-krbV,libnl,strace,python-pycurl,bzip2,setserial,python-nss,cpio,crash-trace-command,pygpgme,libtirpc,rdate,libdhash,tar,rt61pci-firmware,samba4-libs,e2fsprogs-libs,libertas-usb8388-firmware,libvisual,file,ql2400-firmware,libsemanage,xz,words,libref_array,nss-softokn,ql2100-firmware,libaio,net-tools,sg3_utils-libs,acl,mailcap,libss,fontpackages-filesystem,libfontenc,poppler-data,gdbm,libX11-common,perl-libs,cairo,perl-Params-Check,libXcursor,perl-ExtUtils-MakeMaker,libXinerama,perl-Log-Message,ghostscript,perl-IO-Compress-Zlib,pycairo,perl-Log-Message-Simple,libXcomposite,perl-Test-Simple,fprintd,perl-Module-CoreList,iproute,perl-Module-Loaded,udev,newt,device-mapper,atlas,kpartx,perl-DBIx-Simple,dmraid-events,perl-Time-Piece,rhn-setup,perl-HTML-Tagset,cryptsetup-luks-libs,xorg-x11-font-utils,foomatic,elfutils,mesa-dri1-drivers,libxslt,redhat-lsb-graphics,grubby,python-iwlib,desktop-file-utils,postfix,pinentry,rsyslog,hunspell,redhat-lsb-core,libgomp,ypbind,vim-common,samba-winbind-clients,coreutils-libs,iptables-ipv6,coreutils,kbd,module-init-tools,autofs,jpackage-utils,ipa-client,redhat-logos,selinux-policy-targeted,libpciaccess,numad,wget,rh-amazon-rhui-client-beta,bind-libs,setuptool,polkit'']'} > - {comment: 'RHEL must not lack packages: set([''nc'', ''cyrus-sasl-md5'', ''sysfsutils'', > ''neon'', ''stunnel'', ''man-pages-fr'', ''tcl'', ''gd'', ''mutt'', ''pam_pkcs11'', > ''libXaw'', ''pakchois'', ''krb5-pkinit-openssl'', ''nss_db'', ''postgresql-libs'', > ''nmap'', ''postgresql-plpython'', ''lslk'', ''compat-db43'', ''abrt-plugin-sosreport'', > ''ksh'', ''xterm'', ''libnfnetlink'', ''apr-util'', ''man-pages-es'', ''kernel-devel'', > ''ppl'', ''aspell'', ''libjpeg'', ''compat-db42'', ''mgetty'', ''net-snmp-libs'', > ''httpd-tools'', ''abrt-plugin-logger'', ''udftools'', ''expect'', ''mysql-connector-odbc'', > ''libgcj'', ''libicu'', ''ftp'', ''man-pages-pl'', ''finger'', ''postgresql-odbc'', > ''nss-pam-ldapd'', ''screen'', ''pcsc-lite-libs'', ''xinetd'', ''conman'', > ''sinjdoc'', ''abrt-plugin-rhtsupport'', ''symlinks'', ''postgresql'', ''dialog'', > ''libsysfs'', ''compat-db'', ''apr'', ''pam_ldap'', ''java-1.5.0-gcj'', > ''man-pages-ja'', ''mtools'', ''subversion'', ''httpd'', ''libnetfilter_conntrack'', > ''tokyocabinet'', ''urlview'', ''iptstate'', ''mod_perl'', ''cloog-ppl'', > ''telnet'', ''apr-util-ldap'', ''libXp'', ''libXpm'', ''postgresql-server'', > ''kernel-headers'', ''unix2dos'', ''man-pages-it'', ''tree'', ''mod_authz_ldap'', > ''postgresql-jdbc'', ''nscd'', ''compat-libstdc++-33'', ''MySQL-python'', > ''perl-BSD-Resource'', ''openldap-clients'', ''jwhois'', ''libart_lgpl'', > ''glibc-devel'', ''gcc'', ''mod_ssl'', ''net-snmp'', ''libXmu'', ''webalizer'', > ''perl-Date-Manip'', ''java_cup'', ''man-pages-ru'', ''man-pages-cs'', ''man-pages-ko'', > ''unixODBC'', ''lm_sensors-libs'', ''ncompress'', ''libtool-ltdl'', ''dos2unix'', > ''glibc-headers'', ''logwatch'', ''cpp'', ''openswan'', ''mpfr''])', result: fail} > testcase_12_passwd_group: > - {command: 'grep ''^root:x:0:0:root:/root:/bin/bash'' /etc/passwd', result: passed} > - {command: 'grep ''^nobody:x:99:99:Nobody:/:/sbin/nologin'' /etc/passwd', result: passed} > - {command: 'grep ''^sshd:x:74:74:Privilege-separated SSH:/var/empty/sshd:/sbin/nologin'' > /etc/passwd', result: passed} > - {command: 'grep ''^root:x:0:'' /etc/group', result: passed} > - {command: 'grep ''^daemon:x:2:bin,daemon'' /etc/group', result: passed} > - {command: 'grep ''^bin:x:1:bin,daemon'' /etc/group', result: passed} > testcase_13_resize2fs: > - {comment: resize2fs is not applicable for hvm instances, result: passed} > testcase_14_host_details: > - {command: '[ ! -z "`curl http://169.254.169.254/latest/dynamic/instance-identity/signature`" > ]', result: passed} > - {command: 'curl http://169.254.169.254/latest/dynamic/instance-identity/document', > match: '.*({.*}).*', result: passed, value: '[''{\r\n "instanceId" : "i-7e86f800",\r\n "billingProducts" > : [ "bp-63a5400a" ],\r\n "version" : "2010-08-31",\r\n "accountId" : "567014786890",\r\n "instanceType" > : "cc2.8xlarge",\r\n "architecture" : "x86_64",\r\n "kernelId" : null,\r\n "ramdiskId" > : null,\r\n "pendingTime" : "2012-12-18T09:58:55Z",\r\n "imageId" : "ami-877cf1ee",\r\n "availabilityZone" > : "us-east-1c",\r\n "devpayProductCodes" : null,\r\n "privateIp" : "10.140.130.146",\r\n "region" > : "us-east-1"\r\n}'']'} > - {command: '[ "ami-877cf1ee" = "ami-877cf1ee" ]', result: passed} > - {command: '[ "x86_64" = "x86_64" ]', result: passed} > - {command: '[ "us-east-1" = "us-east-1" ]', result: passed} > - {command: '[ "bp-63a5400a" = "bp-63a5400a" ]', result: passed} > testcase_15_rhel_version: > - {command: 'rpm -q --qf ''%{RELEASE} > > '' --whatprovides redhat-release', match: ".*\r\n([0-9]\\.[0-9]\\..*)\r\n\ > .*", result: passed, value: '[''6.4.0.3.el6'']'} > - {actual: '1', command: '[ ''6.4-beta'' = ''6.4.0.3.'' ]', result: failed} > testcase_16_selinux: > - {command: getenforce, expectation: "\r\nEnforcing\r\n", result: passed} > - {command: grep '^SELINUX=enforcing' /etc/sysconfig/selinux, result: passed} > - {command: grep '^SELINUXTYPE=targeted' /etc/sysconfig/selinux, result: passed} > - {command: setenforce Permissive && getenforce, expectation: "\r\nPermissive\r\ > \n", result: passed} > - {command: setenforce Enforcing && getenforce, expectation: "\r\nEnforcing\r\ > \n", result: passed} > testcase_17_shells: > - {command: grep 'bin/bash$' /etc/shells, result: passed} > - {command: grep 'bin/nologin$' /etc/shells, result: passed} > testcase_18_sshd: > - {command: 'chkconfig --list sshd | grep ''0:off[[:space:]]*1:off[[:space:]]*2:on[[:space:]]*3:on[[:space:]]*4:on[[:space:]]*5:on[[:space:]]*6:off''', > result: passed} > - {command: service sshd status | grep running, result: passed} > - {command: grep 'PasswordAuthentication no' /etc/ssh/sshd_config, result: passed} > testcase_19_rhn_system_id: > - {command: '[ ! -f /etc/sysconfig/rhn/systemid ]', result: passed} > testcase_20_auditd: > - {command: md5sum /etc/audit/audit.rules | cut -f 1 -d ' ', expectation: f9869e1191838c461f5b9051c78a638d, > result: passed} > - {command: md5sum /etc/audit/auditd.conf | cut -f 1 -d ' ', expectation: e1886162554c18906df2ecd258aa4794, > result: passed} > - {command: md5sum /etc/sysconfig/auditd | cut -f 1 -d ' ', expectation: d4d43637708e30418c30003e212f76fc, > result: passed} > - {command: chkconfig --list auditd, expectation: '3:on.*5:on', result: passed} > testcase_21_disk_size_format: > - {command: 'mount | grep ''^/dev'' | awk ''{print $1}''', result: passed, value: /dev/xvda1} > - {command: 'echo ''###'' ;mount | grep ''^/'' | awk ''{print $3}''; echo ''###''', > match: ".*\r\n###\r\n(.*)\r\n###\r\n.*", result: passed, value: '[''/'']'} > - {command: 'echo ''###'' ;mount | grep ''^/'' | awk ''{print $5}''; echo ''###''', > match: ".*\r\n###\r\n(.*)\r\n###\r\n.*", result: passed, value: '[''ext4'']'} > - {command: '[ `df -k / | awk ''{ print $2 }'' | tail -n 1` -gt 3937219 ]', > result: passed} > - {command: '[ ext4 = ext4 ]', result: passed} > testcase_22_gpg_keys: > - {command: grep '^gpgcheck=' /etc/yum.repos.d/redhat-*.repo | cut -d\= -f2 > | sort -uf | tr -d ' ', expectation: "\r\n1\r\n", result: passed} > - {command: rpm -qa gpg-pubkey* | wc -l, expectation: "\r\n2\r\n", result: passed} > - {command: rpm -q gpg-pubkey-2fa658e0-45700c69, result: passed} > - {command: rpm -q gpg-pubkey-fd431d51-4ae0493b, result: passed} > testcase_23_syslog: > - {command: md5sum /etc/rsyslog.conf | cut -f 1 -d ' ', result: passed, value: 8b91b32300134e98ef4aee632ed61e21} > - {command: '[ 8b91b32300134e98ef4aee632ed61e21 = 8b91b32300134e98ef4aee632ed61e21 > ]', result: passed} > testcase_24_yum_plugin: > - {command: 'grep ''^enabled[[:space:]]*=[[:space:]]*[^0 ]'' /etc/yum/pluginconf.d/rhnplugin.conf', > result: passed} > testcase_26_verify_rpms: > - {command: rpm -Va --nomtime --nosize --nomd5 | sort -fu | wc -l, result: passed, > value: '5'} > - {command: 'rpm -q --queryformat ''%{RELEASE} > > '' redhat-release-server | cut -d. -f1,2', result: passed, value: '6.4'} > - {command: '[ 5 = 5 ]', result: passed} > - {actual: '1', command: '[ 6.4 = 6.4-beta ]', result: failed} > - {command: 'rpm -qa --queryformat ''%{PACKAGER} > > '' | sort -u | grep -v ''Red Hat, Inc.''', result: passed, value: "Lai Jiangshan\ > \ <laijs@cn.fujitsu.com>\r\n(none)"} > testcase_27_yum_repos: > - {command: ls /etc/yum.repos.d/*.repo | wc -l, result: passed, value: '5'} > - {command: ls /etc/yum.repos.d/redhat*.repo | wc -l, result: passed, value: '4'} > - {command: ls /etc/yum.repos.d/rhel*.repo | wc -l, result: passed, value: '1'} > - {actual: '1', command: '[ 5 = 6 ]', result: failed} > - {command: '[ 4 = 4 ]', result: passed} > - {actual: '1', command: '[ 1 = 0 ]', result: failed} > testcase_28_iptables: > - {command: 'service iptables status | grep :22 | grep ACCEPT | wc -l', expectation: "\r\n\ > 1\r\n", result: passed} > - {command: 'service iptables status | grep RELATED,ESTABLISHED | grep ACCEPT > | wc -l', expectation: "\r\n1\r\n", result: passed} > - {command: service iptables status | grep REJECT | grep all | grep 0.0.0.0/0 > | grep icmp-host-prohibited | wc -l, expectation: "\r\n2\r\n", result: passed} > testcase_29_swap_file: > - {comment: no swap for this instance type, result: passed} > testcase_30_rhn_certificates: > - {command: rpm -ql rh-amazon-rhui-client | egrep '.*\.(pem|crt)', result: passed, > value: "/etc/pki/entitlement/ca.crt\r\n/etc/pki/entitlement/cdn.redhat.com-chain.crt\r\ > \n/etc/pki/entitlement/product/content-rhel6.crt\r\n/etc/pki/entitlement/product/rhui-client-config-server-6.crt"} > - {command: openssl x509 -in /etc/pki/entitlement/ca.crt -noout -dates | grep > notAfter, result: passed, value: 'notAfter=Nov 30 19:46:02 2017 GMT'} > - {comment: '(/etc/pki/entitlement/ca.crt).notAfter=2017-11-30 19:46:02; expecting: > 2020-11-10 00:00:00', result: failed} > - {command: openssl x509 -in /etc/pki/entitlement/cdn.redhat.com-chain.crt -noout > -dates | grep notAfter, result: passed, value: 'notAfter=Mar 13 11:24:54 > 2030 GMT'} > - {comment: '(/etc/pki/entitlement/cdn.redhat.com-chain.crt).notAfter=2030-03-13 > 11:24:54; expecting: 2020-11-10 00:00:00', result: passed} > - {command: openssl x509 -in /etc/pki/entitlement/product/content-rhel6.crt > -noout -dates | grep notAfter, result: passed, value: 'notAfter=Nov 30 18:31:28 > 2020 GMT'} > - {comment: '(/etc/pki/entitlement/product/content-rhel6.crt).notAfter=2020-11-30 > 18:31:28; expecting: 2020-11-10 00:00:00', result: passed} > - {command: openssl x509 -in /etc/pki/entitlement/product/rhui-client-config-server-6.crt > -noout -dates | grep notAfter, result: passed, value: 'notAfter=Nov 30 18:38:07 > 2020 GMT'} > - {comment: '(/etc/pki/entitlement/product/rhui-client-config-server-6.crt).notAfter=2020-11-30 > 18:38:07; expecting: 2020-11-10 00:00:00', result: passed} > testcase_31_subscription_management: > - {command: yum --disablerepo="*" repolist | grep -i subscription-manager, result: passed} > - {command: yum --enableplugin=subscription-manager --disablerepo="*" repolist, > expectation: 'Loaded plugins:[^ > > ]*subscription-manager', result: passed} > - {command: subscription-manager list, expectation: 'Status:\s*Not.Subscribed', > result: passed} > testcase_50_yum_package_install: > - {command: yum repolist, result: passed} > - {command: yum search zsh, result: passed} > - {command: yum -y install zsh, result: passed} > - {command: 'rpm -q --queryformat ''%{NAME}'' zsh', result: passed} > - {command: rpm -e zsh, result: passed} > testcase_55_yum_group_install: > - {command: yum -y groupinstall 'Development tools', result: passed} > testcase_60_yum_update: > - {command: yum -y update, result: passed} > testcase_99_reboot: > - {command: reboot, result: passed} > stage2: > testcase_08_memory: > - {command: 'grep ''MemTotal:'' /proc/meminfo', match: ".*\r\nMemTotal:\\s*([0-9]+) ", > result: passed, value: '[''62533732'']'} > - {command: '[ 62533732 -gt 60500000 ]', result: passed} > testcase_25_uname: > - {command: uname -r, result: passed, value: 2.6.32-343.el6.x86_64} > - {command: 'rpm -q --queryformat ''%{VERSION}-%{RELEASE}.%{ARCH} > > '' kernel | sort | tail -1', result: passed, value: 2.6.32-343.el6.x86_64} > - {command: uname -o, result: passed, value: GNU/Linux} > - {command: '[ 2.6.32-343.el6.x86_64 = 2.6.32-343.el6.x86_64 ]', result: passed} > - {command: '[ GNU/Linux = ''GNU/Linux'' ]', result: passed} > - {command: grep UPDATEDEFAULT=yes /etc/sysconfig/kernel, result: passed} > - {command: grep DEFAULTKERNEL=kernel /etc/sysconfig/kernel, result: passed} > cg1.4xlarge: > stage1: > testcase_01_ipv6: > - {command: grep NETWORKING_IPV6=no /etc/sysconfig/network, result: passed} > testcase_02_bash_history: > - {actual: "[ ! -f ~/.bash_history ] && echo 0 || cat ~/.bash_histo \rry | wc\ > \ -l\r\n1\r\n[root@ip-10-16-7-164 ~]# ", command: '[ ! -f ~/.bash_history > ] && echo 0 || cat ~/.bash_history | wc -l', expectation: "\r\n0\r\n", result: failed} > testcase_03_chkconfig: > - {command: chkconfig --list crond, expectation: '3:on', result: passed} > - {command: chkconfig --list iptables, expectation: '3:on', result: passed} > testcase_04_cloud_firstboot: > - {command: chkconfig --list rh-cloud-firstboot, expectation: '3:off', result: passed} > - {command: test -f /etc/sysconfig/rh-cloud-firstboot, result: passed} > - {command: cat /etc/sysconfig/rh-cloud-firstboot, expectation: RUN_FIRSTBOOT=NO, > result: passed} > testcase_05_grub: > - {command: test -h /boot/grub/menu.lst, result: passed} > - {command: readlink -e /boot/grub/menu.lst, expectation: /boot/grub/grub.conf, > result: passed} > testcase_06_inittab: > - {command: 'grep ''^id:'' /etc/inittab', expectation: 'id:3:initdefault', result: passed} > testcase_07_libc6_xen_conf: > - {command: test -f /etc/ld.so.conf.d/libc6-xen.conf, result: passed} > testcase_08_memory: > - {command: 'grep ''MemTotal:'' /proc/meminfo', match: ".*\r\nMemTotal:\\s*([0-9]+) ", > result: passed, value: '[''23146712'']'} > - {command: '[ 23146712 -gt 22000000 ]', result: passed} > testcase_09_nameserver: > - {command: dig clock.redhat.com | grep 66.187.233.4, result: passed} > testcase_10_networking: > - {command: grep '^NETWORKING=yes' /etc/sysconfig/network, result: passed} > - {command: grep '^DEVICE=eth0' /etc/sysconfig/network-scripts/ifcfg-eth0, result: passed} > testcase_11_package_set: > - {command: 'rpm -qa --queryformat ''%{NAME},'' && echo', match: ".*\r\n(.*),\r\ > \n.*", result: passed, value: '[''iwl5150-firmware,cvs,tzdata,iwl6050-firmware,hicolor-icon-theme,latencytop-common,prelink,nss-tools,xml-common,cpuspeed,gnupg2,glibc-common,fprintd-pam,man,libattr,hwloc,nss_compat_ossl,libcom_err,ledmon,SDL,popt,abrt-cli,python-libs,freetype,dstat,python-iniparse,libjpeg-turbo,elinks,python-dmidecode,db4,pinfo,pygobject2,libsepol,pam_passwdqc,python-gudev,shadow-utils,hunspell-en,libproxy-bin,libuuid,valgrind,libreport-compat,sqlite,mlocate,abrt,libtdb,lsof,abrt-tui,btparser,libitm,abrt-addon-kerneloops,libudev,scl-utils,python-nose,libgcrypt,zip,gettext,abrt-libs,eject,pytalloc,pcre,b43-fwcutter,libipa_hbac-python,file-libs,rfkill,rhn-client-tools,libvorbis,rt73usb-firmware,gnutls,lua,zd1211-firmware,libXau,lcms-libs,ql2200-firmware,libpath_utils,libldb,ivtv-firmware,sgpio,cyrus-sasl-gssapi,man-pages,libsss_autofs,checkpolicy,gpg-pubkey,libthai,bc,ethtool,gmp,perl-XML-Parser,m4,dejavu-sans-fonts,numactl,poppler-utils,perl-version,libXext,perl,libXfixes,perl-Test-Harness,libXft,perl-Module-Load-Conditional,libXdamage,perl-Package-Constants,java-1.7.0-openjdk,perl-IO-Zlib,gstreamer-plugins-base,perl-File-Fetch,python-matplotlib,perl-Object-Accessor,policycoreutils,perl-Compress-Raw-Bzip2,initscripts,libusb1,cups,libcollection,usermode,perl-CPAN,nfs-utils,perl-ExtUtils-Embed,lvm2-libs,perl-Parse-CPAN-Meta,rhn-check,perl-Time-HiRes,foomatic-db-ppds,xz-lzma-compat,mesa-dri-drivers,gstreamer,phonon-backend-gstreamer,flac,crda,MAKEDEV,virt-what,db4-utils,oddjob,libnih,cronie-anacron,make,certmonger,libhugetlbfs,ntpdate,groff,samba-winbind,cracklib,selinux-policy,openssl,dracut-kernel,hwdata,hal,plymouth-scripts,systemtap-runtime,qt-sqlite,samba-client,urw-fonts,subscription-manager,fipscheck-lib,openssh-server,ConsoleKit-libs,aic94xx-firmware,at,libgcc,sssd-client,ca-certificates,logrotate,filesystem,rhino,mesa-dri-filesystem,nss,foomatic-db-filesystem,mailx,kernel-firmware,openldap,iso-codes,xmlrpc-c-client,nss-softokn-freebl,curl,glibc,rpm-libs,bash,libuser,libcap,gpgme,info,gpm-libs,libstdc++,libsss_idmap,libxml2,theora-tools,chkconfig,libffi,audit-libs,python,nss-util,newt-python,libpng,libxml2-python,expat,python-ethtool,libtalloc,authconfig,bzip2-libs,python-simplejson,readline,pyOpenSSL,libselinux,rhnlib,glib2,python-rhsm,sed,yum-metadata-parser,dbus-glib,libproxy,libICE,libreport-plugin-reportuploader,libblkid,libreport-plugin-rhtsupport,xmlrpc-c,libreport-python,krb5-libs,abrt-addon-ccpp,tcp_wrappers-libs,libreport-plugin-mailx,libogg,libreport-plugin-logger,xz-libs,libreport-plugin-kerneloops,libidn,python-crypto,libcap-ng,python-setuptools,libgpg-error,numpy,pciutils-libs,python-ldap,libgssglue,python-lxml,procps,python-urlgrabber,libtevent,pytz,grep,python-kerberos,binutils,python-netaddr,pkgconfig,yum,elfutils-libs,pixman,atk,libtasn1,psmisc,cups-libs,libtiff,plymouth-core-libs,sysvinit-tools,libxcb,libmng,liboil,crash,ustr,libgudev1,hesiod,libtheora,libasyncns,keyutils,libini_config,libipa_hbac,libevent,libselinux-utils,blktrace,vim-minimal,pax,jasper-libs,libpcap,avahi-libs,c-ares,libusb,perl-libwww-perl,diffutils,perl-libxml-perl,libtar,dejavu-fonts-common,libedit,busybox,pth,poppler,perl-Pod-Escapes,dhcp-common,perl-Module-Pluggable,perl-Pod-Simple,perl-Locale-Maketext-Simple,perl-ExtUtils-ParseXS,perl-devel,perl-Module-Load,perl-IPC-Cmd,perl-IO-Compress-Base,perl-Compress-Raw-Zlib,perl-Compress-Zlib,perl-Archive-Tar,perl-Term-UI,perl-Archive-Extract,perl-ExtUtils-CBuilder,perl-DBI,perl-Digest-SHA,perl-URI,libgfortran,slang,openjpeg-libs,dmidecode,perl-IO-Compress-Bzip2,perl-DBD-SQLite,perl-Module-Build,perl-parent,perl-CGI,perl-CPANPLUS,perl-HTML-Parser,libXfont,e2fsprogs,tmpwatch,gstreamer-tools,iw,hal-libs,tcp_wrappers,eggdbus,libutempter,patch,device-mapper-persistent-data,portreserve,upstart,ed,time,dash,cdparanoia-libs,ncurses,less,gzip,cracklib-dicts,pam,fontconfig,alsa-lib,qt,libssh2,xdg-utils,rpcbind,pciutils,libsndfile,ghostscript-fonts,mysql-libs,fipscheck,bind-utils,ConsoleKit,pam_krb5,iwl6000-firmware,biosdevname,bfa-firmware,iwl6000g2a-firmware,readahead,dhclient,microcode_ctl,quota,acpid,seekwatcher,java-1.6.0-openjdk,perl-XML-Grove,tcpdump,yum-plugin-security,cas,iotop,grub,perf,gdb,man-pages-overrides,Red_Hat_Enterprise_Linux-Release_Notes-6-en-US,usbutils,perl-Crypt-SSLeay,psacct,audit,perl-core,perl-XML-Dumper,irqbalance,oprofile,efibootmgr,latencytop-tui,ltrace,rsync,nano,nfs4-acl-tools,mcelog,mtr,bridge-utils,libtopology,traceroute,dosfstools,latrace,trace-cmd,vconfig,atmel-firmware,ql23xx-firmware,ql2500-firmware,xorg-x11-drv-ati-firmware,rootfiles,iwl5000-firmware,redhat-indexhtml,ipw2100-firmware,iwl3945-firmware,iwl4965-firmware,ipw2200-firmware,gpg-pubkey,libX11,libXrender,libXi,libXtst,libXrandr,pango,pulseaudio-libs,libXt,giflib,qt3,libXv,libXxf86vm,gtk2,libfprint,redhat-release-server,iptables,iputils,util-linux-ng,libdrm,device-mapper-libs,device-mapper-event-libs,device-mapper-event,nfs-utils-lib,openssh,dmraid,rhnsd,yum-rhn-plugin,rh-amazon-rhui-client,cryptsetup-luks,foomatic-db,redhat-lsb-printing,mesa-libGL,mesa-libGLU,qt-x11,plymouth,wireless-tools,mdadm,cyrus-sasl,sssd,oddjob-mkhomedir,crontabs,cronie,redhat-lsb,yp-tools,libcgroup,ntp,samba-common,ipa-python,system-config-firewall-base,kbd-misc,dracut,kernel,hal-info,pm-utils,pcmciautils,kexec-tools,system-config-firewall-tui,cifs-utils,sysstat,system-config-network-tui,lvm2,openssh-clients,parted,iwl1000-firmware,krb5-workstation,setup,b43-openfwwf,jline,tzdata-java,iwl100-firmware,nss-sysinit,basesystem,smartmontools,libcurl,ncurses-base,rng-tools,rpm,ncurses-libs,latencytop,passwd,zlib,perl-XML-Twig,hdparm,dbus-libs,yum-utils,mingetty,nspr,libhugetlbfs-utils,rpm-python,libacl,vim-enhanced,dbus-python,gawk,sudo,m2crypto,elfutils-libelf,alsa-utils,python-dateutil,gamin,tcsh,sos,cyrus-sasl-lib,ntsysv,libproxy-python,libSM,crash-gcore-command,libreport,keyutils-libs,cyrus-sasl-plain,abrt-addon-python,findutils,unzip,libreport-cli,which,attr,python-paramiko,dbus,powertop,python-krbV,libnl,strace,python-pycurl,bzip2,setserial,python-nss,cpio,crash-trace-command,pygpgme,libtirpc,rdate,libdhash,tar,rt61pci-firmware,samba4-libs,e2fsprogs-libs,libertas-usb8388-firmware,libvisual,file,ql2400-firmware,libsemanage,xz,words,libref_array,nss-softokn,ql2100-firmware,libaio,net-tools,sg3_utils-libs,acl,mailcap,libss,fontpackages-filesystem,libfontenc,poppler-data,gdbm,libX11-common,perl-libs,cairo,perl-Params-Check,libXcursor,perl-ExtUtils-MakeMaker,libXinerama,perl-Log-Message,ghostscript,perl-IO-Compress-Zlib,pycairo,perl-Log-Message-Simple,libXcomposite,perl-Test-Simple,fprintd,perl-Module-CoreList,iproute,perl-Module-Loaded,udev,newt,device-mapper,atlas,kpartx,perl-DBIx-Simple,dmraid-events,perl-Time-Piece,rhn-setup,perl-HTML-Tagset,cryptsetup-luks-libs,xorg-x11-font-utils,foomatic,elfutils,mesa-dri1-drivers,libxslt,redhat-lsb-graphics,grubby,python-iwlib,desktop-file-utils,postfix,pinentry,rsyslog,hunspell,redhat-lsb-core,libgomp,ypbind,vim-common,samba-winbind-clients,coreutils-libs,iptables-ipv6,coreutils,kbd,module-init-tools,autofs,jpackage-utils,ipa-client,redhat-logos,selinux-policy-targeted,libpciaccess,numad,wget,rh-amazon-rhui-client-beta,bind-libs,setuptool,polkit'']'} > - {comment: 'RHEL must not lack packages: set([''nc'', ''cyrus-sasl-md5'', ''sysfsutils'', > ''neon'', ''stunnel'', ''man-pages-fr'', ''tcl'', ''gd'', ''mutt'', ''pam_pkcs11'', > ''libXaw'', ''pakchois'', ''krb5-pkinit-openssl'', ''nss_db'', ''postgresql-libs'', > ''nmap'', ''postgresql-plpython'', ''lslk'', ''compat-db43'', ''abrt-plugin-sosreport'', > ''ksh'', ''xterm'', ''libnfnetlink'', ''apr-util'', ''man-pages-es'', ''kernel-devel'', > ''ppl'', ''aspell'', ''libjpeg'', ''compat-db42'', ''mgetty'', ''net-snmp-libs'', > ''httpd-tools'', ''abrt-plugin-logger'', ''udftools'', ''expect'', ''mysql-connector-odbc'', > ''libgcj'', ''libicu'', ''ftp'', ''man-pages-pl'', ''finger'', ''postgresql-odbc'', > ''nss-pam-ldapd'', ''screen'', ''pcsc-lite-libs'', ''xinetd'', ''conman'', > ''sinjdoc'', ''abrt-plugin-rhtsupport'', ''symlinks'', ''postgresql'', ''dialog'', > ''libsysfs'', ''compat-db'', ''apr'', ''pam_ldap'', ''java-1.5.0-gcj'', > ''man-pages-ja'', ''mtools'', ''subversion'', ''httpd'', ''libnetfilter_conntrack'', > ''tokyocabinet'', ''urlview'', ''iptstate'', ''mod_perl'', ''cloog-ppl'', > ''telnet'', ''apr-util-ldap'', ''libXp'', ''libXpm'', ''postgresql-server'', > ''kernel-headers'', ''unix2dos'', ''man-pages-it'', ''tree'', ''mod_authz_ldap'', > ''postgresql-jdbc'', ''nscd'', ''compat-libstdc++-33'', ''MySQL-python'', > ''perl-BSD-Resource'', ''openldap-clients'', ''jwhois'', ''libart_lgpl'', > ''glibc-devel'', ''gcc'', ''mod_ssl'', ''net-snmp'', ''libXmu'', ''webalizer'', > ''perl-Date-Manip'', ''java_cup'', ''man-pages-ru'', ''man-pages-cs'', ''man-pages-ko'', > ''unixODBC'', ''lm_sensors-libs'', ''ncompress'', ''libtool-ltdl'', ''dos2unix'', > ''glibc-headers'', ''logwatch'', ''cpp'', ''openswan'', ''mpfr''])', result: fail} > testcase_12_passwd_group: > - {command: 'grep ''^root:x:0:0:root:/root:/bin/bash'' /etc/passwd', result: passed} > - {command: 'grep ''^nobody:x:99:99:Nobody:/:/sbin/nologin'' /etc/passwd', result: passed} > - {command: 'grep ''^sshd:x:74:74:Privilege-separated SSH:/var/empty/sshd:/sbin/nologin'' > /etc/passwd', result: passed} > - {command: 'grep ''^root:x:0:'' /etc/group', result: passed} > - {command: 'grep ''^daemon:x:2:bin,daemon'' /etc/group', result: passed} > - {command: 'grep ''^bin:x:1:bin,daemon'' /etc/group', result: passed} > testcase_13_resize2fs: > - {comment: resize2fs is not applicable for hvm instances, result: passed} > testcase_14_host_details: > - {command: '[ ! -z "`curl http://169.254.169.254/latest/dynamic/instance-identity/signature`" > ]', result: passed} > - {command: 'curl http://169.254.169.254/latest/dynamic/instance-identity/document', > match: '.*({.*}).*', result: passed, value: '[''{\r\n "instanceId" : "i-8089f7fe",\r\n "billingProducts" > : [ "bp-63a5400a" ],\r\n "version" : "2010-08-31",\r\n "accountId" : "567014786890",\r\n "instanceType" > : "cg1.4xlarge",\r\n "architecture" : "x86_64",\r\n "kernelId" : null,\r\n "ramdiskId" > : null,\r\n "pendingTime" : "2012-12-18T09:58:54Z",\r\n "imageId" : "ami-877cf1ee",\r\n "availabilityZone" > : "us-east-1d",\r\n "devpayProductCodes" : null,\r\n "privateIp" : "10.16.7.164",\r\n "region" > : "us-east-1"\r\n}'']'} > - {command: '[ "ami-877cf1ee" = "ami-877cf1ee" ]', result: passed} > - {command: '[ "x86_64" = "x86_64" ]', result: passed} > - {command: '[ "us-east-1" = "us-east-1" ]', result: passed} > - {command: '[ "bp-63a5400a" = "bp-63a5400a" ]', result: passed} > testcase_15_rhel_version: > - {command: 'rpm -q --qf ''%{RELEASE} > > '' --whatprovides redhat-release', match: ".*\r\n([0-9]\\.[0-9]\\..*)\r\n\ > .*", result: passed, value: '[''6.4.0.3.el6'']'} > - {actual: '1', command: '[ ''6.4-beta'' = ''6.4.0.3.'' ]', result: failed} > testcase_16_selinux: > - {command: getenforce, expectation: "\r\nEnforcing\r\n", result: passed} > - {command: grep '^SELINUX=enforcing' /etc/sysconfig/selinux, result: passed} > - {command: grep '^SELINUXTYPE=targeted' /etc/sysconfig/selinux, result: passed} > - {command: setenforce Permissive && getenforce, expectation: "\r\nPermissive\r\ > \n", result: passed} > - {command: setenforce Enforcing && getenforce, expectation: "\r\nEnforcing\r\ > \n", result: passed} > testcase_17_shells: > - {command: grep 'bin/bash$' /etc/shells, result: passed} > - {command: grep 'bin/nologin$' /etc/shells, result: passed} > testcase_18_sshd: > - {command: 'chkconfig --list sshd | grep ''0:off[[:space:]]*1:off[[:space:]]*2:on[[:space:]]*3:on[[:space:]]*4:on[[:space:]]*5:on[[:space:]]*6:off''', > result: passed} > - {command: service sshd status | grep running, result: passed} > - {command: grep 'PasswordAuthentication no' /etc/ssh/sshd_config, result: passed} > testcase_19_rhn_system_id: > - {command: '[ ! -f /etc/sysconfig/rhn/systemid ]', result: passed} > testcase_20_auditd: > - {command: md5sum /etc/audit/audit.rules | cut -f 1 -d ' ', expectation: f9869e1191838c461f5b9051c78a638d, > result: passed} > - {command: md5sum /etc/audit/auditd.conf | cut -f 1 -d ' ', expectation: e1886162554c18906df2ecd258aa4794, > result: passed} > - {command: md5sum /etc/sysconfig/auditd | cut -f 1 -d ' ', expectation: d4d43637708e30418c30003e212f76fc, > result: passed} > - {command: chkconfig --list auditd, expectation: '3:on.*5:on', result: passed} > testcase_21_disk_size_format: > - {command: 'mount | grep ''^/dev'' | awk ''{print $1}''', result: passed, value: /dev/xvda1} > - {command: 'echo ''###'' ;mount | grep ''^/'' | awk ''{print $3}''; echo ''###''', > match: ".*\r\n###\r\n(.*)\r\n###\r\n.*", result: passed, value: '[''/'']'} > - {command: 'echo ''###'' ;mount | grep ''^/'' | awk ''{print $5}''; echo ''###''', > match: ".*\r\n###\r\n(.*)\r\n###\r\n.*", result: passed, value: '[''ext4'']'} > - {command: '[ `df -k / | awk ''{ print $2 }'' | tail -n 1` -gt 3937219 ]', > result: passed} > - {command: '[ ext4 = ext4 ]', result: passed} > testcase_22_gpg_keys: > - {command: grep '^gpgcheck=' /etc/yum.repos.d/redhat-*.repo | cut -d\= -f2 > | sort -uf | tr -d ' ', expectation: "\r\n1\r\n", result: passed} > - {command: rpm -qa gpg-pubkey* | wc -l, expectation: "\r\n2\r\n", result: passed} > - {command: rpm -q gpg-pubkey-2fa658e0-45700c69, result: passed} > - {command: rpm -q gpg-pubkey-fd431d51-4ae0493b, result: passed} > testcase_23_syslog: > - {command: md5sum /etc/rsyslog.conf | cut -f 1 -d ' ', result: passed, value: 8b91b32300134e98ef4aee632ed61e21} > - {command: '[ 8b91b32300134e98ef4aee632ed61e21 = 8b91b32300134e98ef4aee632ed61e21 > ]', result: passed} > testcase_24_yum_plugin: > - {command: 'grep ''^enabled[[:space:]]*=[[:space:]]*[^0 ]'' /etc/yum/pluginconf.d/rhnplugin.conf', > result: passed} > testcase_26_verify_rpms: > - {command: rpm -Va --nomtime --nosize --nomd5 | sort -fu | wc -l, result: passed, > value: '5'} > - {command: 'rpm -q --queryformat ''%{RELEASE} > > '' redhat-release-server | cut -d. -f1,2', result: passed, value: '6.4'} > - {command: '[ 5 = 5 ]', result: passed} > - {actual: '1', command: '[ 6.4 = 6.4-beta ]', result: failed} > - {command: 'rpm -qa --queryformat ''%{PACKAGER} > > '' | sort -u | grep -v ''Red Hat, Inc.''', result: passed, value: "Lai Jiangshan\ > \ <laijs@cn.fujitsu.com>\r\n(none)"} > testcase_27_yum_repos: > - {command: ls /etc/yum.repos.d/*.repo | wc -l, result: passed, value: '5'} > - {command: ls /etc/yum.repos.d/redhat*.repo | wc -l, result: passed, value: '4'} > - {command: ls /etc/yum.repos.d/rhel*.repo | wc -l, result: passed, value: '1'} > - {actual: '1', command: '[ 5 = 6 ]', result: failed} > - {command: '[ 4 = 4 ]', result: passed} > - {actual: '1', command: '[ 1 = 0 ]', result: failed} > testcase_28_iptables: > - {command: 'service iptables status | grep :22 | grep ACCEPT | wc -l', expectation: "\r\n\ > 1\r\n", result: passed} > - {command: 'service iptables status | grep RELATED,ESTABLISHED | grep ACCEPT > | wc -l', expectation: "\r\n1\r\n", result: passed} > - {command: service iptables status | grep REJECT | grep all | grep 0.0.0.0/0 > | grep icmp-host-prohibited | wc -l, expectation: "\r\n2\r\n", result: passed} > testcase_29_swap_file: > - {comment: no swap for this instance type, result: passed} > testcase_30_rhn_certificates: > - {command: rpm -ql rh-amazon-rhui-client | egrep '.*\.(pem|crt)', result: passed, > value: "/etc/pki/entitlement/ca.crt\r\n/etc/pki/entitlement/cdn.redhat.com-chain.crt\r\ > \n/etc/pki/entitlement/product/content-rhel6.crt\r\n/etc/pki/entitlement/product/rhui-client-config-server-6.crt"} > - {command: openssl x509 -in /etc/pki/entitlement/ca.crt -noout -dates | grep > notAfter, result: passed, value: 'notAfter=Nov 30 19:46:02 2017 GMT'} > - {comment: '(/etc/pki/entitlement/ca.crt).notAfter=2017-11-30 19:46:02; expecting: > 2020-11-10 00:00:00', result: failed} > - {command: openssl x509 -in /etc/pki/entitlement/cdn.redhat.com-chain.crt -noout > -dates | grep notAfter, result: passed, value: 'notAfter=Mar 13 11:24:54 > 2030 GMT'} > - {comment: '(/etc/pki/entitlement/cdn.redhat.com-chain.crt).notAfter=2030-03-13 > 11:24:54; expecting: 2020-11-10 00:00:00', result: passed} > - {command: openssl x509 -in /etc/pki/entitlement/product/content-rhel6.crt > -noout -dates | grep notAfter, result: passed, value: 'notAfter=Nov 30 18:31:28 > 2020 GMT'} > - {comment: '(/etc/pki/entitlement/product/content-rhel6.crt).notAfter=2020-11-30 > 18:31:28; expecting: 2020-11-10 00:00:00', result: passed} > - {command: openssl x509 -in /etc/pki/entitlement/product/rhui-client-config-server-6.crt > -noout -dates | grep notAfter, result: passed, value: 'notAfter=Nov 30 18:38:07 > 2020 GMT'} > - {comment: '(/etc/pki/entitlement/product/rhui-client-config-server-6.crt).notAfter=2020-11-30 > 18:38:07; expecting: 2020-11-10 00:00:00', result: passed} > testcase_31_subscription_management: > - {command: yum --disablerepo="*" repolist | grep -i subscription-manager, result: passed} > - {command: yum --enableplugin=subscription-manager --disablerepo="*" repolist, > expectation: 'Loaded plugins:[^ > > ]*subscription-manager', result: passed} > - {command: subscription-manager list, expectation: 'Status:\s*Not.Subscribed', > result: passed} > testcase_50_yum_package_install: > - {command: yum repolist, result: passed} > - {command: yum search zsh, result: passed} > - {command: yum -y install zsh, result: passed} > - {command: 'rpm -q --queryformat ''%{NAME}'' zsh', result: passed} > - {command: rpm -e zsh, result: passed} > testcase_55_yum_group_install: > - {command: yum -y groupinstall 'Development tools', result: passed} > testcase_60_yum_update: > - {command: yum -y update, result: passed} > testcase_99_reboot: > - {command: reboot, result: passed} > stage2: > testcase_08_memory: > - {command: 'grep ''MemTotal:'' /proc/meminfo', match: ".*\r\nMemTotal:\\s*([0-9]+) ", > result: passed, value: '[''23146712'']'} > - {command: '[ 23146712 -gt 22000000 ]', result: passed} > testcase_25_uname: > - {command: uname -r, result: passed, value: 2.6.32-343.el6.x86_64} > - {command: 'rpm -q --queryformat ''%{VERSION}-%{RELEASE}.%{ARCH} > > '' kernel | sort | tail -1', result: passed, value: 2.6.32-343.el6.x86_64} > - {command: uname -o, result: passed, value: GNU/Linux} > - {command: '[ 2.6.32-343.el6.x86_64 = 2.6.32-343.el6.x86_64 ]', result: passed} > - {command: '[ GNU/Linux = ''GNU/Linux'' ]', result: passed} > - {command: grep UPDATEDEFAULT=yes /etc/sysconfig/kernel, result: passed} > - {command: grep DEFAULTKERNEL=kernel /etc/sysconfig/kernel, result: passed} > hi1.4xlarge: > stage1: > testcase_01_ipv6: > - {command: grep NETWORKING_IPV6=no /etc/sysconfig/network, result: passed} > testcase_02_bash_history: > - {actual: "[ ! -f ~/.bash_history ] && echo 0 || cat ~/.bash_his \rtory | wc\ > \ -l\r\n1\r\n[root@ip-10-148-161-50 ~]# ", command: '[ ! -f ~/.bash_history > ] && echo 0 || cat ~/.bash_history | wc -l', expectation: "\r\n0\r\n", result: failed} > testcase_03_chkconfig: > - {command: chkconfig --list crond, expectation: '3:on', result: passed} > - {command: chkconfig --list iptables, expectation: '3:on', result: passed} > testcase_04_cloud_firstboot: > - {command: chkconfig --list rh-cloud-firstboot, expectation: '3:off', result: passed} > - {command: test -f /etc/sysconfig/rh-cloud-firstboot, result: passed} > - {command: cat /etc/sysconfig/rh-cloud-firstboot, expectation: RUN_FIRSTBOOT=NO, > result: passed} > testcase_05_grub: > - {command: test -h /boot/grub/menu.lst, result: passed} > - {command: readlink -e /boot/grub/menu.lst, expectation: /boot/grub/grub.conf, > result: passed} > testcase_06_inittab: > - {command: 'grep ''^id:'' /etc/inittab', expectation: 'id:3:initdefault', result: passed} > testcase_07_libc6_xen_conf: > - {command: test -f /etc/ld.so.conf.d/libc6-xen.conf, result: passed} > testcase_08_memory: > - {command: 'grep ''MemTotal:'' /proc/meminfo', match: ".*\r\nMemTotal:\\s*([0-9]+) ", > result: passed, value: '[''62535716'']'} > - {command: '[ 62535716 -gt 60500000 ]', result: passed} > testcase_09_nameserver: > - {command: dig clock.redhat.com | grep 66.187.233.4, result: passed} > testcase_10_networking: > - {command: grep '^NETWORKING=yes' /etc/sysconfig/network, result: passed} > - {command: grep '^DEVICE=eth0' /etc/sysconfig/network-scripts/ifcfg-eth0, result: passed} > testcase_11_package_set: > - {command: 'rpm -qa --queryformat ''%{NAME},'' && echo', match: ".*\r\n(.*),\r\ > \n.*", result: passed, value: '[''iwl5150-firmware,cvs,tzdata,iwl6050-firmware,hicolor-icon-theme,latencytop-common,prelink,nss-tools,xml-common,cpuspeed,gnupg2,glibc-common,fprintd-pam,man,libattr,hwloc,nss_compat_ossl,libcom_err,ledmon,SDL,popt,abrt-cli,python-libs,freetype,dstat,python-iniparse,libjpeg-turbo,elinks,python-dmidecode,db4,pinfo,pygobject2,libsepol,pam_passwdqc,python-gudev,shadow-utils,hunspell-en,libproxy-bin,libuuid,valgrind,libreport-compat,sqlite,mlocate,abrt,libtdb,lsof,abrt-tui,btparser,libitm,abrt-addon-kerneloops,libudev,scl-utils,python-nose,libgcrypt,zip,gettext,abrt-libs,eject,pytalloc,pcre,b43-fwcutter,libipa_hbac-python,file-libs,rfkill,rhn-client-tools,libvorbis,rt73usb-firmware,gnutls,lua,zd1211-firmware,libXau,lcms-libs,ql2200-firmware,libpath_utils,libldb,ivtv-firmware,sgpio,cyrus-sasl-gssapi,man-pages,libsss_autofs,checkpolicy,gpg-pubkey,libthai,bc,ethtool,gmp,perl-XML-Parser,m4,dejavu-sans-fonts,numactl,poppler-utils,perl-version,libXext,perl,libXfixes,perl-Test-Harness,libXft,perl-Module-Load-Conditional,libXdamage,perl-Package-Constants,java-1.7.0-openjdk,perl-IO-Zlib,gstreamer-plugins-base,perl-File-Fetch,python-matplotlib,perl-Object-Accessor,policycoreutils,perl-Compress-Raw-Bzip2,initscripts,libusb1,cups,libcollection,usermode,perl-CPAN,nfs-utils,perl-ExtUtils-Embed,lvm2-libs,perl-Parse-CPAN-Meta,rhn-check,perl-Time-HiRes,foomatic-db-ppds,xz-lzma-compat,mesa-dri-drivers,gstreamer,phonon-backend-gstreamer,flac,crda,MAKEDEV,virt-what,db4-utils,oddjob,libnih,cronie-anacron,make,certmonger,libhugetlbfs,ntpdate,groff,samba-winbind,cracklib,selinux-policy,openssl,dracut-kernel,hwdata,hal,plymouth-scripts,systemtap-runtime,qt-sqlite,samba-client,urw-fonts,subscription-manager,fipscheck-lib,openssh-server,ConsoleKit-libs,aic94xx-firmware,at,libgcc,sssd-client,ca-certificates,logrotate,filesystem,rhino,mesa-dri-filesystem,nss,foomatic-db-filesystem,mailx,kernel-firmware,openldap,iso-codes,xmlrpc-c-client,nss-softokn-freebl,curl,glibc,rpm-libs,bash,libuser,libcap,gpgme,info,gpm-libs,libstdc++,libsss_idmap,libxml2,theora-tools,chkconfig,libffi,audit-libs,python,nss-util,newt-python,libpng,libxml2-python,expat,python-ethtool,libtalloc,authconfig,bzip2-libs,python-simplejson,readline,pyOpenSSL,libselinux,rhnlib,glib2,python-rhsm,sed,yum-metadata-parser,dbus-glib,libproxy,libICE,libreport-plugin-reportuploader,libblkid,libreport-plugin-rhtsupport,xmlrpc-c,libreport-python,krb5-libs,abrt-addon-ccpp,tcp_wrappers-libs,libreport-plugin-mailx,libogg,libreport-plugin-logger,xz-libs,libreport-plugin-kerneloops,libidn,python-crypto,libcap-ng,python-setuptools,libgpg-error,numpy,pciutils-libs,python-ldap,libgssglue,python-lxml,procps,python-urlgrabber,libtevent,pytz,grep,python-kerberos,binutils,python-netaddr,pkgconfig,yum,elfutils-libs,pixman,atk,libtasn1,psmisc,cups-libs,libtiff,plymouth-core-libs,sysvinit-tools,libxcb,libmng,liboil,crash,ustr,libgudev1,hesiod,libtheora,libasyncns,keyutils,libini_config,libipa_hbac,libevent,libselinux-utils,blktrace,vim-minimal,pax,jasper-libs,libpcap,avahi-libs,c-ares,libusb,perl-libwww-perl,diffutils,perl-libxml-perl,libtar,dejavu-fonts-common,libedit,busybox,pth,poppler,perl-Pod-Escapes,dhcp-common,perl-Module-Pluggable,perl-Pod-Simple,perl-Locale-Maketext-Simple,perl-ExtUtils-ParseXS,perl-devel,perl-Module-Load,perl-IPC-Cmd,perl-IO-Compress-Base,perl-Compress-Raw-Zlib,perl-Compress-Zlib,perl-Archive-Tar,perl-Term-UI,perl-Archive-Extract,perl-ExtUtils-CBuilder,perl-DBI,perl-Digest-SHA,perl-URI,libgfortran,slang,openjpeg-libs,dmidecode,perl-IO-Compress-Bzip2,perl-DBD-SQLite,perl-Module-Build,perl-parent,perl-CGI,perl-CPANPLUS,perl-HTML-Parser,libXfont,e2fsprogs,tmpwatch,gstreamer-tools,iw,hal-libs,tcp_wrappers,eggdbus,libutempter,patch,device-mapper-persistent-data,portreserve,upstart,ed,time,dash,cdparanoia-libs,ncurses,less,gzip,cracklib-dicts,pam,fontconfig,alsa-lib,qt,libssh2,xdg-utils,rpcbind,pciutils,libsndfile,ghostscript-fonts,mysql-libs,fipscheck,bind-utils,ConsoleKit,pam_krb5,iwl6000-firmware,biosdevname,bfa-firmware,iwl6000g2a-firmware,readahead,dhclient,microcode_ctl,quota,acpid,seekwatcher,java-1.6.0-openjdk,perl-XML-Grove,tcpdump,yum-plugin-security,cas,iotop,grub,perf,gdb,man-pages-overrides,Red_Hat_Enterprise_Linux-Release_Notes-6-en-US,usbutils,perl-Crypt-SSLeay,psacct,audit,perl-core,perl-XML-Dumper,irqbalance,oprofile,efibootmgr,latencytop-tui,ltrace,rsync,nano,nfs4-acl-tools,mcelog,mtr,bridge-utils,libtopology,traceroute,dosfstools,latrace,trace-cmd,vconfig,atmel-firmware,ql23xx-firmware,ql2500-firmware,xorg-x11-drv-ati-firmware,rootfiles,iwl5000-firmware,redhat-indexhtml,ipw2100-firmware,iwl3945-firmware,iwl4965-firmware,ipw2200-firmware,gpg-pubkey,libX11,libXrender,libXi,libXtst,libXrandr,pango,pulseaudio-libs,libXt,giflib,qt3,libXv,libXxf86vm,gtk2,libfprint,redhat-release-server,iptables,iputils,util-linux-ng,libdrm,device-mapper-libs,device-mapper-event-libs,device-mapper-event,nfs-utils-lib,openssh,dmraid,rhnsd,yum-rhn-plugin,rh-amazon-rhui-client,cryptsetup-luks,foomatic-db,redhat-lsb-printing,mesa-libGL,mesa-libGLU,qt-x11,plymouth,wireless-tools,mdadm,cyrus-sasl,sssd,oddjob-mkhomedir,crontabs,cronie,redhat-lsb,yp-tools,libcgroup,ntp,samba-common,ipa-python,system-config-firewall-base,kbd-misc,dracut,kernel,hal-info,pm-utils,pcmciautils,kexec-tools,system-config-firewall-tui,cifs-utils,sysstat,system-config-network-tui,lvm2,openssh-clients,parted,iwl1000-firmware,krb5-workstation,setup,b43-openfwwf,jline,tzdata-java,iwl100-firmware,nss-sysinit,basesystem,smartmontools,libcurl,ncurses-base,rng-tools,rpm,ncurses-libs,latencytop,passwd,zlib,perl-XML-Twig,hdparm,dbus-libs,yum-utils,mingetty,nspr,libhugetlbfs-utils,rpm-python,libacl,vim-enhanced,dbus-python,gawk,sudo,m2crypto,elfutils-libelf,alsa-utils,python-dateutil,gamin,tcsh,sos,cyrus-sasl-lib,ntsysv,libproxy-python,libSM,crash-gcore-command,libreport,keyutils-libs,cyrus-sasl-plain,abrt-addon-python,findutils,unzip,libreport-cli,which,attr,python-paramiko,dbus,powertop,python-krbV,libnl,strace,python-pycurl,bzip2,setserial,python-nss,cpio,crash-trace-command,pygpgme,libtirpc,rdate,libdhash,tar,rt61pci-firmware,samba4-libs,e2fsprogs-libs,libertas-usb8388-firmware,libvisual,file,ql2400-firmware,libsemanage,xz,words,libref_array,nss-softokn,ql2100-firmware,libaio,net-tools,sg3_utils-libs,acl,mailcap,libss,fontpackages-filesystem,libfontenc,poppler-data,gdbm,libX11-common,perl-libs,cairo,perl-Params-Check,libXcursor,perl-ExtUtils-MakeMaker,libXinerama,perl-Log-Message,ghostscript,perl-IO-Compress-Zlib,pycairo,perl-Log-Message-Simple,libXcomposite,perl-Test-Simple,fprintd,perl-Module-CoreList,iproute,perl-Module-Loaded,udev,newt,device-mapper,atlas,kpartx,perl-DBIx-Simple,dmraid-events,perl-Time-Piece,rhn-setup,perl-HTML-Tagset,cryptsetup-luks-libs,xorg-x11-font-utils,foomatic,elfutils,mesa-dri1-drivers,libxslt,redhat-lsb-graphics,grubby,python-iwlib,desktop-file-utils,postfix,pinentry,rsyslog,hunspell,redhat-lsb-core,libgomp,ypbind,vim-common,samba-winbind-clients,coreutils-libs,iptables-ipv6,coreutils,kbd,module-init-tools,autofs,jpackage-utils,ipa-client,redhat-logos,selinux-policy-targeted,libpciaccess,numad,wget,rh-amazon-rhui-client-beta,bind-libs,setuptool,polkit'']'} > - {comment: 'RHEL must not lack packages: set([''nc'', ''cyrus-sasl-md5'', ''sysfsutils'', > ''neon'', ''stunnel'', ''man-pages-fr'', ''tcl'', ''gd'', ''mutt'', ''pam_pkcs11'', > ''libXaw'', ''pakchois'', ''krb5-pkinit-openssl'', ''nss_db'', ''postgresql-libs'', > ''nmap'', ''postgresql-plpython'', ''lslk'', ''compat-db43'', ''abrt-plugin-sosreport'', > ''ksh'', ''xterm'', ''libnfnetlink'', ''apr-util'', ''man-pages-es'', ''kernel-devel'', > ''ppl'', ''aspell'', ''libjpeg'', ''compat-db42'', ''mgetty'', ''net-snmp-libs'', > ''httpd-tools'', ''abrt-plugin-logger'', ''udftools'', ''expect'', ''mysql-connector-odbc'', > ''libgcj'', ''libicu'', ''ftp'', ''man-pages-pl'', ''finger'', ''postgresql-odbc'', > ''nss-pam-ldapd'', ''screen'', ''pcsc-lite-libs'', ''xinetd'', ''conman'', > ''sinjdoc'', ''abrt-plugin-rhtsupport'', ''symlinks'', ''postgresql'', ''dialog'', > ''libsysfs'', ''compat-db'', ''apr'', ''pam_ldap'', ''java-1.5.0-gcj'', > ''man-pages-ja'', ''mtools'', ''subversion'', ''httpd'', ''libnetfilter_conntrack'', > ''tokyocabinet'', ''urlview'', ''iptstate'', ''mod_perl'', ''cloog-ppl'', > ''telnet'', ''apr-util-ldap'', ''libXp'', ''libXpm'', ''postgresql-server'', > ''kernel-headers'', ''unix2dos'', ''man-pages-it'', ''tree'', ''mod_authz_ldap'', > ''postgresql-jdbc'', ''nscd'', ''compat-libstdc++-33'', ''MySQL-python'', > ''perl-BSD-Resource'', ''openldap-clients'', ''jwhois'', ''libart_lgpl'', > ''glibc-devel'', ''gcc'', ''mod_ssl'', ''net-snmp'', ''libXmu'', ''webalizer'', > ''perl-Date-Manip'', ''java_cup'', ''man-pages-ru'', ''man-pages-cs'', ''man-pages-ko'', > ''unixODBC'', ''lm_sensors-libs'', ''ncompress'', ''libtool-ltdl'', ''dos2unix'', > ''glibc-headers'', ''logwatch'', ''cpp'', ''openswan'', ''mpfr''])', result: fail} > testcase_12_passwd_group: > - {command: 'grep ''^root:x:0:0:root:/root:/bin/bash'' /etc/passwd', result: passed} > - {command: 'grep ''^nobody:x:99:99:Nobody:/:/sbin/nologin'' /etc/passwd', result: passed} > - {command: 'grep ''^sshd:x:74:74:Privilege-separated SSH:/var/empty/sshd:/sbin/nologin'' > /etc/passwd', result: passed} > - {command: 'grep ''^root:x:0:'' /etc/group', result: passed} > - {command: 'grep ''^daemon:x:2:bin,daemon'' /etc/group', result: passed} > - {command: 'grep ''^bin:x:1:bin,daemon'' /etc/group', result: passed} > testcase_13_resize2fs: > - {comment: resize2fs is not applicable for hvm instances, result: passed} > testcase_14_host_details: > - {command: '[ ! -z "`curl http://169.254.169.254/latest/dynamic/instance-identity/signature`" > ]', result: passed} > - {command: 'curl http://169.254.169.254/latest/dynamic/instance-identity/document', > match: '.*({.*}).*', result: passed, value: '[''{\r\n "instanceId" : "i-7c86f802",\r\n "billingProducts" > : [ "bp-63a5400a" ],\r\n "version" : "2010-08-31",\r\n "accountId" : "567014786890",\r\n "instanceType" > : "hi1.4xlarge",\r\n "architecture" : "x86_64",\r\n "kernelId" : null,\r\n "ramdiskId" > : null,\r\n "pendingTime" : "2012-12-18T09:58:55Z",\r\n "imageId" : "ami-877cf1ee",\r\n "availabilityZone" > : "us-east-1c",\r\n "devpayProductCodes" : null,\r\n "privateIp" : "10.148.161.50",\r\n "region" > : "us-east-1"\r\n}'']'} > - {command: '[ "ami-877cf1ee" = "ami-877cf1ee" ]', result: passed} > - {command: '[ "x86_64" = "x86_64" ]', result: passed} > - {command: '[ "us-east-1" = "us-east-1" ]', result: passed} > - {command: '[ "bp-63a5400a" = "bp-63a5400a" ]', result: passed} > testcase_15_rhel_version: > - {command: 'rpm -q --qf ''%{RELEASE} > > '' --whatprovides redhat-release', match: ".*\r\n([0-9]\\.[0-9]\\..*)\r\n\ > .*", result: passed, value: '[''6.4.0.3.el6'']'} > - {actual: '1', command: '[ ''6.4-beta'' = ''6.4.0.3.'' ]', result: failed} > testcase_16_selinux: > - {command: getenforce, expectation: "\r\nEnforcing\r\n", result: passed} > - {command: grep '^SELINUX=enforcing' /etc/sysconfig/selinux, result: passed} > - {command: grep '^SELINUXTYPE=targeted' /etc/sysconfig/selinux, result: passed} > - {command: setenforce Permissive && getenforce, expectation: "\r\nPermissive\r\ > \n", result: passed} > - {command: setenforce Enforcing && getenforce, expectation: "\r\nEnforcing\r\ > \n", result: passed} > testcase_17_shells: > - {command: grep 'bin/bash$' /etc/shells, result: passed} > - {command: grep 'bin/nologin$' /etc/shells, result: passed} > testcase_18_sshd: > - {command: 'chkconfig --list sshd | grep ''0:off[[:space:]]*1:off[[:space:]]*2:on[[:space:]]*3:on[[:space:]]*4:on[[:space:]]*5:on[[:space:]]*6:off''', > result: passed} > - {command: service sshd status | grep running, result: passed} > - {command: grep 'PasswordAuthentication no' /etc/ssh/sshd_config, result: passed} > testcase_19_rhn_system_id: > - {command: '[ ! -f /etc/sysconfig/rhn/systemid ]', result: passed} > testcase_20_auditd: > - {command: md5sum /etc/audit/audit.rules | cut -f 1 -d ' ', expectation: f9869e1191838c461f5b9051c78a638d, > result: passed} > - {command: md5sum /etc/audit/auditd.conf | cut -f 1 -d ' ', expectation: e1886162554c18906df2ecd258aa4794, > result: passed} > - {command: md5sum /etc/sysconfig/auditd | cut -f 1 -d ' ', expectation: d4d43637708e30418c30003e212f76fc, > result: passed} > - {command: chkconfig --list auditd, expectation: '3:on.*5:on', result: passed} > testcase_21_disk_size_format: > - {command: 'mount | grep ''^/dev'' | awk ''{print $1}''', result: passed, value: /dev/xvda1} > - {command: 'echo ''###'' ;mount | grep ''^/'' | awk ''{print $3}''; echo ''###''', > match: ".*\r\n###\r\n(.*)\r\n###\r\n.*", result: passed, value: '[''/'']'} > - {command: 'echo ''###'' ;mount | grep ''^/'' | awk ''{print $5}''; echo ''###''', > match: ".*\r\n###\r\n(.*)\r\n###\r\n.*", result: passed, value: '[''ext4'']'} > - {command: '[ `df -k / | awk ''{ print $2 }'' | tail -n 1` -gt 3937219 ]', > result: passed} > - {command: '[ ext4 = ext4 ]', result: passed} > testcase_22_gpg_keys: > - {command: grep '^gpgcheck=' /etc/yum.repos.d/redhat-*.repo | cut -d\= -f2 > | sort -uf | tr -d ' ', expectation: "\r\n1\r\n", result: passed} > - {command: rpm -qa gpg-pubkey* | wc -l, expectation: "\r\n2\r\n", result: passed} > - {command: rpm -q gpg-pubkey-2fa658e0-45700c69, result: passed} > - {command: rpm -q gpg-pubkey-fd431d51-4ae0493b, result: passed} > testcase_23_syslog: > - {command: md5sum /etc/rsyslog.conf | cut -f 1 -d ' ', result: passed, value: 8b91b32300134e98ef4aee632ed61e21} > - {command: '[ 8b91b32300134e98ef4aee632ed61e21 = 8b91b32300134e98ef4aee632ed61e21 > ]', result: passed} > testcase_24_yum_plugin: > - {command: 'grep ''^enabled[[:space:]]*=[[:space:]]*[^0 ]'' /etc/yum/pluginconf.d/rhnplugin.conf', > result: passed} > testcase_26_verify_rpms: > - {command: rpm -Va --nomtime --nosize --nomd5 | sort -fu | wc -l, result: passed, > value: '5'} > - {command: 'rpm -q --queryformat ''%{RELEASE} > > '' redhat-release-server | cut -d. -f1,2', result: passed, value: '6.4'} > - {command: '[ 5 = 5 ]', result: passed} > - {actual: '1', command: '[ 6.4 = 6.4-beta ]', result: failed} > - {command: 'rpm -qa --queryformat ''%{PACKAGER} > > '' | sort -u | grep -v ''Red Hat, Inc.''', result: passed, value: "Lai Jiangshan\ > \ <laijs@cn.fujitsu.com>\r\n(none)"} > testcase_27_yum_repos: > - {command: ls /etc/yum.repos.d/*.repo | wc -l, result: passed, value: '5'} > - {command: ls /etc/yum.repos.d/redhat*.repo | wc -l, result: passed, value: '4'} > - {command: ls /etc/yum.repos.d/rhel*.repo | wc -l, result: passed, value: '1'} > - {actual: '1', command: '[ 5 = 6 ]', result: failed} > - {command: '[ 4 = 4 ]', result: passed} > - {actual: '1', command: '[ 1 = 0 ]', result: failed} > testcase_28_iptables: > - {command: 'service iptables status | grep :22 | grep ACCEPT | wc -l', expectation: "\r\n\ > 1\r\n", result: passed} > - {command: 'service iptables status | grep RELATED,ESTABLISHED | grep ACCEPT > | wc -l', expectation: "\r\n1\r\n", result: passed} > - {command: service iptables status | grep REJECT | grep all | grep 0.0.0.0/0 > | grep icmp-host-prohibited | wc -l, expectation: "\r\n2\r\n", result: passed} > testcase_29_swap_file: > - {comment: no swap for this instance type, result: passed} > testcase_30_rhn_certificates: > - {command: rpm -ql rh-amazon-rhui-client | egrep '.*\.(pem|crt)', result: passed, > value: "/etc/pki/entitlement/ca.crt\r\n/etc/pki/entitlement/cdn.redhat.com-chain.crt\r\ > \n/etc/pki/entitlement/product/content-rhel6.crt\r\n/etc/pki/entitlement/product/rhui-client-config-server-6.crt"} > - {command: openssl x509 -in /etc/pki/entitlement/ca.crt -noout -dates | grep > notAfter, result: passed, value: 'notAfter=Nov 30 19:46:02 2017 GMT'} > - {comment: '(/etc/pki/entitlement/ca.crt).notAfter=2017-11-30 19:46:02; expecting: > 2020-11-10 00:00:00', result: failed} > - {command: openssl x509 -in /etc/pki/entitlement/cdn.redhat.com-chain.crt -noout > -dates | grep notAfter, result: passed, value: 'notAfter=Mar 13 11:24:54 > 2030 GMT'} > - {comment: '(/etc/pki/entitlement/cdn.redhat.com-chain.crt).notAfter=2030-03-13 > 11:24:54; expecting: 2020-11-10 00:00:00', result: passed} > - {command: openssl x509 -in /etc/pki/entitlement/product/content-rhel6.crt > -noout -dates | grep notAfter, result: passed, value: 'notAfter=Nov 30 18:31:28 > 2020 GMT'} > - {comment: '(/etc/pki/entitlement/product/content-rhel6.crt).notAfter=2020-11-30 > 18:31:28; expecting: 2020-11-10 00:00:00', result: passed} > - {command: openssl x509 -in /etc/pki/entitlement/product/rhui-client-config-server-6.crt > -noout -dates | grep notAfter, result: passed, value: 'notAfter=Nov 30 18:38:07 > 2020 GMT'} > - {comment: '(/etc/pki/entitlement/product/rhui-client-config-server-6.crt).notAfter=2020-11-30 > 18:38:07; expecting: 2020-11-10 00:00:00', result: passed} > testcase_31_subscription_management: > - {command: yum --disablerepo="*" repolist | grep -i subscription-manager, result: passed} > - {command: yum --enableplugin=subscription-manager --disablerepo="*" repolist, > expectation: 'Loaded plugins:[^ > > ]*subscription-manager', result: passed} > - {command: subscription-manager list, expectation: 'Status:\s*Not.Subscribed', > result: passed} > testcase_50_yum_package_install: > - {command: yum repolist, result: passed} > - {command: yum search zsh, result: passed} > - {command: yum -y install zsh, result: passed} > - {command: 'rpm -q --queryformat ''%{NAME}'' zsh', result: passed} > - {command: rpm -e zsh, result: passed} > testcase_55_yum_group_install: > - {command: yum -y groupinstall 'Development tools', result: passed} > testcase_60_yum_update: > - {command: yum -y update, result: passed} > testcase_99_reboot: > - {command: reboot, result: passed} > stage2: > testcase_08_memory: > - {command: 'grep ''MemTotal:'' /proc/meminfo', match: ".*\r\nMemTotal:\\s*([0-9]+) ", > result: passed, value: '[''62535716'']'} > - {command: '[ 62535716 -gt 60500000 ]', result: passed} > testcase_25_uname: > - {command: uname -r, result: passed, value: 2.6.32-343.el6.x86_64} > - {command: 'rpm -q --queryformat ''%{VERSION}-%{RELEASE}.%{ARCH} > > '' kernel | sort | tail -1', result: passed, value: 2.6.32-343.el6.x86_64} > - {command: uname -o, result: passed, value: GNU/Linux} > - {command: '[ 2.6.32-343.el6.x86_64 = 2.6.32-343.el6.x86_64 ]', result: passed} > - {command: '[ GNU/Linux = ''GNU/Linux'' ]', result: passed} > - {command: grep UPDATEDEFAULT=yes /etc/sysconfig/kernel, result: passed} > - {command: grep DEFAULTKERNEL=kernel /etc/sysconfig/kernel, result: passed} > m3.2xlarge: > stage1: > testcase_01_ipv6: > - {command: grep NETWORKING_IPV6=no /etc/sysconfig/network, result: passed} > testcase_02_bash_history: > - {actual: "[ ! -f ~/.bash_history ] && echo 0 || cat ~/.bash_his \rtory | wc\ > \ -l\r\n1\r\n[root@ip-10-149-26-226 ~]# ", command: '[ ! -f ~/.bash_history > ] && echo 0 || cat ~/.bash_history | wc -l', expectation: "\r\n0\r\n", result: failed} > testcase_03_chkconfig: > - {command: chkconfig --list crond, expectation: '3:on', result: passed} > - {command: chkconfig --list iptables, expectation: '3:on', result: passed} > testcase_04_cloud_firstboot: > - {command: chkconfig --list rh-cloud-firstboot, expectation: '3:off', result: passed} > - {command: test -f /etc/sysconfig/rh-cloud-firstboot, result: passed} > - {command: cat /etc/sysconfig/rh-cloud-firstboot, expectation: RUN_FIRSTBOOT=NO, > result: passed} > testcase_05_grub: > - {command: test -h /boot/grub/menu.lst, result: passed} > - {command: readlink -e /boot/grub/menu.lst, expectation: /boot/grub/grub.conf, > result: passed} > testcase_06_inittab: > - {command: 'grep ''^id:'' /etc/inittab', expectation: 'id:3:initdefault', result: passed} > testcase_07_libc6_xen_conf: > - {command: test -f /etc/ld.so.conf.d/libc6-xen.conf, result: passed} > testcase_08_memory: > - {command: 'grep ''MemTotal:'' /proc/meminfo', match: ".*\r\nMemTotal:\\s*([0-9]+) ", > result: passed, value: '[''30946484'']'} > - {command: '[ 30946484 -gt 30000000 ]', result: passed} > testcase_09_nameserver: > - {command: dig clock.redhat.com | grep 66.187.233.4, result: passed} > testcase_10_networking: > - {command: grep '^NETWORKING=yes' /etc/sysconfig/network, result: passed} > - {command: grep '^DEVICE=eth0' /etc/sysconfig/network-scripts/ifcfg-eth0, result: passed} > testcase_11_package_set: > - {command: 'rpm -qa --queryformat ''%{NAME},'' && echo', match: ".*\r\n(.*),\r\ > \n.*", result: passed, value: '[''iwl5150-firmware,cvs,tzdata,iwl6050-firmware,hicolor-icon-theme,latencytop-common,prelink,nss-tools,xml-common,cpuspeed,gnupg2,glibc-common,fprintd-pam,man,libattr,hwloc,nss_compat_ossl,libcom_err,ledmon,SDL,popt,abrt-cli,python-libs,freetype,dstat,python-iniparse,libjpeg-turbo,elinks,python-dmidecode,db4,pinfo,pygobject2,libsepol,pam_passwdqc,python-gudev,shadow-utils,hunspell-en,libproxy-bin,libuuid,valgrind,libreport-compat,sqlite,mlocate,abrt,libtdb,lsof,abrt-tui,btparser,libitm,abrt-addon-kerneloops,libudev,scl-utils,python-nose,libgcrypt,zip,gettext,abrt-libs,eject,pytalloc,pcre,b43-fwcutter,libipa_hbac-python,file-libs,rfkill,rhn-client-tools,libvorbis,rt73usb-firmware,gnutls,lua,zd1211-firmware,libXau,lcms-libs,ql2200-firmware,libpath_utils,libldb,ivtv-firmware,sgpio,cyrus-sasl-gssapi,man-pages,libsss_autofs,checkpolicy,gpg-pubkey,libthai,bc,ethtool,gmp,perl-XML-Parser,m4,dejavu-sans-fonts,numactl,poppler-utils,perl-version,libXext,perl,libXfixes,perl-Test-Harness,libXft,perl-Module-Load-Conditional,libXdamage,perl-Package-Constants,java-1.7.0-openjdk,perl-IO-Zlib,gstreamer-plugins-base,perl-File-Fetch,python-matplotlib,perl-Object-Accessor,policycoreutils,perl-Compress-Raw-Bzip2,initscripts,libusb1,cups,libcollection,usermode,perl-CPAN,nfs-utils,perl-ExtUtils-Embed,lvm2-libs,perl-Parse-CPAN-Meta,rhn-check,perl-Time-HiRes,foomatic-db-ppds,xz-lzma-compat,mesa-dri-drivers,gstreamer,phonon-backend-gstreamer,flac,crda,MAKEDEV,virt-what,db4-utils,oddjob,libnih,cronie-anacron,make,certmonger,libhugetlbfs,ntpdate,groff,samba-winbind,cracklib,selinux-policy,openssl,dracut-kernel,hwdata,hal,plymouth-scripts,systemtap-runtime,qt-sqlite,samba-client,urw-fonts,subscription-manager,fipscheck-lib,openssh-server,ConsoleKit-libs,aic94xx-firmware,at,libgcc,sssd-client,ca-certificates,logrotate,filesystem,rhino,mesa-dri-filesystem,nss,foomatic-db-filesystem,mailx,kernel-firmware,openldap,iso-codes,xmlrpc-c-client,nss-softokn-freebl,curl,glibc,rpm-libs,bash,libuser,libcap,gpgme,info,gpm-libs,libstdc++,libsss_idmap,libxml2,theora-tools,chkconfig,libffi,audit-libs,python,nss-util,newt-python,libpng,libxml2-python,expat,python-ethtool,libtalloc,authconfig,bzip2-libs,python-simplejson,readline,pyOpenSSL,libselinux,rhnlib,glib2,python-rhsm,sed,yum-metadata-parser,dbus-glib,libproxy,libICE,libreport-plugin-reportuploader,libblkid,libreport-plugin-rhtsupport,xmlrpc-c,libreport-python,krb5-libs,abrt-addon-ccpp,tcp_wrappers-libs,libreport-plugin-mailx,libogg,libreport-plugin-logger,xz-libs,libreport-plugin-kerneloops,libidn,python-crypto,libcap-ng,python-setuptools,libgpg-error,numpy,pciutils-libs,python-ldap,libgssglue,python-lxml,procps,python-urlgrabber,libtevent,pytz,grep,python-kerberos,binutils,python-netaddr,pkgconfig,yum,elfutils-libs,pixman,atk,libtasn1,psmisc,cups-libs,libtiff,plymouth-core-libs,sysvinit-tools,libxcb,libmng,liboil,crash,ustr,libgudev1,hesiod,libtheora,libasyncns,keyutils,libini_config,libipa_hbac,libevent,libselinux-utils,blktrace,vim-minimal,pax,jasper-libs,libpcap,avahi-libs,c-ares,libusb,perl-libwww-perl,diffutils,perl-libxml-perl,libtar,dejavu-fonts-common,libedit,busybox,pth,poppler,perl-Pod-Escapes,dhcp-common,perl-Module-Pluggable,perl-Pod-Simple,perl-Locale-Maketext-Simple,perl-ExtUtils-ParseXS,perl-devel,perl-Module-Load,perl-IPC-Cmd,perl-IO-Compress-Base,perl-Compress-Raw-Zlib,perl-Compress-Zlib,perl-Archive-Tar,perl-Term-UI,perl-Archive-Extract,perl-ExtUtils-CBuilder,perl-DBI,perl-Digest-SHA,perl-URI,libgfortran,slang,openjpeg-libs,dmidecode,perl-IO-Compress-Bzip2,perl-DBD-SQLite,perl-Module-Build,perl-parent,perl-CGI,perl-CPANPLUS,perl-HTML-Parser,libXfont,e2fsprogs,tmpwatch,gstreamer-tools,iw,hal-libs,tcp_wrappers,eggdbus,libutempter,patch,device-mapper-persistent-data,portreserve,upstart,ed,time,dash,cdparanoia-libs,ncurses,less,gzip,cracklib-dicts,pam,fontconfig,alsa-lib,qt,libssh2,xdg-utils,rpcbind,pciutils,libsndfile,ghostscript-fonts,mysql-libs,fipscheck,bind-utils,ConsoleKit,pam_krb5,iwl6000-firmware,biosdevname,bfa-firmware,iwl6000g2a-firmware,readahead,dhclient,microcode_ctl,quota,acpid,seekwatcher,java-1.6.0-openjdk,perl-XML-Grove,tcpdump,yum-plugin-security,cas,iotop,grub,perf,gdb,man-pages-overrides,Red_Hat_Enterprise_Linux-Release_Notes-6-en-US,usbutils,perl-Crypt-SSLeay,psacct,audit,perl-core,perl-XML-Dumper,irqbalance,oprofile,efibootmgr,latencytop-tui,ltrace,rsync,nano,nfs4-acl-tools,mcelog,mtr,bridge-utils,libtopology,traceroute,dosfstools,latrace,trace-cmd,vconfig,atmel-firmware,ql23xx-firmware,ql2500-firmware,xorg-x11-drv-ati-firmware,rootfiles,iwl5000-firmware,redhat-indexhtml,ipw2100-firmware,iwl3945-firmware,iwl4965-firmware,ipw2200-firmware,gpg-pubkey,libX11,libXrender,libXi,libXtst,libXrandr,pango,pulseaudio-libs,libXt,giflib,qt3,libXv,libXxf86vm,gtk2,libfprint,redhat-release-server,iptables,iputils,util-linux-ng,libdrm,device-mapper-libs,device-mapper-event-libs,device-mapper-event,nfs-utils-lib,openssh,dmraid,rhnsd,yum-rhn-plugin,rh-amazon-rhui-client,cryptsetup-luks,foomatic-db,redhat-lsb-printing,mesa-libGL,mesa-libGLU,qt-x11,plymouth,wireless-tools,mdadm,cyrus-sasl,sssd,oddjob-mkhomedir,crontabs,cronie,redhat-lsb,yp-tools,libcgroup,ntp,samba-common,ipa-python,system-config-firewall-base,kbd-misc,dracut,kernel,hal-info,pm-utils,pcmciautils,kexec-tools,system-config-firewall-tui,cifs-utils,sysstat,system-config-network-tui,lvm2,openssh-clients,parted,iwl1000-firmware,krb5-workstation,setup,b43-openfwwf,jline,tzdata-java,iwl100-firmware,nss-sysinit,basesystem,smartmontools,libcurl,ncurses-base,rng-tools,rpm,ncurses-libs,latencytop,passwd,zlib,perl-XML-Twig,hdparm,dbus-libs,yum-utils,mingetty,nspr,libhugetlbfs-utils,rpm-python,libacl,vim-enhanced,dbus-python,gawk,sudo,m2crypto,elfutils-libelf,alsa-utils,python-dateutil,gamin,tcsh,sos,cyrus-sasl-lib,ntsysv,libproxy-python,libSM,crash-gcore-command,libreport,keyutils-libs,cyrus-sasl-plain,abrt-addon-python,findutils,unzip,libreport-cli,which,attr,python-paramiko,dbus,powertop,python-krbV,libnl,strace,python-pycurl,bzip2,setserial,python-nss,cpio,crash-trace-command,pygpgme,libtirpc,rdate,libdhash,tar,rt61pci-firmware,samba4-libs,e2fsprogs-libs,libertas-usb8388-firmware,libvisual,file,ql2400-firmware,libsemanage,xz,words,libref_array,nss-softokn,ql2100-firmware,libaio,net-tools,sg3_utils-libs,acl,mailcap,libss,fontpackages-filesystem,libfontenc,poppler-data,gdbm,libX11-common,perl-libs,cairo,perl-Params-Check,libXcursor,perl-ExtUtils-MakeMaker,libXinerama,perl-Log-Message,ghostscript,perl-IO-Compress-Zlib,pycairo,perl-Log-Message-Simple,libXcomposite,perl-Test-Simple,fprintd,perl-Module-CoreList,iproute,perl-Module-Loaded,udev,newt,device-mapper,atlas,kpartx,perl-DBIx-Simple,dmraid-events,perl-Time-Piece,rhn-setup,perl-HTML-Tagset,cryptsetup-luks-libs,xorg-x11-font-utils,foomatic,elfutils,mesa-dri1-drivers,libxslt,redhat-lsb-graphics,grubby,python-iwlib,desktop-file-utils,postfix,pinentry,rsyslog,hunspell,redhat-lsb-core,libgomp,ypbind,vim-common,samba-winbind-clients,coreutils-libs,iptables-ipv6,coreutils,kbd,module-init-tools,autofs,jpackage-utils,ipa-client,redhat-logos,selinux-policy-targeted,libpciaccess,numad,wget,rh-amazon-rhui-client-beta,bind-libs,setuptool,polkit'']'} > - {comment: 'RHEL must not lack packages: set([''nc'', ''cyrus-sasl-md5'', ''sysfsutils'', > ''neon'', ''stunnel'', ''man-pages-fr'', ''tcl'', ''gd'', ''mutt'', ''pam_pkcs11'', > ''libXaw'', ''pakchois'', ''krb5-pkinit-openssl'', ''nss_db'', ''postgresql-libs'', > ''nmap'', ''postgresql-plpython'', ''lslk'', ''compat-db43'', ''abrt-plugin-sosreport'', > ''ksh'', ''xterm'', ''libnfnetlink'', ''apr-util'', ''man-pages-es'', ''kernel-devel'', > ''ppl'', ''aspell'', ''libjpeg'', ''compat-db42'', ''mgetty'', ''net-snmp-libs'', > ''httpd-tools'', ''abrt-plugin-logger'', ''udftools'', ''expect'', ''mysql-connector-odbc'', > ''libgcj'', ''libicu'', ''ftp'', ''man-pages-pl'', ''finger'', ''postgresql-odbc'', > ''nss-pam-ldapd'', ''screen'', ''pcsc-lite-libs'', ''xinetd'', ''conman'', > ''sinjdoc'', ''abrt-plugin-rhtsupport'', ''symlinks'', ''postgresql'', ''dialog'', > ''libsysfs'', ''compat-db'', ''apr'', ''pam_ldap'', ''java-1.5.0-gcj'', > ''man-pages-ja'', ''mtools'', ''subversion'', ''httpd'', ''libnetfilter_conntrack'', > ''tokyocabinet'', ''urlview'', ''iptstate'', ''mod_perl'', ''cloog-ppl'', > ''telnet'', ''apr-util-ldap'', ''libXp'', ''libXpm'', ''postgresql-server'', > ''kernel-headers'', ''unix2dos'', ''man-pages-it'', ''tree'', ''mod_authz_ldap'', > ''postgresql-jdbc'', ''nscd'', ''compat-libstdc++-33'', ''MySQL-python'', > ''perl-BSD-Resource'', ''openldap-clients'', ''jwhois'', ''libart_lgpl'', > ''glibc-devel'', ''gcc'', ''mod_ssl'', ''net-snmp'', ''libXmu'', ''webalizer'', > ''perl-Date-Manip'', ''java_cup'', ''man-pages-ru'', ''man-pages-cs'', ''man-pages-ko'', > ''unixODBC'', ''lm_sensors-libs'', ''ncompress'', ''libtool-ltdl'', ''dos2unix'', > ''glibc-headers'', ''logwatch'', ''cpp'', ''openswan'', ''mpfr''])', result: fail} > testcase_12_passwd_group: > - {command: 'grep ''^root:x:0:0:root:/root:/bin/bash'' /etc/passwd', result: passed} > - {command: 'grep ''^nobody:x:99:99:Nobody:/:/sbin/nologin'' /etc/passwd', result: passed} > - {command: 'grep ''^sshd:x:74:74:Privilege-separated SSH:/var/empty/sshd:/sbin/nologin'' > /etc/passwd', result: passed} > - {command: 'grep ''^root:x:0:'' /etc/group', result: passed} > - {command: 'grep ''^daemon:x:2:bin,daemon'' /etc/group', result: passed} > - {command: 'grep ''^bin:x:1:bin,daemon'' /etc/group', result: passed} > testcase_13_resize2fs: > - {comment: resize2fs is not applicable for hvm instances, result: passed} > testcase_14_host_details: > - {command: '[ ! -z "`curl http://169.254.169.254/latest/dynamic/instance-identity/signature`" > ]', result: passed} > - {command: 'curl http://169.254.169.254/latest/dynamic/instance-identity/document', > match: '.*({.*}).*', result: passed, value: '[''{\r\n "instanceId" : "i-8489f7fa",\r\n "billingProducts" > : [ "bp-63a5400a" ],\r\n "version" : "2010-08-31",\r\n "accountId" : "567014786890",\r\n "instanceType" > : "m3.2xlarge",\r\n "architecture" : "x86_64",\r\n "kernelId" : null,\r\n "ramdiskId" > : null,\r\n "pendingTime" : "2012-12-18T09:58:54Z",\r\n "imageId" : "ami-877cf1ee",\r\n "availabilityZone" > : "us-east-1c",\r\n "devpayProductCodes" : null,\r\n "privateIp" : "10.149.26.226",\r\n "region" > : "us-east-1"\r\n}'']'} > - {command: '[ "ami-877cf1ee" = "ami-877cf1ee" ]', result: passed} > - {command: '[ "x86_64" = "x86_64" ]', result: passed} > - {command: '[ "us-east-1" = "us-east-1" ]', result: passed} > - {command: '[ "bp-63a5400a" = "bp-63a5400a" ]', result: passed} > testcase_15_rhel_version: > - {command: 'rpm -q --qf ''%{RELEASE} > > '' --whatprovides redhat-release', match: ".*\r\n([0-9]\\.[0-9]\\..*)\r\n\ > .*", result: passed, value: '[''6.4.0.3.el6'']'} > - {actual: '1', command: '[ ''6.4-beta'' = ''6.4.0.3.'' ]', result: failed} > testcase_16_selinux: > - {command: getenforce, expectation: "\r\nEnforcing\r\n", result: passed} > - {command: grep '^SELINUX=enforcing' /etc/sysconfig/selinux, result: passed} > - {command: grep '^SELINUXTYPE=targeted' /etc/sysconfig/selinux, result: passed} > - {command: setenforce Permissive && getenforce, expectation: "\r\nPermissive\r\ > \n", result: passed} > - {command: setenforce Enforcing && getenforce, expectation: "\r\nEnforcing\r\ > \n", result: passed} > testcase_17_shells: > - {command: grep 'bin/bash$' /etc/shells, result: passed} > - {command: grep 'bin/nologin$' /etc/shells, result: passed} > testcase_18_sshd: > - {command: 'chkconfig --list sshd | grep ''0:off[[:space:]]*1:off[[:space:]]*2:on[[:space:]]*3:on[[:space:]]*4:on[[:space:]]*5:on[[:space:]]*6:off''', > result: passed} > - {command: service sshd status | grep running, result: passed} > - {command: grep 'PasswordAuthentication no' /etc/ssh/sshd_config, result: passed} > testcase_19_rhn_system_id: > - {command: '[ ! -f /etc/sysconfig/rhn/systemid ]', result: passed} > testcase_20_auditd: > - {command: md5sum /etc/audit/audit.rules | cut -f 1 -d ' ', expectation: f9869e1191838c461f5b9051c78a638d, > result: passed} > - {command: md5sum /etc/audit/auditd.conf | cut -f 1 -d ' ', expectation: e1886162554c18906df2ecd258aa4794, > result: passed} > - {command: md5sum /etc/sysconfig/auditd | cut -f 1 -d ' ', expectation: d4d43637708e30418c30003e212f76fc, > result: passed} > - {command: chkconfig --list auditd, expectation: '3:on.*5:on', result: passed} > testcase_21_disk_size_format: > - {command: 'mount | grep ''^/dev'' | awk ''{print $1}''', result: passed, value: /dev/xvda1} > - {command: 'echo ''###'' ;mount | grep ''^/'' | awk ''{print $3}''; echo ''###''', > match: ".*\r\n###\r\n(.*)\r\n###\r\n.*", result: passed, value: '[''/'']'} > - {command: 'echo ''###'' ;mount | grep ''^/'' | awk ''{print $5}''; echo ''###''', > match: ".*\r\n###\r\n(.*)\r\n###\r\n.*", result: passed, value: '[''ext4'']'} > - {command: '[ `df -k / | awk ''{ print $2 }'' | tail -n 1` -gt 3937219 ]', > result: passed} > - {command: '[ ext4 = ext4 ]', result: passed} > testcase_22_gpg_keys: > - {command: grep '^gpgcheck=' /etc/yum.repos.d/redhat-*.repo | cut -d\= -f2 > | sort -uf | tr -d ' ', expectation: "\r\n1\r\n", result: passed} > - {command: rpm -qa gpg-pubkey* | wc -l, expectation: "\r\n2\r\n", result: passed} > - {command: rpm -q gpg-pubkey-2fa658e0-45700c69, result: passed} > - {command: rpm -q gpg-pubkey-fd431d51-4ae0493b, result: passed} > testcase_23_syslog: > - {command: md5sum /etc/rsyslog.conf | cut -f 1 -d ' ', result: passed, value: 8b91b32300134e98ef4aee632ed61e21} > - {command: '[ 8b91b32300134e98ef4aee632ed61e21 = 8b91b32300134e98ef4aee632ed61e21 > ]', result: passed} > testcase_24_yum_plugin: > - {command: 'grep ''^enabled[[:space:]]*=[[:space:]]*[^0 ]'' /etc/yum/pluginconf.d/rhnplugin.conf', > result: passed} > testcase_26_verify_rpms: > - {command: rpm -Va --nomtime --nosize --nomd5 | sort -fu | wc -l, result: passed, > value: '5'} > - {command: 'rpm -q --queryformat ''%{RELEASE} > > '' redhat-release-server | cut -d. -f1,2', result: passed, value: '6.4'} > - {command: '[ 5 = 5 ]', result: passed} > - {actual: '1', command: '[ 6.4 = 6.4-beta ]', result: failed} > - {command: 'rpm -qa --queryformat ''%{PACKAGER} > > '' | sort -u | grep -v ''Red Hat, Inc.''', result: passed, value: "Lai Jiangshan\ > \ <laijs@cn.fujitsu.com>\r\n(none)"} > testcase_27_yum_repos: > - {command: ls /etc/yum.repos.d/*.repo | wc -l, result: passed, value: '5'} > - {command: ls /etc/yum.repos.d/redhat*.repo | wc -l, result: passed, value: '4'} > - {command: ls /etc/yum.repos.d/rhel*.repo | wc -l, result: passed, value: '1'} > - {actual: '1', command: '[ 5 = 6 ]', result: failed} > - {command: '[ 4 = 4 ]', result: passed} > - {actual: '1', command: '[ 1 = 0 ]', result: failed} > testcase_28_iptables: > - {command: 'service iptables status | grep :22 | grep ACCEPT | wc -l', expectation: "\r\n\ > 1\r\n", result: passed} > - {command: 'service iptables status | grep RELATED,ESTABLISHED | grep ACCEPT > | wc -l', expectation: "\r\n1\r\n", result: passed} > - {command: service iptables status | grep REJECT | grep all | grep 0.0.0.0/0 > | grep icmp-host-prohibited | wc -l, expectation: "\r\n2\r\n", result: passed} > testcase_29_swap_file: > - {comment: no swap for this instance type, result: passed} > testcase_30_rhn_certificates: > - {command: rpm -ql rh-amazon-rhui-client | egrep '.*\.(pem|crt)', result: passed, > value: "/etc/pki/entitlement/ca.crt\r\n/etc/pki/entitlement/cdn.redhat.com-chain.crt\r\ > \n/etc/pki/entitlement/product/content-rhel6.crt\r\n/etc/pki/entitlement/product/rhui-client-config-server-6.crt"} > - {command: openssl x509 -in /etc/pki/entitlement/ca.crt -noout -dates | grep > notAfter, result: passed, value: 'notAfter=Nov 30 19:46:02 2017 GMT'} > - {comment: '(/etc/pki/entitlement/ca.crt).notAfter=2017-11-30 19:46:02; expecting: > 2020-11-10 00:00:00', result: failed} > - {command: openssl x509 -in /etc/pki/entitlement/cdn.redhat.com-chain.crt -noout > -dates | grep notAfter, result: passed, value: 'notAfter=Mar 13 11:24:54 > 2030 GMT'} > - {comment: '(/etc/pki/entitlement/cdn.redhat.com-chain.crt).notAfter=2030-03-13 > 11:24:54; expecting: 2020-11-10 00:00:00', result: passed} > - {command: openssl x509 -in /etc/pki/entitlement/product/content-rhel6.crt > -noout -dates | grep notAfter, result: passed, value: 'notAfter=Nov 30 18:31:28 > 2020 GMT'} > - {comment: '(/etc/pki/entitlement/product/content-rhel6.crt).notAfter=2020-11-30 > 18:31:28; expecting: 2020-11-10 00:00:00', result: passed} > - {command: openssl x509 -in /etc/pki/entitlement/product/rhui-client-config-server-6.crt > -noout -dates | grep notAfter, result: passed, value: 'notAfter=Nov 30 18:38:07 > 2020 GMT'} > - {comment: '(/etc/pki/entitlement/product/rhui-client-config-server-6.crt).notAfter=2020-11-30 > 18:38:07; expecting: 2020-11-10 00:00:00', result: passed} > testcase_31_subscription_management: > - {command: yum --disablerepo="*" repolist | grep -i subscription-manager, result: passed} > - {command: yum --enableplugin=subscription-manager --disablerepo="*" repolist, > expectation: 'Loaded plugins:[^ > > ]*subscription-manager', result: passed} > - {command: subscription-manager list, expectation: 'Status:\s*Not.Subscribed', > result: passed} > testcase_50_yum_package_install: > - {command: yum repolist, result: passed} > - {command: yum search zsh, result: passed} > - {command: yum -y install zsh, result: passed} > - {command: 'rpm -q --queryformat ''%{NAME}'' zsh', result: passed} > - {command: rpm -e zsh, result: passed} > testcase_55_yum_group_install: > - {command: yum -y groupinstall 'Development tools', result: passed} > testcase_60_yum_update: > - {command: yum -y update, result: passed} > testcase_99_reboot: > - {command: reboot, result: passed} > stage2: > testcase_08_memory: > - {command: 'grep ''MemTotal:'' /proc/meminfo', match: ".*\r\nMemTotal:\\s*([0-9]+) ", > result: passed, value: '[''30946484'']'} > - {command: '[ 30946484 -gt 30000000 ]', result: passed} > testcase_25_uname: > - {command: uname -r, result: passed, value: 2.6.32-343.el6.x86_64} > - {command: 'rpm -q --queryformat ''%{VERSION}-%{RELEASE}.%{ARCH} > > '' kernel | sort | tail -1', result: passed, value: 2.6.32-343.el6.x86_64} > - {command: uname -o, result: passed, value: GNU/Linux} > - {command: '[ 2.6.32-343.el6.x86_64 = 2.6.32-343.el6.x86_64 ]', result: passed} > - {command: '[ GNU/Linux = ''GNU/Linux'' ]', result: passed} > - {command: grep UPDATEDEFAULT=yes /etc/sysconfig/kernel, result: passed} > - {command: grep DEFAULTKERNEL=kernel /etc/sysconfig/kernel, result: passed} > m3.xlarge: > stage1: > testcase_01_ipv6: > - {command: grep NETWORKING_IPV6=no /etc/sysconfig/network, result: passed} > testcase_02_bash_history: > - {actual: "[ ! -f ~/.bash_history ] && echo 0 || cat ~/.bash_his \rtory | wc\ > \ -l\r\n1\r\n[root@ip-10-149-14-219 ~]# ", command: '[ ! -f ~/.bash_history > ] && echo 0 || cat ~/.bash_history | wc -l', expectation: "\r\n0\r\n", result: failed} > testcase_03_chkconfig: > - {command: chkconfig --list crond, expectation: '3:on', result: passed} > - {command: chkconfig --list iptables, expectation: '3:on', result: passed} > testcase_04_cloud_firstboot: > - {command: chkconfig --list rh-cloud-firstboot, expectation: '3:off', result: passed} > - {command: test -f /etc/sysconfig/rh-cloud-firstboot, result: passed} > - {command: cat /etc/sysconfig/rh-cloud-firstboot, expectation: RUN_FIRSTBOOT=NO, > result: passed} > testcase_05_grub: > - {command: test -h /boot/grub/menu.lst, result: passed} > - {command: readlink -e /boot/grub/menu.lst, expectation: /boot/grub/grub.conf, > result: passed} > testcase_06_inittab: > - {command: 'grep ''^id:'' /etc/inittab', expectation: 'id:3:initdefault', result: passed} > testcase_07_libc6_xen_conf: > - {command: test -f /etc/ld.so.conf.d/libc6-xen.conf, result: passed} > testcase_08_memory: > - {command: 'grep ''MemTotal:'' /proc/meminfo', match: ".*\r\nMemTotal:\\s*([0-9]+) ", > result: passed, value: '[''15433452'']'} > - {command: '[ 15433452 -gt 15000000 ]', result: passed} > testcase_09_nameserver: > - {command: dig clock.redhat.com | grep 66.187.233.4, result: passed} > testcase_10_networking: > - {command: grep '^NETWORKING=yes' /etc/sysconfig/network, result: passed} > - {command: grep '^DEVICE=eth0' /etc/sysconfig/network-scripts/ifcfg-eth0, result: passed} > testcase_11_package_set: > - {command: 'rpm -qa --queryformat ''%{NAME},'' && echo', match: ".*\r\n(.*),\r\ > \n.*", result: passed, value: '[''iwl5150-firmware,cvs,tzdata,iwl6050-firmware,hicolor-icon-theme,latencytop-common,prelink,nss-tools,xml-common,cpuspeed,gnupg2,glibc-common,fprintd-pam,man,libattr,hwloc,nss_compat_ossl,libcom_err,ledmon,SDL,popt,abrt-cli,python-libs,freetype,dstat,python-iniparse,libjpeg-turbo,elinks,python-dmidecode,db4,pinfo,pygobject2,libsepol,pam_passwdqc,python-gudev,shadow-utils,hunspell-en,libproxy-bin,libuuid,valgrind,libreport-compat,sqlite,mlocate,abrt,libtdb,lsof,abrt-tui,btparser,libitm,abrt-addon-kerneloops,libudev,scl-utils,python-nose,libgcrypt,zip,gettext,abrt-libs,eject,pytalloc,pcre,b43-fwcutter,libipa_hbac-python,file-libs,rfkill,rhn-client-tools,libvorbis,rt73usb-firmware,gnutls,lua,zd1211-firmware,libXau,lcms-libs,ql2200-firmware,libpath_utils,libldb,ivtv-firmware,sgpio,cyrus-sasl-gssapi,man-pages,libsss_autofs,checkpolicy,gpg-pubkey,libthai,bc,ethtool,gmp,perl-XML-Parser,m4,dejavu-sans-fonts,numactl,poppler-utils,perl-version,libXext,perl,libXfixes,perl-Test-Harness,libXft,perl-Module-Load-Conditional,libXdamage,perl-Package-Constants,java-1.7.0-openjdk,perl-IO-Zlib,gstreamer-plugins-base,perl-File-Fetch,python-matplotlib,perl-Object-Accessor,policycoreutils,perl-Compress-Raw-Bzip2,initscripts,libusb1,cups,libcollection,usermode,perl-CPAN,nfs-utils,perl-ExtUtils-Embed,lvm2-libs,perl-Parse-CPAN-Meta,rhn-check,perl-Time-HiRes,foomatic-db-ppds,xz-lzma-compat,mesa-dri-drivers,gstreamer,phonon-backend-gstreamer,flac,crda,MAKEDEV,virt-what,db4-utils,oddjob,libnih,cronie-anacron,make,certmonger,libhugetlbfs,ntpdate,groff,samba-winbind,cracklib,selinux-policy,openssl,dracut-kernel,hwdata,hal,plymouth-scripts,systemtap-runtime,qt-sqlite,samba-client,urw-fonts,subscription-manager,fipscheck-lib,openssh-server,ConsoleKit-libs,aic94xx-firmware,at,libgcc,sssd-client,ca-certificates,logrotate,filesystem,rhino,mesa-dri-filesystem,nss,foomatic-db-filesystem,mailx,kernel-firmware,openldap,iso-codes,xmlrpc-c-client,nss-softokn-freebl,curl,glibc,rpm-libs,bash,libuser,libcap,gpgme,info,gpm-libs,libstdc++,libsss_idmap,libxml2,theora-tools,chkconfig,libffi,audit-libs,python,nss-util,newt-python,libpng,libxml2-python,expat,python-ethtool,libtalloc,authconfig,bzip2-libs,python-simplejson,readline,pyOpenSSL,libselinux,rhnlib,glib2,python-rhsm,sed,yum-metadata-parser,dbus-glib,libproxy,libICE,libreport-plugin-reportuploader,libblkid,libreport-plugin-rhtsupport,xmlrpc-c,libreport-python,krb5-libs,abrt-addon-ccpp,tcp_wrappers-libs,libreport-plugin-mailx,libogg,libreport-plugin-logger,xz-libs,libreport-plugin-kerneloops,libidn,python-crypto,libcap-ng,python-setuptools,libgpg-error,numpy,pciutils-libs,python-ldap,libgssglue,python-lxml,procps,python-urlgrabber,libtevent,pytz,grep,python-kerberos,binutils,python-netaddr,pkgconfig,yum,elfutils-libs,pixman,atk,libtasn1,psmisc,cups-libs,libtiff,plymouth-core-libs,sysvinit-tools,libxcb,libmng,liboil,crash,ustr,libgudev1,hesiod,libtheora,libasyncns,keyutils,libini_config,libipa_hbac,libevent,libselinux-utils,blktrace,vim-minimal,pax,jasper-libs,libpcap,avahi-libs,c-ares,libusb,perl-libwww-perl,diffutils,perl-libxml-perl,libtar,dejavu-fonts-common,libedit,busybox,pth,poppler,perl-Pod-Escapes,dhcp-common,perl-Module-Pluggable,perl-Pod-Simple,perl-Locale-Maketext-Simple,perl-ExtUtils-ParseXS,perl-devel,perl-Module-Load,perl-IPC-Cmd,perl-IO-Compress-Base,perl-Compress-Raw-Zlib,perl-Compress-Zlib,perl-Archive-Tar,perl-Term-UI,perl-Archive-Extract,perl-ExtUtils-CBuilder,perl-DBI,perl-Digest-SHA,perl-URI,libgfortran,slang,openjpeg-libs,dmidecode,perl-IO-Compress-Bzip2,perl-DBD-SQLite,perl-Module-Build,perl-parent,perl-CGI,perl-CPANPLUS,perl-HTML-Parser,libXfont,e2fsprogs,tmpwatch,gstreamer-tools,iw,hal-libs,tcp_wrappers,eggdbus,libutempter,patch,device-mapper-persistent-data,portreserve,upstart,ed,time,dash,cdparanoia-libs,ncurses,less,gzip,cracklib-dicts,pam,fontconfig,alsa-lib,qt,libssh2,xdg-utils,rpcbind,pciutils,libsndfile,ghostscript-fonts,mysql-libs,fipscheck,bind-utils,ConsoleKit,pam_krb5,iwl6000-firmware,biosdevname,bfa-firmware,iwl6000g2a-firmware,readahead,dhclient,microcode_ctl,quota,acpid,seekwatcher,java-1.6.0-openjdk,perl-XML-Grove,tcpdump,yum-plugin-security,cas,iotop,grub,perf,gdb,man-pages-overrides,Red_Hat_Enterprise_Linux-Release_Notes-6-en-US,usbutils,perl-Crypt-SSLeay,psacct,audit,perl-core,perl-XML-Dumper,irqbalance,oprofile,efibootmgr,latencytop-tui,ltrace,rsync,nano,nfs4-acl-tools,mcelog,mtr,bridge-utils,libtopology,traceroute,dosfstools,latrace,trace-cmd,vconfig,atmel-firmware,ql23xx-firmware,ql2500-firmware,xorg-x11-drv-ati-firmware,rootfiles,iwl5000-firmware,redhat-indexhtml,ipw2100-firmware,iwl3945-firmware,iwl4965-firmware,ipw2200-firmware,gpg-pubkey,libX11,libXrender,libXi,libXtst,libXrandr,pango,pulseaudio-libs,libXt,giflib,qt3,libXv,libXxf86vm,gtk2,libfprint,redhat-release-server,iptables,iputils,util-linux-ng,libdrm,device-mapper-libs,device-mapper-event-libs,device-mapper-event,nfs-utils-lib,openssh,dmraid,rhnsd,yum-rhn-plugin,rh-amazon-rhui-client,cryptsetup-luks,foomatic-db,redhat-lsb-printing,mesa-libGL,mesa-libGLU,qt-x11,plymouth,wireless-tools,mdadm,cyrus-sasl,sssd,oddjob-mkhomedir,crontabs,cronie,redhat-lsb,yp-tools,libcgroup,ntp,samba-common,ipa-python,system-config-firewall-base,kbd-misc,dracut,kernel,hal-info,pm-utils,pcmciautils,kexec-tools,system-config-firewall-tui,cifs-utils,sysstat,system-config-network-tui,lvm2,openssh-clients,parted,iwl1000-firmware,krb5-workstation,setup,b43-openfwwf,jline,tzdata-java,iwl100-firmware,nss-sysinit,basesystem,smartmontools,libcurl,ncurses-base,rng-tools,rpm,ncurses-libs,latencytop,passwd,zlib,perl-XML-Twig,hdparm,dbus-libs,yum-utils,mingetty,nspr,libhugetlbfs-utils,rpm-python,libacl,vim-enhanced,dbus-python,gawk,sudo,m2crypto,elfutils-libelf,alsa-utils,python-dateutil,gamin,tcsh,sos,cyrus-sasl-lib,ntsysv,libproxy-python,libSM,crash-gcore-command,libreport,keyutils-libs,cyrus-sasl-plain,abrt-addon-python,findutils,unzip,libreport-cli,which,attr,python-paramiko,dbus,powertop,python-krbV,libnl,strace,python-pycurl,bzip2,setserial,python-nss,cpio,crash-trace-command,pygpgme,libtirpc,rdate,libdhash,tar,rt61pci-firmware,samba4-libs,e2fsprogs-libs,libertas-usb8388-firmware,libvisual,file,ql2400-firmware,libsemanage,xz,words,libref_array,nss-softokn,ql2100-firmware,libaio,net-tools,sg3_utils-libs,acl,mailcap,libss,fontpackages-filesystem,libfontenc,poppler-data,gdbm,libX11-common,perl-libs,cairo,perl-Params-Check,libXcursor,perl-ExtUtils-MakeMaker,libXinerama,perl-Log-Message,ghostscript,perl-IO-Compress-Zlib,pycairo,perl-Log-Message-Simple,libXcomposite,perl-Test-Simple,fprintd,perl-Module-CoreList,iproute,perl-Module-Loaded,udev,newt,device-mapper,atlas,kpartx,perl-DBIx-Simple,dmraid-events,perl-Time-Piece,rhn-setup,perl-HTML-Tagset,cryptsetup-luks-libs,xorg-x11-font-utils,foomatic,elfutils,mesa-dri1-drivers,libxslt,redhat-lsb-graphics,grubby,python-iwlib,desktop-file-utils,postfix,pinentry,rsyslog,hunspell,redhat-lsb-core,libgomp,ypbind,vim-common,samba-winbind-clients,coreutils-libs,iptables-ipv6,coreutils,kbd,module-init-tools,autofs,jpackage-utils,ipa-client,redhat-logos,selinux-policy-targeted,libpciaccess,numad,wget,rh-amazon-rhui-client-beta,bind-libs,setuptool,polkit'']'} > - {comment: 'RHEL must not lack packages: set([''nc'', ''cyrus-sasl-md5'', ''sysfsutils'', > ''neon'', ''stunnel'', ''man-pages-fr'', ''tcl'', ''gd'', ''mutt'', ''pam_pkcs11'', > ''libXaw'', ''pakchois'', ''krb5-pkinit-openssl'', ''nss_db'', ''postgresql-libs'', > ''nmap'', ''postgresql-plpython'', ''lslk'', ''compat-db43'', ''abrt-plugin-sosreport'', > ''ksh'', ''xterm'', ''libnfnetlink'', ''apr-util'', ''man-pages-es'', ''kernel-devel'', > ''ppl'', ''aspell'', ''libjpeg'', ''compat-db42'', ''mgetty'', ''net-snmp-libs'', > ''httpd-tools'', ''abrt-plugin-logger'', ''udftools'', ''expect'', ''mysql-connector-odbc'', > ''libgcj'', ''libicu'', ''ftp'', ''man-pages-pl'', ''finger'', ''postgresql-odbc'', > ''nss-pam-ldapd'', ''screen'', ''pcsc-lite-libs'', ''xinetd'', ''conman'', > ''sinjdoc'', ''abrt-plugin-rhtsupport'', ''symlinks'', ''postgresql'', ''dialog'', > ''libsysfs'', ''compat-db'', ''apr'', ''pam_ldap'', ''java-1.5.0-gcj'', > ''man-pages-ja'', ''mtools'', ''subversion'', ''httpd'', ''libnetfilter_conntrack'', > ''tokyocabinet'', ''urlview'', ''iptstate'', ''mod_perl'', ''cloog-ppl'', > ''telnet'', ''apr-util-ldap'', ''libXp'', ''libXpm'', ''postgresql-server'', > ''kernel-headers'', ''unix2dos'', ''man-pages-it'', ''tree'', ''mod_authz_ldap'', > ''postgresql-jdbc'', ''nscd'', ''compat-libstdc++-33'', ''MySQL-python'', > ''perl-BSD-Resource'', ''openldap-clients'', ''jwhois'', ''libart_lgpl'', > ''glibc-devel'', ''gcc'', ''mod_ssl'', ''net-snmp'', ''libXmu'', ''webalizer'', > ''perl-Date-Manip'', ''java_cup'', ''man-pages-ru'', ''man-pages-cs'', ''man-pages-ko'', > ''unixODBC'', ''lm_sensors-libs'', ''ncompress'', ''libtool-ltdl'', ''dos2unix'', > ''glibc-headers'', ''logwatch'', ''cpp'', ''openswan'', ''mpfr''])', result: fail} > testcase_12_passwd_group: > - {command: 'grep ''^root:x:0:0:root:/root:/bin/bash'' /etc/passwd', result: passed} > - {command: 'grep ''^nobody:x:99:99:Nobody:/:/sbin/nologin'' /etc/passwd', result: passed} > - {command: 'grep ''^sshd:x:74:74:Privilege-separated SSH:/var/empty/sshd:/sbin/nologin'' > /etc/passwd', result: passed} > - {command: 'grep ''^root:x:0:'' /etc/group', result: passed} > - {command: 'grep ''^daemon:x:2:bin,daemon'' /etc/group', result: passed} > - {command: 'grep ''^bin:x:1:bin,daemon'' /etc/group', result: passed} > testcase_13_resize2fs: > - {comment: resize2fs is not applicable for hvm instances, result: passed} > testcase_14_host_details: > - {command: '[ ! -z "`curl http://169.254.169.254/latest/dynamic/instance-identity/signature`" > ]', result: passed} > - {command: 'curl http://169.254.169.254/latest/dynamic/instance-identity/document', > match: '.*({.*}).*', result: passed, value: '[''{\r\n "instanceId" : "i-8689f7f8",\r\n "billingProducts" > : [ "bp-63a5400a" ],\r\n "version" : "2010-08-31",\r\n "accountId" : "567014786890",\r\n "instanceType" > : "m3.xlarge",\r\n "architecture" : "x86_64",\r\n "kernelId" : null,\r\n "ramdiskId" > : null,\r\n "pendingTime" : "2012-12-18T09:58:54Z",\r\n "imageId" : "ami-877cf1ee",\r\n "availabilityZone" > : "us-east-1c",\r\n "devpayProductCodes" : null,\r\n "privateIp" : "10.149.14.219",\r\n "region" > : "us-east-1"\r\n}'']'} > - {command: '[ "ami-877cf1ee" = "ami-877cf1ee" ]', result: passed} > - {command: '[ "x86_64" = "x86_64" ]', result: passed} > - {command: '[ "us-east-1" = "us-east-1" ]', result: passed} > - {command: '[ "bp-63a5400a" = "bp-63a5400a" ]', result: passed} > testcase_15_rhel_version: > - {command: 'rpm -q --qf ''%{RELEASE} > > '' --whatprovides redhat-release', match: ".*\r\n([0-9]\\.[0-9]\\..*)\r\n\ > .*", result: passed, value: '[''6.4.0.3.el6'']'} > - {actual: '1', command: '[ ''6.4-beta'' = ''6.4.0.3.'' ]', result: failed} > testcase_16_selinux: > - {command: getenforce, expectation: "\r\nEnforcing\r\n", result: passed} > - {command: grep '^SELINUX=enforcing' /etc/sysconfig/selinux, result: passed} > - {command: grep '^SELINUXTYPE=targeted' /etc/sysconfig/selinux, result: passed} > - {command: setenforce Permissive && getenforce, expectation: "\r\nPermissive\r\ > \n", result: passed} > - {command: setenforce Enforcing && getenforce, expectation: "\r\nEnforcing\r\ > \n", result: passed} > testcase_17_shells: > - {command: grep 'bin/bash$' /etc/shells, result: passed} > - {command: grep 'bin/nologin$' /etc/shells, result: passed} > testcase_18_sshd: > - {command: 'chkconfig --list sshd | grep ''0:off[[:space:]]*1:off[[:space:]]*2:on[[:space:]]*3:on[[:space:]]*4:on[[:space:]]*5:on[[:space:]]*6:off''', > result: passed} > - {command: service sshd status | grep running, result: passed} > - {command: grep 'PasswordAuthentication no' /etc/ssh/sshd_config, result: passed} > testcase_19_rhn_system_id: > - {command: '[ ! -f /etc/sysconfig/rhn/systemid ]', result: passed} > testcase_20_auditd: > - {command: md5sum /etc/audit/audit.rules | cut -f 1 -d ' ', expectation: f9869e1191838c461f5b9051c78a638d, > result: passed} > - {command: md5sum /etc/audit/auditd.conf | cut -f 1 -d ' ', expectation: e1886162554c18906df2ecd258aa4794, > result: passed} > - {command: md5sum /etc/sysconfig/auditd | cut -f 1 -d ' ', expectation: d4d43637708e30418c30003e212f76fc, > result: passed} > - {command: chkconfig --list auditd, expectation: '3:on.*5:on', result: passed} > testcase_21_disk_size_format: > - {command: 'mount | grep ''^/dev'' | awk ''{print $1}''', result: passed, value: /dev/xvda1} > - {command: 'echo ''###'' ;mount | grep ''^/'' | awk ''{print $3}''; echo ''###''', > match: ".*\r\n###\r\n(.*)\r\n###\r\n.*", result: passed, value: '[''/'']'} > - {command: 'echo ''###'' ;mount | grep ''^/'' | awk ''{print $5}''; echo ''###''', > match: ".*\r\n###\r\n(.*)\r\n###\r\n.*", result: passed, value: '[''ext4'']'} > - {command: '[ `df -k / | awk ''{ print $2 }'' | tail -n 1` -gt 3937219 ]', > result: passed} > - {command: '[ ext4 = ext4 ]', result: passed} > testcase_22_gpg_keys: > - {command: grep '^gpgcheck=' /etc/yum.repos.d/redhat-*.repo | cut -d\= -f2 > | sort -uf | tr -d ' ', expectation: "\r\n1\r\n", result: passed} > - {command: rpm -qa gpg-pubkey* | wc -l, expectation: "\r\n2\r\n", result: passed} > - {command: rpm -q gpg-pubkey-2fa658e0-45700c69, result: passed} > - {command: rpm -q gpg-pubkey-fd431d51-4ae0493b, result: passed} > testcase_23_syslog: > - {command: md5sum /etc/rsyslog.conf | cut -f 1 -d ' ', result: passed, value: 8b91b32300134e98ef4aee632ed61e21} > - {command: '[ 8b91b32300134e98ef4aee632ed61e21 = 8b91b32300134e98ef4aee632ed61e21 > ]', result: passed} > testcase_24_yum_plugin: > - {command: 'grep ''^enabled[[:space:]]*=[[:space:]]*[^0 ]'' /etc/yum/pluginconf.d/rhnplugin.conf', > result: passed} > testcase_26_verify_rpms: > - {command: rpm -Va --nomtime --nosize --nomd5 | sort -fu | wc -l, result: passed, > value: '5'} > - {command: 'rpm -q --queryformat ''%{RELEASE} > > '' redhat-release-server | cut -d. -f1,2', result: passed, value: '6.4'} > - {command: '[ 5 = 5 ]', result: passed} > - {actual: '1', command: '[ 6.4 = 6.4-beta ]', result: failed} > - {command: 'rpm -qa --queryformat ''%{PACKAGER} > > '' | sort -u | grep -v ''Red Hat, Inc.''', result: passed, value: "Lai Jiangshan\ > \ <laijs@cn.fujitsu.com>\r\n(none)"} > testcase_27_yum_repos: > - {command: ls /etc/yum.repos.d/*.repo | wc -l, result: passed, value: '5'} > - {command: ls /etc/yum.repos.d/redhat*.repo | wc -l, result: passed, value: '4'} > - {command: ls /etc/yum.repos.d/rhel*.repo | wc -l, result: passed, value: '1'} > - {actual: '1', command: '[ 5 = 6 ]', result: failed} > - {command: '[ 4 = 4 ]', result: passed} > - {actual: '1', command: '[ 1 = 0 ]', result: failed} > testcase_28_iptables: > - {command: 'service iptables status | grep :22 | grep ACCEPT | wc -l', expectation: "\r\n\ > 1\r\n", result: passed} > - {command: 'service iptables status | grep RELATED,ESTABLISHED | grep ACCEPT > | wc -l', expectation: "\r\n1\r\n", result: passed} > - {command: service iptables status | grep REJECT | grep all | grep 0.0.0.0/0 > | grep icmp-host-prohibited | wc -l, expectation: "\r\n2\r\n", result: passed} > testcase_29_swap_file: > - {comment: no swap for this instance type, result: passed} > testcase_30_rhn_certificates: > - {command: rpm -ql rh-amazon-rhui-client | egrep '.*\.(pem|crt)', result: passed, > value: "/etc/pki/entitlement/ca.crt\r\n/etc/pki/entitlement/cdn.redhat.com-chain.crt\r\ > \n/etc/pki/entitlement/product/content-rhel6.crt\r\n/etc/pki/entitlement/product/rhui-client-config-server-6.crt"} > - {command: openssl x509 -in /etc/pki/entitlement/ca.crt -noout -dates | grep > notAfter, result: passed, value: 'notAfter=Nov 30 19:46:02 2017 GMT'} > - {comment: '(/etc/pki/entitlement/ca.crt).notAfter=2017-11-30 19:46:02; expecting: > 2020-11-10 00:00:00', result: failed} > - {command: openssl x509 -in /etc/pki/entitlement/cdn.redhat.com-chain.crt -noout > -dates | grep notAfter, result: passed, value: 'notAfter=Mar 13 11:24:54 > 2030 GMT'} > - {comment: '(/etc/pki/entitlement/cdn.redhat.com-chain.crt).notAfter=2030-03-13 > 11:24:54; expecting: 2020-11-10 00:00:00', result: passed} > - {command: openssl x509 -in /etc/pki/entitlement/product/content-rhel6.crt > -noout -dates | grep notAfter, result: passed, value: 'notAfter=Nov 30 18:31:28 > 2020 GMT'} > - {comment: '(/etc/pki/entitlement/product/content-rhel6.crt).notAfter=2020-11-30 > 18:31:28; expecting: 2020-11-10 00:00:00', result: passed} > - {command: openssl x509 -in /etc/pki/entitlement/product/rhui-client-config-server-6.crt > -noout -dates | grep notAfter, result: passed, value: 'notAfter=Nov 30 18:38:07 > 2020 GMT'} > - {comment: '(/etc/pki/entitlement/product/rhui-client-config-server-6.crt).notAfter=2020-11-30 > 18:38:07; expecting: 2020-11-10 00:00:00', result: passed} > testcase_31_subscription_management: > - {command: yum --disablerepo="*" repolist | grep -i subscription-manager, result: passed} > - {command: yum --enableplugin=subscription-manager --disablerepo="*" repolist, > expectation: 'Loaded plugins:[^ > > ]*subscription-manager', result: passed} > - {command: subscription-manager list, expectation: 'Status:\s*Not.Subscribed', > result: passed} > testcase_50_yum_package_install: > - {command: yum repolist, result: passed} > - {command: yum search zsh, result: passed} > - {command: yum -y install zsh, result: passed} > - {command: 'rpm -q --queryformat ''%{NAME}'' zsh', result: passed} > - {command: rpm -e zsh, result: passed} > testcase_55_yum_group_install: > - {command: yum -y groupinstall 'Development tools', result: passed} > testcase_60_yum_update: > - {command: yum -y update, result: passed} > testcase_99_reboot: > - {command: reboot, result: passed} > stage2: > testcase_08_memory: > - {command: 'grep ''MemTotal:'' /proc/meminfo', match: ".*\r\nMemTotal:\\s*([0-9]+) ", > result: passed, value: '[''15433452'']'} > - {command: '[ 15433452 -gt 15000000 ]', result: passed} > testcase_25_uname: > - {command: uname -r, result: passed, value: 2.6.32-343.el6.x86_64} > - {command: 'rpm -q --queryformat ''%{VERSION}-%{RELEASE}.%{ARCH} > > '' kernel | sort | tail -1', result: passed, value: 2.6.32-343.el6.x86_64} > - {command: uname -o, result: passed, value: GNU/Linux} > - {command: '[ 2.6.32-343.el6.x86_64 = 2.6.32-343.el6.x86_64 ]', result: passed} > - {command: '[ GNU/Linux = ''GNU/Linux'' ]', result: passed} > - {command: grep UPDATEDEFAULT=yes /etc/sysconfig/kernel, result: passed} > - {command: grep DEFAULTKERNEL=kernel /etc/sysconfig/kernel, result: passed} >version: '6.4'
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 888256
: 665464