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 678876 Details for
Bug 895619
ami-33c2495a BETA 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-33c2495a.yaml
ami-33c2495a.yaml (text/yaml), 150.90 KB, created by
mkovacik
on 2013-01-15 16:41:52 UTC
(
hide
)
Description:
ami-33c2495a.yaml
Filename:
MIME Type:
Creator:
mkovacik
Created:
2013-01-15 16:41:52 UTC
Size:
150.90 KB
patch
obsolete
>ami: ami-33c2495a >arch: x86_64 >product: BETA >region: us-east-1 >result: > c1.xlarge: > stage1: > testcase_01_ipv6: > - {command: grep NETWORKING_IPV6=no /etc/sysconfig/network, result: passed} > testcase_02_bash_history: > - {command: '[ ! -f ~/.bash_history ] && echo 0 || cat ~/.bash_history | wc > -l', expectation: "\r\n0\r\n", result: passed} > testcase_03_chkconfig: > - {command: rpm -q systemd > /dev/null && echo True || echo False, result: passed, > value: 'False'} > - {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} > - {command: 'grep ''(hd0,0)'' /boot/grub/grub.conf', result: passed} > testcase_06_inittab: > - {command: rpm -q systemd > /dev/null && echo True || echo False, result: passed, > value: 'False'} > - {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 --color=none ''MemTotal:'' /proc/meminfo', match: ".*\r\n\ > MemTotal:\\s*([0-9]+) ", result: passed, value: '[''7130204'']'} > - {command: '[ 7130204 -gt 7000000 ]', 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: '[''system-config-firewall-tui,logrotate,tzdata,system-config-network-tui,nss-tools,latencytop-common,samba-client,curl,iso-codes,setuptool,man,glibc,iwl6000-firmware,nss_compat_ossl,libcap,bfa-firmware,gpm-libs,libcom_err,dhclient,libpath_utils,chkconfig,readahead,python-libs,nss-util,prelink,python-iniparse,libjpeg-turbo,java-1.6.0-openjdk,python-dmidecode,libsepol,tcpdump,python-dateutil,shadow-utils,cas,pyOpenSSL,readline,iotop,python-nose,libuuid,gdb,yum-metadata-parser,xmlrpc-c,Red_Hat_Enterprise_Linux-Release_Notes-6-en-US,libreport-plugin-rhtsupport,tcp_wrappers-libs,perl-Crypt-SSLeay,libreport-python,libogg,audit,abrt-addon-ccpp,libudev,perl-XML-Dumper,abrt-addon-kerneloops,libgcrypt,oprofile,python-crypto,libtevent,ltrace,python-ldap,cpio,rsync,PyYAML,libtirpc,nfs4-acl-tools,python-nss,atk,mtr,python-pycurl,libtiff,libtopology,pygpgme,lcms-libs,dosfstools,python-argparse,libldb,rfkill,cups-libs,cyrus-sasl-gssapi,atmel-firmware,libXau,libipa_hbac,ql2500-firmware,pixman,jasper-libs,rootfiles,libsss_autofs,e2fsprogs,redhat-indexhtml,libref_array,make,iwl3945-firmware,libthai,libedit,ipw2200-firmware,libpcap,perl-Pod-Escapes,perl-libwww-perl,perl-libs,kernel-firmware,perl-Test-Harness,fontpackages-filesystem,perl-Module-Load,libX11-common,perl-IO-Compress-Base,cairo,perl-Compress-Zlib,libXcursor,perl-Term-UI,libXinerama,perl-Test-Simple,ghostscript,perl-Module-Loaded,pycairo,libusb1,libXcomposite,openjpeg-libs,fprintd,perl-IO-Compress-Bzip2,iproute,perl-ExtUtils-Embed,udev,perl-Parse-CPAN-Meta,device-mapper,perl-Time-Piece,kpartx,tmpwatch,samba-common,iw,nfs-utils,tcp_wrappers,lvm2-libs,db4-utils,rhnsd,patch,foomatic-db-ppds,libnih,mesa-dri1-drivers,time,phonon-backend-gstreamer,cdparanoia-libs,python-iwlib,less,yp-tools,cracklib-dicts,cyrus-sasl,fontconfig,cronie,qt,redhat-lsb-compat,xdg-utils,virt-what,pciutils,selinux-policy,ghostscript-fonts,dracut-kernel,bind-utils,hal-info,ConsoleKit,systemtap-runtime,krb5-workstation,libgcc,sssd-client,ca-certificates,nss,filesystem,mailx,foomatic-db-filesystem,openldap,mesa-dri-filesystem,xmlrpc-c-client,xml-common,rpm-libs,ncurses-base,gnupg2,glibc-common,libuser,ncurses-libs,gpgme,libattr,jline,zlib,hicolor-icon-theme,libstdc++,hdparm,dbus-libs,theora-tools,popt,mingetty,nspr,libffi,freetype,python,libacl,newt-python,libpng,dbus-python,bzip2-libs,python-ethtool,libtalloc,authconfig,libselinux,m2crypto,glib2,python-simplejson,sed,pygobject2,elfutils-libelf,rhnlib,sqlite,python-rhsm,dbus-glib,numpy,libICE,sos,libblkid,libproxy-bin,keyutils-libs,libproxy-python,libtdb,libreport-compat,findutils,libreport,xz-libs,abrt-libs,procps,abrt-addon-python,libidn,abrt-tui,libcap-ng,libreport-plugin-kerneloops,libgpg-error,libreport-cli,pciutils-libs,python-configobj,libgssglue,python-paramiko,bzip2,python-krbV,grep,gettext,binutils,libipa_hbac-python,pkgconfig,pytalloc,libvorbis,pytz,lua,python-kerberos,tar,python-cheetah,net-tools,python-urlgrabber,e2fsprogs-libs,python-prettytable,dmidecode,yum,libmng,python-boto,crash,libdhash,libgudev1,gnutls,xz,samba4-libs,keyutils,libsss_idmap,bc,libxcb,checkpolicy,liboil,vim-minimal,ustr,acl,libsemanage-python,libss,hesiod,gmp,libasyncns,diffutils,libini_config,m4,blktrace,libfontenc,pax,numactl,sg3_utils-libs,gdbm,ethtool,perl-Module-Pluggable,perl-version,perl,perl-Params-Check,perl-ExtUtils-ParseXS,perl-ExtUtils-MakeMaker,perl-Module-Load-Conditional,perl-Log-Message,perl-Compress-Raw-Zlib,perl-IO-Compress-Zlib,perl-IO-Zlib,perl-Log-Message-Simple,perl-Archive-Extract,perl-ExtUtils-CBuilder,perl-Object-Accessor,perl-Compress-Raw-Bzip2,perl-Digest-SHA,perl-Module-CoreList,libgfortran,newt,libcollection,perl-CPAN,perl-DBD-SQLite,perl-Module-Build,perl-HTML-Tagset,perl-CGI,perl-CPANPLUS,perl-parent,libXfont,xz-lzma-compat,elfutils,gstreamer,libxslt,flac,grubby,setools-libs,MAKEDEV,desktop-file-utils,device-mapper-persistent-data,portreserve,upstart,ed,libgomp,libhugetlbfs,vim-common,groff,coreutils-libs,cracklib,coreutils,openssl,module-init-tools,hwdata,jpackage-utils,plymouth-scripts,redhat-logos,qt-sqlite,libpciaccess,urw-fonts,mysql-libs,bind-libs,fipscheck-lib,ConsoleKit-libs,polkit,at,selinux-policy-targeted,subscription-manager,cloud-init,rh-amazon-rhui-client-beta,cifs-utils,numad,openssh-clients,parted,iwl1000-firmware,iwl5150-firmware,biosdevname,iwl6050-firmware,iwl100-firmware,smartmontools,cpuspeed,quota,acpid,fprintd-pam,latencytop,hwloc,perl-XML-Twig,ledmon,yum-utils,abrt-cli,grub,dstat,perf,elinks,sudo,pinfo,alsa-utils,pam_passwdqc,psacct,hunspell-en,ntsysv,valgrind,crash-gcore-command,mlocate,cyrus-sasl-plain,latencytop-tui,unzip,libitm,attr,scl-utils,powertop,zip,strace,eject,setserial,b43-fwcutter,crash-trace-command,trace-cmd,rdate,rt73usb-firmware,rt61pci-firmware,zd1211-firmware,libertas-usb8388-firmware,ql2200-firmware,ql2400-firmware,ivtv-firmware,words,man-pages,ql2100-firmware,gpg-pubkey,mailcap,perl-XML-Parser,busybox,poppler-data,poppler-utils,dejavu-fonts-common,dhcp-common,libX11,libXrender,libXi,libXtst,libXrandr,pango,pulseaudio-libs,libXt,giflib,qt3,libXxf86vm,gstreamer-plugins-base,gtk2,libfprint,redhat-release-server,iptables,iputils,initscripts,libdrm,device-mapper-libs,device-mapper-event-libs,device-mapper-event,openssh,rsyslog,samba-winbind-clients,nfs-utils-lib,policycoreutils-python,dmraid,rhn-setup,rhn-check,rh-amazon-rhui-client,cryptsetup-luks,foomatic-db,mesa-libGL,mesa-dri-drivers,qt-x11,plymouth,wireless-tools,mdadm,oddjob-mkhomedir,ypbind,ntp,postfix,cronie-anacron,redhat-lsb-core,redhat-lsb-graphics,redhat-lsb,certmonger,ipa-python,system-config-firewall-base,kbd-misc,dracut,kernel,pm-utils,hal,pcmciautils,kexec-tools,cvs,setup,sysstat,nss-sysinit,tzdata-java,lvm2,libcurl,basesystem,openssh-server,rpm,nss-softokn-freebl,aic94xx-firmware,passwd,bash,b43-openfwwf,rhino,info,iwl6000g2a-firmware,SDL,libxml2,microcode_ctl,libyaml,audit-libs,rng-tools,rpm-python,gawk,seekwatcher,libxml2-python,expat,perl-XML-Grove,python-setuptools,gamin,yum-plugin-security,libselinux-python,db4,libhugetlbfs-utils,python-gudev,cyrus-sasl-lib,vim-enhanced,python-pygments,libSM,man-pages-overrides,libproxy,krb5-libs,usbutils,libreport-plugin-reportuploader,btparser,tcsh,abrt,which,perl-core,libreport-plugin-mailx,dbus,irqbalance,libreport-plugin-logger,libnl,efibootmgr,setools-libs-python,pcre,lsof,python-lxml,file-libs,nano,audit-libs-python,elfutils-libs,mcelog,python-markdown,psmisc,bridge-utils,python-netaddr,sysvinit-tools,traceroute,rhn-client-tools,file,latrace,libtasn1,libtheora,vconfig,plymouth-core-libs,nss-softokn,ql23xx-firmware,libvisual,libselinux-utils,xorg-x11-drv-ati-firmware,libsemanage,avahi-libs,iwl5000-firmware,sgpio,libusb,ipw2100-firmware,libaio,libtar,iwl4965-firmware,libevent,pth,gpg-pubkey,c-ares,perl-Pod-Simple,perl-libxml-perl,perl-Locale-Maketext-Simple,poppler,perl-devel,dejavu-sans-fonts,perl-IPC-Cmd,libXext,perl-Package-Constants,libXfixes,perl-Archive-Tar,libXft,perl-File-Fetch,libXdamage,perl-DBI,java-1.7.0-openjdk,perl-URI,libXv,slang,python-matplotlib,atlas,policycoreutils,perl-DBIx-Simple,util-linux-ng,perl-HTML-Parser,cups,perl-Time-HiRes,usermode,xorg-x11-font-utils,libcgroup,gstreamer-tools,samba-winbind,hal-libs,dmraid-events,eggdbus,yum-rhn-plugin,libutempter,cryptsetup-luks-libs,pinentry,foomatic,hunspell,mesa-libGLU,dash,crda,ncurses,oddjob,gzip,ntpdate,pam,crontabs,alsa-lib,redhat-lsb-printing,libssh2,sssd,rpcbind,iptables-ipv6,libsndfile,kbd,wget,autofs,fipscheck,ipa-client,pam_krb5'']'} > - {comment: 'Newly introduced packages: [''PyYAML'', ''audit-libs-python'', > ''cloud-init'', ''gpg-pubkey'', ''libselinux-python'', ''libsemanage-python'', > ''libyaml'', ''policycoreutils-python'', ''python-argparse'', ''python-boto'', > ''python-cheetah'', ''python-configobj'', ''python-markdown'', ''python-prettytable'', > ''python-pygments'', ''redhat-lsb-compat'', ''rh-amazon-rhui-client'', ''rh-amazon-rhui-client-beta'', > ''setools-libs'', ''setools-libs-python'']', result: passed} > - {comment: All required package are included, result: passed} > 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: > - {command: df -h | grep 15G, 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-5dcc862c",\r\n "billingProducts" > : [ "bp-63a5400a" ],\r\n "version" : "2010-08-31",\r\n "imageId" : "ami-33c2495a",\r\n "accountId" > : "337935342288",\r\n "instanceType" : "c1.xlarge",\r\n "architecture" > : "x86_64",\r\n "kernelId" : "aki-ecfa0185",\r\n "ramdiskId" : null,\r\n "pendingTime" > : "2013-01-15T16:22:26Z",\r\n "availabilityZone" : "us-east-1c",\r\n "devpayProductCodes" > : null,\r\n "privateIp" : "10.3.94.55",\r\n "region" : "us-east-1"\r\n}'']'} > - {command: '[ "ami-33c2495a" = "ami-33c2495a" ]', 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'']'} > - {command: '[ ''6.4'' = ''6.4'' ]', result: passed} > 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: rpm -q systemd > /dev/null && echo True || echo False, result: passed, > value: 'False'} > - {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/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} > - {command: md5sum /etc/audit/audit.rules | cut -f 1 -d ' ', expectation: f9869e1191838c461f5b9051c78a638d, > 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/xvde1} > - {command: 'echo ''###'' ;mount | grep ''^/dev/xvde1'' | awk ''{print $3}''; > echo ''###''', match: ".*\r\n###\r\n(.*)\r\n###\r\n.*", result: passed, > value: '[''/'']'} > - {command: 'echo ''###'' ;mount | grep ''^/dev/xvde1'' | awk ''{print $5}''; > echo ''###''', match: ".*\r\n###\r\n(.*)\r\n###\r\n.*", result: passed, > value: '[''ext4'']'} > - {command: '[ `df -k /dev/xvde1 | 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} > - {actual: "rpm -qa gpg-pubkey* | wc -l\r\n2\r\n[root@ip-10-3-94-55 ~]# ", command: rpm > -qa gpg-pubkey* | wc -l, expectation: "\r\n3\r\n", result: failed} > - {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: '6'} > - {command: 'rpm -q --queryformat ''%{RELEASE} > > '' redhat-release-server | cut -d. -f1,2', result: passed, value: '6.4'} > - {actual: '1', command: '[ 6 = 5 ]', result: failed} > - {command: '[ 6.4 = 6.4 ]', result: passed} > - {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: > - {actual: '1', command: 'yum repolist -v all | csplit --prefix=repolist_xx > - "%Repo-id\s*:%"', result: failed} > - {comment: 'failed to get actual repo list [Errno 2] No such file', result: failure} > testcase_28_iptables: > - {command: 'iptables -L -n | grep :22 | grep ACCEPT | wc -l', expectation: "\r\n\ > 1\r\n", result: passed} > - {command: 'iptables -L -n | grep RELATED,ESTABLISHED | grep ACCEPT | wc -l', > expectation: "\r\n1\r\n", result: passed} > - {command: iptables -L -n | 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: not applicable for arch = x86_64, result: skipped} > testcase_30_rhn_certificates: > - {command: rpm -ql rh-amazon-rhui-client rh-amazon-rhui-client-beta | 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\r\n/etc/pki/entitlement/product/content-rhel6-beta.crt\r\ > \n/etc/pki/entitlement/product/rhui-client-config-server-6-beta.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} > - {command: openssl x509 -in /etc/pki/entitlement/product/content-rhel6-beta.crt > -noout -dates | grep notAfter, result: passed, value: 'notAfter=Nov 30 18:34:17 > 2020 GMT'} > - {comment: '(/etc/pki/entitlement/product/content-rhel6-beta.crt).notAfter=2020-11-30 > 18:34:17; expecting: 2020-11-10 00:00:00', result: passed} > - {command: openssl x509 -in /etc/pki/entitlement/product/rhui-client-config-server-6-beta.crt > -noout -dates | grep notAfter, result: passed, value: 'notAfter=Nov 30 18:38:42 > 2020 GMT'} > - {comment: '(/etc/pki/entitlement/product/rhui-client-config-server-6-beta.crt).notAfter=2020-11-30 > 18:38:42; expecting: 2020-11-10 00:00:00', result: passed} > testcase_31_subscription_management: {comment: not applicable for version = > 6.4, result: skipped} > testcase_32_ephemeral: > - {command: fdisk -l /dev/xvdj | grep ^Disk, result: passed} > - {command: mkfs.vfat -I /dev/xvdj, result: passed} > testcase_33_userdata: > - {command: 'rpm -q --queryformat ''%{NAME} > > '' cloud-init', result: passed, value: cloud-init} > - {command: ls -l /userdata_test, result: passed} > testcase_34_cpu: > - {command: cat /proc/cpuinfo | grep '^processor' | wc -l, expectation: '8', > result: passed} > testcase_50_yum_package_install: > - {command: yum repolist, result: passed} > - {actual: '1', command: yum search zsh, result: failed} > - {actual: '1', command: yum -y install zsh, result: failed} > - {actual: '1', command: 'rpm -q --queryformat ''%{NAME}'' zsh', result: failed} > - {actual: '1', command: rpm -e zsh, result: failed} > testcase_55_yum_group_install: > - {actual: '1', command: yum -y groupinstall 'Development tools', result: failed} > testcase_60_yum_update: > - {actual: '1', command: yum -y update, result: failed} > testcase_99_reboot: [] > stage2: > testcase_08_memory: > - {command: 'grep --color=none ''MemTotal:'' /proc/meminfo', match: ".*\r\n\ > MemTotal:\\s*([0-9]+) ", result: passed, value: '[''7130204'']'} > - {command: '[ 7130204 -gt 7000000 ]', result: passed} > testcase_25_uname: > - {command: uname -r, result: passed, value: 2.6.32-353.el6.x86_64} > - {command: 'rpm -q --queryformat ''%{VERSION}-%{RELEASE}.%{ARCH} > > '' kernel | sort | tail -1', result: passed, value: 2.6.32-353.el6.x86_64} > - {command: uname -o, result: passed, value: GNU/Linux} > - {command: '[ 2.6.32-353.el6.x86_64 = 2.6.32-353.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} > m1.large: > stage1: > testcase_01_ipv6: > - {command: grep NETWORKING_IPV6=no /etc/sysconfig/network, result: passed} > testcase_02_bash_history: > - {command: '[ ! -f ~/.bash_history ] && echo 0 || cat ~/.bash_history | wc > -l', expectation: "\r\n0\r\n", result: passed} > testcase_03_chkconfig: > - {command: rpm -q systemd > /dev/null && echo True || echo False, result: passed, > value: 'False'} > - {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} > - {command: 'grep ''(hd0,0)'' /boot/grub/grub.conf', result: passed} > testcase_06_inittab: > - {command: rpm -q systemd > /dev/null && echo True || echo False, result: passed, > value: 'False'} > - {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 --color=none ''MemTotal:'' /proc/meminfo', match: ".*\r\n\ > MemTotal:\\s*([0-9]+) ", result: passed, value: '[''7646000'']'} > - {command: '[ 7646000 -gt 7500000 ]', 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: '[''system-config-firewall-tui,logrotate,tzdata,system-config-network-tui,nss-tools,latencytop-common,samba-client,curl,iso-codes,setuptool,man,glibc,iwl6000-firmware,nss_compat_ossl,libcap,bfa-firmware,gpm-libs,libcom_err,dhclient,libpath_utils,chkconfig,readahead,python-libs,nss-util,prelink,python-iniparse,libjpeg-turbo,java-1.6.0-openjdk,python-dmidecode,libsepol,tcpdump,python-dateutil,shadow-utils,cas,pyOpenSSL,readline,iotop,python-nose,libuuid,gdb,yum-metadata-parser,xmlrpc-c,Red_Hat_Enterprise_Linux-Release_Notes-6-en-US,libreport-plugin-rhtsupport,tcp_wrappers-libs,perl-Crypt-SSLeay,libreport-python,libogg,audit,abrt-addon-ccpp,libudev,perl-XML-Dumper,abrt-addon-kerneloops,libgcrypt,oprofile,python-crypto,libtevent,ltrace,python-ldap,cpio,rsync,PyYAML,libtirpc,nfs4-acl-tools,python-nss,atk,mtr,python-pycurl,libtiff,libtopology,pygpgme,lcms-libs,dosfstools,python-argparse,libldb,rfkill,cups-libs,cyrus-sasl-gssapi,atmel-firmware,libXau,libipa_hbac,ql2500-firmware,pixman,jasper-libs,rootfiles,libsss_autofs,e2fsprogs,redhat-indexhtml,libref_array,make,iwl3945-firmware,libthai,libedit,ipw2200-firmware,libpcap,perl-Pod-Escapes,perl-libwww-perl,perl-libs,kernel-firmware,perl-Test-Harness,fontpackages-filesystem,perl-Module-Load,libX11-common,perl-IO-Compress-Base,cairo,perl-Compress-Zlib,libXcursor,perl-Term-UI,libXinerama,perl-Test-Simple,ghostscript,perl-Module-Loaded,pycairo,libusb1,libXcomposite,openjpeg-libs,fprintd,perl-IO-Compress-Bzip2,iproute,perl-ExtUtils-Embed,udev,perl-Parse-CPAN-Meta,device-mapper,perl-Time-Piece,kpartx,tmpwatch,samba-common,iw,nfs-utils,tcp_wrappers,lvm2-libs,db4-utils,rhnsd,patch,foomatic-db-ppds,libnih,mesa-dri1-drivers,time,phonon-backend-gstreamer,cdparanoia-libs,python-iwlib,less,yp-tools,cracklib-dicts,cyrus-sasl,fontconfig,cronie,qt,redhat-lsb-compat,xdg-utils,virt-what,pciutils,selinux-policy,ghostscript-fonts,dracut-kernel,bind-utils,hal-info,ConsoleKit,systemtap-runtime,krb5-workstation,libgcc,sssd-client,ca-certificates,nss,filesystem,mailx,foomatic-db-filesystem,openldap,mesa-dri-filesystem,xmlrpc-c-client,xml-common,rpm-libs,ncurses-base,gnupg2,glibc-common,libuser,ncurses-libs,gpgme,libattr,jline,zlib,hicolor-icon-theme,libstdc++,hdparm,dbus-libs,theora-tools,popt,mingetty,nspr,libffi,freetype,python,libacl,newt-python,libpng,dbus-python,bzip2-libs,python-ethtool,libtalloc,authconfig,libselinux,m2crypto,glib2,python-simplejson,sed,pygobject2,elfutils-libelf,rhnlib,sqlite,python-rhsm,dbus-glib,numpy,libICE,sos,libblkid,libproxy-bin,keyutils-libs,libproxy-python,libtdb,libreport-compat,findutils,libreport,xz-libs,abrt-libs,procps,abrt-addon-python,libidn,abrt-tui,libcap-ng,libreport-plugin-kerneloops,libgpg-error,libreport-cli,pciutils-libs,python-configobj,libgssglue,python-paramiko,bzip2,python-krbV,grep,gettext,binutils,libipa_hbac-python,pkgconfig,pytalloc,libvorbis,pytz,lua,python-kerberos,tar,python-cheetah,net-tools,python-urlgrabber,e2fsprogs-libs,python-prettytable,dmidecode,yum,libmng,python-boto,crash,libdhash,libgudev1,gnutls,xz,samba4-libs,keyutils,libsss_idmap,bc,libxcb,checkpolicy,liboil,vim-minimal,ustr,acl,libsemanage-python,libss,hesiod,gmp,libasyncns,diffutils,libini_config,m4,blktrace,libfontenc,pax,numactl,sg3_utils-libs,gdbm,ethtool,perl-Module-Pluggable,perl-version,perl,perl-Params-Check,perl-ExtUtils-ParseXS,perl-ExtUtils-MakeMaker,perl-Module-Load-Conditional,perl-Log-Message,perl-Compress-Raw-Zlib,perl-IO-Compress-Zlib,perl-IO-Zlib,perl-Log-Message-Simple,perl-Archive-Extract,perl-ExtUtils-CBuilder,perl-Object-Accessor,perl-Compress-Raw-Bzip2,perl-Digest-SHA,perl-Module-CoreList,libgfortran,newt,libcollection,perl-CPAN,perl-DBD-SQLite,perl-Module-Build,perl-HTML-Tagset,perl-CGI,perl-CPANPLUS,perl-parent,libXfont,xz-lzma-compat,elfutils,gstreamer,libxslt,flac,grubby,setools-libs,MAKEDEV,desktop-file-utils,device-mapper-persistent-data,portreserve,upstart,ed,libgomp,libhugetlbfs,vim-common,groff,coreutils-libs,cracklib,coreutils,openssl,module-init-tools,hwdata,jpackage-utils,plymouth-scripts,redhat-logos,qt-sqlite,libpciaccess,urw-fonts,mysql-libs,bind-libs,fipscheck-lib,ConsoleKit-libs,polkit,at,selinux-policy-targeted,subscription-manager,cloud-init,rh-amazon-rhui-client-beta,cifs-utils,numad,openssh-clients,parted,iwl1000-firmware,iwl5150-firmware,biosdevname,iwl6050-firmware,iwl100-firmware,smartmontools,cpuspeed,quota,acpid,fprintd-pam,latencytop,hwloc,perl-XML-Twig,ledmon,yum-utils,abrt-cli,grub,dstat,perf,elinks,sudo,pinfo,alsa-utils,pam_passwdqc,psacct,hunspell-en,ntsysv,valgrind,crash-gcore-command,mlocate,cyrus-sasl-plain,latencytop-tui,unzip,libitm,attr,scl-utils,powertop,zip,strace,eject,setserial,b43-fwcutter,crash-trace-command,trace-cmd,rdate,rt73usb-firmware,rt61pci-firmware,zd1211-firmware,libertas-usb8388-firmware,ql2200-firmware,ql2400-firmware,ivtv-firmware,words,man-pages,ql2100-firmware,gpg-pubkey,mailcap,perl-XML-Parser,busybox,poppler-data,poppler-utils,dejavu-fonts-common,dhcp-common,libX11,libXrender,libXi,libXtst,libXrandr,pango,pulseaudio-libs,libXt,giflib,qt3,libXxf86vm,gstreamer-plugins-base,gtk2,libfprint,redhat-release-server,iptables,iputils,initscripts,libdrm,device-mapper-libs,device-mapper-event-libs,device-mapper-event,openssh,rsyslog,samba-winbind-clients,nfs-utils-lib,policycoreutils-python,dmraid,rhn-setup,rhn-check,rh-amazon-rhui-client,cryptsetup-luks,foomatic-db,mesa-libGL,mesa-dri-drivers,qt-x11,plymouth,wireless-tools,mdadm,oddjob-mkhomedir,ypbind,ntp,postfix,cronie-anacron,redhat-lsb-core,redhat-lsb-graphics,redhat-lsb,certmonger,ipa-python,system-config-firewall-base,kbd-misc,dracut,kernel,pm-utils,hal,pcmciautils,kexec-tools,cvs,setup,sysstat,nss-sysinit,tzdata-java,lvm2,libcurl,basesystem,openssh-server,rpm,nss-softokn-freebl,aic94xx-firmware,passwd,bash,b43-openfwwf,rhino,info,iwl6000g2a-firmware,SDL,libxml2,microcode_ctl,libyaml,audit-libs,rng-tools,rpm-python,gawk,seekwatcher,libxml2-python,expat,perl-XML-Grove,python-setuptools,gamin,yum-plugin-security,libselinux-python,db4,libhugetlbfs-utils,python-gudev,cyrus-sasl-lib,vim-enhanced,python-pygments,libSM,man-pages-overrides,libproxy,krb5-libs,usbutils,libreport-plugin-reportuploader,btparser,tcsh,abrt,which,perl-core,libreport-plugin-mailx,dbus,irqbalance,libreport-plugin-logger,libnl,efibootmgr,setools-libs-python,pcre,lsof,python-lxml,file-libs,nano,audit-libs-python,elfutils-libs,mcelog,python-markdown,psmisc,bridge-utils,python-netaddr,sysvinit-tools,traceroute,rhn-client-tools,file,latrace,libtasn1,libtheora,vconfig,plymouth-core-libs,nss-softokn,ql23xx-firmware,libvisual,libselinux-utils,xorg-x11-drv-ati-firmware,libsemanage,avahi-libs,iwl5000-firmware,sgpio,libusb,ipw2100-firmware,libaio,libtar,iwl4965-firmware,libevent,pth,gpg-pubkey,c-ares,perl-Pod-Simple,perl-libxml-perl,perl-Locale-Maketext-Simple,poppler,perl-devel,dejavu-sans-fonts,perl-IPC-Cmd,libXext,perl-Package-Constants,libXfixes,perl-Archive-Tar,libXft,perl-File-Fetch,libXdamage,perl-DBI,java-1.7.0-openjdk,perl-URI,libXv,slang,python-matplotlib,atlas,policycoreutils,perl-DBIx-Simple,util-linux-ng,perl-HTML-Parser,cups,perl-Time-HiRes,usermode,xorg-x11-font-utils,libcgroup,gstreamer-tools,samba-winbind,hal-libs,dmraid-events,eggdbus,yum-rhn-plugin,libutempter,cryptsetup-luks-libs,pinentry,foomatic,hunspell,mesa-libGLU,dash,crda,ncurses,oddjob,gzip,ntpdate,pam,crontabs,alsa-lib,redhat-lsb-printing,libssh2,sssd,rpcbind,iptables-ipv6,libsndfile,kbd,wget,autofs,fipscheck,ipa-client,pam_krb5'']'} > - {comment: 'Newly introduced packages: [''PyYAML'', ''audit-libs-python'', > ''cloud-init'', ''gpg-pubkey'', ''libselinux-python'', ''libsemanage-python'', > ''libyaml'', ''policycoreutils-python'', ''python-argparse'', ''python-boto'', > ''python-cheetah'', ''python-configobj'', ''python-markdown'', ''python-prettytable'', > ''python-pygments'', ''redhat-lsb-compat'', ''rh-amazon-rhui-client'', ''rh-amazon-rhui-client-beta'', > ''setools-libs'', ''setools-libs-python'']', result: passed} > - {comment: All required package are included, result: passed} > 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: > - {command: df -h | grep 15G, 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-4fcc863e",\r\n "billingProducts" > : [ "bp-63a5400a" ],\r\n "version" : "2010-08-31",\r\n "imageId" : "ami-33c2495a",\r\n "accountId" > : "337935342288",\r\n "instanceType" : "m1.large",\r\n "architecture" > : "x86_64",\r\n "kernelId" : "aki-ecfa0185",\r\n "ramdiskId" : null,\r\n "pendingTime" > : "2013-01-15T16:22:26Z",\r\n "availabilityZone" : "us-east-1c",\r\n "devpayProductCodes" > : null,\r\n "privateIp" : "10.3.94.24",\r\n "region" : "us-east-1"\r\n}'']'} > - {command: '[ "ami-33c2495a" = "ami-33c2495a" ]', 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'']'} > - {command: '[ ''6.4'' = ''6.4'' ]', result: passed} > 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: rpm -q systemd > /dev/null && echo True || echo False, result: passed, > value: 'False'} > - {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/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} > - {command: md5sum /etc/audit/audit.rules | cut -f 1 -d ' ', expectation: f9869e1191838c461f5b9051c78a638d, > 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/xvde1} > - {command: 'echo ''###'' ;mount | grep ''^/dev/xvde1'' | awk ''{print $3}''; > echo ''###''', match: ".*\r\n###\r\n(.*)\r\n###\r\n.*", result: passed, > value: '[''/'']'} > - {command: 'echo ''###'' ;mount | grep ''^/dev/xvde1'' | awk ''{print $5}''; > echo ''###''', match: ".*\r\n###\r\n(.*)\r\n###\r\n.*", result: passed, > value: '[''ext4'']'} > - {command: '[ `df -k /dev/xvde1 | 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} > - {actual: "rpm -qa gpg-pubkey* | wc -l\r\n2\r\n[root@ip-10-3-94-24 ~]# ", command: rpm > -qa gpg-pubkey* | wc -l, expectation: "\r\n3\r\n", result: failed} > - {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: '6'} > - {command: 'rpm -q --queryformat ''%{RELEASE} > > '' redhat-release-server | cut -d. -f1,2', result: passed, value: '6.4'} > - {actual: '1', command: '[ 6 = 5 ]', result: failed} > - {command: '[ 6.4 = 6.4 ]', result: passed} > - {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: > - {actual: '1', command: 'yum repolist -v all | csplit --prefix=repolist_xx > - "%Repo-id\s*:%"', result: failed} > - {comment: 'failed to get actual repo list [Errno 2] No such file', result: failure} > testcase_28_iptables: > - {command: 'iptables -L -n | grep :22 | grep ACCEPT | wc -l', expectation: "\r\n\ > 1\r\n", result: passed} > - {command: 'iptables -L -n | grep RELATED,ESTABLISHED | grep ACCEPT | wc -l', > expectation: "\r\n1\r\n", result: passed} > - {command: iptables -L -n | 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: not applicable for arch = x86_64, result: skipped} > testcase_30_rhn_certificates: > - {command: rpm -ql rh-amazon-rhui-client rh-amazon-rhui-client-beta | 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\r\n/etc/pki/entitlement/product/content-rhel6-beta.crt\r\ > \n/etc/pki/entitlement/product/rhui-client-config-server-6-beta.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} > - {command: openssl x509 -in /etc/pki/entitlement/product/content-rhel6-beta.crt > -noout -dates | grep notAfter, result: passed, value: 'notAfter=Nov 30 18:34:17 > 2020 GMT'} > - {comment: '(/etc/pki/entitlement/product/content-rhel6-beta.crt).notAfter=2020-11-30 > 18:34:17; expecting: 2020-11-10 00:00:00', result: passed} > - {command: openssl x509 -in /etc/pki/entitlement/product/rhui-client-config-server-6-beta.crt > -noout -dates | grep notAfter, result: passed, value: 'notAfter=Nov 30 18:38:42 > 2020 GMT'} > - {comment: '(/etc/pki/entitlement/product/rhui-client-config-server-6-beta.crt).notAfter=2020-11-30 > 18:38:42; expecting: 2020-11-10 00:00:00', result: passed} > testcase_31_subscription_management: {comment: not applicable for version = > 6.4, result: skipped} > testcase_32_ephemeral: > - {command: fdisk -l /dev/xvdj | grep ^Disk, result: passed} > - {command: mkfs.vfat -I /dev/xvdj, result: passed} > testcase_33_userdata: > - {command: 'rpm -q --queryformat ''%{NAME} > > '' cloud-init', result: passed, value: cloud-init} > - {command: ls -l /userdata_test, result: passed} > testcase_34_cpu: > - {command: cat /proc/cpuinfo | grep '^processor' | wc -l, expectation: '2', > result: passed} > testcase_50_yum_package_install: > - {command: yum repolist, result: passed} > - {actual: '1', command: yum search zsh, result: failed} > - {actual: '1', command: yum -y install zsh, result: failed} > - {actual: '1', command: 'rpm -q --queryformat ''%{NAME}'' zsh', result: failed} > - {actual: '1', command: rpm -e zsh, result: failed} > testcase_55_yum_group_install: > - {actual: '1', command: yum -y groupinstall 'Development tools', result: failed} > testcase_60_yum_update: > - {actual: '1', command: yum -y update, result: failed} > testcase_99_reboot: [] > stage2: > testcase_08_memory: > - {command: 'grep --color=none ''MemTotal:'' /proc/meminfo', match: ".*\r\n\ > MemTotal:\\s*([0-9]+) ", result: passed, value: '[''7646000'']'} > - {command: '[ 7646000 -gt 7500000 ]', result: passed} > testcase_25_uname: > - {command: uname -r, result: passed, value: 2.6.32-353.el6.x86_64} > - {command: 'rpm -q --queryformat ''%{VERSION}-%{RELEASE}.%{ARCH} > > '' kernel | sort | tail -1', result: passed, value: 2.6.32-353.el6.x86_64} > - {command: uname -o, result: passed, value: GNU/Linux} > - {command: '[ 2.6.32-353.el6.x86_64 = 2.6.32-353.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} > m1.xlarge: > stage1: > testcase_01_ipv6: > - {command: grep NETWORKING_IPV6=no /etc/sysconfig/network, result: passed} > testcase_02_bash_history: > - {command: '[ ! -f ~/.bash_history ] && echo 0 || cat ~/.bash_history | wc > -l', expectation: "\r\n0\r\n", result: passed} > testcase_03_chkconfig: > - {command: rpm -q systemd > /dev/null && echo True || echo False, result: passed, > value: 'False'} > - {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} > - {command: 'grep ''(hd0,0)'' /boot/grub/grub.conf', result: passed} > testcase_06_inittab: > - {command: rpm -q systemd > /dev/null && echo True || echo False, result: passed, > value: 'False'} > - {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 --color=none ''MemTotal:'' /proc/meminfo', match: ".*\r\n\ > MemTotal:\\s*([0-9]+) ", result: passed, value: '[''15371592'']'} > - {command: '[ 15371592 -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: '[''system-config-firewall-tui,logrotate,tzdata,system-config-network-tui,nss-tools,latencytop-common,samba-client,curl,iso-codes,setuptool,man,glibc,iwl6000-firmware,nss_compat_ossl,libcap,bfa-firmware,gpm-libs,libcom_err,dhclient,libpath_utils,chkconfig,readahead,python-libs,nss-util,prelink,python-iniparse,libjpeg-turbo,java-1.6.0-openjdk,python-dmidecode,libsepol,tcpdump,python-dateutil,shadow-utils,cas,pyOpenSSL,readline,iotop,python-nose,libuuid,gdb,yum-metadata-parser,xmlrpc-c,Red_Hat_Enterprise_Linux-Release_Notes-6-en-US,libreport-plugin-rhtsupport,tcp_wrappers-libs,perl-Crypt-SSLeay,libreport-python,libogg,audit,abrt-addon-ccpp,libudev,perl-XML-Dumper,abrt-addon-kerneloops,libgcrypt,oprofile,python-crypto,libtevent,ltrace,python-ldap,cpio,rsync,PyYAML,libtirpc,nfs4-acl-tools,python-nss,atk,mtr,python-pycurl,libtiff,libtopology,pygpgme,lcms-libs,dosfstools,python-argparse,libldb,rfkill,cups-libs,cyrus-sasl-gssapi,atmel-firmware,libXau,libipa_hbac,ql2500-firmware,pixman,jasper-libs,rootfiles,libsss_autofs,e2fsprogs,redhat-indexhtml,libref_array,make,iwl3945-firmware,libthai,libedit,ipw2200-firmware,libpcap,perl-Pod-Escapes,perl-libwww-perl,perl-libs,kernel-firmware,perl-Test-Harness,fontpackages-filesystem,perl-Module-Load,libX11-common,perl-IO-Compress-Base,cairo,perl-Compress-Zlib,libXcursor,perl-Term-UI,libXinerama,perl-Test-Simple,ghostscript,perl-Module-Loaded,pycairo,libusb1,libXcomposite,openjpeg-libs,fprintd,perl-IO-Compress-Bzip2,iproute,perl-ExtUtils-Embed,udev,perl-Parse-CPAN-Meta,device-mapper,perl-Time-Piece,kpartx,tmpwatch,samba-common,iw,nfs-utils,tcp_wrappers,lvm2-libs,db4-utils,rhnsd,patch,foomatic-db-ppds,libnih,mesa-dri1-drivers,time,phonon-backend-gstreamer,cdparanoia-libs,python-iwlib,less,yp-tools,cracklib-dicts,cyrus-sasl,fontconfig,cronie,qt,redhat-lsb-compat,xdg-utils,virt-what,pciutils,selinux-policy,ghostscript-fonts,dracut-kernel,bind-utils,hal-info,ConsoleKit,systemtap-runtime,krb5-workstation,libgcc,sssd-client,ca-certificates,nss,filesystem,mailx,foomatic-db-filesystem,openldap,mesa-dri-filesystem,xmlrpc-c-client,xml-common,rpm-libs,ncurses-base,gnupg2,glibc-common,libuser,ncurses-libs,gpgme,libattr,jline,zlib,hicolor-icon-theme,libstdc++,hdparm,dbus-libs,theora-tools,popt,mingetty,nspr,libffi,freetype,python,libacl,newt-python,libpng,dbus-python,bzip2-libs,python-ethtool,libtalloc,authconfig,libselinux,m2crypto,glib2,python-simplejson,sed,pygobject2,elfutils-libelf,rhnlib,sqlite,python-rhsm,dbus-glib,numpy,libICE,sos,libblkid,libproxy-bin,keyutils-libs,libproxy-python,libtdb,libreport-compat,findutils,libreport,xz-libs,abrt-libs,procps,abrt-addon-python,libidn,abrt-tui,libcap-ng,libreport-plugin-kerneloops,libgpg-error,libreport-cli,pciutils-libs,python-configobj,libgssglue,python-paramiko,bzip2,python-krbV,grep,gettext,binutils,libipa_hbac-python,pkgconfig,pytalloc,libvorbis,pytz,lua,python-kerberos,tar,python-cheetah,net-tools,python-urlgrabber,e2fsprogs-libs,python-prettytable,dmidecode,yum,libmng,python-boto,crash,libdhash,libgudev1,gnutls,xz,samba4-libs,keyutils,libsss_idmap,bc,libxcb,checkpolicy,liboil,vim-minimal,ustr,acl,libsemanage-python,libss,hesiod,gmp,libasyncns,diffutils,libini_config,m4,blktrace,libfontenc,pax,numactl,sg3_utils-libs,gdbm,ethtool,perl-Module-Pluggable,perl-version,perl,perl-Params-Check,perl-ExtUtils-ParseXS,perl-ExtUtils-MakeMaker,perl-Module-Load-Conditional,perl-Log-Message,perl-Compress-Raw-Zlib,perl-IO-Compress-Zlib,perl-IO-Zlib,perl-Log-Message-Simple,perl-Archive-Extract,perl-ExtUtils-CBuilder,perl-Object-Accessor,perl-Compress-Raw-Bzip2,perl-Digest-SHA,perl-Module-CoreList,libgfortran,newt,libcollection,perl-CPAN,perl-DBD-SQLite,perl-Module-Build,perl-HTML-Tagset,perl-CGI,perl-CPANPLUS,perl-parent,libXfont,xz-lzma-compat,elfutils,gstreamer,libxslt,flac,grubby,setools-libs,MAKEDEV,desktop-file-utils,device-mapper-persistent-data,portreserve,upstart,ed,libgomp,libhugetlbfs,vim-common,groff,coreutils-libs,cracklib,coreutils,openssl,module-init-tools,hwdata,jpackage-utils,plymouth-scripts,redhat-logos,qt-sqlite,libpciaccess,urw-fonts,mysql-libs,bind-libs,fipscheck-lib,ConsoleKit-libs,polkit,at,selinux-policy-targeted,subscription-manager,cloud-init,rh-amazon-rhui-client-beta,cifs-utils,numad,openssh-clients,parted,iwl1000-firmware,iwl5150-firmware,biosdevname,iwl6050-firmware,iwl100-firmware,smartmontools,cpuspeed,quota,acpid,fprintd-pam,latencytop,hwloc,perl-XML-Twig,ledmon,yum-utils,abrt-cli,grub,dstat,perf,elinks,sudo,pinfo,alsa-utils,pam_passwdqc,psacct,hunspell-en,ntsysv,valgrind,crash-gcore-command,mlocate,cyrus-sasl-plain,latencytop-tui,unzip,libitm,attr,scl-utils,powertop,zip,strace,eject,setserial,b43-fwcutter,crash-trace-command,trace-cmd,rdate,rt73usb-firmware,rt61pci-firmware,zd1211-firmware,libertas-usb8388-firmware,ql2200-firmware,ql2400-firmware,ivtv-firmware,words,man-pages,ql2100-firmware,gpg-pubkey,mailcap,perl-XML-Parser,busybox,poppler-data,poppler-utils,dejavu-fonts-common,dhcp-common,libX11,libXrender,libXi,libXtst,libXrandr,pango,pulseaudio-libs,libXt,giflib,qt3,libXxf86vm,gstreamer-plugins-base,gtk2,libfprint,redhat-release-server,iptables,iputils,initscripts,libdrm,device-mapper-libs,device-mapper-event-libs,device-mapper-event,openssh,rsyslog,samba-winbind-clients,nfs-utils-lib,policycoreutils-python,dmraid,rhn-setup,rhn-check,rh-amazon-rhui-client,cryptsetup-luks,foomatic-db,mesa-libGL,mesa-dri-drivers,qt-x11,plymouth,wireless-tools,mdadm,oddjob-mkhomedir,ypbind,ntp,postfix,cronie-anacron,redhat-lsb-core,redhat-lsb-graphics,redhat-lsb,certmonger,ipa-python,system-config-firewall-base,kbd-misc,dracut,kernel,pm-utils,hal,pcmciautils,kexec-tools,cvs,setup,sysstat,nss-sysinit,tzdata-java,lvm2,libcurl,basesystem,openssh-server,rpm,nss-softokn-freebl,aic94xx-firmware,passwd,bash,b43-openfwwf,rhino,info,iwl6000g2a-firmware,SDL,libxml2,microcode_ctl,libyaml,audit-libs,rng-tools,rpm-python,gawk,seekwatcher,libxml2-python,expat,perl-XML-Grove,python-setuptools,gamin,yum-plugin-security,libselinux-python,db4,libhugetlbfs-utils,python-gudev,cyrus-sasl-lib,vim-enhanced,python-pygments,libSM,man-pages-overrides,libproxy,krb5-libs,usbutils,libreport-plugin-reportuploader,btparser,tcsh,abrt,which,perl-core,libreport-plugin-mailx,dbus,irqbalance,libreport-plugin-logger,libnl,efibootmgr,setools-libs-python,pcre,lsof,python-lxml,file-libs,nano,audit-libs-python,elfutils-libs,mcelog,python-markdown,psmisc,bridge-utils,python-netaddr,sysvinit-tools,traceroute,rhn-client-tools,file,latrace,libtasn1,libtheora,vconfig,plymouth-core-libs,nss-softokn,ql23xx-firmware,libvisual,libselinux-utils,xorg-x11-drv-ati-firmware,libsemanage,avahi-libs,iwl5000-firmware,sgpio,libusb,ipw2100-firmware,libaio,libtar,iwl4965-firmware,libevent,pth,gpg-pubkey,c-ares,perl-Pod-Simple,perl-libxml-perl,perl-Locale-Maketext-Simple,poppler,perl-devel,dejavu-sans-fonts,perl-IPC-Cmd,libXext,perl-Package-Constants,libXfixes,perl-Archive-Tar,libXft,perl-File-Fetch,libXdamage,perl-DBI,java-1.7.0-openjdk,perl-URI,libXv,slang,python-matplotlib,atlas,policycoreutils,perl-DBIx-Simple,util-linux-ng,perl-HTML-Parser,cups,perl-Time-HiRes,usermode,xorg-x11-font-utils,libcgroup,gstreamer-tools,samba-winbind,hal-libs,dmraid-events,eggdbus,yum-rhn-plugin,libutempter,cryptsetup-luks-libs,pinentry,foomatic,hunspell,mesa-libGLU,dash,crda,ncurses,oddjob,gzip,ntpdate,pam,crontabs,alsa-lib,redhat-lsb-printing,libssh2,sssd,rpcbind,iptables-ipv6,libsndfile,kbd,wget,autofs,fipscheck,ipa-client,pam_krb5'']'} > - {comment: 'Newly introduced packages: [''PyYAML'', ''audit-libs-python'', > ''cloud-init'', ''gpg-pubkey'', ''libselinux-python'', ''libsemanage-python'', > ''libyaml'', ''policycoreutils-python'', ''python-argparse'', ''python-boto'', > ''python-cheetah'', ''python-configobj'', ''python-markdown'', ''python-prettytable'', > ''python-pygments'', ''redhat-lsb-compat'', ''rh-amazon-rhui-client'', ''rh-amazon-rhui-client-beta'', > ''setools-libs'', ''setools-libs-python'']', result: passed} > - {comment: All required package are included, result: passed} > 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: > - {command: df -h | grep 15G, 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-43cc8632",\r\n "billingProducts" > : [ "bp-63a5400a" ],\r\n "version" : "2010-08-31",\r\n "imageId" : "ami-33c2495a",\r\n "accountId" > : "337935342288",\r\n "instanceType" : "m1.xlarge",\r\n "architecture" > : "x86_64",\r\n "kernelId" : "aki-ecfa0185",\r\n "ramdiskId" : null,\r\n "pendingTime" > : "2013-01-15T16:22:26Z",\r\n "availabilityZone" : "us-east-1c",\r\n "devpayProductCodes" > : null,\r\n "privateIp" : "10.3.94.23",\r\n "region" : "us-east-1"\r\n}'']'} > - {command: '[ "ami-33c2495a" = "ami-33c2495a" ]', 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'']'} > - {command: '[ ''6.4'' = ''6.4'' ]', result: passed} > 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: rpm -q systemd > /dev/null && echo True || echo False, result: passed, > value: 'False'} > - {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/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} > - {command: md5sum /etc/audit/audit.rules | cut -f 1 -d ' ', expectation: f9869e1191838c461f5b9051c78a638d, > 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/xvde1} > - {command: 'echo ''###'' ;mount | grep ''^/dev/xvde1'' | awk ''{print $3}''; > echo ''###''', match: ".*\r\n###\r\n(.*)\r\n###\r\n.*", result: passed, > value: '[''/'']'} > - {command: 'echo ''###'' ;mount | grep ''^/dev/xvde1'' | awk ''{print $5}''; > echo ''###''', match: ".*\r\n###\r\n(.*)\r\n###\r\n.*", result: passed, > value: '[''ext4'']'} > - {command: '[ `df -k /dev/xvde1 | 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} > - {actual: "rpm -qa gpg-pubkey* | wc -l\r\n2\r\n[root@ip-10-3-94-23 ~]# ", command: rpm > -qa gpg-pubkey* | wc -l, expectation: "\r\n3\r\n", result: failed} > - {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: '6'} > - {command: 'rpm -q --queryformat ''%{RELEASE} > > '' redhat-release-server | cut -d. -f1,2', result: passed, value: '6.4'} > - {actual: '1', command: '[ 6 = 5 ]', result: failed} > - {command: '[ 6.4 = 6.4 ]', result: passed} > - {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: > - {actual: '1', command: 'yum repolist -v all | csplit --prefix=repolist_xx > - "%Repo-id\s*:%"', result: failed} > - {comment: 'failed to get actual repo list [Errno 2] No such file', result: failure} > testcase_28_iptables: > - {command: 'iptables -L -n | grep :22 | grep ACCEPT | wc -l', expectation: "\r\n\ > 1\r\n", result: passed} > - {command: 'iptables -L -n | grep RELATED,ESTABLISHED | grep ACCEPT | wc -l', > expectation: "\r\n1\r\n", result: passed} > - {command: iptables -L -n | 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: not applicable for arch = x86_64, result: skipped} > testcase_30_rhn_certificates: > - {command: rpm -ql rh-amazon-rhui-client rh-amazon-rhui-client-beta | 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\r\n/etc/pki/entitlement/product/content-rhel6-beta.crt\r\ > \n/etc/pki/entitlement/product/rhui-client-config-server-6-beta.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} > - {command: openssl x509 -in /etc/pki/entitlement/product/content-rhel6-beta.crt > -noout -dates | grep notAfter, result: passed, value: 'notAfter=Nov 30 18:34:17 > 2020 GMT'} > - {comment: '(/etc/pki/entitlement/product/content-rhel6-beta.crt).notAfter=2020-11-30 > 18:34:17; expecting: 2020-11-10 00:00:00', result: passed} > - {command: openssl x509 -in /etc/pki/entitlement/product/rhui-client-config-server-6-beta.crt > -noout -dates | grep notAfter, result: passed, value: 'notAfter=Nov 30 18:38:42 > 2020 GMT'} > - {comment: '(/etc/pki/entitlement/product/rhui-client-config-server-6-beta.crt).notAfter=2020-11-30 > 18:38:42; expecting: 2020-11-10 00:00:00', result: passed} > testcase_31_subscription_management: {comment: not applicable for version = > 6.4, result: skipped} > testcase_32_ephemeral: > - {command: fdisk -l /dev/xvdj | grep ^Disk, result: passed} > - {command: mkfs.vfat -I /dev/xvdj, result: passed} > testcase_33_userdata: > - {command: 'rpm -q --queryformat ''%{NAME} > > '' cloud-init', result: passed, value: cloud-init} > - {command: ls -l /userdata_test, result: passed} > testcase_34_cpu: > - {command: cat /proc/cpuinfo | grep '^processor' | wc -l, expectation: '4', > result: passed} > testcase_50_yum_package_install: > - {command: yum repolist, result: passed} > - {actual: '1', command: yum search zsh, result: failed} > - {actual: '1', command: yum -y install zsh, result: failed} > - {actual: '1', command: 'rpm -q --queryformat ''%{NAME}'' zsh', result: failed} > - {actual: '1', command: rpm -e zsh, result: failed} > testcase_55_yum_group_install: > - {actual: '1', command: yum -y groupinstall 'Development tools', result: failed} > testcase_60_yum_update: > - {actual: '1', command: yum -y update, result: failed} > testcase_99_reboot: [] > stage2: > testcase_08_memory: > - {command: 'grep --color=none ''MemTotal:'' /proc/meminfo', match: ".*\r\n\ > MemTotal:\\s*([0-9]+) ", result: passed, value: '[''15371592'']'} > - {command: '[ 15371592 -gt 15000000 ]', result: passed} > testcase_25_uname: > - {command: uname -r, result: passed, value: 2.6.32-353.el6.x86_64} > - {command: 'rpm -q --queryformat ''%{VERSION}-%{RELEASE}.%{ARCH} > > '' kernel | sort | tail -1', result: passed, value: 2.6.32-353.el6.x86_64} > - {command: uname -o, result: passed, value: GNU/Linux} > - {command: '[ 2.6.32-353.el6.x86_64 = 2.6.32-353.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} > m2.2xlarge: > stage1: > testcase_01_ipv6: > - {command: grep NETWORKING_IPV6=no /etc/sysconfig/network, result: passed} > testcase_02_bash_history: > - {command: '[ ! -f ~/.bash_history ] && echo 0 || cat ~/.bash_history | wc > -l', expectation: "\r\n0\r\n", result: passed} > testcase_03_chkconfig: > - {command: rpm -q systemd > /dev/null && echo True || echo False, result: passed, > value: 'False'} > - {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} > - {command: 'grep ''(hd0,0)'' /boot/grub/grub.conf', result: passed} > testcase_06_inittab: > - {command: rpm -q systemd > /dev/null && echo True || echo False, result: passed, > value: 'False'} > - {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 --color=none ''MemTotal:'' /proc/meminfo', match: ".*\r\n\ > MemTotal:\\s*([0-9]+) ", result: passed, value: '[''35127784'']'} > - {command: '[ 35127784 -gt 34200000 ]', 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: '[''system-config-firewall-tui,logrotate,tzdata,system-config-network-tui,nss-tools,latencytop-common,samba-client,curl,iso-codes,setuptool,man,glibc,iwl6000-firmware,nss_compat_ossl,libcap,bfa-firmware,gpm-libs,libcom_err,dhclient,libpath_utils,chkconfig,readahead,python-libs,nss-util,prelink,python-iniparse,libjpeg-turbo,java-1.6.0-openjdk,python-dmidecode,libsepol,tcpdump,python-dateutil,shadow-utils,cas,pyOpenSSL,readline,iotop,python-nose,libuuid,gdb,yum-metadata-parser,xmlrpc-c,Red_Hat_Enterprise_Linux-Release_Notes-6-en-US,libreport-plugin-rhtsupport,tcp_wrappers-libs,perl-Crypt-SSLeay,libreport-python,libogg,audit,abrt-addon-ccpp,libudev,perl-XML-Dumper,abrt-addon-kerneloops,libgcrypt,oprofile,python-crypto,libtevent,ltrace,python-ldap,cpio,rsync,PyYAML,libtirpc,nfs4-acl-tools,python-nss,atk,mtr,python-pycurl,libtiff,libtopology,pygpgme,lcms-libs,dosfstools,python-argparse,libldb,rfkill,cups-libs,cyrus-sasl-gssapi,atmel-firmware,libXau,libipa_hbac,ql2500-firmware,pixman,jasper-libs,rootfiles,libsss_autofs,e2fsprogs,redhat-indexhtml,libref_array,make,iwl3945-firmware,libthai,libedit,ipw2200-firmware,libpcap,perl-Pod-Escapes,perl-libwww-perl,perl-libs,kernel-firmware,perl-Test-Harness,fontpackages-filesystem,perl-Module-Load,libX11-common,perl-IO-Compress-Base,cairo,perl-Compress-Zlib,libXcursor,perl-Term-UI,libXinerama,perl-Test-Simple,ghostscript,perl-Module-Loaded,pycairo,libusb1,libXcomposite,openjpeg-libs,fprintd,perl-IO-Compress-Bzip2,iproute,perl-ExtUtils-Embed,udev,perl-Parse-CPAN-Meta,device-mapper,perl-Time-Piece,kpartx,tmpwatch,samba-common,iw,nfs-utils,tcp_wrappers,lvm2-libs,db4-utils,rhnsd,patch,foomatic-db-ppds,libnih,mesa-dri1-drivers,time,phonon-backend-gstreamer,cdparanoia-libs,python-iwlib,less,yp-tools,cracklib-dicts,cyrus-sasl,fontconfig,cronie,qt,redhat-lsb-compat,xdg-utils,virt-what,pciutils,selinux-policy,ghostscript-fonts,dracut-kernel,bind-utils,hal-info,ConsoleKit,systemtap-runtime,krb5-workstation,libgcc,sssd-client,ca-certificates,nss,filesystem,mailx,foomatic-db-filesystem,openldap,mesa-dri-filesystem,xmlrpc-c-client,xml-common,rpm-libs,ncurses-base,gnupg2,glibc-common,libuser,ncurses-libs,gpgme,libattr,jline,zlib,hicolor-icon-theme,libstdc++,hdparm,dbus-libs,theora-tools,popt,mingetty,nspr,libffi,freetype,python,libacl,newt-python,libpng,dbus-python,bzip2-libs,python-ethtool,libtalloc,authconfig,libselinux,m2crypto,glib2,python-simplejson,sed,pygobject2,elfutils-libelf,rhnlib,sqlite,python-rhsm,dbus-glib,numpy,libICE,sos,libblkid,libproxy-bin,keyutils-libs,libproxy-python,libtdb,libreport-compat,findutils,libreport,xz-libs,abrt-libs,procps,abrt-addon-python,libidn,abrt-tui,libcap-ng,libreport-plugin-kerneloops,libgpg-error,libreport-cli,pciutils-libs,python-configobj,libgssglue,python-paramiko,bzip2,python-krbV,grep,gettext,binutils,libipa_hbac-python,pkgconfig,pytalloc,libvorbis,pytz,lua,python-kerberos,tar,python-cheetah,net-tools,python-urlgrabber,e2fsprogs-libs,python-prettytable,dmidecode,yum,libmng,python-boto,crash,libdhash,libgudev1,gnutls,xz,samba4-libs,keyutils,libsss_idmap,bc,libxcb,checkpolicy,liboil,vim-minimal,ustr,acl,libsemanage-python,libss,hesiod,gmp,libasyncns,diffutils,libini_config,m4,blktrace,libfontenc,pax,numactl,sg3_utils-libs,gdbm,ethtool,perl-Module-Pluggable,perl-version,perl,perl-Params-Check,perl-ExtUtils-ParseXS,perl-ExtUtils-MakeMaker,perl-Module-Load-Conditional,perl-Log-Message,perl-Compress-Raw-Zlib,perl-IO-Compress-Zlib,perl-IO-Zlib,perl-Log-Message-Simple,perl-Archive-Extract,perl-ExtUtils-CBuilder,perl-Object-Accessor,perl-Compress-Raw-Bzip2,perl-Digest-SHA,perl-Module-CoreList,libgfortran,newt,libcollection,perl-CPAN,perl-DBD-SQLite,perl-Module-Build,perl-HTML-Tagset,perl-CGI,perl-CPANPLUS,perl-parent,libXfont,xz-lzma-compat,elfutils,gstreamer,libxslt,flac,grubby,setools-libs,MAKEDEV,desktop-file-utils,device-mapper-persistent-data,portreserve,upstart,ed,libgomp,libhugetlbfs,vim-common,groff,coreutils-libs,cracklib,coreutils,openssl,module-init-tools,hwdata,jpackage-utils,plymouth-scripts,redhat-logos,qt-sqlite,libpciaccess,urw-fonts,mysql-libs,bind-libs,fipscheck-lib,ConsoleKit-libs,polkit,at,selinux-policy-targeted,subscription-manager,cloud-init,rh-amazon-rhui-client-beta,cifs-utils,numad,openssh-clients,parted,iwl1000-firmware,iwl5150-firmware,biosdevname,iwl6050-firmware,iwl100-firmware,smartmontools,cpuspeed,quota,acpid,fprintd-pam,latencytop,hwloc,perl-XML-Twig,ledmon,yum-utils,abrt-cli,grub,dstat,perf,elinks,sudo,pinfo,alsa-utils,pam_passwdqc,psacct,hunspell-en,ntsysv,valgrind,crash-gcore-command,mlocate,cyrus-sasl-plain,latencytop-tui,unzip,libitm,attr,scl-utils,powertop,zip,strace,eject,setserial,b43-fwcutter,crash-trace-command,trace-cmd,rdate,rt73usb-firmware,rt61pci-firmware,zd1211-firmware,libertas-usb8388-firmware,ql2200-firmware,ql2400-firmware,ivtv-firmware,words,man-pages,ql2100-firmware,gpg-pubkey,mailcap,perl-XML-Parser,busybox,poppler-data,poppler-utils,dejavu-fonts-common,dhcp-common,libX11,libXrender,libXi,libXtst,libXrandr,pango,pulseaudio-libs,libXt,giflib,qt3,libXxf86vm,gstreamer-plugins-base,gtk2,libfprint,redhat-release-server,iptables,iputils,initscripts,libdrm,device-mapper-libs,device-mapper-event-libs,device-mapper-event,openssh,rsyslog,samba-winbind-clients,nfs-utils-lib,policycoreutils-python,dmraid,rhn-setup,rhn-check,rh-amazon-rhui-client,cryptsetup-luks,foomatic-db,mesa-libGL,mesa-dri-drivers,qt-x11,plymouth,wireless-tools,mdadm,oddjob-mkhomedir,ypbind,ntp,postfix,cronie-anacron,redhat-lsb-core,redhat-lsb-graphics,redhat-lsb,certmonger,ipa-python,system-config-firewall-base,kbd-misc,dracut,kernel,pm-utils,hal,pcmciautils,kexec-tools,cvs,setup,sysstat,nss-sysinit,tzdata-java,lvm2,libcurl,basesystem,openssh-server,rpm,nss-softokn-freebl,aic94xx-firmware,passwd,bash,b43-openfwwf,rhino,info,iwl6000g2a-firmware,SDL,libxml2,microcode_ctl,libyaml,audit-libs,rng-tools,rpm-python,gawk,seekwatcher,libxml2-python,expat,perl-XML-Grove,python-setuptools,gamin,yum-plugin-security,libselinux-python,db4,libhugetlbfs-utils,python-gudev,cyrus-sasl-lib,vim-enhanced,python-pygments,libSM,man-pages-overrides,libproxy,krb5-libs,usbutils,libreport-plugin-reportuploader,btparser,tcsh,abrt,which,perl-core,libreport-plugin-mailx,dbus,irqbalance,libreport-plugin-logger,libnl,efibootmgr,setools-libs-python,pcre,lsof,python-lxml,file-libs,nano,audit-libs-python,elfutils-libs,mcelog,python-markdown,psmisc,bridge-utils,python-netaddr,sysvinit-tools,traceroute,rhn-client-tools,file,latrace,libtasn1,libtheora,vconfig,plymouth-core-libs,nss-softokn,ql23xx-firmware,libvisual,libselinux-utils,xorg-x11-drv-ati-firmware,libsemanage,avahi-libs,iwl5000-firmware,sgpio,libusb,ipw2100-firmware,libaio,libtar,iwl4965-firmware,libevent,pth,gpg-pubkey,c-ares,perl-Pod-Simple,perl-libxml-perl,perl-Locale-Maketext-Simple,poppler,perl-devel,dejavu-sans-fonts,perl-IPC-Cmd,libXext,perl-Package-Constants,libXfixes,perl-Archive-Tar,libXft,perl-File-Fetch,libXdamage,perl-DBI,java-1.7.0-openjdk,perl-URI,libXv,slang,python-matplotlib,atlas,policycoreutils,perl-DBIx-Simple,util-linux-ng,perl-HTML-Parser,cups,perl-Time-HiRes,usermode,xorg-x11-font-utils,libcgroup,gstreamer-tools,samba-winbind,hal-libs,dmraid-events,eggdbus,yum-rhn-plugin,libutempter,cryptsetup-luks-libs,pinentry,foomatic,hunspell,mesa-libGLU,dash,crda,ncurses,oddjob,gzip,ntpdate,pam,crontabs,alsa-lib,redhat-lsb-printing,libssh2,sssd,rpcbind,iptables-ipv6,libsndfile,kbd,wget,autofs,fipscheck,ipa-client,pam_krb5'']'} > - {comment: 'Newly introduced packages: [''PyYAML'', ''audit-libs-python'', > ''cloud-init'', ''gpg-pubkey'', ''libselinux-python'', ''libsemanage-python'', > ''libyaml'', ''policycoreutils-python'', ''python-argparse'', ''python-boto'', > ''python-cheetah'', ''python-configobj'', ''python-markdown'', ''python-prettytable'', > ''python-pygments'', ''redhat-lsb-compat'', ''rh-amazon-rhui-client'', ''rh-amazon-rhui-client-beta'', > ''setools-libs'', ''setools-libs-python'']', result: passed} > - {comment: All required package are included, result: passed} > 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: > - {command: df -h | grep 15G, 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-4bcc863a",\r\n "billingProducts" > : [ "bp-63a5400a" ],\r\n "version" : "2010-08-31",\r\n "imageId" : "ami-33c2495a",\r\n "accountId" > : "337935342288",\r\n "instanceType" : "m2.2xlarge",\r\n "architecture" > : "x86_64",\r\n "kernelId" : "aki-ecfa0185",\r\n "ramdiskId" : null,\r\n "pendingTime" > : "2013-01-15T16:22:26Z",\r\n "availabilityZone" : "us-east-1c",\r\n "devpayProductCodes" > : null,\r\n "privateIp" : "10.3.94.57",\r\n "region" : "us-east-1"\r\n}'']'} > - {command: '[ "ami-33c2495a" = "ami-33c2495a" ]', 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'']'} > - {command: '[ ''6.4'' = ''6.4'' ]', result: passed} > 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: > - {actual: '', command: rpm -q systemd > /dev/null && echo True || echo False, > result: failed} > - {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/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} > - {command: md5sum /etc/audit/audit.rules | cut -f 1 -d ' ', expectation: f9869e1191838c461f5b9051c78a638d, > 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/xvde1} > - {command: 'echo ''###'' ;mount | grep ''^/dev/xvde1'' | awk ''{print $3}''; > echo ''###''', match: ".*\r\n###\r\n(.*)\r\n###\r\n.*", result: passed, > value: '[''/'']'} > - {command: 'echo ''###'' ;mount | grep ''^/dev/xvde1'' | awk ''{print $5}''; > echo ''###''', match: ".*\r\n###\r\n(.*)\r\n###\r\n.*", result: passed, > value: '[''ext4'']'} > - {command: '[ `df -k /dev/xvde1 | 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} > - {actual: "rpm -qa gpg-pubkey* | wc -l\r\n2\r\n[root@ip-10-3-94-57 ~]# ", command: rpm > -qa gpg-pubkey* | wc -l, expectation: "\r\n3\r\n", result: failed} > - {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: '6'} > - {command: 'rpm -q --queryformat ''%{RELEASE} > > '' redhat-release-server | cut -d. -f1,2', result: passed, value: '6.4'} > - {actual: '1', command: '[ 6 = 5 ]', result: failed} > - {command: '[ 6.4 = 6.4 ]', result: passed} > - {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: > - {actual: '1', command: 'yum repolist -v all | csplit --prefix=repolist_xx > - "%Repo-id\s*:%"', result: failed} > - {comment: 'failed to get actual repo list [Errno 2] No such file', result: failure} > testcase_28_iptables: > - {command: 'iptables -L -n | grep :22 | grep ACCEPT | wc -l', expectation: "\r\n\ > 1\r\n", result: passed} > - {command: 'iptables -L -n | grep RELATED,ESTABLISHED | grep ACCEPT | wc -l', > expectation: "\r\n1\r\n", result: passed} > - {command: iptables -L -n | 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: not applicable for arch = x86_64, result: skipped} > testcase_30_rhn_certificates: > - {command: rpm -ql rh-amazon-rhui-client rh-amazon-rhui-client-beta | 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\r\n/etc/pki/entitlement/product/content-rhel6-beta.crt\r\ > \n/etc/pki/entitlement/product/rhui-client-config-server-6-beta.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} > - {command: openssl x509 -in /etc/pki/entitlement/product/content-rhel6-beta.crt > -noout -dates | grep notAfter, result: passed, value: 'notAfter=Nov 30 18:34:17 > 2020 GMT'} > - {comment: '(/etc/pki/entitlement/product/content-rhel6-beta.crt).notAfter=2020-11-30 > 18:34:17; expecting: 2020-11-10 00:00:00', result: passed} > - {command: openssl x509 -in /etc/pki/entitlement/product/rhui-client-config-server-6-beta.crt > -noout -dates | grep notAfter, result: passed, value: 'notAfter=Nov 30 18:38:42 > 2020 GMT'} > - {comment: '(/etc/pki/entitlement/product/rhui-client-config-server-6-beta.crt).notAfter=2020-11-30 > 18:38:42; expecting: 2020-11-10 00:00:00', result: passed} > testcase_31_subscription_management: {comment: not applicable for version = > 6.4, result: skipped} > testcase_32_ephemeral: > - {command: fdisk -l /dev/xvdj | grep ^Disk, result: passed} > - {command: mkfs.vfat -I /dev/xvdj, result: passed} > testcase_33_userdata: > - {command: 'rpm -q --queryformat ''%{NAME} > > '' cloud-init', result: passed, value: cloud-init} > - {command: ls -l /userdata_test, result: passed} > testcase_34_cpu: > - {command: cat /proc/cpuinfo | grep '^processor' | wc -l, expectation: '4', > result: passed} > testcase_50_yum_package_install: > - {command: yum repolist, result: passed} > - {actual: '1', command: yum search zsh, result: failed} > - {actual: '1', command: yum -y install zsh, result: failed} > - {actual: '1', command: 'rpm -q --queryformat ''%{NAME}'' zsh', result: failed} > - {actual: '1', command: rpm -e zsh, result: failed} > testcase_55_yum_group_install: > - {actual: '1', command: yum -y groupinstall 'Development tools', result: failed} > testcase_60_yum_update: > - {actual: '1', command: yum -y update, result: failed} > testcase_99_reboot: [] > stage2: > testcase_08_memory: > - {command: 'grep --color=none ''MemTotal:'' /proc/meminfo', match: ".*\r\n\ > MemTotal:\\s*([0-9]+) ", result: passed, value: '[''35127784'']'} > - {command: '[ 35127784 -gt 34200000 ]', result: passed} > testcase_25_uname: > - {command: uname -r, result: passed, value: 2.6.32-353.el6.x86_64} > - {command: 'rpm -q --queryformat ''%{VERSION}-%{RELEASE}.%{ARCH} > > '' kernel | sort | tail -1', result: passed, value: 2.6.32-353.el6.x86_64} > - {command: uname -o, result: passed, value: GNU/Linux} > - {command: '[ 2.6.32-353.el6.x86_64 = 2.6.32-353.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} > m2.4xlarge: > stage1: > testcase_01_ipv6: > - {command: grep NETWORKING_IPV6=no /etc/sysconfig/network, result: passed} > testcase_02_bash_history: > - {command: '[ ! -f ~/.bash_history ] && echo 0 || cat ~/.bash_history | wc > -l', expectation: "\r\n0\r\n", result: passed} > testcase_03_chkconfig: > - {command: rpm -q systemd > /dev/null && echo True || echo False, result: passed, > value: 'False'} > - {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} > - {command: 'grep ''(hd0,0)'' /boot/grub/grub.conf', result: passed} > testcase_06_inittab: > - {command: rpm -q systemd > /dev/null && echo True || echo False, result: passed, > value: 'False'} > - {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 --color=none ''MemTotal:'' /proc/meminfo', match: ".*\r\n\ > MemTotal:\\s*([0-9]+) ", result: passed, value: '[''70336956'']'} > - {command: '[ 70336956 -gt 68400000 ]', 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: '[''system-config-firewall-tui,logrotate,tzdata,system-config-network-tui,nss-tools,latencytop-common,samba-client,curl,iso-codes,setuptool,man,glibc,iwl6000-firmware,nss_compat_ossl,libcap,bfa-firmware,gpm-libs,libcom_err,dhclient,libpath_utils,chkconfig,readahead,python-libs,nss-util,prelink,python-iniparse,libjpeg-turbo,java-1.6.0-openjdk,python-dmidecode,libsepol,tcpdump,python-dateutil,shadow-utils,cas,pyOpenSSL,readline,iotop,python-nose,libuuid,gdb,yum-metadata-parser,xmlrpc-c,Red_Hat_Enterprise_Linux-Release_Notes-6-en-US,libreport-plugin-rhtsupport,tcp_wrappers-libs,perl-Crypt-SSLeay,libreport-python,libogg,audit,abrt-addon-ccpp,libudev,perl-XML-Dumper,abrt-addon-kerneloops,libgcrypt,oprofile,python-crypto,libtevent,ltrace,python-ldap,cpio,rsync,PyYAML,libtirpc,nfs4-acl-tools,python-nss,atk,mtr,python-pycurl,libtiff,libtopology,pygpgme,lcms-libs,dosfstools,python-argparse,libldb,rfkill,cups-libs,cyrus-sasl-gssapi,atmel-firmware,libXau,libipa_hbac,ql2500-firmware,pixman,jasper-libs,rootfiles,libsss_autofs,e2fsprogs,redhat-indexhtml,libref_array,make,iwl3945-firmware,libthai,libedit,ipw2200-firmware,libpcap,perl-Pod-Escapes,perl-libwww-perl,perl-libs,kernel-firmware,perl-Test-Harness,fontpackages-filesystem,perl-Module-Load,libX11-common,perl-IO-Compress-Base,cairo,perl-Compress-Zlib,libXcursor,perl-Term-UI,libXinerama,perl-Test-Simple,ghostscript,perl-Module-Loaded,pycairo,libusb1,libXcomposite,openjpeg-libs,fprintd,perl-IO-Compress-Bzip2,iproute,perl-ExtUtils-Embed,udev,perl-Parse-CPAN-Meta,device-mapper,perl-Time-Piece,kpartx,tmpwatch,samba-common,iw,nfs-utils,tcp_wrappers,lvm2-libs,db4-utils,rhnsd,patch,foomatic-db-ppds,libnih,mesa-dri1-drivers,time,phonon-backend-gstreamer,cdparanoia-libs,python-iwlib,less,yp-tools,cracklib-dicts,cyrus-sasl,fontconfig,cronie,qt,redhat-lsb-compat,xdg-utils,virt-what,pciutils,selinux-policy,ghostscript-fonts,dracut-kernel,bind-utils,hal-info,ConsoleKit,systemtap-runtime,krb5-workstation,libgcc,sssd-client,ca-certificates,nss,filesystem,mailx,foomatic-db-filesystem,openldap,mesa-dri-filesystem,xmlrpc-c-client,xml-common,rpm-libs,ncurses-base,gnupg2,glibc-common,libuser,ncurses-libs,gpgme,libattr,jline,zlib,hicolor-icon-theme,libstdc++,hdparm,dbus-libs,theora-tools,popt,mingetty,nspr,libffi,freetype,python,libacl,newt-python,libpng,dbus-python,bzip2-libs,python-ethtool,libtalloc,authconfig,libselinux,m2crypto,glib2,python-simplejson,sed,pygobject2,elfutils-libelf,rhnlib,sqlite,python-rhsm,dbus-glib,numpy,libICE,sos,libblkid,libproxy-bin,keyutils-libs,libproxy-python,libtdb,libreport-compat,findutils,libreport,xz-libs,abrt-libs,procps,abrt-addon-python,libidn,abrt-tui,libcap-ng,libreport-plugin-kerneloops,libgpg-error,libreport-cli,pciutils-libs,python-configobj,libgssglue,python-paramiko,bzip2,python-krbV,grep,gettext,binutils,libipa_hbac-python,pkgconfig,pytalloc,libvorbis,pytz,lua,python-kerberos,tar,python-cheetah,net-tools,python-urlgrabber,e2fsprogs-libs,python-prettytable,dmidecode,yum,libmng,python-boto,crash,libdhash,libgudev1,gnutls,xz,samba4-libs,keyutils,libsss_idmap,bc,libxcb,checkpolicy,liboil,vim-minimal,ustr,acl,libsemanage-python,libss,hesiod,gmp,libasyncns,diffutils,libini_config,m4,blktrace,libfontenc,pax,numactl,sg3_utils-libs,gdbm,ethtool,perl-Module-Pluggable,perl-version,perl,perl-Params-Check,perl-ExtUtils-ParseXS,perl-ExtUtils-MakeMaker,perl-Module-Load-Conditional,perl-Log-Message,perl-Compress-Raw-Zlib,perl-IO-Compress-Zlib,perl-IO-Zlib,perl-Log-Message-Simple,perl-Archive-Extract,perl-ExtUtils-CBuilder,perl-Object-Accessor,perl-Compress-Raw-Bzip2,perl-Digest-SHA,perl-Module-CoreList,libgfortran,newt,libcollection,perl-CPAN,perl-DBD-SQLite,perl-Module-Build,perl-HTML-Tagset,perl-CGI,perl-CPANPLUS,perl-parent,libXfont,xz-lzma-compat,elfutils,gstreamer,libxslt,flac,grubby,setools-libs,MAKEDEV,desktop-file-utils,device-mapper-persistent-data,portreserve,upstart,ed,libgomp,libhugetlbfs,vim-common,groff,coreutils-libs,cracklib,coreutils,openssl,module-init-tools,hwdata,jpackage-utils,plymouth-scripts,redhat-logos,qt-sqlite,libpciaccess,urw-fonts,mysql-libs,bind-libs,fipscheck-lib,ConsoleKit-libs,polkit,at,selinux-policy-targeted,subscription-manager,cloud-init,rh-amazon-rhui-client-beta,cifs-utils,numad,openssh-clients,parted,iwl1000-firmware,iwl5150-firmware,biosdevname,iwl6050-firmware,iwl100-firmware,smartmontools,cpuspeed,quota,acpid,fprintd-pam,latencytop,hwloc,perl-XML-Twig,ledmon,yum-utils,abrt-cli,grub,dstat,perf,elinks,sudo,pinfo,alsa-utils,pam_passwdqc,psacct,hunspell-en,ntsysv,valgrind,crash-gcore-command,mlocate,cyrus-sasl-plain,latencytop-tui,unzip,libitm,attr,scl-utils,powertop,zip,strace,eject,setserial,b43-fwcutter,crash-trace-command,trace-cmd,rdate,rt73usb-firmware,rt61pci-firmware,zd1211-firmware,libertas-usb8388-firmware,ql2200-firmware,ql2400-firmware,ivtv-firmware,words,man-pages,ql2100-firmware,gpg-pubkey,mailcap,perl-XML-Parser,busybox,poppler-data,poppler-utils,dejavu-fonts-common,dhcp-common,libX11,libXrender,libXi,libXtst,libXrandr,pango,pulseaudio-libs,libXt,giflib,qt3,libXxf86vm,gstreamer-plugins-base,gtk2,libfprint,redhat-release-server,iptables,iputils,initscripts,libdrm,device-mapper-libs,device-mapper-event-libs,device-mapper-event,openssh,rsyslog,samba-winbind-clients,nfs-utils-lib,policycoreutils-python,dmraid,rhn-setup,rhn-check,rh-amazon-rhui-client,cryptsetup-luks,foomatic-db,mesa-libGL,mesa-dri-drivers,qt-x11,plymouth,wireless-tools,mdadm,oddjob-mkhomedir,ypbind,ntp,postfix,cronie-anacron,redhat-lsb-core,redhat-lsb-graphics,redhat-lsb,certmonger,ipa-python,system-config-firewall-base,kbd-misc,dracut,kernel,pm-utils,hal,pcmciautils,kexec-tools,cvs,setup,sysstat,nss-sysinit,tzdata-java,lvm2,libcurl,basesystem,openssh-server,rpm,nss-softokn-freebl,aic94xx-firmware,passwd,bash,b43-openfwwf,rhino,info,iwl6000g2a-firmware,SDL,libxml2,microcode_ctl,libyaml,audit-libs,rng-tools,rpm-python,gawk,seekwatcher,libxml2-python,expat,perl-XML-Grove,python-setuptools,gamin,yum-plugin-security,libselinux-python,db4,libhugetlbfs-utils,python-gudev,cyrus-sasl-lib,vim-enhanced,python-pygments,libSM,man-pages-overrides,libproxy,krb5-libs,usbutils,libreport-plugin-reportuploader,btparser,tcsh,abrt,which,perl-core,libreport-plugin-mailx,dbus,irqbalance,libreport-plugin-logger,libnl,efibootmgr,setools-libs-python,pcre,lsof,python-lxml,file-libs,nano,audit-libs-python,elfutils-libs,mcelog,python-markdown,psmisc,bridge-utils,python-netaddr,sysvinit-tools,traceroute,rhn-client-tools,file,latrace,libtasn1,libtheora,vconfig,plymouth-core-libs,nss-softokn,ql23xx-firmware,libvisual,libselinux-utils,xorg-x11-drv-ati-firmware,libsemanage,avahi-libs,iwl5000-firmware,sgpio,libusb,ipw2100-firmware,libaio,libtar,iwl4965-firmware,libevent,pth,gpg-pubkey,c-ares,perl-Pod-Simple,perl-libxml-perl,perl-Locale-Maketext-Simple,poppler,perl-devel,dejavu-sans-fonts,perl-IPC-Cmd,libXext,perl-Package-Constants,libXfixes,perl-Archive-Tar,libXft,perl-File-Fetch,libXdamage,perl-DBI,java-1.7.0-openjdk,perl-URI,libXv,slang,python-matplotlib,atlas,policycoreutils,perl-DBIx-Simple,util-linux-ng,perl-HTML-Parser,cups,perl-Time-HiRes,usermode,xorg-x11-font-utils,libcgroup,gstreamer-tools,samba-winbind,hal-libs,dmraid-events,eggdbus,yum-rhn-plugin,libutempter,cryptsetup-luks-libs,pinentry,foomatic,hunspell,mesa-libGLU,dash,crda,ncurses,oddjob,gzip,ntpdate,pam,crontabs,alsa-lib,redhat-lsb-printing,libssh2,sssd,rpcbind,iptables-ipv6,libsndfile,kbd,wget,autofs,fipscheck,ipa-client,pam_krb5'']'} > - {comment: 'Newly introduced packages: [''PyYAML'', ''audit-libs-python'', > ''cloud-init'', ''gpg-pubkey'', ''libselinux-python'', ''libsemanage-python'', > ''libyaml'', ''policycoreutils-python'', ''python-argparse'', ''python-boto'', > ''python-cheetah'', ''python-configobj'', ''python-markdown'', ''python-prettytable'', > ''python-pygments'', ''redhat-lsb-compat'', ''rh-amazon-rhui-client'', ''rh-amazon-rhui-client-beta'', > ''setools-libs'', ''setools-libs-python'']', result: passed} > - {comment: All required package are included, result: passed} > 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: > - {command: df -h | grep 15G, 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-49cc8638",\r\n "billingProducts" > : [ "bp-63a5400a" ],\r\n "version" : "2010-08-31",\r\n "imageId" : "ami-33c2495a",\r\n "accountId" > : "337935342288",\r\n "instanceType" : "m2.4xlarge",\r\n "architecture" > : "x86_64",\r\n "kernelId" : "aki-ecfa0185",\r\n "ramdiskId" : null,\r\n "pendingTime" > : "2013-01-15T16:22:26Z",\r\n "availabilityZone" : "us-east-1c",\r\n "devpayProductCodes" > : null,\r\n "privateIp" : "10.3.94.14",\r\n "region" : "us-east-1"\r\n}'']'} > - {command: '[ "ami-33c2495a" = "ami-33c2495a" ]', 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'']'} > - {command: '[ ''6.4'' = ''6.4'' ]', result: passed} > 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: rpm -q systemd > /dev/null && echo True || echo False, result: passed, > value: 'False'} > - {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/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} > - {command: md5sum /etc/audit/audit.rules | cut -f 1 -d ' ', expectation: f9869e1191838c461f5b9051c78a638d, > 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/xvde1} > - {command: 'echo ''###'' ;mount | grep ''^/dev/xvde1'' | awk ''{print $3}''; > echo ''###''', match: ".*\r\n###\r\n(.*)\r\n###\r\n.*", result: passed, > value: '[''/'']'} > - {command: 'echo ''###'' ;mount | grep ''^/dev/xvde1'' | awk ''{print $5}''; > echo ''###''', match: ".*\r\n###\r\n(.*)\r\n###\r\n.*", result: passed, > value: '[''ext4'']'} > - {command: '[ `df -k /dev/xvde1 | 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} > - {actual: "rpm -qa gpg-pubkey* | wc -l\r\n2\r\n[root@ip-10-3-94-14 ~]# ", command: rpm > -qa gpg-pubkey* | wc -l, expectation: "\r\n3\r\n", result: failed} > - {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: '6'} > - {command: 'rpm -q --queryformat ''%{RELEASE} > > '' redhat-release-server | cut -d. -f1,2', result: passed, value: '6.4'} > - {actual: '1', command: '[ 6 = 5 ]', result: failed} > - {command: '[ 6.4 = 6.4 ]', result: passed} > - {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: > - {actual: '1', command: 'yum repolist -v all | csplit --prefix=repolist_xx > - "%Repo-id\s*:%"', result: failed} > - {comment: 'failed to get actual repo list [Errno 2] No such file', result: failure} > testcase_28_iptables: > - {command: 'iptables -L -n | grep :22 | grep ACCEPT | wc -l', expectation: "\r\n\ > 1\r\n", result: passed} > - {command: 'iptables -L -n | grep RELATED,ESTABLISHED | grep ACCEPT | wc -l', > expectation: "\r\n1\r\n", result: passed} > - {command: iptables -L -n | 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: not applicable for arch = x86_64, result: skipped} > testcase_30_rhn_certificates: > - {command: rpm -ql rh-amazon-rhui-client rh-amazon-rhui-client-beta | 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\r\n/etc/pki/entitlement/product/content-rhel6-beta.crt\r\ > \n/etc/pki/entitlement/product/rhui-client-config-server-6-beta.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} > - {command: openssl x509 -in /etc/pki/entitlement/product/content-rhel6-beta.crt > -noout -dates | grep notAfter, result: passed, value: 'notAfter=Nov 30 18:34:17 > 2020 GMT'} > - {comment: '(/etc/pki/entitlement/product/content-rhel6-beta.crt).notAfter=2020-11-30 > 18:34:17; expecting: 2020-11-10 00:00:00', result: passed} > - {command: openssl x509 -in /etc/pki/entitlement/product/rhui-client-config-server-6-beta.crt > -noout -dates | grep notAfter, result: passed, value: 'notAfter=Nov 30 18:38:42 > 2020 GMT'} > - {comment: '(/etc/pki/entitlement/product/rhui-client-config-server-6-beta.crt).notAfter=2020-11-30 > 18:38:42; expecting: 2020-11-10 00:00:00', result: passed} > testcase_31_subscription_management: {comment: not applicable for version = > 6.4, result: skipped} > testcase_32_ephemeral: > - {command: fdisk -l /dev/xvdj | grep ^Disk, result: passed} > - {command: mkfs.vfat -I /dev/xvdj, result: passed} > testcase_33_userdata: > - {command: 'rpm -q --queryformat ''%{NAME} > > '' cloud-init', result: passed, value: cloud-init} > - {command: ls -l /userdata_test, result: passed} > testcase_34_cpu: > - {command: cat /proc/cpuinfo | grep '^processor' | wc -l, expectation: '8', > result: passed} > testcase_50_yum_package_install: > - {command: yum repolist, result: passed} > - {actual: '1', command: yum search zsh, result: failed} > - {actual: '1', command: yum -y install zsh, result: failed} > - {actual: '1', command: 'rpm -q --queryformat ''%{NAME}'' zsh', result: failed} > - {actual: '1', command: rpm -e zsh, result: failed} > testcase_55_yum_group_install: > - {actual: '1', command: yum -y groupinstall 'Development tools', result: failed} > testcase_60_yum_update: > - {actual: '1', command: yum -y update, result: failed} > testcase_99_reboot: [] > stage2: > testcase_08_memory: > - {command: 'grep --color=none ''MemTotal:'' /proc/meminfo', match: ".*\r\n\ > MemTotal:\\s*([0-9]+) ", result: passed, value: '[''70336956'']'} > - {command: '[ 70336956 -gt 68400000 ]', result: passed} > testcase_25_uname: > - {command: uname -r, result: passed, value: 2.6.32-353.el6.x86_64} > - {command: 'rpm -q --queryformat ''%{VERSION}-%{RELEASE}.%{ARCH} > > '' kernel | sort | tail -1', result: passed, value: 2.6.32-353.el6.x86_64} > - {command: uname -o, result: passed, value: GNU/Linux} > - {command: '[ 2.6.32-353.el6.x86_64 = 2.6.32-353.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} > m2.xlarge: > stage1: > testcase_01_ipv6: > - {command: grep NETWORKING_IPV6=no /etc/sysconfig/network, result: passed} > testcase_02_bash_history: > - {command: '[ ! -f ~/.bash_history ] && echo 0 || cat ~/.bash_history | wc > -l', expectation: "\r\n0\r\n", result: passed} > testcase_03_chkconfig: > - {command: rpm -q systemd > /dev/null && echo True || echo False, result: passed, > value: 'False'} > - {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} > - {command: 'grep ''(hd0,0)'' /boot/grub/grub.conf', result: passed} > testcase_06_inittab: > - {command: rpm -q systemd > /dev/null && echo True || echo False, result: passed, > value: 'False'} > - {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 --color=none ''MemTotal:'' /proc/meminfo', match: ".*\r\n\ > MemTotal:\\s*([0-9]+) ", result: passed, value: '[''17524096'']'} > - {command: '[ 17524096 -gt 17100000 ]', 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: '[''system-config-firewall-tui,logrotate,tzdata,system-config-network-tui,nss-tools,latencytop-common,samba-client,curl,iso-codes,setuptool,man,glibc,iwl6000-firmware,nss_compat_ossl,libcap,bfa-firmware,gpm-libs,libcom_err,dhclient,libpath_utils,chkconfig,readahead,python-libs,nss-util,prelink,python-iniparse,libjpeg-turbo,java-1.6.0-openjdk,python-dmidecode,libsepol,tcpdump,python-dateutil,shadow-utils,cas,pyOpenSSL,readline,iotop,python-nose,libuuid,gdb,yum-metadata-parser,xmlrpc-c,Red_Hat_Enterprise_Linux-Release_Notes-6-en-US,libreport-plugin-rhtsupport,tcp_wrappers-libs,perl-Crypt-SSLeay,libreport-python,libogg,audit,abrt-addon-ccpp,libudev,perl-XML-Dumper,abrt-addon-kerneloops,libgcrypt,oprofile,python-crypto,libtevent,ltrace,python-ldap,cpio,rsync,PyYAML,libtirpc,nfs4-acl-tools,python-nss,atk,mtr,python-pycurl,libtiff,libtopology,pygpgme,lcms-libs,dosfstools,python-argparse,libldb,rfkill,cups-libs,cyrus-sasl-gssapi,atmel-firmware,libXau,libipa_hbac,ql2500-firmware,pixman,jasper-libs,rootfiles,libsss_autofs,e2fsprogs,redhat-indexhtml,libref_array,make,iwl3945-firmware,libthai,libedit,ipw2200-firmware,libpcap,perl-Pod-Escapes,perl-libwww-perl,perl-libs,kernel-firmware,perl-Test-Harness,fontpackages-filesystem,perl-Module-Load,libX11-common,perl-IO-Compress-Base,cairo,perl-Compress-Zlib,libXcursor,perl-Term-UI,libXinerama,perl-Test-Simple,ghostscript,perl-Module-Loaded,pycairo,libusb1,libXcomposite,openjpeg-libs,fprintd,perl-IO-Compress-Bzip2,iproute,perl-ExtUtils-Embed,udev,perl-Parse-CPAN-Meta,device-mapper,perl-Time-Piece,kpartx,tmpwatch,samba-common,iw,nfs-utils,tcp_wrappers,lvm2-libs,db4-utils,rhnsd,patch,foomatic-db-ppds,libnih,mesa-dri1-drivers,time,phonon-backend-gstreamer,cdparanoia-libs,python-iwlib,less,yp-tools,cracklib-dicts,cyrus-sasl,fontconfig,cronie,qt,redhat-lsb-compat,xdg-utils,virt-what,pciutils,selinux-policy,ghostscript-fonts,dracut-kernel,bind-utils,hal-info,ConsoleKit,systemtap-runtime,krb5-workstation,libgcc,sssd-client,ca-certificates,nss,filesystem,mailx,foomatic-db-filesystem,openldap,mesa-dri-filesystem,xmlrpc-c-client,xml-common,rpm-libs,ncurses-base,gnupg2,glibc-common,libuser,ncurses-libs,gpgme,libattr,jline,zlib,hicolor-icon-theme,libstdc++,hdparm,dbus-libs,theora-tools,popt,mingetty,nspr,libffi,freetype,python,libacl,newt-python,libpng,dbus-python,bzip2-libs,python-ethtool,libtalloc,authconfig,libselinux,m2crypto,glib2,python-simplejson,sed,pygobject2,elfutils-libelf,rhnlib,sqlite,python-rhsm,dbus-glib,numpy,libICE,sos,libblkid,libproxy-bin,keyutils-libs,libproxy-python,libtdb,libreport-compat,findutils,libreport,xz-libs,abrt-libs,procps,abrt-addon-python,libidn,abrt-tui,libcap-ng,libreport-plugin-kerneloops,libgpg-error,libreport-cli,pciutils-libs,python-configobj,libgssglue,python-paramiko,bzip2,python-krbV,grep,gettext,binutils,libipa_hbac-python,pkgconfig,pytalloc,libvorbis,pytz,lua,python-kerberos,tar,python-cheetah,net-tools,python-urlgrabber,e2fsprogs-libs,python-prettytable,dmidecode,yum,libmng,python-boto,crash,libdhash,libgudev1,gnutls,xz,samba4-libs,keyutils,libsss_idmap,bc,libxcb,checkpolicy,liboil,vim-minimal,ustr,acl,libsemanage-python,libss,hesiod,gmp,libasyncns,diffutils,libini_config,m4,blktrace,libfontenc,pax,numactl,sg3_utils-libs,gdbm,ethtool,perl-Module-Pluggable,perl-version,perl,perl-Params-Check,perl-ExtUtils-ParseXS,perl-ExtUtils-MakeMaker,perl-Module-Load-Conditional,perl-Log-Message,perl-Compress-Raw-Zlib,perl-IO-Compress-Zlib,perl-IO-Zlib,perl-Log-Message-Simple,perl-Archive-Extract,perl-ExtUtils-CBuilder,perl-Object-Accessor,perl-Compress-Raw-Bzip2,perl-Digest-SHA,perl-Module-CoreList,libgfortran,newt,libcollection,perl-CPAN,perl-DBD-SQLite,perl-Module-Build,perl-HTML-Tagset,perl-CGI,perl-CPANPLUS,perl-parent,libXfont,xz-lzma-compat,elfutils,gstreamer,libxslt,flac,grubby,setools-libs,MAKEDEV,desktop-file-utils,device-mapper-persistent-data,portreserve,upstart,ed,libgomp,libhugetlbfs,vim-common,groff,coreutils-libs,cracklib,coreutils,openssl,module-init-tools,hwdata,jpackage-utils,plymouth-scripts,redhat-logos,qt-sqlite,libpciaccess,urw-fonts,mysql-libs,bind-libs,fipscheck-lib,ConsoleKit-libs,polkit,at,selinux-policy-targeted,subscription-manager,cloud-init,rh-amazon-rhui-client-beta,cifs-utils,numad,openssh-clients,parted,iwl1000-firmware,iwl5150-firmware,biosdevname,iwl6050-firmware,iwl100-firmware,smartmontools,cpuspeed,quota,acpid,fprintd-pam,latencytop,hwloc,perl-XML-Twig,ledmon,yum-utils,abrt-cli,grub,dstat,perf,elinks,sudo,pinfo,alsa-utils,pam_passwdqc,psacct,hunspell-en,ntsysv,valgrind,crash-gcore-command,mlocate,cyrus-sasl-plain,latencytop-tui,unzip,libitm,attr,scl-utils,powertop,zip,strace,eject,setserial,b43-fwcutter,crash-trace-command,trace-cmd,rdate,rt73usb-firmware,rt61pci-firmware,zd1211-firmware,libertas-usb8388-firmware,ql2200-firmware,ql2400-firmware,ivtv-firmware,words,man-pages,ql2100-firmware,gpg-pubkey,mailcap,perl-XML-Parser,busybox,poppler-data,poppler-utils,dejavu-fonts-common,dhcp-common,libX11,libXrender,libXi,libXtst,libXrandr,pango,pulseaudio-libs,libXt,giflib,qt3,libXxf86vm,gstreamer-plugins-base,gtk2,libfprint,redhat-release-server,iptables,iputils,initscripts,libdrm,device-mapper-libs,device-mapper-event-libs,device-mapper-event,openssh,rsyslog,samba-winbind-clients,nfs-utils-lib,policycoreutils-python,dmraid,rhn-setup,rhn-check,rh-amazon-rhui-client,cryptsetup-luks,foomatic-db,mesa-libGL,mesa-dri-drivers,qt-x11,plymouth,wireless-tools,mdadm,oddjob-mkhomedir,ypbind,ntp,postfix,cronie-anacron,redhat-lsb-core,redhat-lsb-graphics,redhat-lsb,certmonger,ipa-python,system-config-firewall-base,kbd-misc,dracut,kernel,pm-utils,hal,pcmciautils,kexec-tools,cvs,setup,sysstat,nss-sysinit,tzdata-java,lvm2,libcurl,basesystem,openssh-server,rpm,nss-softokn-freebl,aic94xx-firmware,passwd,bash,b43-openfwwf,rhino,info,iwl6000g2a-firmware,SDL,libxml2,microcode_ctl,libyaml,audit-libs,rng-tools,rpm-python,gawk,seekwatcher,libxml2-python,expat,perl-XML-Grove,python-setuptools,gamin,yum-plugin-security,libselinux-python,db4,libhugetlbfs-utils,python-gudev,cyrus-sasl-lib,vim-enhanced,python-pygments,libSM,man-pages-overrides,libproxy,krb5-libs,usbutils,libreport-plugin-reportuploader,btparser,tcsh,abrt,which,perl-core,libreport-plugin-mailx,dbus,irqbalance,libreport-plugin-logger,libnl,efibootmgr,setools-libs-python,pcre,lsof,python-lxml,file-libs,nano,audit-libs-python,elfutils-libs,mcelog,python-markdown,psmisc,bridge-utils,python-netaddr,sysvinit-tools,traceroute,rhn-client-tools,file,latrace,libtasn1,libtheora,vconfig,plymouth-core-libs,nss-softokn,ql23xx-firmware,libvisual,libselinux-utils,xorg-x11-drv-ati-firmware,libsemanage,avahi-libs,iwl5000-firmware,sgpio,libusb,ipw2100-firmware,libaio,libtar,iwl4965-firmware,libevent,pth,gpg-pubkey,c-ares,perl-Pod-Simple,perl-libxml-perl,perl-Locale-Maketext-Simple,poppler,perl-devel,dejavu-sans-fonts,perl-IPC-Cmd,libXext,perl-Package-Constants,libXfixes,perl-Archive-Tar,libXft,perl-File-Fetch,libXdamage,perl-DBI,java-1.7.0-openjdk,perl-URI,libXv,slang,python-matplotlib,atlas,policycoreutils,perl-DBIx-Simple,util-linux-ng,perl-HTML-Parser,cups,perl-Time-HiRes,usermode,xorg-x11-font-utils,libcgroup,gstreamer-tools,samba-winbind,hal-libs,dmraid-events,eggdbus,yum-rhn-plugin,libutempter,cryptsetup-luks-libs,pinentry,foomatic,hunspell,mesa-libGLU,dash,crda,ncurses,oddjob,gzip,ntpdate,pam,crontabs,alsa-lib,redhat-lsb-printing,libssh2,sssd,rpcbind,iptables-ipv6,libsndfile,kbd,wget,autofs,fipscheck,ipa-client,pam_krb5'']'} > - {comment: 'Newly introduced packages: [''PyYAML'', ''audit-libs-python'', > ''cloud-init'', ''gpg-pubkey'', ''libselinux-python'', ''libsemanage-python'', > ''libyaml'', ''policycoreutils-python'', ''python-argparse'', ''python-boto'', > ''python-cheetah'', ''python-configobj'', ''python-markdown'', ''python-prettytable'', > ''python-pygments'', ''redhat-lsb-compat'', ''rh-amazon-rhui-client'', ''rh-amazon-rhui-client-beta'', > ''setools-libs'', ''setools-libs-python'']', result: passed} > - {comment: All required package are included, result: passed} > 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: > - {command: df -h | grep 15G, 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-5fcc862e",\r\n "billingProducts" > : [ "bp-63a5400a" ],\r\n "version" : "2010-08-31",\r\n "imageId" : "ami-33c2495a",\r\n "accountId" > : "337935342288",\r\n "instanceType" : "m2.xlarge",\r\n "architecture" > : "x86_64",\r\n "kernelId" : "aki-ecfa0185",\r\n "ramdiskId" : null,\r\n "pendingTime" > : "2013-01-15T16:22:26Z",\r\n "availabilityZone" : "us-east-1c",\r\n "devpayProductCodes" > : null,\r\n "privateIp" : "10.3.94.13",\r\n "region" : "us-east-1"\r\n}'']'} > - {command: '[ "ami-33c2495a" = "ami-33c2495a" ]', 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'']'} > - {command: '[ ''6.4'' = ''6.4'' ]', result: passed} > 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: rpm -q systemd > /dev/null && echo True || echo False, result: passed, > value: 'False'} > - {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/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} > - {command: md5sum /etc/audit/audit.rules | cut -f 1 -d ' ', expectation: f9869e1191838c461f5b9051c78a638d, > 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/xvde1} > - {command: 'echo ''###'' ;mount | grep ''^/dev/xvde1'' | awk ''{print $3}''; > echo ''###''', match: ".*\r\n###\r\n(.*)\r\n###\r\n.*", result: passed, > value: '[''/'']'} > - {command: 'echo ''###'' ;mount | grep ''^/dev/xvde1'' | awk ''{print $5}''; > echo ''###''', match: ".*\r\n###\r\n(.*)\r\n###\r\n.*", result: passed, > value: '[''ext4'']'} > - {command: '[ `df -k /dev/xvde1 | 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} > - {actual: "rpm -qa gpg-pubkey* | wc -l\r\n2\r\n[root@ip-10-3-94-13 ~]# ", command: rpm > -qa gpg-pubkey* | wc -l, expectation: "\r\n3\r\n", result: failed} > - {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} > - {actual: None, command: '[ 8b91b32300134e98ef4aee632ed61e21 = 8b91b32300134e98ef4aee632ed61e21 > ]', result: failed} > 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: '6'} > - {command: 'rpm -q --queryformat ''%{RELEASE} > > '' redhat-release-server | cut -d. -f1,2', result: passed, value: '6.4'} > - {actual: '1', command: '[ 6 = 5 ]', result: failed} > - {command: '[ 6.4 = 6.4 ]', result: passed} > - {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: > - {actual: '1', command: 'yum repolist -v all | csplit --prefix=repolist_xx > - "%Repo-id\s*:%"', result: failed} > - {comment: 'failed to get actual repo list [Errno 2] No such file', result: failure} > testcase_28_iptables: > - {command: 'iptables -L -n | grep :22 | grep ACCEPT | wc -l', expectation: "\r\n\ > 1\r\n", result: passed} > - {command: 'iptables -L -n | grep RELATED,ESTABLISHED | grep ACCEPT | wc -l', > expectation: "\r\n1\r\n", result: passed} > - {command: iptables -L -n | 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: not applicable for arch = x86_64, result: skipped} > testcase_30_rhn_certificates: > - {command: rpm -ql rh-amazon-rhui-client rh-amazon-rhui-client-beta | 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\r\n/etc/pki/entitlement/product/content-rhel6-beta.crt\r\ > \n/etc/pki/entitlement/product/rhui-client-config-server-6-beta.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} > - {command: openssl x509 -in /etc/pki/entitlement/product/content-rhel6-beta.crt > -noout -dates | grep notAfter, result: passed, value: 'notAfter=Nov 30 18:34:17 > 2020 GMT'} > - {comment: '(/etc/pki/entitlement/product/content-rhel6-beta.crt).notAfter=2020-11-30 > 18:34:17; expecting: 2020-11-10 00:00:00', result: passed} > - {command: openssl x509 -in /etc/pki/entitlement/product/rhui-client-config-server-6-beta.crt > -noout -dates | grep notAfter, result: passed, value: 'notAfter=Nov 30 18:38:42 > 2020 GMT'} > - {comment: '(/etc/pki/entitlement/product/rhui-client-config-server-6-beta.crt).notAfter=2020-11-30 > 18:38:42; expecting: 2020-11-10 00:00:00', result: passed} > testcase_31_subscription_management: {comment: not applicable for version = > 6.4, result: skipped} > testcase_32_ephemeral: > - {command: fdisk -l /dev/xvdj | grep ^Disk, result: passed} > - {command: mkfs.vfat -I /dev/xvdj, result: passed} > testcase_33_userdata: > - {command: 'rpm -q --queryformat ''%{NAME} > > '' cloud-init', result: passed, value: cloud-init} > - {command: ls -l /userdata_test, result: passed} > testcase_34_cpu: > - {command: cat /proc/cpuinfo | grep '^processor' | wc -l, expectation: '2', > result: passed} > testcase_50_yum_package_install: > - {command: yum repolist, result: passed} > - {actual: '1', command: yum search zsh, result: failed} > - {actual: '1', command: yum -y install zsh, result: failed} > - {actual: '1', command: 'rpm -q --queryformat ''%{NAME}'' zsh', result: failed} > - {actual: '1', command: rpm -e zsh, result: failed} > testcase_55_yum_group_install: > - {actual: '1', command: yum -y groupinstall 'Development tools', result: failed} > testcase_60_yum_update: > - {actual: '1', command: yum -y update, result: failed} > testcase_99_reboot: [] > stage2: > testcase_08_memory: > - {command: 'grep --color=none ''MemTotal:'' /proc/meminfo', match: ".*\r\n\ > MemTotal:\\s*([0-9]+) ", result: passed, value: '[''17524096'']'} > - {command: '[ 17524096 -gt 17100000 ]', result: passed} > testcase_25_uname: > - {command: uname -r, result: passed, value: 2.6.32-353.el6.x86_64} > - {command: 'rpm -q --queryformat ''%{VERSION}-%{RELEASE}.%{ARCH} > > '' kernel | sort | tail -1', result: passed, value: 2.6.32-353.el6.x86_64} > - {command: uname -o, result: passed, value: GNU/Linux} > - {command: '[ 2.6.32-353.el6.x86_64 = 2.6.32-353.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} > t1.micro: > stage1: > testcase_01_ipv6: > - {command: grep NETWORKING_IPV6=no /etc/sysconfig/network, result: passed} > testcase_02_bash_history: > - {command: '[ ! -f ~/.bash_history ] && echo 0 || cat ~/.bash_history | wc > -l', expectation: "\r\n0\r\n", result: passed} > testcase_03_chkconfig: > - {command: rpm -q systemd > /dev/null && echo True || echo False, result: passed, > value: 'False'} > - {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} > - {command: 'grep ''(hd0,0)'' /boot/grub/grub.conf', result: passed} > testcase_06_inittab: > - {command: rpm -q systemd > /dev/null && echo True || echo False, result: passed, > value: 'False'} > - {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 --color=none ''MemTotal:'' /proc/meminfo', match: ".*\r\n\ > MemTotal:\\s*([0-9]+) ", result: passed, value: '[''604684'']'} > - {command: '[ 604684 -gt 600000 ]', 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: '[''system-config-firewall-tui,logrotate,tzdata,system-config-network-tui,nss-tools,latencytop-common,samba-client,curl,iso-codes,setuptool,man,glibc,iwl6000-firmware,nss_compat_ossl,libcap,bfa-firmware,gpm-libs,libcom_err,dhclient,libpath_utils,chkconfig,readahead,python-libs,nss-util,prelink,python-iniparse,libjpeg-turbo,java-1.6.0-openjdk,python-dmidecode,libsepol,tcpdump,python-dateutil,shadow-utils,cas,pyOpenSSL,readline,iotop,python-nose,libuuid,gdb,yum-metadata-parser,xmlrpc-c,Red_Hat_Enterprise_Linux-Release_Notes-6-en-US,libreport-plugin-rhtsupport,tcp_wrappers-libs,perl-Crypt-SSLeay,libreport-python,libogg,audit,abrt-addon-ccpp,libudev,perl-XML-Dumper,abrt-addon-kerneloops,libgcrypt,oprofile,python-crypto,libtevent,ltrace,python-ldap,cpio,rsync,PyYAML,libtirpc,nfs4-acl-tools,python-nss,atk,mtr,python-pycurl,libtiff,libtopology,pygpgme,lcms-libs,dosfstools,python-argparse,libldb,rfkill,cups-libs,cyrus-sasl-gssapi,atmel-firmware,libXau,libipa_hbac,ql2500-firmware,pixman,jasper-libs,rootfiles,libsss_autofs,e2fsprogs,redhat-indexhtml,libref_array,make,iwl3945-firmware,libthai,libedit,ipw2200-firmware,libpcap,perl-Pod-Escapes,perl-libwww-perl,perl-libs,kernel-firmware,perl-Test-Harness,fontpackages-filesystem,perl-Module-Load,libX11-common,perl-IO-Compress-Base,cairo,perl-Compress-Zlib,libXcursor,perl-Term-UI,libXinerama,perl-Test-Simple,ghostscript,perl-Module-Loaded,pycairo,libusb1,libXcomposite,openjpeg-libs,fprintd,perl-IO-Compress-Bzip2,iproute,perl-ExtUtils-Embed,udev,perl-Parse-CPAN-Meta,device-mapper,perl-Time-Piece,kpartx,tmpwatch,samba-common,iw,nfs-utils,tcp_wrappers,lvm2-libs,db4-utils,rhnsd,patch,foomatic-db-ppds,libnih,mesa-dri1-drivers,time,phonon-backend-gstreamer,cdparanoia-libs,python-iwlib,less,yp-tools,cracklib-dicts,cyrus-sasl,fontconfig,cronie,qt,redhat-lsb-compat,xdg-utils,virt-what,pciutils,selinux-policy,ghostscript-fonts,dracut-kernel,bind-utils,hal-info,ConsoleKit,systemtap-runtime,krb5-workstation,libgcc,sssd-client,ca-certificates,nss,filesystem,mailx,foomatic-db-filesystem,openldap,mesa-dri-filesystem,xmlrpc-c-client,xml-common,rpm-libs,ncurses-base,gnupg2,glibc-common,libuser,ncurses-libs,gpgme,libattr,jline,zlib,hicolor-icon-theme,libstdc++,hdparm,dbus-libs,theora-tools,popt,mingetty,nspr,libffi,freetype,python,libacl,newt-python,libpng,dbus-python,bzip2-libs,python-ethtool,libtalloc,authconfig,libselinux,m2crypto,glib2,python-simplejson,sed,pygobject2,elfutils-libelf,rhnlib,sqlite,python-rhsm,dbus-glib,numpy,libICE,sos,libblkid,libproxy-bin,keyutils-libs,libproxy-python,libtdb,libreport-compat,findutils,libreport,xz-libs,abrt-libs,procps,abrt-addon-python,libidn,abrt-tui,libcap-ng,libreport-plugin-kerneloops,libgpg-error,libreport-cli,pciutils-libs,python-configobj,libgssglue,python-paramiko,bzip2,python-krbV,grep,gettext,binutils,libipa_hbac-python,pkgconfig,pytalloc,libvorbis,pytz,lua,python-kerberos,tar,python-cheetah,net-tools,python-urlgrabber,e2fsprogs-libs,python-prettytable,dmidecode,yum,libmng,python-boto,crash,libdhash,libgudev1,gnutls,xz,samba4-libs,keyutils,libsss_idmap,bc,libxcb,checkpolicy,liboil,vim-minimal,ustr,acl,libsemanage-python,libss,hesiod,gmp,libasyncns,diffutils,libini_config,m4,blktrace,libfontenc,pax,numactl,sg3_utils-libs,gdbm,ethtool,perl-Module-Pluggable,perl-version,perl,perl-Params-Check,perl-ExtUtils-ParseXS,perl-ExtUtils-MakeMaker,perl-Module-Load-Conditional,perl-Log-Message,perl-Compress-Raw-Zlib,perl-IO-Compress-Zlib,perl-IO-Zlib,perl-Log-Message-Simple,perl-Archive-Extract,perl-ExtUtils-CBuilder,perl-Object-Accessor,perl-Compress-Raw-Bzip2,perl-Digest-SHA,perl-Module-CoreList,libgfortran,newt,libcollection,perl-CPAN,perl-DBD-SQLite,perl-Module-Build,perl-HTML-Tagset,perl-CGI,perl-CPANPLUS,perl-parent,libXfont,xz-lzma-compat,elfutils,gstreamer,libxslt,flac,grubby,setools-libs,MAKEDEV,desktop-file-utils,device-mapper-persistent-data,portreserve,upstart,ed,libgomp,libhugetlbfs,vim-common,groff,coreutils-libs,cracklib,coreutils,openssl,module-init-tools,hwdata,jpackage-utils,plymouth-scripts,redhat-logos,qt-sqlite,libpciaccess,urw-fonts,mysql-libs,bind-libs,fipscheck-lib,ConsoleKit-libs,polkit,at,selinux-policy-targeted,subscription-manager,cloud-init,rh-amazon-rhui-client-beta,cifs-utils,numad,openssh-clients,parted,iwl1000-firmware,iwl5150-firmware,biosdevname,iwl6050-firmware,iwl100-firmware,smartmontools,cpuspeed,quota,acpid,fprintd-pam,latencytop,hwloc,perl-XML-Twig,ledmon,yum-utils,abrt-cli,grub,dstat,perf,elinks,sudo,pinfo,alsa-utils,pam_passwdqc,psacct,hunspell-en,ntsysv,valgrind,crash-gcore-command,mlocate,cyrus-sasl-plain,latencytop-tui,unzip,libitm,attr,scl-utils,powertop,zip,strace,eject,setserial,b43-fwcutter,crash-trace-command,trace-cmd,rdate,rt73usb-firmware,rt61pci-firmware,zd1211-firmware,libertas-usb8388-firmware,ql2200-firmware,ql2400-firmware,ivtv-firmware,words,man-pages,ql2100-firmware,gpg-pubkey,mailcap,perl-XML-Parser,busybox,poppler-data,poppler-utils,dejavu-fonts-common,dhcp-common,libX11,libXrender,libXi,libXtst,libXrandr,pango,pulseaudio-libs,libXt,giflib,qt3,libXxf86vm,gstreamer-plugins-base,gtk2,libfprint,redhat-release-server,iptables,iputils,initscripts,libdrm,device-mapper-libs,device-mapper-event-libs,device-mapper-event,openssh,rsyslog,samba-winbind-clients,nfs-utils-lib,policycoreutils-python,dmraid,rhn-setup,rhn-check,rh-amazon-rhui-client,cryptsetup-luks,foomatic-db,mesa-libGL,mesa-dri-drivers,qt-x11,plymouth,wireless-tools,mdadm,oddjob-mkhomedir,ypbind,ntp,postfix,cronie-anacron,redhat-lsb-core,redhat-lsb-graphics,redhat-lsb,certmonger,ipa-python,system-config-firewall-base,kbd-misc,dracut,kernel,pm-utils,hal,pcmciautils,kexec-tools,cvs,setup,sysstat,nss-sysinit,tzdata-java,lvm2,libcurl,basesystem,openssh-server,rpm,nss-softokn-freebl,aic94xx-firmware,passwd,bash,b43-openfwwf,rhino,info,iwl6000g2a-firmware,SDL,libxml2,microcode_ctl,libyaml,audit-libs,rng-tools,rpm-python,gawk,seekwatcher,libxml2-python,expat,perl-XML-Grove,python-setuptools,gamin,yum-plugin-security,libselinux-python,db4,libhugetlbfs-utils,python-gudev,cyrus-sasl-lib,vim-enhanced,python-pygments,libSM,man-pages-overrides,libproxy,krb5-libs,usbutils,libreport-plugin-reportuploader,btparser,tcsh,abrt,which,perl-core,libreport-plugin-mailx,dbus,irqbalance,libreport-plugin-logger,libnl,efibootmgr,setools-libs-python,pcre,lsof,python-lxml,file-libs,nano,audit-libs-python,elfutils-libs,mcelog,python-markdown,psmisc,bridge-utils,python-netaddr,sysvinit-tools,traceroute,rhn-client-tools,file,latrace,libtasn1,libtheora,vconfig,plymouth-core-libs,nss-softokn,ql23xx-firmware,libvisual,libselinux-utils,xorg-x11-drv-ati-firmware,libsemanage,avahi-libs,iwl5000-firmware,sgpio,libusb,ipw2100-firmware,libaio,libtar,iwl4965-firmware,libevent,pth,gpg-pubkey,c-ares,perl-Pod-Simple,perl-libxml-perl,perl-Locale-Maketext-Simple,poppler,perl-devel,dejavu-sans-fonts,perl-IPC-Cmd,libXext,perl-Package-Constants,libXfixes,perl-Archive-Tar,libXft,perl-File-Fetch,libXdamage,perl-DBI,java-1.7.0-openjdk,perl-URI,libXv,slang,python-matplotlib,atlas,policycoreutils,perl-DBIx-Simple,util-linux-ng,perl-HTML-Parser,cups,perl-Time-HiRes,usermode,xorg-x11-font-utils,libcgroup,gstreamer-tools,samba-winbind,hal-libs,dmraid-events,eggdbus,yum-rhn-plugin,libutempter,cryptsetup-luks-libs,pinentry,foomatic,hunspell,mesa-libGLU,dash,crda,ncurses,oddjob,gzip,ntpdate,pam,crontabs,alsa-lib,redhat-lsb-printing,libssh2,sssd,rpcbind,iptables-ipv6,libsndfile,kbd,wget,autofs,fipscheck,ipa-client,pam_krb5'']'} > - {comment: 'Newly introduced packages: [''PyYAML'', ''audit-libs-python'', > ''cloud-init'', ''gpg-pubkey'', ''libselinux-python'', ''libsemanage-python'', > ''libyaml'', ''policycoreutils-python'', ''python-argparse'', ''python-boto'', > ''python-cheetah'', ''python-configobj'', ''python-markdown'', ''python-prettytable'', > ''python-pygments'', ''redhat-lsb-compat'', ''rh-amazon-rhui-client'', ''rh-amazon-rhui-client-beta'', > ''setools-libs'', ''setools-libs-python'']', result: passed} > - {comment: All required package are included, result: passed} > 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: > - {command: df -h | grep 15G, 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-45cc8634",\r\n "billingProducts" > : [ "bp-63a5400a" ],\r\n "version" : "2010-08-31",\r\n "imageId" : "ami-33c2495a",\r\n "accountId" > : "337935342288",\r\n "instanceType" : "t1.micro",\r\n "architecture" > : "x86_64",\r\n "kernelId" : "aki-ecfa0185",\r\n "ramdiskId" : null,\r\n "pendingTime" > : "2013-01-15T16:22:26Z",\r\n "availabilityZone" : "us-east-1c",\r\n "devpayProductCodes" > : null,\r\n "privateIp" : "10.3.94.29",\r\n "region" : "us-east-1"\r\n}'']'} > - {command: '[ "ami-33c2495a" = "ami-33c2495a" ]', 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'']'} > - {command: '[ ''6.4'' = ''6.4'' ]', result: passed} > 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: rpm -q systemd > /dev/null && echo True || echo False, result: passed, > value: 'False'} > - {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/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} > - {command: md5sum /etc/audit/audit.rules | cut -f 1 -d ' ', expectation: f9869e1191838c461f5b9051c78a638d, > 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/xvde1} > - {command: 'echo ''###'' ;mount | grep ''^/dev/xvde1'' | awk ''{print $3}''; > echo ''###''', match: ".*\r\n###\r\n(.*)\r\n###\r\n.*", result: passed, > value: '[''/'']'} > - {command: 'echo ''###'' ;mount | grep ''^/dev/xvde1'' | awk ''{print $5}''; > echo ''###''', match: ".*\r\n###\r\n(.*)\r\n###\r\n.*", result: passed, > value: '[''ext4'']'} > - {command: '[ `df -k /dev/xvde1 | 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} > - {actual: "rpm -qa gpg-pubkey* | wc -l\r\n2\r\n[root@ip-10-3-94-29 ~]# ", command: rpm > -qa gpg-pubkey* | wc -l, expectation: "\r\n3\r\n", result: failed} > - {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: '6'} > - {command: 'rpm -q --queryformat ''%{RELEASE} > > '' redhat-release-server | cut -d. -f1,2', result: passed, value: '6.4'} > - {actual: '1', command: '[ 6 = 5 ]', result: failed} > - {command: '[ 6.4 = 6.4 ]', result: passed} > - {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: > - {actual: '1', command: 'yum repolist -v all | csplit --prefix=repolist_xx > - "%Repo-id\s*:%"', result: failed} > - {comment: 'failed to get actual repo list [Errno 2] No such file', result: failure} > testcase_28_iptables: > - {command: 'iptables -L -n | grep :22 | grep ACCEPT | wc -l', expectation: "\r\n\ > 1\r\n", result: passed} > - {command: 'iptables -L -n | grep RELATED,ESTABLISHED | grep ACCEPT | wc -l', > expectation: "\r\n1\r\n", result: passed} > - {command: iptables -L -n | 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: not applicable for arch = x86_64, result: skipped} > testcase_30_rhn_certificates: > - {command: rpm -ql rh-amazon-rhui-client rh-amazon-rhui-client-beta | 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\r\n/etc/pki/entitlement/product/content-rhel6-beta.crt\r\ > \n/etc/pki/entitlement/product/rhui-client-config-server-6-beta.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} > - {command: openssl x509 -in /etc/pki/entitlement/product/content-rhel6-beta.crt > -noout -dates | grep notAfter, result: passed, value: 'notAfter=Nov 30 18:34:17 > 2020 GMT'} > - {comment: '(/etc/pki/entitlement/product/content-rhel6-beta.crt).notAfter=2020-11-30 > 18:34:17; expecting: 2020-11-10 00:00:00', result: passed} > - {command: openssl x509 -in /etc/pki/entitlement/product/rhui-client-config-server-6-beta.crt > -noout -dates | grep notAfter, result: passed, value: 'notAfter=Nov 30 18:38:42 > 2020 GMT'} > - {comment: '(/etc/pki/entitlement/product/rhui-client-config-server-6-beta.crt).notAfter=2020-11-30 > 18:38:42; expecting: 2020-11-10 00:00:00', result: passed} > testcase_31_subscription_management: {comment: not applicable for version = > 6.4, result: skipped} > testcase_32_ephemeral: > - {comment: no ephemeral devices in block map, result: skip} > testcase_33_userdata: > - {command: 'rpm -q --queryformat ''%{NAME} > > '' cloud-init', result: passed, value: cloud-init} > - {command: ls -l /userdata_test, result: passed} > testcase_34_cpu: > - {command: cat /proc/cpuinfo | grep '^processor' | wc -l, expectation: '1', > result: passed} > testcase_50_yum_package_install: > - {command: yum repolist, result: passed} > - {actual: '1', command: yum search zsh, result: failed} > - {actual: '1', command: yum -y install zsh, result: failed} > - {actual: '1', command: 'rpm -q --queryformat ''%{NAME}'' zsh', result: failed} > - {actual: '1', command: rpm -e zsh, result: failed} > testcase_55_yum_group_install: > - {actual: '1', command: yum -y groupinstall 'Development tools', result: failed} > testcase_60_yum_update: > - {command: head -c $((1024*1024*1024)) /dev/zero > /swap && echo SUCCESS, expectation: "\r\n\ > SUCCESS\r\n", result: passed} > - {command: mkswap /swap, result: passed} > - {command: echo '/swap swap swap defaults 0 0' >> /etc/fstab > && echo SUCCESS, expectation: "\r\nSUCCESS\r\n", result: passed} > - {command: swapon -a, result: passed} > - {actual: '1', command: yum -y update, result: failed} > testcase_99_reboot: [] > stage2: > testcase_08_memory: > - {command: 'grep --color=none ''MemTotal:'' /proc/meminfo', match: ".*\r\n\ > MemTotal:\\s*([0-9]+) ", result: passed, value: '[''604684'']'} > - {command: '[ 604684 -gt 600000 ]', result: passed} > testcase_25_uname: > - {command: uname -r, result: passed, value: 2.6.32-353.el6.x86_64} > - {command: 'rpm -q --queryformat ''%{VERSION}-%{RELEASE}.%{ARCH} > > '' kernel | sort | tail -1', result: passed, value: 2.6.32-353.el6.x86_64} > - {command: uname -o, result: passed, value: GNU/Linux} > - {command: '[ 2.6.32-353.el6.x86_64 = 2.6.32-353.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 895619
: 678876