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 678877 Details for
Bug 895620
ami-03c2496a BETA 6.4 i386 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-03c2496a.yaml
ami-03c2496a.yaml (text/yaml), 65.70 KB, created by
mkovacik
on 2013-01-15 16:42:42 UTC
(
hide
)
Description:
ami-03c2496a.yaml
Filename:
MIME Type:
Creator:
mkovacik
Created:
2013-01-15 16:42:42 UTC
Size:
65.70 KB
patch
obsolete
>ami: ami-03c2496a >arch: i386 >product: BETA >region: us-east-1 >result: > c1.medium: > 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: '[''1752584'']'} > - {command: '[ 1752584 -gt 1700000 ]', 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: '[''python-matplotlib,coreutils-libs,filesystem,libvisual,fontconfig,foomatic-db-filesystem,redhat-lsb-graphics,jpackage-utils,xml-common,pulseaudio-libs,ghostscript-fonts,kernel-firmware,cloud-init,hicolor-icon-theme,poppler-data,cas,qt-sqlite,ql23xx-firmware,iotop,poppler,libertas-usb8388-firmware,selinux-policy-targeted,fipscheck,ql2400-firmware,b43-openfwwf,cvs,ipw2100-firmware,iwl5150-firmware,ConsoleKit,iwl4965-firmware,hunspell-en,logrotate,libgcc,perl-XML-Dumper,nss-tools,ncurses-libs,fprintd-pam,curl,zlib,subscription-manager,man,dbus-libs,sysstat,nss_compat_ossl,nspr,lvm2,libyaml,libacl,setuptool,libref_array,bzip2-libs,quota,libsss_autofs,gamin,rng-tools,pax,libtalloc,hwloc,libpcap,sqlite,sudo,libX11,libICE,perl-Crypt-SSLeay,libXi,tcp_wrappers-libs,psacct,libXft,findutils,crash-gcore-command,libXdamage,procps,cyrus-sasl-plain,libXxf86vm,libgcrypt,unzip,ethtool,dbus,attr,iptables,bzip2,mtr,initscripts,binutils,trace-cmd,device-mapper-libs,libvorbis,strace,device-mapper-event,net-tools,eject,kbd,e2fsprogs-libs,gpg-pubkey,lvm2-libs,libmng,pm-utils,libgudev1,mesa-libGL,keyutils,dracut-kernel,vim-minimal,crda,acl,ntpdate,libss,postfix,make,oddjob,pth,libffi,perl-Pod-Escapes,python-setuptools,perl-version,python-configobj,perl-Test-Harness,libproxy-python,perl-Module-Load,python-netaddr,perl-IO-Compress-Base,libreport-python,perl-Archive-Extract,libreport-plugin-reportuploader,perl-Object-Accessor,newt-python,perl-Compress-Raw-Zlib,python-dmidecode,perl-Archive-Tar,python-simplejson,openjpeg-libs,libselinux-python,libgfortran,python-rhsm,perl-DBD-SQLite,libreport-plugin-mailx,perl-Parse-CPAN-Meta,libreport-cli,perl-HTML-Parser,gettext,perl-libxml-perl,python-pycurl,libXfont,pycairo,elfutils,python-paramiko,iw,pytalloc,grubby,yum,MAKEDEV,yum-rhn-plugin,device-mapper-persistent-data,policycoreutils-python,upstart,samba-winbind-clients,time,gtk2,cdparanoia-libs,foomatic-db,gzip,setup,cracklib-dicts,tzdata,coreutils,tzdata-java,openssl,latencytop-common,module-init-tools,basesystem,hwdata,ncurses-base,xdg-utils,iso-codes,plymouth-scripts,mailcap,urw-fonts,fontpackages-filesystem,rhino,redhat-release-server,qt,libX11-common,rpcbind,rt73usb-firmware,pciutils,ql2500-firmware,libsndfile,xorg-x11-drv-ati-firmware,poppler-utils,rootfiles,fipscheck-lib,iwl5000-firmware,bind-libs,atmel-firmware,wget,rt61pci-firmware,krb5-workstation,words,polkit,man-pages,sssd-client,ql2100-firmware,pam_krb5,ipw2200-firmware,nss,nss-softokn-freebl,mailx,glibc,openldap,bash,xmlrpc-c-client,libcap,rpm-libs,info,gnupg2,libstdc++,libuser,libxml2,gpgme,chkconfig,libpath_utils,audit-libs,c-ares,nss-util,pixman,gawk,libthai,libjpeg-turbo,libini_config,expat,liboil,libselinux,libsss_idmap,glib2,sgpio,sed,libevent,db4,sg3_utils-libs,readline,mingetty,cyrus-sasl-lib,libxcb,libuuid,libXext,libSM,cairo,xmlrpc-c,libXfixes,libtdb,libXcursor,krb5-libs,pango,btparser,libXinerama,libogg,libXt,libidn,qt3,libgpg-error,libXv,libnl,libdhash,libcap-ng,ustr,libudev,policycoreutils,libtevent,iproute,pcre,util-linux-ng,cpio,udev,file-libs,libdrm,libtirpc,device-mapper,elfutils-libs,usermode,atk,kpartx,psmisc,rsyslog,libtiff,openssh,sysvinit-tools,dmraid,lcms-libs,cryptsetup-luks-libs,file,libldb,libtheora,cyrus-sasl-gssapi,nss-softokn,libipa_hbac,libselinux-utils,jasper-libs,avahi-libs,gmp,e2fsprogs,m4,libfontenc,libedit,slang,gdbm,perl-Module-Pluggable,perl-Pod-Simple,perl,perl-Params-Check,perl-ExtUtils-ParseXS,perl-ExtUtils-MakeMaker,perl-Module-Load-Conditional,perl-Log-Message,perl-Package-Constants,perl-Term-UI,perl-File-Fetch,perl-Test-Simple,perl-URI,perl-Module-CoreList,perl-IO-Compress-Zlib,perl-IO-Zlib,perl-DBI,perl-Digest-SHA,numactl,libusb1,perl-CPAN,perl-DBIx-Simple,perl-Module-Build,perl-parent,perl-CPANPLUS,perl-HTML-Tagset,perl-libwww-perl,perl-XML-Parser,atlas,perl-Time-Piece,xorg-x11-font-utils,tmpwatch,gstreamer-tools,hal-libs,libxslt,tcp_wrappers,eggdbus,db4-utils,libutempter,patch,pinentry,libnih,hunspell,libgomp,libhugetlbfs,vim-common,ncurses,less,redhat-lsb-printing,libfprint,sssd,gstreamer-plugins-base,qt-x11,redhat-lsb-compat,libasyncns,java-1.6.0-openjdk,ipa-client,rh-amazon-rhui-client-beta,yum-utils,system-config-network-tui,system-config-firewall-tui,grub,perf,aic94xx-firmware,iwl6000-firmware,bfa-firmware,iwl6000g2a-firmware,iwl100-firmware,Red_Hat_Enterprise_Linux-Release_Notes-6-en-US,perl-core,perl-XML-Twig,theora-tools,java-1.7.0-openjdk,latencytop,cifs-utils,libhugetlbfs-utils,gdb,kexec-tools,systemtap-runtime,openssh-server,numad,parted,readahead,acpid,microcode_ctl,dhclient,prelink,tcpdump,elinks,pinfo,alsa-utils,pam_passwdqc,tcsh,irqbalance,ntsysv,oprofile,efibootmgr,ltrace,lsof,rsync,libitm,nfs4-acl-tools,powertop,bridge-utils,zip,rfkill,libtopology,crash-trace-command,latrace,setserial,dosfstools,gpg-pubkey,hal-info,hal,mesa-dri-drivers,mesa-libGLU,dracut,kernel,mdadm,wireless-tools,ypbind,ntp,cyrus-sasl,cronie-anacron,crontabs,oddjob-mkhomedir,iptables-ipv6,python-libs,python-iniparse,python-dateutil,python-pygments,pytz,libproxy,python-nss,system-config-firewall-base,python-prettytable,python-argparse,libreport-plugin-rhtsupport,libreport,rpm-python,abrt,libxml2-python,python-ethtool,authconfig,m2crypto,pygobject2,nfs-utils,rhnlib,python-gudev,abrt-addon-python,abrt-tui,libreport-plugin-kerneloops,libreport-plugin-logger,python-cheetah,PyYAML,redhat-lsb-core,blktrace,python-urlgrabber,audit-libs-python,python-iwlib,python-crypto,python-krbV,python-lxml,python-kerberos,yum-metadata-parser,rhn-client-tools,rhn-setup,rhn-check,setools-libs-python,libtasn1,cups-libs,samba4-libs,samba-winbind,cups,foomatic-db-ppds,foomatic,cracklib,ca-certificates,fprintd,pam,mesa-dri-filesystem,phonon-backend-gstreamer,alsa-lib,dhcp-common,redhat-lsb,redhat-logos,busybox,SDL,jline,dejavu-fonts-common,yum-plugin-security,libssh2,kbd-misc,abrt-cli,libpciaccess,zd1211-firmware,dstat,mysql-libs,ql2200-firmware,iwl1000-firmware,bind-utils,redhat-indexhtml,iwl6050-firmware,ConsoleKit-libs,iwl3945-firmware,man-pages-overrides,at,ivtv-firmware,perl-XML-Grove,nss-sysinit,glibc-common,seekwatcher,libcurl,libattr,samba-client,rpm,libcom_err,vim-enhanced,passwd,popt,pcmciautils,libaio,freetype,openssh-clients,plymouth-core-libs,libpng,biosdevname,hesiod,libsepol,cpuspeed,hdparm,shadow-utils,smartmontools,gpm-libs,elfutils-libelf,ledmon,libXau,dbus-glib,usbutils,libXrender,libblkid,audit,libXtst,keyutils-libs,valgrind,libXrandr,xz-libs,mlocate,giflib,which,latencytop-tui,libXcomposite,pciutils-libs,nano,libsemanage,libgssglue,scl-utils,iputils,grep,traceroute,selinux-policy,pkgconfig,rdate,device-mapper-event-libs,lua,b43-fwcutter,libcgroup,tar,vconfig,dmraid-events,dmidecode,cryptsetup-luks,crash,mesa-dri1-drivers,xz,plymouth,bc,autofs,checkpolicy,yp-tools,libusb,certmonger,diffutils,cronie,libtar,virt-what,newt,python,perl-libs,python-nose,perl-Locale-Maketext-Simple,libproxy-bin,perl-devel,python-markdown,perl-IPC-Cmd,python-boto,perl-Log-Message-Simple,libreport-compat,perl-ExtUtils-CBuilder,abrt-libs,perl-Module-Loaded,dbus-python,perl-Compress-Zlib,pyOpenSSL,perl-Compress-Raw-Bzip2,nfs-utils-lib,libcollection,sos,perl-IO-Compress-Bzip2,abrt-addon-ccpp,perl-ExtUtils-Embed,abrt-addon-kerneloops,perl-CGI,numpy,dejavu-sans-fonts,python-ldap,perl-Time-HiRes,pygpgme,xz-lzma-compat,libsemanage-python,gstreamer,libipa_hbac-python,flac,ipa-python,setools-libs,rhnsd,desktop-file-utils,rh-amazon-rhui-client,portreserve,gnutls,ed,samba-common,dash,ghostscript,groff'']'} > - {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-47cc8636",\r\n "billingProducts" > : [ "bp-63a5400a" ],\r\n "version" : "2010-08-31",\r\n "imageId" : "ami-03c2496a",\r\n "accountId" > : "337935342288",\r\n "instanceType" : "c1.medium",\r\n "architecture" > : "i386",\r\n "kernelId" : "aki-eafa0183",\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.17",\r\n "region" : "us-east-1"\r\n}'']'} > - {command: '[ "ami-03c2496a" = "ami-03c2496a" ]', result: passed} > - {command: '[ "i386" = "i386" ]', result: passed} > - {command: '[ "us-east-1" = "us-east-1" ]', result: passed} > - {command: '[ "bp-63a5400a" = "bp-63a5400a" ]', result: passed} > testcase_15_rhel_version: > - {actual: '', command: 'rpm -q --qf ''%{RELEASE} > > '' --whatprovides redhat-release', match: ".*\r\n([0-9]\\.[0-9]\\..*)\r\n\ > .*", result: failed} > testcase_16_selinux: > - {command: getenforce, expectation: "\r\nEnforcing\r\n", result: passed} > - {command: grep '^SELINUX=enforcing' /etc/sysconfig/selinux, result: passed} > - {command: grep '^SELINUXTYPE=targeted' /etc/sysconfig/selinux, result: passed} > - {command: setenforce Permissive && getenforce, expectation: "\r\nPermissive\r\ > \n", result: passed} > - {command: setenforce Enforcing && getenforce, expectation: "\r\nEnforcing\r\ > \n", result: passed} > testcase_17_shells: > - {command: grep 'bin/bash$' /etc/shells, result: passed} > - {command: grep 'bin/nologin$' /etc/shells, result: passed} > testcase_18_sshd: > - {command: 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-17 ~]# ", 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: > - {command: 'parted -l | grep linux-swap | awk ''{print $4}'' | awk -F''MB'' > ''{print $1}''', result: passed, value: '940'} > - {command: 'parted -l | grep -B 6 swap | grep ''^Disk /'' | awk ''{print $2}'' > | sed ''$s/.$//'' | head -1', result: passed, value: /dev/xvde3} > - {command: '[ 940 -gt 0 ]', result: passed} > - {command: swapoff /dev/xvde3 ; echo, result: passed} > - {command: swapon /dev/xvde3, result: passed} > - {command: swapoff /dev/xvde3 && swapon /dev/xvde3, result: passed} > 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: '[''1752584'']'} > - {command: '[ 1752584 -gt 1700000 ]', result: passed} > testcase_25_uname: > - {command: uname -r, result: passed, value: 2.6.32-353.el6.i686} > - {command: 'rpm -q --queryformat ''%{VERSION}-%{RELEASE}.%{ARCH} > > '' kernel | sort | tail -1', result: passed, value: 2.6.32-353.el6.i686} > - {command: uname -o, result: passed, value: GNU/Linux} > - {command: '[ 2.6.32-353.el6.i686 = 2.6.32-353.el6.i686 ]', 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.small: > 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: '[''1711740'']'} > - {command: '[ 1711740 -gt 1700000 ]', 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: '[''python-matplotlib,coreutils-libs,filesystem,libvisual,fontconfig,foomatic-db-filesystem,redhat-lsb-graphics,jpackage-utils,xml-common,pulseaudio-libs,ghostscript-fonts,kernel-firmware,cloud-init,hicolor-icon-theme,poppler-data,cas,qt-sqlite,ql23xx-firmware,iotop,poppler,libertas-usb8388-firmware,selinux-policy-targeted,fipscheck,ql2400-firmware,b43-openfwwf,cvs,ipw2100-firmware,iwl5150-firmware,ConsoleKit,iwl4965-firmware,hunspell-en,logrotate,libgcc,perl-XML-Dumper,nss-tools,ncurses-libs,fprintd-pam,curl,zlib,subscription-manager,man,dbus-libs,sysstat,nss_compat_ossl,nspr,lvm2,libyaml,libacl,setuptool,libref_array,bzip2-libs,quota,libsss_autofs,gamin,rng-tools,pax,libtalloc,hwloc,libpcap,sqlite,sudo,libX11,libICE,perl-Crypt-SSLeay,libXi,tcp_wrappers-libs,psacct,libXft,findutils,crash-gcore-command,libXdamage,procps,cyrus-sasl-plain,libXxf86vm,libgcrypt,unzip,ethtool,dbus,attr,iptables,bzip2,mtr,initscripts,binutils,trace-cmd,device-mapper-libs,libvorbis,strace,device-mapper-event,net-tools,eject,kbd,e2fsprogs-libs,gpg-pubkey,lvm2-libs,libmng,pm-utils,libgudev1,mesa-libGL,keyutils,dracut-kernel,vim-minimal,crda,acl,ntpdate,libss,postfix,make,oddjob,pth,libffi,perl-Pod-Escapes,python-setuptools,perl-version,python-configobj,perl-Test-Harness,libproxy-python,perl-Module-Load,python-netaddr,perl-IO-Compress-Base,libreport-python,perl-Archive-Extract,libreport-plugin-reportuploader,perl-Object-Accessor,newt-python,perl-Compress-Raw-Zlib,python-dmidecode,perl-Archive-Tar,python-simplejson,openjpeg-libs,libselinux-python,libgfortran,python-rhsm,perl-DBD-SQLite,libreport-plugin-mailx,perl-Parse-CPAN-Meta,libreport-cli,perl-HTML-Parser,gettext,perl-libxml-perl,python-pycurl,libXfont,pycairo,elfutils,python-paramiko,iw,pytalloc,grubby,yum,MAKEDEV,yum-rhn-plugin,device-mapper-persistent-data,policycoreutils-python,upstart,samba-winbind-clients,time,gtk2,cdparanoia-libs,foomatic-db,gzip,setup,cracklib-dicts,tzdata,coreutils,tzdata-java,openssl,latencytop-common,module-init-tools,basesystem,hwdata,ncurses-base,xdg-utils,iso-codes,plymouth-scripts,mailcap,urw-fonts,fontpackages-filesystem,rhino,redhat-release-server,qt,libX11-common,rpcbind,rt73usb-firmware,pciutils,ql2500-firmware,libsndfile,xorg-x11-drv-ati-firmware,poppler-utils,rootfiles,fipscheck-lib,iwl5000-firmware,bind-libs,atmel-firmware,wget,rt61pci-firmware,krb5-workstation,words,polkit,man-pages,sssd-client,ql2100-firmware,pam_krb5,ipw2200-firmware,nss,nss-softokn-freebl,mailx,glibc,openldap,bash,xmlrpc-c-client,libcap,rpm-libs,info,gnupg2,libstdc++,libuser,libxml2,gpgme,chkconfig,libpath_utils,audit-libs,c-ares,nss-util,pixman,gawk,libthai,libjpeg-turbo,libini_config,expat,liboil,libselinux,libsss_idmap,glib2,sgpio,sed,libevent,db4,sg3_utils-libs,readline,mingetty,cyrus-sasl-lib,libxcb,libuuid,libXext,libSM,cairo,xmlrpc-c,libXfixes,libtdb,libXcursor,krb5-libs,pango,btparser,libXinerama,libogg,libXt,libidn,qt3,libgpg-error,libXv,libnl,libdhash,libcap-ng,ustr,libudev,policycoreutils,libtevent,iproute,pcre,util-linux-ng,cpio,udev,file-libs,libdrm,libtirpc,device-mapper,elfutils-libs,usermode,atk,kpartx,psmisc,rsyslog,libtiff,openssh,sysvinit-tools,dmraid,lcms-libs,cryptsetup-luks-libs,file,libldb,libtheora,cyrus-sasl-gssapi,nss-softokn,libipa_hbac,libselinux-utils,jasper-libs,avahi-libs,gmp,e2fsprogs,m4,libfontenc,libedit,slang,gdbm,perl-Module-Pluggable,perl-Pod-Simple,perl,perl-Params-Check,perl-ExtUtils-ParseXS,perl-ExtUtils-MakeMaker,perl-Module-Load-Conditional,perl-Log-Message,perl-Package-Constants,perl-Term-UI,perl-File-Fetch,perl-Test-Simple,perl-URI,perl-Module-CoreList,perl-IO-Compress-Zlib,perl-IO-Zlib,perl-DBI,perl-Digest-SHA,numactl,libusb1,perl-CPAN,perl-DBIx-Simple,perl-Module-Build,perl-parent,perl-CPANPLUS,perl-HTML-Tagset,perl-libwww-perl,perl-XML-Parser,atlas,perl-Time-Piece,xorg-x11-font-utils,tmpwatch,gstreamer-tools,hal-libs,libxslt,tcp_wrappers,eggdbus,db4-utils,libutempter,patch,pinentry,libnih,hunspell,libgomp,libhugetlbfs,vim-common,ncurses,less,redhat-lsb-printing,libfprint,sssd,gstreamer-plugins-base,qt-x11,redhat-lsb-compat,libasyncns,java-1.6.0-openjdk,ipa-client,rh-amazon-rhui-client-beta,yum-utils,system-config-network-tui,system-config-firewall-tui,grub,perf,aic94xx-firmware,iwl6000-firmware,bfa-firmware,iwl6000g2a-firmware,iwl100-firmware,Red_Hat_Enterprise_Linux-Release_Notes-6-en-US,perl-core,perl-XML-Twig,theora-tools,java-1.7.0-openjdk,latencytop,cifs-utils,libhugetlbfs-utils,gdb,kexec-tools,systemtap-runtime,openssh-server,numad,parted,readahead,acpid,microcode_ctl,dhclient,prelink,tcpdump,elinks,pinfo,alsa-utils,pam_passwdqc,tcsh,irqbalance,ntsysv,oprofile,efibootmgr,ltrace,lsof,rsync,libitm,nfs4-acl-tools,powertop,bridge-utils,zip,rfkill,libtopology,crash-trace-command,latrace,setserial,dosfstools,gpg-pubkey,hal-info,hal,mesa-dri-drivers,mesa-libGLU,dracut,kernel,mdadm,wireless-tools,ypbind,ntp,cyrus-sasl,cronie-anacron,crontabs,oddjob-mkhomedir,iptables-ipv6,python-libs,python-iniparse,python-dateutil,python-pygments,pytz,libproxy,python-nss,system-config-firewall-base,python-prettytable,python-argparse,libreport-plugin-rhtsupport,libreport,rpm-python,abrt,libxml2-python,python-ethtool,authconfig,m2crypto,pygobject2,nfs-utils,rhnlib,python-gudev,abrt-addon-python,abrt-tui,libreport-plugin-kerneloops,libreport-plugin-logger,python-cheetah,PyYAML,redhat-lsb-core,blktrace,python-urlgrabber,audit-libs-python,python-iwlib,python-crypto,python-krbV,python-lxml,python-kerberos,yum-metadata-parser,rhn-client-tools,rhn-setup,rhn-check,setools-libs-python,libtasn1,cups-libs,samba4-libs,samba-winbind,cups,foomatic-db-ppds,foomatic,cracklib,ca-certificates,fprintd,pam,mesa-dri-filesystem,phonon-backend-gstreamer,alsa-lib,dhcp-common,redhat-lsb,redhat-logos,busybox,SDL,jline,dejavu-fonts-common,yum-plugin-security,libssh2,kbd-misc,abrt-cli,libpciaccess,zd1211-firmware,dstat,mysql-libs,ql2200-firmware,iwl1000-firmware,bind-utils,redhat-indexhtml,iwl6050-firmware,ConsoleKit-libs,iwl3945-firmware,man-pages-overrides,at,ivtv-firmware,perl-XML-Grove,nss-sysinit,glibc-common,seekwatcher,libcurl,libattr,samba-client,rpm,libcom_err,vim-enhanced,passwd,popt,pcmciautils,libaio,freetype,openssh-clients,plymouth-core-libs,libpng,biosdevname,hesiod,libsepol,cpuspeed,hdparm,shadow-utils,smartmontools,gpm-libs,elfutils-libelf,ledmon,libXau,dbus-glib,usbutils,libXrender,libblkid,audit,libXtst,keyutils-libs,valgrind,libXrandr,xz-libs,mlocate,giflib,which,latencytop-tui,libXcomposite,pciutils-libs,nano,libsemanage,libgssglue,scl-utils,iputils,grep,traceroute,selinux-policy,pkgconfig,rdate,device-mapper-event-libs,lua,b43-fwcutter,libcgroup,tar,vconfig,dmraid-events,dmidecode,cryptsetup-luks,crash,mesa-dri1-drivers,xz,plymouth,bc,autofs,checkpolicy,yp-tools,libusb,certmonger,diffutils,cronie,libtar,virt-what,newt,python,perl-libs,python-nose,perl-Locale-Maketext-Simple,libproxy-bin,perl-devel,python-markdown,perl-IPC-Cmd,python-boto,perl-Log-Message-Simple,libreport-compat,perl-ExtUtils-CBuilder,abrt-libs,perl-Module-Loaded,dbus-python,perl-Compress-Zlib,pyOpenSSL,perl-Compress-Raw-Bzip2,nfs-utils-lib,libcollection,sos,perl-IO-Compress-Bzip2,abrt-addon-ccpp,perl-ExtUtils-Embed,abrt-addon-kerneloops,perl-CGI,numpy,dejavu-sans-fonts,python-ldap,perl-Time-HiRes,pygpgme,xz-lzma-compat,libsemanage-python,gstreamer,libipa_hbac-python,flac,ipa-python,setools-libs,rhnsd,desktop-file-utils,rh-amazon-rhui-client,portreserve,gnutls,ed,samba-common,dash,ghostscript,groff'']'} > - {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-4dcc863c",\r\n "billingProducts" > : [ "bp-63a5400a" ],\r\n "version" : "2010-08-31",\r\n "imageId" : "ami-03c2496a",\r\n "accountId" > : "337935342288",\r\n "instanceType" : "m1.small",\r\n "architecture" > : "i386",\r\n "kernelId" : "aki-eafa0183",\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.4",\r\n "region" : "us-east-1"\r\n}'']'} > - {command: '[ "ami-03c2496a" = "ami-03c2496a" ]', result: passed} > - {command: '[ "i386" = "i386" ]', 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-4 ~]# ", 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: > - {command: 'parted -l | grep linux-swap | awk ''{print $4}'' | awk -F''MB'' > ''{print $1}''', result: passed, value: '940'} > - {command: 'parted -l | grep -B 6 swap | grep ''^Disk /'' | awk ''{print $2}'' > | sed ''$s/.$//'' | head -1', result: passed, value: /dev/xvde3} > - {command: '[ 940 -gt 0 ]', result: passed} > - {command: swapoff /dev/xvde3 ; echo, result: passed} > - {command: swapon /dev/xvde3, result: passed} > - {command: swapoff /dev/xvde3 && swapon /dev/xvde3, result: passed} > 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: '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: > - {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: '[''1711740'']'} > - {command: '[ 1711740 -gt 1700000 ]', result: passed} > testcase_25_uname: > - {command: uname -r, result: passed, value: 2.6.32-353.el6.i686} > - {command: 'rpm -q --queryformat ''%{VERSION}-%{RELEASE}.%{ARCH} > > '' kernel | sort | tail -1', result: passed, value: 2.6.32-353.el6.i686} > - {command: uname -o, result: passed, value: GNU/Linux} > - {command: '[ 2.6.32-353.el6.i686 = 2.6.32-353.el6.i686 ]', 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: '[''610228'']'} > - {command: '[ 610228 -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: '[''python-matplotlib,coreutils-libs,filesystem,libvisual,fontconfig,foomatic-db-filesystem,redhat-lsb-graphics,jpackage-utils,xml-common,pulseaudio-libs,ghostscript-fonts,kernel-firmware,cloud-init,hicolor-icon-theme,poppler-data,cas,qt-sqlite,ql23xx-firmware,iotop,poppler,libertas-usb8388-firmware,selinux-policy-targeted,fipscheck,ql2400-firmware,b43-openfwwf,cvs,ipw2100-firmware,iwl5150-firmware,ConsoleKit,iwl4965-firmware,hunspell-en,logrotate,libgcc,perl-XML-Dumper,nss-tools,ncurses-libs,fprintd-pam,curl,zlib,subscription-manager,man,dbus-libs,sysstat,nss_compat_ossl,nspr,lvm2,libyaml,libacl,setuptool,libref_array,bzip2-libs,quota,libsss_autofs,gamin,rng-tools,pax,libtalloc,hwloc,libpcap,sqlite,sudo,libX11,libICE,perl-Crypt-SSLeay,libXi,tcp_wrappers-libs,psacct,libXft,findutils,crash-gcore-command,libXdamage,procps,cyrus-sasl-plain,libXxf86vm,libgcrypt,unzip,ethtool,dbus,attr,iptables,bzip2,mtr,initscripts,binutils,trace-cmd,device-mapper-libs,libvorbis,strace,device-mapper-event,net-tools,eject,kbd,e2fsprogs-libs,gpg-pubkey,lvm2-libs,libmng,pm-utils,libgudev1,mesa-libGL,keyutils,dracut-kernel,vim-minimal,crda,acl,ntpdate,libss,postfix,make,oddjob,pth,libffi,perl-Pod-Escapes,python-setuptools,perl-version,python-configobj,perl-Test-Harness,libproxy-python,perl-Module-Load,python-netaddr,perl-IO-Compress-Base,libreport-python,perl-Archive-Extract,libreport-plugin-reportuploader,perl-Object-Accessor,newt-python,perl-Compress-Raw-Zlib,python-dmidecode,perl-Archive-Tar,python-simplejson,openjpeg-libs,libselinux-python,libgfortran,python-rhsm,perl-DBD-SQLite,libreport-plugin-mailx,perl-Parse-CPAN-Meta,libreport-cli,perl-HTML-Parser,gettext,perl-libxml-perl,python-pycurl,libXfont,pycairo,elfutils,python-paramiko,iw,pytalloc,grubby,yum,MAKEDEV,yum-rhn-plugin,device-mapper-persistent-data,policycoreutils-python,upstart,samba-winbind-clients,time,gtk2,cdparanoia-libs,foomatic-db,gzip,setup,cracklib-dicts,tzdata,coreutils,tzdata-java,openssl,latencytop-common,module-init-tools,basesystem,hwdata,ncurses-base,xdg-utils,iso-codes,plymouth-scripts,mailcap,urw-fonts,fontpackages-filesystem,rhino,redhat-release-server,qt,libX11-common,rpcbind,rt73usb-firmware,pciutils,ql2500-firmware,libsndfile,xorg-x11-drv-ati-firmware,poppler-utils,rootfiles,fipscheck-lib,iwl5000-firmware,bind-libs,atmel-firmware,wget,rt61pci-firmware,krb5-workstation,words,polkit,man-pages,sssd-client,ql2100-firmware,pam_krb5,ipw2200-firmware,nss,nss-softokn-freebl,mailx,glibc,openldap,bash,xmlrpc-c-client,libcap,rpm-libs,info,gnupg2,libstdc++,libuser,libxml2,gpgme,chkconfig,libpath_utils,audit-libs,c-ares,nss-util,pixman,gawk,libthai,libjpeg-turbo,libini_config,expat,liboil,libselinux,libsss_idmap,glib2,sgpio,sed,libevent,db4,sg3_utils-libs,readline,mingetty,cyrus-sasl-lib,libxcb,libuuid,libXext,libSM,cairo,xmlrpc-c,libXfixes,libtdb,libXcursor,krb5-libs,pango,btparser,libXinerama,libogg,libXt,libidn,qt3,libgpg-error,libXv,libnl,libdhash,libcap-ng,ustr,libudev,policycoreutils,libtevent,iproute,pcre,util-linux-ng,cpio,udev,file-libs,libdrm,libtirpc,device-mapper,elfutils-libs,usermode,atk,kpartx,psmisc,rsyslog,libtiff,openssh,sysvinit-tools,dmraid,lcms-libs,cryptsetup-luks-libs,file,libldb,libtheora,cyrus-sasl-gssapi,nss-softokn,libipa_hbac,libselinux-utils,jasper-libs,avahi-libs,gmp,e2fsprogs,m4,libfontenc,libedit,slang,gdbm,perl-Module-Pluggable,perl-Pod-Simple,perl,perl-Params-Check,perl-ExtUtils-ParseXS,perl-ExtUtils-MakeMaker,perl-Module-Load-Conditional,perl-Log-Message,perl-Package-Constants,perl-Term-UI,perl-File-Fetch,perl-Test-Simple,perl-URI,perl-Module-CoreList,perl-IO-Compress-Zlib,perl-IO-Zlib,perl-DBI,perl-Digest-SHA,numactl,libusb1,perl-CPAN,perl-DBIx-Simple,perl-Module-Build,perl-parent,perl-CPANPLUS,perl-HTML-Tagset,perl-libwww-perl,perl-XML-Parser,atlas,perl-Time-Piece,xorg-x11-font-utils,tmpwatch,gstreamer-tools,hal-libs,libxslt,tcp_wrappers,eggdbus,db4-utils,libutempter,patch,pinentry,libnih,hunspell,libgomp,libhugetlbfs,vim-common,ncurses,less,redhat-lsb-printing,libfprint,sssd,gstreamer-plugins-base,qt-x11,redhat-lsb-compat,libasyncns,java-1.6.0-openjdk,ipa-client,rh-amazon-rhui-client-beta,yum-utils,system-config-network-tui,system-config-firewall-tui,grub,perf,aic94xx-firmware,iwl6000-firmware,bfa-firmware,iwl6000g2a-firmware,iwl100-firmware,Red_Hat_Enterprise_Linux-Release_Notes-6-en-US,perl-core,perl-XML-Twig,theora-tools,java-1.7.0-openjdk,latencytop,cifs-utils,libhugetlbfs-utils,gdb,kexec-tools,systemtap-runtime,openssh-server,numad,parted,readahead,acpid,microcode_ctl,dhclient,prelink,tcpdump,elinks,pinfo,alsa-utils,pam_passwdqc,tcsh,irqbalance,ntsysv,oprofile,efibootmgr,ltrace,lsof,rsync,libitm,nfs4-acl-tools,powertop,bridge-utils,zip,rfkill,libtopology,crash-trace-command,latrace,setserial,dosfstools,gpg-pubkey,hal-info,hal,mesa-dri-drivers,mesa-libGLU,dracut,kernel,mdadm,wireless-tools,ypbind,ntp,cyrus-sasl,cronie-anacron,crontabs,oddjob-mkhomedir,iptables-ipv6,python-libs,python-iniparse,python-dateutil,python-pygments,pytz,libproxy,python-nss,system-config-firewall-base,python-prettytable,python-argparse,libreport-plugin-rhtsupport,libreport,rpm-python,abrt,libxml2-python,python-ethtool,authconfig,m2crypto,pygobject2,nfs-utils,rhnlib,python-gudev,abrt-addon-python,abrt-tui,libreport-plugin-kerneloops,libreport-plugin-logger,python-cheetah,PyYAML,redhat-lsb-core,blktrace,python-urlgrabber,audit-libs-python,python-iwlib,python-crypto,python-krbV,python-lxml,python-kerberos,yum-metadata-parser,rhn-client-tools,rhn-setup,rhn-check,setools-libs-python,libtasn1,cups-libs,samba4-libs,samba-winbind,cups,foomatic-db-ppds,foomatic,cracklib,ca-certificates,fprintd,pam,mesa-dri-filesystem,phonon-backend-gstreamer,alsa-lib,dhcp-common,redhat-lsb,redhat-logos,busybox,SDL,jline,dejavu-fonts-common,yum-plugin-security,libssh2,kbd-misc,abrt-cli,libpciaccess,zd1211-firmware,dstat,mysql-libs,ql2200-firmware,iwl1000-firmware,bind-utils,redhat-indexhtml,iwl6050-firmware,ConsoleKit-libs,iwl3945-firmware,man-pages-overrides,at,ivtv-firmware,perl-XML-Grove,nss-sysinit,glibc-common,seekwatcher,libcurl,libattr,samba-client,rpm,libcom_err,vim-enhanced,passwd,popt,pcmciautils,libaio,freetype,openssh-clients,plymouth-core-libs,libpng,biosdevname,hesiod,libsepol,cpuspeed,hdparm,shadow-utils,smartmontools,gpm-libs,elfutils-libelf,ledmon,libXau,dbus-glib,usbutils,libXrender,libblkid,audit,libXtst,keyutils-libs,valgrind,libXrandr,xz-libs,mlocate,giflib,which,latencytop-tui,libXcomposite,pciutils-libs,nano,libsemanage,libgssglue,scl-utils,iputils,grep,traceroute,selinux-policy,pkgconfig,rdate,device-mapper-event-libs,lua,b43-fwcutter,libcgroup,tar,vconfig,dmraid-events,dmidecode,cryptsetup-luks,crash,mesa-dri1-drivers,xz,plymouth,bc,autofs,checkpolicy,yp-tools,libusb,certmonger,diffutils,cronie,libtar,virt-what,newt,python,perl-libs,python-nose,perl-Locale-Maketext-Simple,libproxy-bin,perl-devel,python-markdown,perl-IPC-Cmd,python-boto,perl-Log-Message-Simple,libreport-compat,perl-ExtUtils-CBuilder,abrt-libs,perl-Module-Loaded,dbus-python,perl-Compress-Zlib,pyOpenSSL,perl-Compress-Raw-Bzip2,nfs-utils-lib,libcollection,sos,perl-IO-Compress-Bzip2,abrt-addon-ccpp,perl-ExtUtils-Embed,abrt-addon-kerneloops,perl-CGI,numpy,dejavu-sans-fonts,python-ldap,perl-Time-HiRes,pygpgme,xz-lzma-compat,libsemanage-python,gstreamer,libipa_hbac-python,flac,ipa-python,setools-libs,rhnsd,desktop-file-utils,rh-amazon-rhui-client,portreserve,gnutls,ed,samba-common,dash,ghostscript,groff'']'} > - {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-41cc8630",\r\n "billingProducts" > : [ "bp-63a5400a" ],\r\n "version" : "2010-08-31",\r\n "imageId" : "ami-03c2496a",\r\n "accountId" > : "337935342288",\r\n "instanceType" : "t1.micro",\r\n "architecture" > : "i386",\r\n "kernelId" : "aki-eafa0183",\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.21",\r\n "region" : "us-east-1"\r\n}'']'} > - {command: '[ "ami-03c2496a" = "ami-03c2496a" ]', result: passed} > - {command: '[ "i386" = "i386" ]', 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-21 ~]# ", 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 ec2name = t1.micro, 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} > - {actual: '255', command: swapon -a, result: failed} > - {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: '[''610228'']'} > - {command: '[ 610228 -gt 600000 ]', result: passed} > testcase_25_uname: > - {command: uname -r, result: passed, value: 2.6.32-353.el6.i686} > - {command: 'rpm -q --queryformat ''%{VERSION}-%{RELEASE}.%{ARCH} > > '' kernel | sort | tail -1', result: passed, value: 2.6.32-353.el6.i686} > - {command: uname -o, result: passed, value: GNU/Linux} > - {command: '[ 2.6.32-353.el6.i686 = 2.6.32-353.el6.i686 ]', 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 895620
: 678877