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 694773 Details for
Bug 908946
ami-3cb69579 RHEL 6.4 i386 us-west-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-3cb69579.yaml
ami-3cb69579.yaml (text/yaml), 68.46 KB, created by
mkovacik
on 2013-02-07 21:09:42 UTC
(
hide
)
Description:
ami-3cb69579.yaml
Filename:
MIME Type:
Creator:
mkovacik
Created:
2013-02-07 21:09:42 UTC
Size:
68.46 KB
patch
obsolete
>ami: ami-3cb69579 >arch: i386 >product: RHEL >region: us-west-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: '[''1752580'']'} > - {command: '[ 1752580 -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: '[''libfprint,coreutils-libs,filesystem,gstreamer-plugins-base,fontconfig,foomatic-db-filesystem,redhat-lsb-compat,jpackage-utils,xml-common,java-1.7.0-openjdk,ghostscript-fonts,mailcap,rh-amazon-rhui-client,hicolor-icon-theme,poppler-data,system-config-network-tui,qt-sqlite,rt73usb-firmware,grub,poppler,xorg-x11-drv-ati-firmware,aic94xx-firmware,fipscheck,ql2400-firmware,bfa-firmware,cvs,ipw2100-firmware,iwl100-firmware,ConsoleKit,iwl4965-firmware,perl-core,nss,libgcc,theora-tools,openldap,ncurses-libs,latencytop,curl,zlib,gdb,libuser,dbus-libs,systemtap-runtime,logrotate,nspr,openssh-server,libyaml,libacl,parted,libsss_idmap,bzip2-libs,cpuspeed,liboil,gamin,acpid,pax,libtalloc,hwloc,libXau,sqlite,pinfo,libXrender,libICE,pam_passwdqc,libXtst,tcp_wrappers-libs,irqbalance,libXrandr,findutils,oprofile,giflib,procps,ltrace,libXcomposite,libgcrypt,rsync,ustr,dbus,nfs4-acl-tools,iptables,bzip2,bridge-utils,initscripts,binutils,rfkill,device-mapper-libs,libvorbis,crash-trace-command,device-mapper-event,net-tools,setserial,kbd,e2fsprogs-libs,gpg-pubkey,samba-winbind,libmng,cryptsetup-luks-libs,libgudev1,hal,keyutils,mesa-libGLU,vim-minimal,kernel,acl,wireless-tools,libss,ntpdate,make,cyrus-sasl,pth,crontabs,perl-Pod-Escapes,python-libs,perl-version,python-dateutil,perl-Test-Harness,libproxy,perl-Module-Load,pytz,perl-IO-Compress-Base,python-prettytable,perl-Archive-Extract,libreport-plugin-reportuploader,perl-Object-Accessor,rpm-python,perl-Compress-Raw-Zlib,libxml2-python,perl-Archive-Tar,authconfig,openjpeg-libs,pygobject2,libgfortran,rhnlib,perl-IO-Compress-Bzip2,abrt-addon-ccpp,perl-Parse-CPAN-Meta,abrt-addon-kerneloops,perl-HTML-Parser,python-cheetah,perl-libxml-perl,gettext,libXfont,python-pycurl,elfutils,pycairo,iw,python-paramiko,grubby,python-kerberos,MAKEDEV,rhn-client-tools,device-mapper-persistent-data,rhn-check,upstart,gnutls,time,cups,cdparanoia-libs,foomatic,gzip,setup,cracklib-dicts,tzdata,coreutils,mesa-dri-filesystem,openssl,tzdata-java,module-init-tools,basesystem,hwdata,ncurses-base,xdg-utils,iso-codes,plymouth-scripts,busybox,urw-fonts,kernel-firmware,rhino,dejavu-fonts-common,qt,libX11-common,rpcbind,ql2200-firmware,pciutils,ql23xx-firmware,libsndfile,zd1211-firmware,poppler-utils,libertas-usb8388-firmware,fipscheck-lib,iwl5000-firmware,bind-libs,atmel-firmware,wget,rt61pci-firmware,krb5-workstation,words,polkit,man-pages,at,ql2100-firmware,pam_krb5,ipw2200-firmware,nss-sysinit,nss-softokn-freebl,nss-tools,glibc,libcurl,bash,gnupg2,libcap,rpm-libs,info,man,libstdc++,passwd,libxml2,nss_compat_ossl,chkconfig,libpath_utils,audit-libs,c-ares,nss-util,pixman,gawk,libthai,libjpeg-turbo,libref_array,expat,hesiod,libselinux,libsss_autofs,glib2,sgpio,sed,libevent,db4,libpcap,readline,libxcb,cyrus-sasl-lib,libXext,libuuid,cairo,libSM,libXfixes,xmlrpc-c,libXcursor,libtdb,pango,krb5-libs,libXinerama,btparser,libXt,libogg,qt3,libidn,libXv,libgpg-error,libdhash,libnl,ethtool,libcap-ng,libsemanage,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,samba-winbind-clients,lcms-libs,dmraid-events,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-Compress-Raw-Bzip2,perl-DBI,numactl,libusb1,perl-DBIx-Simple,perl-CPAN,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,python-matplotlib,fprintd,libvisual,phonon-backend-gstreamer,redhat-lsb-graphics,redhat-lsb,pulseaudio-libs,SDL,cloud-init,yum-plugin-security,cas,abrt-cli,iotop,dstat,selinux-policy-targeted,iwl1000-firmware,b43-openfwwf,iwl6050-firmware,iwl5150-firmware,man-pages-overrides,hunspell-en,perl-XML-Grove,perl-XML-Dumper,seekwatcher,fprintd-pam,subscription-manager,vim-enhanced,sysstat,pcmciautils,lvm2,cifs-utils,openssh-clients,setuptool,biosdevname,quota,microcode_ctl,dhclient,smartmontools,ledmon,tcpdump,sudo,usbutils,perl-Crypt-SSLeay,audit,psacct,valgrind,crash-gcore-command,mlocate,cyrus-sasl-plain,latencytop-tui,unzip,nano,attr,scl-utils,mtr,traceroute,trace-cmd,rdate,strace,b43-fwcutter,eject,vconfig,gpg-pubkey,lvm2-libs,cryptsetup-luks,pm-utils,mesa-dri1-drivers,mesa-libGL,plymouth,dracut-kernel,autofs,crda,yp-tools,certmonger,ntp,oddjob-mkhomedir,postfix,cronie,virt-what,libffi,python,python-setuptools,python-pygments,libproxy-bin,libproxy-python,system-config-firewall-base,python-nss,python-netaddr,python-boto,libreport-python,libreport,libreport-compat,abrt-libs,newt-python,dbus-python,python-dmidecode,pyOpenSSL,python-simplejson,nfs-utils-lib,libselinux-python,sos,python-rhsm,abrt-addon-python,libreport-plugin-kerneloops,libreport-plugin-logger,libreport-plugin-mailx,numpy,libipa_hbac-python,redhat-lsb-core,blktrace,python-urlgrabber,audit-libs-python,python-iwlib,python-crypto,python-krbV,pytalloc,ipa-python,yum,rhnsd,yum-rhn-plugin,setools-libs-python,libtasn1,cups-libs,gtk2,ghostscript,foomatic-db,redhat-lsb-printing,cracklib,ca-certificates,sssd,pam,latencytop-common,qt-x11,alsa-lib,dhcp-common,libasyncns,redhat-logos,redhat-release-server,ipa-client,jline,fontpackages-filesystem,yum-utils,libssh2,kbd-misc,system-config-firewall-tui,libpciaccess,ql2500-firmware,perf,mysql-libs,rootfiles,iwl6000-firmware,bind-utils,redhat-indexhtml,iwl6000g2a-firmware,ConsoleKit-libs,iwl3945-firmware,Red_Hat_Enterprise_Linux-Release_Notes-6-en-US,sssd-client,ivtv-firmware,perl-XML-Twig,mailx,glibc-common,java-1.6.0-openjdk,xmlrpc-c-client,libattr,libhugetlbfs-utils,rpm,libcom_err,kexec-tools,gpgme,popt,samba-client,libaio,freetype,numad,plymouth-core-libs,libpng,readahead,libini_config,libsepol,rng-tools,hdparm,shadow-utils,prelink,gpm-libs,elfutils-libelf,elinks,libX11,dbus-glib,alsa-utils,libXi,libblkid,tcsh,libXft,keyutils-libs,ntsysv,libXdamage,xz-libs,efibootmgr,libXxf86vm,which,lsof,sg3_utils-libs,pciutils-libs,libitm,mingetty,libgssglue,powertop,iputils,grep,zip,selinux-policy,pkgconfig,libtopology,device-mapper-event-libs,lua,latrace,libcgroup,tar,dosfstools,samba-common,dmidecode,dmraid,crash,hal-info,xz,mesa-dri-drivers,bc,dracut,checkpolicy,mdadm,libusb,ypbind,diffutils,oddjob,libtar,cronie-anacron,newt,iptables-ipv6,perl-libs,python-iniparse,perl-Locale-Maketext-Simple,python-nose,perl-devel,python-configobj,perl-IPC-Cmd,python-markdown,perl-Log-Message-Simple,python-argparse,perl-ExtUtils-CBuilder,libreport-plugin-rhtsupport,perl-Module-Loaded,abrt,perl-Compress-Zlib,python-ethtool,perl-Digest-SHA,m2crypto,libcollection,nfs-utils,perl-DBD-SQLite,python-gudev,perl-ExtUtils-Embed,abrt-tui,perl-CGI,libreport-cli,dejavu-sans-fonts,PyYAML,perl-Time-HiRes,python-ldap,xz-lzma-compat,pygpgme,gstreamer,libsemanage-python,flac,python-lxml,setools-libs,yum-metadata-parser,desktop-file-utils,rhn-setup,portreserve,policycoreutils-python,ed,samba4-libs,dash,foomatic-db-ppds,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'', ''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-c5896c9d",\r\n "billingProducts" > : [ "bp-63a5400a" ],\r\n "version" : "2010-08-31",\r\n "imageId" : "ami-3cb69579",\r\n "accountId" > : "567014786890",\r\n "instanceType" : "c1.medium",\r\n "architecture" > : "i386",\r\n "kernelId" : "aki-816a38c4",\r\n "ramdiskId" : null,\r\n "pendingTime" > : "2013-02-07T11:06:45Z",\r\n "availabilityZone" : "us-west-1c",\r\n "devpayProductCodes" > : null,\r\n "privateIp" : "10.174.153.35",\r\n "region" : "us-west-1"\r\n}'']'} > - {command: '[ "ami-3cb69579" = "ami-3cb69579" ]', result: passed} > - {command: '[ "i386" = "i386" ]', result: passed} > - {command: '[ "us-west-1" = "us-west-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.4.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} > - {command: rpm -qa gpg-pubkey* | wc -l, expectation: "\r\n2\r\n", result: passed} > - {command: rpm -q gpg-pubkey-2fa658e0-45700c69, result: passed} > - {command: rpm -q gpg-pubkey-fd431d51-4ae0493b, result: passed} > testcase_23_syslog: > - {command: md5sum /etc/rsyslog.conf | cut -f 1 -d ' ', result: passed, value: 8b91b32300134e98ef4aee632ed61e21} > - {command: '[ 8b91b32300134e98ef4aee632ed61e21 = 8b91b32300134e98ef4aee632ed61e21 > ]', result: passed} > testcase_24_yum_plugin: > - {command: 'grep ''^enabled[[:space:]]*=[[:space:]]*[^0 ]'' /etc/yum/pluginconf.d/rhnplugin.conf', > result: passed} > testcase_26_verify_rpms: > - {command: rpm -Va --nomtime --nosize --nomd5 | sort -fu | wc -l, result: passed, > value: '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: > - {command: 'yum repolist -v all | csplit --prefix=repolist_xx - "%Repo-id\s*:%"', > result: passed} > - actual repos: > rhel-source: {repo-status: disabled} > rhel-source-beta: {repo-status: disabled} > rhui-us-west-1-client-config-server-6: {repo-status: enabled} > rhui-us-west-1-rhel-server-releases: {repo-status: enabled} > rhui-us-west-1-rhel-server-releases-optional: {repo-status: enabled} > rhui-us-west-1-rhel-server-releases-optional-source: {repo-status: disabled} > rhui-us-west-1-rhel-server-releases-source: {repo-status: disabled} > expected repos: > rhel-source: {repo-status: disabled} > rhel-source-beta: {repo-status: disabled} > rhui-us-west-1-client-config-server-6: {repo-status: enabled} > rhui-us-west-1-rhel-server-releases: {repo-status: enabled} > rhui-us-west-1-rhel-server-releases-optional: {repo-status: enabled} > rhui-us-west-1-rhel-server-releases-optional-source: {repo-status: disabled} > rhui-us-west-1-rhel-server-releases-source: {repo-status: disabled} > result: passed > 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 | egrep '.*\.(pem|crt)', result: passed, > value: "/etc/pki/entitlement/ca.crt\r\n/etc/pki/entitlement/cdn.redhat.com-chain.crt\r\ > \n/etc/pki/entitlement/product/content-rhel6.crt\r\n/etc/pki/entitlement/product/rhui-client-config-server-6.crt"} > - {command: openssl x509 -in /etc/pki/entitlement/ca.crt -noout -dates | grep > notAfter, result: passed, value: 'notAfter=Nov 30 19:46:02 2017 GMT'} > - {comment: '(/etc/pki/entitlement/ca.crt).notAfter=2017-11-30 19:46:02; expecting: > 2020-11-10 00:00:00', result: failed} > - {command: openssl x509 -in /etc/pki/entitlement/cdn.redhat.com-chain.crt -noout > -dates | grep notAfter, result: passed, value: 'notAfter=Mar 13 11:24:54 > 2030 GMT'} > - {comment: '(/etc/pki/entitlement/cdn.redhat.com-chain.crt).notAfter=2030-03-13 > 11:24:54; expecting: 2020-11-10 00:00:00', result: passed} > - {command: openssl x509 -in /etc/pki/entitlement/product/content-rhel6.crt > -noout -dates | grep notAfter, result: passed, value: 'notAfter=Nov 30 18:31:28 > 2020 GMT'} > - {comment: '(/etc/pki/entitlement/product/content-rhel6.crt).notAfter=2020-11-30 > 18:31:28; expecting: 2020-11-10 00:00:00', result: passed} > - {command: openssl x509 -in /etc/pki/entitlement/product/rhui-client-config-server-6.crt > -noout -dates | grep notAfter, result: passed, value: 'notAfter=Nov 30 18:38:07 > 2020 GMT'} > - {comment: '(/etc/pki/entitlement/product/rhui-client-config-server-6.crt).notAfter=2020-11-30 > 18:38:07; expecting: 2020-11-10 00:00:00', result: passed} > testcase_31_subscription_management: > - {command: yum --disablerepo="*" -v repolist, expectation: Not loading "subscription-manager" > plugin, result: passed} > - {command: yum --enableplugin=subscription-manager --disablerepo="*" -v repolist, > expectation: Loading "subscription-manager" plugin, result: passed} > - {actual: "subscription-manager list\r\n+-------------------------------------------+\r\ > \n Installed Product Status\r\n+-------------------------------------------+\r\ > \nProduct Name: \tRed Hat Enterprise Linux Server\r\nProduct ID:\ > \ \t69\r\nVersion: \t6.4\r\nArch: \ > \ \ti386\r\nStatus: \tNot Subscribed\r\nStarts: \ > \ \t\r\nEnds: \t\r\n\r\n[root@ip-10-174-153-35 ~]# ", > command: subscription-manager list, expectation: No installed products to > list, result: failed} > testcase_32_ephemeral: > - {command: fdisk -l /dev/xvdj | grep ^Disk, result: passed} > - {command: grep "/dev/xvdj " /proc/mounts | wc -l, result: passed, value: '0'} > - {command: ls -la /sbin/mkfs.vfat 2> /dev/null | wc -l, result: passed, value: '1'} > - {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} > - {command: yum search zsh, result: passed} > - {command: yum -y install zsh, result: passed} > - {command: 'rpm -q --queryformat ''%{NAME}'' zsh', result: passed} > - {command: rpm -e zsh, result: passed} > testcase_55_yum_group_install: > - {actual: '1', command: yum -y groupinstall 'Development tools', result: failed} > testcase_60_yum_update: > - {command: yum -y update, result: passed} > testcase_61_yum_proxy: > - {comment: No proxy set, result: skip} > testcase_99_reboot: > - {command: echo 'doing reboot', result: passed} > stage2: > testcase_08_memory: > - {command: 'grep --color=none ''MemTotal:'' /proc/meminfo', match: ".*\r\n\ > MemTotal:\\s*([0-9]+) ", result: passed, value: '[''1752580'']'} > - {command: '[ 1752580 -gt 1700000 ]', result: passed} > testcase_25_uname: > - {command: uname -r, result: passed, value: 2.6.32-358.el6.i686} > - {command: 'rpm -q --queryformat ''%{VERSION}-%{RELEASE}.%{ARCH} > > '' kernel | sort | tail -1', result: passed, value: 2.6.32-358.el6.i686} > - {command: uname -o, result: passed, value: GNU/Linux} > - {command: '[ 2.6.32-358.el6.i686 = 2.6.32-358.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: '[''1711736'']'} > - {command: '[ 1711736 -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: '[''libfprint,coreutils-libs,filesystem,gstreamer-plugins-base,fontconfig,foomatic-db-filesystem,redhat-lsb-compat,jpackage-utils,xml-common,java-1.7.0-openjdk,ghostscript-fonts,mailcap,rh-amazon-rhui-client,hicolor-icon-theme,poppler-data,system-config-network-tui,qt-sqlite,rt73usb-firmware,grub,poppler,xorg-x11-drv-ati-firmware,aic94xx-firmware,fipscheck,ql2400-firmware,bfa-firmware,cvs,ipw2100-firmware,iwl100-firmware,ConsoleKit,iwl4965-firmware,perl-core,nss,libgcc,theora-tools,openldap,ncurses-libs,latencytop,curl,zlib,gdb,libuser,dbus-libs,systemtap-runtime,logrotate,nspr,openssh-server,libyaml,libacl,parted,libsss_idmap,bzip2-libs,cpuspeed,liboil,gamin,acpid,pax,libtalloc,hwloc,libXau,sqlite,pinfo,libXrender,libICE,pam_passwdqc,libXtst,tcp_wrappers-libs,irqbalance,libXrandr,findutils,oprofile,giflib,procps,ltrace,libXcomposite,libgcrypt,rsync,ustr,dbus,nfs4-acl-tools,iptables,bzip2,bridge-utils,initscripts,binutils,rfkill,device-mapper-libs,libvorbis,crash-trace-command,device-mapper-event,net-tools,setserial,kbd,e2fsprogs-libs,gpg-pubkey,samba-winbind,libmng,cryptsetup-luks-libs,libgudev1,hal,keyutils,mesa-libGLU,vim-minimal,kernel,acl,wireless-tools,libss,ntpdate,make,cyrus-sasl,pth,crontabs,perl-Pod-Escapes,python-libs,perl-version,python-dateutil,perl-Test-Harness,libproxy,perl-Module-Load,pytz,perl-IO-Compress-Base,python-prettytable,perl-Archive-Extract,libreport-plugin-reportuploader,perl-Object-Accessor,rpm-python,perl-Compress-Raw-Zlib,libxml2-python,perl-Archive-Tar,authconfig,openjpeg-libs,pygobject2,libgfortran,rhnlib,perl-IO-Compress-Bzip2,abrt-addon-ccpp,perl-Parse-CPAN-Meta,abrt-addon-kerneloops,perl-HTML-Parser,python-cheetah,perl-libxml-perl,gettext,libXfont,python-pycurl,elfutils,pycairo,iw,python-paramiko,grubby,python-kerberos,MAKEDEV,rhn-client-tools,device-mapper-persistent-data,rhn-check,upstart,gnutls,time,cups,cdparanoia-libs,foomatic,gzip,setup,cracklib-dicts,tzdata,coreutils,mesa-dri-filesystem,openssl,tzdata-java,module-init-tools,basesystem,hwdata,ncurses-base,xdg-utils,iso-codes,plymouth-scripts,busybox,urw-fonts,kernel-firmware,rhino,dejavu-fonts-common,qt,libX11-common,rpcbind,ql2200-firmware,pciutils,ql23xx-firmware,libsndfile,zd1211-firmware,poppler-utils,libertas-usb8388-firmware,fipscheck-lib,iwl5000-firmware,bind-libs,atmel-firmware,wget,rt61pci-firmware,krb5-workstation,words,polkit,man-pages,at,ql2100-firmware,pam_krb5,ipw2200-firmware,nss-sysinit,nss-softokn-freebl,nss-tools,glibc,libcurl,bash,gnupg2,libcap,rpm-libs,info,man,libstdc++,passwd,libxml2,nss_compat_ossl,chkconfig,libpath_utils,audit-libs,c-ares,nss-util,pixman,gawk,libthai,libjpeg-turbo,libref_array,expat,hesiod,libselinux,libsss_autofs,glib2,sgpio,sed,libevent,db4,libpcap,readline,libxcb,cyrus-sasl-lib,libXext,libuuid,cairo,libSM,libXfixes,xmlrpc-c,libXcursor,libtdb,pango,krb5-libs,libXinerama,btparser,libXt,libogg,qt3,libidn,libXv,libgpg-error,libdhash,libnl,ethtool,libcap-ng,libsemanage,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,samba-winbind-clients,lcms-libs,dmraid-events,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-Compress-Raw-Bzip2,perl-DBI,numactl,libusb1,perl-DBIx-Simple,perl-CPAN,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,python-matplotlib,fprintd,libvisual,phonon-backend-gstreamer,redhat-lsb-graphics,redhat-lsb,pulseaudio-libs,SDL,cloud-init,yum-plugin-security,cas,abrt-cli,iotop,dstat,selinux-policy-targeted,iwl1000-firmware,b43-openfwwf,iwl6050-firmware,iwl5150-firmware,man-pages-overrides,hunspell-en,perl-XML-Grove,perl-XML-Dumper,seekwatcher,fprintd-pam,subscription-manager,vim-enhanced,sysstat,pcmciautils,lvm2,cifs-utils,openssh-clients,setuptool,biosdevname,quota,microcode_ctl,dhclient,smartmontools,ledmon,tcpdump,sudo,usbutils,perl-Crypt-SSLeay,audit,psacct,valgrind,crash-gcore-command,mlocate,cyrus-sasl-plain,latencytop-tui,unzip,nano,attr,scl-utils,mtr,traceroute,trace-cmd,rdate,strace,b43-fwcutter,eject,vconfig,gpg-pubkey,lvm2-libs,cryptsetup-luks,pm-utils,mesa-dri1-drivers,mesa-libGL,plymouth,dracut-kernel,autofs,crda,yp-tools,certmonger,ntp,oddjob-mkhomedir,postfix,cronie,virt-what,libffi,python,python-setuptools,python-pygments,libproxy-bin,libproxy-python,system-config-firewall-base,python-nss,python-netaddr,python-boto,libreport-python,libreport,libreport-compat,abrt-libs,newt-python,dbus-python,python-dmidecode,pyOpenSSL,python-simplejson,nfs-utils-lib,libselinux-python,sos,python-rhsm,abrt-addon-python,libreport-plugin-kerneloops,libreport-plugin-logger,libreport-plugin-mailx,numpy,libipa_hbac-python,redhat-lsb-core,blktrace,python-urlgrabber,audit-libs-python,python-iwlib,python-crypto,python-krbV,pytalloc,ipa-python,yum,rhnsd,yum-rhn-plugin,setools-libs-python,libtasn1,cups-libs,gtk2,ghostscript,foomatic-db,redhat-lsb-printing,cracklib,ca-certificates,sssd,pam,latencytop-common,qt-x11,alsa-lib,dhcp-common,libasyncns,redhat-logos,redhat-release-server,ipa-client,jline,fontpackages-filesystem,yum-utils,libssh2,kbd-misc,system-config-firewall-tui,libpciaccess,ql2500-firmware,perf,mysql-libs,rootfiles,iwl6000-firmware,bind-utils,redhat-indexhtml,iwl6000g2a-firmware,ConsoleKit-libs,iwl3945-firmware,Red_Hat_Enterprise_Linux-Release_Notes-6-en-US,sssd-client,ivtv-firmware,perl-XML-Twig,mailx,glibc-common,java-1.6.0-openjdk,xmlrpc-c-client,libattr,libhugetlbfs-utils,rpm,libcom_err,kexec-tools,gpgme,popt,samba-client,libaio,freetype,numad,plymouth-core-libs,libpng,readahead,libini_config,libsepol,rng-tools,hdparm,shadow-utils,prelink,gpm-libs,elfutils-libelf,elinks,libX11,dbus-glib,alsa-utils,libXi,libblkid,tcsh,libXft,keyutils-libs,ntsysv,libXdamage,xz-libs,efibootmgr,libXxf86vm,which,lsof,sg3_utils-libs,pciutils-libs,libitm,mingetty,libgssglue,powertop,iputils,grep,zip,selinux-policy,pkgconfig,libtopology,device-mapper-event-libs,lua,latrace,libcgroup,tar,dosfstools,samba-common,dmidecode,dmraid,crash,hal-info,xz,mesa-dri-drivers,bc,dracut,checkpolicy,mdadm,libusb,ypbind,diffutils,oddjob,libtar,cronie-anacron,newt,iptables-ipv6,perl-libs,python-iniparse,perl-Locale-Maketext-Simple,python-nose,perl-devel,python-configobj,perl-IPC-Cmd,python-markdown,perl-Log-Message-Simple,python-argparse,perl-ExtUtils-CBuilder,libreport-plugin-rhtsupport,perl-Module-Loaded,abrt,perl-Compress-Zlib,python-ethtool,perl-Digest-SHA,m2crypto,libcollection,nfs-utils,perl-DBD-SQLite,python-gudev,perl-ExtUtils-Embed,abrt-tui,perl-CGI,libreport-cli,dejavu-sans-fonts,PyYAML,perl-Time-HiRes,python-ldap,xz-lzma-compat,pygpgme,gstreamer,libsemanage-python,flac,python-lxml,setools-libs,yum-metadata-parser,desktop-file-utils,rhn-setup,portreserve,policycoreutils-python,ed,samba4-libs,dash,foomatic-db-ppds,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'', ''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-cf896c97",\r\n "billingProducts" > : [ "bp-63a5400a" ],\r\n "version" : "2010-08-31",\r\n "imageId" : "ami-3cb69579",\r\n "accountId" > : "567014786890",\r\n "instanceType" : "m1.small",\r\n "architecture" > : "i386",\r\n "kernelId" : "aki-816a38c4",\r\n "ramdiskId" : null,\r\n "pendingTime" > : "2013-02-07T11:06:45Z",\r\n "availabilityZone" : "us-west-1c",\r\n "devpayProductCodes" > : null,\r\n "privateIp" : "10.197.4.247",\r\n "region" : "us-west-1"\r\n}'']'} > - {command: '[ "ami-3cb69579" = "ami-3cb69579" ]', result: passed} > - {command: '[ "i386" = "i386" ]', result: passed} > - {command: '[ "us-west-1" = "us-west-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.4.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} > - {command: rpm -qa gpg-pubkey* | wc -l, expectation: "\r\n2\r\n", result: passed} > - {command: rpm -q gpg-pubkey-2fa658e0-45700c69, result: passed} > - {command: rpm -q gpg-pubkey-fd431d51-4ae0493b, result: passed} > testcase_23_syslog: > - {command: md5sum /etc/rsyslog.conf | cut -f 1 -d ' ', result: passed, value: 8b91b32300134e98ef4aee632ed61e21} > - {command: '[ 8b91b32300134e98ef4aee632ed61e21 = 8b91b32300134e98ef4aee632ed61e21 > ]', result: passed} > testcase_24_yum_plugin: > - {command: 'grep ''^enabled[[:space:]]*=[[:space:]]*[^0 ]'' /etc/yum/pluginconf.d/rhnplugin.conf', > result: passed} > testcase_26_verify_rpms: > - {command: rpm -Va --nomtime --nosize --nomd5 | sort -fu | wc -l, result: passed, > value: '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: > - {command: 'yum repolist -v all | csplit --prefix=repolist_xx - "%Repo-id\s*:%"', > result: passed} > - actual repos: > rhel-source: {repo-status: disabled} > rhel-source-beta: {repo-status: disabled} > rhui-us-west-1-client-config-server-6: {repo-status: enabled} > rhui-us-west-1-rhel-server-releases: {repo-status: enabled} > rhui-us-west-1-rhel-server-releases-optional: {repo-status: enabled} > rhui-us-west-1-rhel-server-releases-optional-source: {repo-status: disabled} > rhui-us-west-1-rhel-server-releases-source: {repo-status: disabled} > expected repos: > rhel-source: {repo-status: disabled} > rhel-source-beta: {repo-status: disabled} > rhui-us-west-1-client-config-server-6: {repo-status: enabled} > rhui-us-west-1-rhel-server-releases: {repo-status: enabled} > rhui-us-west-1-rhel-server-releases-optional: {repo-status: enabled} > rhui-us-west-1-rhel-server-releases-optional-source: {repo-status: disabled} > rhui-us-west-1-rhel-server-releases-source: {repo-status: disabled} > result: passed > 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 | egrep '.*\.(pem|crt)', result: passed, > value: "/etc/pki/entitlement/ca.crt\r\n/etc/pki/entitlement/cdn.redhat.com-chain.crt\r\ > \n/etc/pki/entitlement/product/content-rhel6.crt\r\n/etc/pki/entitlement/product/rhui-client-config-server-6.crt"} > - {command: openssl x509 -in /etc/pki/entitlement/ca.crt -noout -dates | grep > notAfter, result: passed, value: 'notAfter=Nov 30 19:46:02 2017 GMT'} > - {comment: '(/etc/pki/entitlement/ca.crt).notAfter=2017-11-30 19:46:02; expecting: > 2020-11-10 00:00:00', result: failed} > - {command: openssl x509 -in /etc/pki/entitlement/cdn.redhat.com-chain.crt -noout > -dates | grep notAfter, result: passed, value: 'notAfter=Mar 13 11:24:54 > 2030 GMT'} > - {comment: '(/etc/pki/entitlement/cdn.redhat.com-chain.crt).notAfter=2030-03-13 > 11:24:54; expecting: 2020-11-10 00:00:00', result: passed} > - {command: openssl x509 -in /etc/pki/entitlement/product/content-rhel6.crt > -noout -dates | grep notAfter, result: passed, value: 'notAfter=Nov 30 18:31:28 > 2020 GMT'} > - {comment: '(/etc/pki/entitlement/product/content-rhel6.crt).notAfter=2020-11-30 > 18:31:28; expecting: 2020-11-10 00:00:00', result: passed} > - {command: openssl x509 -in /etc/pki/entitlement/product/rhui-client-config-server-6.crt > -noout -dates | grep notAfter, result: passed, value: 'notAfter=Nov 30 18:38:07 > 2020 GMT'} > - {comment: '(/etc/pki/entitlement/product/rhui-client-config-server-6.crt).notAfter=2020-11-30 > 18:38:07; expecting: 2020-11-10 00:00:00', result: passed} > testcase_31_subscription_management: > - {command: yum --disablerepo="*" -v repolist, expectation: Not loading "subscription-manager" > plugin, result: passed} > - {command: yum --enableplugin=subscription-manager --disablerepo="*" -v repolist, > expectation: Loading "subscription-manager" plugin, result: passed} > - {actual: "subscription-manager list\r\n+-------------------------------------------+\r\ > \n Installed Product Status\r\n+-------------------------------------------+\r\ > \nProduct Name: \tRed Hat Enterprise Linux Server\r\nProduct ID:\ > \ \t69\r\nVersion: \t6.4\r\nArch: \ > \ \ti386\r\nStatus: \tNot Subscribed\r\nStarts: \ > \ \t\r\nEnds: \t\r\n\r\n[root@ip-10-197-4-247 ~]# ", > command: subscription-manager list, expectation: No installed products to > list, result: failed} > testcase_32_ephemeral: > - {command: fdisk -l /dev/xvdj | grep ^Disk, result: passed} > - {command: grep "/dev/xvdj " /proc/mounts | wc -l, result: passed, value: '0'} > - {command: ls -la /sbin/mkfs.vfat 2> /dev/null | wc -l, result: passed, value: '1'} > - {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} > - {command: yum search zsh, result: passed} > - {command: yum -y install zsh, result: passed} > - {command: 'rpm -q --queryformat ''%{NAME}'' zsh', result: passed} > - {command: rpm -e zsh, result: passed} > testcase_55_yum_group_install: > - {actual: '1', command: yum -y groupinstall 'Development tools', result: failed} > testcase_60_yum_update: > - {command: yum -y update, result: passed} > testcase_61_yum_proxy: > - {comment: No proxy set, result: skip} > testcase_99_reboot: > - {command: echo 'doing reboot', result: passed} > stage2: > testcase_08_memory: > - {command: 'grep --color=none ''MemTotal:'' /proc/meminfo', match: ".*\r\n\ > MemTotal:\\s*([0-9]+) ", result: passed, value: '[''1711736'']'} > - {command: '[ 1711736 -gt 1700000 ]', result: passed} > testcase_25_uname: > - {command: uname -r, result: passed, value: 2.6.32-358.el6.i686} > - {command: 'rpm -q --queryformat ''%{VERSION}-%{RELEASE}.%{ARCH} > > '' kernel | sort | tail -1', result: passed, value: 2.6.32-358.el6.i686} > - {command: uname -o, result: passed, value: GNU/Linux} > - {command: '[ 2.6.32-358.el6.i686 = 2.6.32-358.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: '[''610224'']'} > - {command: '[ 610224 -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: '[''libfprint,coreutils-libs,filesystem,gstreamer-plugins-base,fontconfig,foomatic-db-filesystem,redhat-lsb-compat,jpackage-utils,xml-common,java-1.7.0-openjdk,ghostscript-fonts,mailcap,rh-amazon-rhui-client,hicolor-icon-theme,poppler-data,system-config-network-tui,qt-sqlite,rt73usb-firmware,grub,poppler,xorg-x11-drv-ati-firmware,aic94xx-firmware,fipscheck,ql2400-firmware,bfa-firmware,cvs,ipw2100-firmware,iwl100-firmware,ConsoleKit,iwl4965-firmware,perl-core,nss,libgcc,theora-tools,openldap,ncurses-libs,latencytop,curl,zlib,gdb,libuser,dbus-libs,systemtap-runtime,logrotate,nspr,openssh-server,libyaml,libacl,parted,libsss_idmap,bzip2-libs,cpuspeed,liboil,gamin,acpid,pax,libtalloc,hwloc,libXau,sqlite,pinfo,libXrender,libICE,pam_passwdqc,libXtst,tcp_wrappers-libs,irqbalance,libXrandr,findutils,oprofile,giflib,procps,ltrace,libXcomposite,libgcrypt,rsync,ustr,dbus,nfs4-acl-tools,iptables,bzip2,bridge-utils,initscripts,binutils,rfkill,device-mapper-libs,libvorbis,crash-trace-command,device-mapper-event,net-tools,setserial,kbd,e2fsprogs-libs,gpg-pubkey,samba-winbind,libmng,cryptsetup-luks-libs,libgudev1,hal,keyutils,mesa-libGLU,vim-minimal,kernel,acl,wireless-tools,libss,ntpdate,make,cyrus-sasl,pth,crontabs,perl-Pod-Escapes,python-libs,perl-version,python-dateutil,perl-Test-Harness,libproxy,perl-Module-Load,pytz,perl-IO-Compress-Base,python-prettytable,perl-Archive-Extract,libreport-plugin-reportuploader,perl-Object-Accessor,rpm-python,perl-Compress-Raw-Zlib,libxml2-python,perl-Archive-Tar,authconfig,openjpeg-libs,pygobject2,libgfortran,rhnlib,perl-IO-Compress-Bzip2,abrt-addon-ccpp,perl-Parse-CPAN-Meta,abrt-addon-kerneloops,perl-HTML-Parser,python-cheetah,perl-libxml-perl,gettext,libXfont,python-pycurl,elfutils,pycairo,iw,python-paramiko,grubby,python-kerberos,MAKEDEV,rhn-client-tools,device-mapper-persistent-data,rhn-check,upstart,gnutls,time,cups,cdparanoia-libs,foomatic,gzip,setup,cracklib-dicts,tzdata,coreutils,mesa-dri-filesystem,openssl,tzdata-java,module-init-tools,basesystem,hwdata,ncurses-base,xdg-utils,iso-codes,plymouth-scripts,busybox,urw-fonts,kernel-firmware,rhino,dejavu-fonts-common,qt,libX11-common,rpcbind,ql2200-firmware,pciutils,ql23xx-firmware,libsndfile,zd1211-firmware,poppler-utils,libertas-usb8388-firmware,fipscheck-lib,iwl5000-firmware,bind-libs,atmel-firmware,wget,rt61pci-firmware,krb5-workstation,words,polkit,man-pages,at,ql2100-firmware,pam_krb5,ipw2200-firmware,nss-sysinit,nss-softokn-freebl,nss-tools,glibc,libcurl,bash,gnupg2,libcap,rpm-libs,info,man,libstdc++,passwd,libxml2,nss_compat_ossl,chkconfig,libpath_utils,audit-libs,c-ares,nss-util,pixman,gawk,libthai,libjpeg-turbo,libref_array,expat,hesiod,libselinux,libsss_autofs,glib2,sgpio,sed,libevent,db4,libpcap,readline,libxcb,cyrus-sasl-lib,libXext,libuuid,cairo,libSM,libXfixes,xmlrpc-c,libXcursor,libtdb,pango,krb5-libs,libXinerama,btparser,libXt,libogg,qt3,libidn,libXv,libgpg-error,libdhash,libnl,ethtool,libcap-ng,libsemanage,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,samba-winbind-clients,lcms-libs,dmraid-events,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-Compress-Raw-Bzip2,perl-DBI,numactl,libusb1,perl-DBIx-Simple,perl-CPAN,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,python-matplotlib,fprintd,libvisual,phonon-backend-gstreamer,redhat-lsb-graphics,redhat-lsb,pulseaudio-libs,SDL,cloud-init,yum-plugin-security,cas,abrt-cli,iotop,dstat,selinux-policy-targeted,iwl1000-firmware,b43-openfwwf,iwl6050-firmware,iwl5150-firmware,man-pages-overrides,hunspell-en,perl-XML-Grove,perl-XML-Dumper,seekwatcher,fprintd-pam,subscription-manager,vim-enhanced,sysstat,pcmciautils,lvm2,cifs-utils,openssh-clients,setuptool,biosdevname,quota,microcode_ctl,dhclient,smartmontools,ledmon,tcpdump,sudo,usbutils,perl-Crypt-SSLeay,audit,psacct,valgrind,crash-gcore-command,mlocate,cyrus-sasl-plain,latencytop-tui,unzip,nano,attr,scl-utils,mtr,traceroute,trace-cmd,rdate,strace,b43-fwcutter,eject,vconfig,gpg-pubkey,lvm2-libs,cryptsetup-luks,pm-utils,mesa-dri1-drivers,mesa-libGL,plymouth,dracut-kernel,autofs,crda,yp-tools,certmonger,ntp,oddjob-mkhomedir,postfix,cronie,virt-what,libffi,python,python-setuptools,python-pygments,libproxy-bin,libproxy-python,system-config-firewall-base,python-nss,python-netaddr,python-boto,libreport-python,libreport,libreport-compat,abrt-libs,newt-python,dbus-python,python-dmidecode,pyOpenSSL,python-simplejson,nfs-utils-lib,libselinux-python,sos,python-rhsm,abrt-addon-python,libreport-plugin-kerneloops,libreport-plugin-logger,libreport-plugin-mailx,numpy,libipa_hbac-python,redhat-lsb-core,blktrace,python-urlgrabber,audit-libs-python,python-iwlib,python-crypto,python-krbV,pytalloc,ipa-python,yum,rhnsd,yum-rhn-plugin,setools-libs-python,libtasn1,cups-libs,gtk2,ghostscript,foomatic-db,redhat-lsb-printing,cracklib,ca-certificates,sssd,pam,latencytop-common,qt-x11,alsa-lib,dhcp-common,libasyncns,redhat-logos,redhat-release-server,ipa-client,jline,fontpackages-filesystem,yum-utils,libssh2,kbd-misc,system-config-firewall-tui,libpciaccess,ql2500-firmware,perf,mysql-libs,rootfiles,iwl6000-firmware,bind-utils,redhat-indexhtml,iwl6000g2a-firmware,ConsoleKit-libs,iwl3945-firmware,Red_Hat_Enterprise_Linux-Release_Notes-6-en-US,sssd-client,ivtv-firmware,perl-XML-Twig,mailx,glibc-common,java-1.6.0-openjdk,xmlrpc-c-client,libattr,libhugetlbfs-utils,rpm,libcom_err,kexec-tools,gpgme,popt,samba-client,libaio,freetype,numad,plymouth-core-libs,libpng,readahead,libini_config,libsepol,rng-tools,hdparm,shadow-utils,prelink,gpm-libs,elfutils-libelf,elinks,libX11,dbus-glib,alsa-utils,libXi,libblkid,tcsh,libXft,keyutils-libs,ntsysv,libXdamage,xz-libs,efibootmgr,libXxf86vm,which,lsof,sg3_utils-libs,pciutils-libs,libitm,mingetty,libgssglue,powertop,iputils,grep,zip,selinux-policy,pkgconfig,libtopology,device-mapper-event-libs,lua,latrace,libcgroup,tar,dosfstools,samba-common,dmidecode,dmraid,crash,hal-info,xz,mesa-dri-drivers,bc,dracut,checkpolicy,mdadm,libusb,ypbind,diffutils,oddjob,libtar,cronie-anacron,newt,iptables-ipv6,perl-libs,python-iniparse,perl-Locale-Maketext-Simple,python-nose,perl-devel,python-configobj,perl-IPC-Cmd,python-markdown,perl-Log-Message-Simple,python-argparse,perl-ExtUtils-CBuilder,libreport-plugin-rhtsupport,perl-Module-Loaded,abrt,perl-Compress-Zlib,python-ethtool,perl-Digest-SHA,m2crypto,libcollection,nfs-utils,perl-DBD-SQLite,python-gudev,perl-ExtUtils-Embed,abrt-tui,perl-CGI,libreport-cli,dejavu-sans-fonts,PyYAML,perl-Time-HiRes,python-ldap,xz-lzma-compat,pygpgme,gstreamer,libsemanage-python,flac,python-lxml,setools-libs,yum-metadata-parser,desktop-file-utils,rhn-setup,portreserve,policycoreutils-python,ed,samba4-libs,dash,foomatic-db-ppds,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'', ''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-c1896c99",\r\n "billingProducts" > : [ "bp-63a5400a" ],\r\n "version" : "2010-08-31",\r\n "imageId" : "ami-3cb69579",\r\n "accountId" > : "567014786890",\r\n "instanceType" : "t1.micro",\r\n "architecture" > : "i386",\r\n "kernelId" : "aki-816a38c4",\r\n "ramdiskId" : null,\r\n "pendingTime" > : "2013-02-07T11:06:45Z",\r\n "availabilityZone" : "us-west-1c",\r\n "devpayProductCodes" > : null,\r\n "privateIp" : "10.170.13.104",\r\n "region" : "us-west-1"\r\n}'']'} > - {command: '[ "ami-3cb69579" = "ami-3cb69579" ]', result: passed} > - {command: '[ "i386" = "i386" ]', result: passed} > - {command: '[ "us-west-1" = "us-west-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.4.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} > - {command: rpm -qa gpg-pubkey* | wc -l, expectation: "\r\n2\r\n", result: passed} > - {command: rpm -q gpg-pubkey-2fa658e0-45700c69, result: passed} > - {command: rpm -q gpg-pubkey-fd431d51-4ae0493b, result: passed} > testcase_23_syslog: > - {command: md5sum /etc/rsyslog.conf | cut -f 1 -d ' ', result: passed, value: 8b91b32300134e98ef4aee632ed61e21} > - {command: '[ 8b91b32300134e98ef4aee632ed61e21 = 8b91b32300134e98ef4aee632ed61e21 > ]', result: passed} > testcase_24_yum_plugin: > - {command: 'grep ''^enabled[[:space:]]*=[[:space:]]*[^0 ]'' /etc/yum/pluginconf.d/rhnplugin.conf', > result: passed} > testcase_26_verify_rpms: > - {command: rpm -Va --nomtime --nosize --nomd5 | sort -fu | wc -l, result: passed, > value: '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: > - {command: 'yum repolist -v all | csplit --prefix=repolist_xx - "%Repo-id\s*:%"', > result: passed} > - actual repos: > rhel-source: {repo-status: disabled} > rhel-source-beta: {repo-status: disabled} > rhui-us-west-1-client-config-server-6: {repo-status: enabled} > rhui-us-west-1-rhel-server-releases: {repo-status: enabled} > rhui-us-west-1-rhel-server-releases-optional: {repo-status: enabled} > rhui-us-west-1-rhel-server-releases-optional-source: {repo-status: disabled} > rhui-us-west-1-rhel-server-releases-source: {repo-status: disabled} > expected repos: > rhel-source: {repo-status: disabled} > rhel-source-beta: {repo-status: disabled} > rhui-us-west-1-client-config-server-6: {repo-status: enabled} > rhui-us-west-1-rhel-server-releases: {repo-status: enabled} > rhui-us-west-1-rhel-server-releases-optional: {repo-status: enabled} > rhui-us-west-1-rhel-server-releases-optional-source: {repo-status: disabled} > rhui-us-west-1-rhel-server-releases-source: {repo-status: disabled} > result: passed > 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 | egrep '.*\.(pem|crt)', result: passed, > value: "/etc/pki/entitlement/ca.crt\r\n/etc/pki/entitlement/cdn.redhat.com-chain.crt\r\ > \n/etc/pki/entitlement/product/content-rhel6.crt\r\n/etc/pki/entitlement/product/rhui-client-config-server-6.crt"} > - {command: openssl x509 -in /etc/pki/entitlement/ca.crt -noout -dates | grep > notAfter, result: passed, value: 'notAfter=Nov 30 19:46:02 2017 GMT'} > - {comment: '(/etc/pki/entitlement/ca.crt).notAfter=2017-11-30 19:46:02; expecting: > 2020-11-10 00:00:00', result: failed} > - {command: openssl x509 -in /etc/pki/entitlement/cdn.redhat.com-chain.crt -noout > -dates | grep notAfter, result: passed, value: 'notAfter=Mar 13 11:24:54 > 2030 GMT'} > - {comment: '(/etc/pki/entitlement/cdn.redhat.com-chain.crt).notAfter=2030-03-13 > 11:24:54; expecting: 2020-11-10 00:00:00', result: passed} > - {command: openssl x509 -in /etc/pki/entitlement/product/content-rhel6.crt > -noout -dates | grep notAfter, result: passed, value: 'notAfter=Nov 30 18:31:28 > 2020 GMT'} > - {comment: '(/etc/pki/entitlement/product/content-rhel6.crt).notAfter=2020-11-30 > 18:31:28; expecting: 2020-11-10 00:00:00', result: passed} > - {command: openssl x509 -in /etc/pki/entitlement/product/rhui-client-config-server-6.crt > -noout -dates | grep notAfter, result: passed, value: 'notAfter=Nov 30 18:38:07 > 2020 GMT'} > - {comment: '(/etc/pki/entitlement/product/rhui-client-config-server-6.crt).notAfter=2020-11-30 > 18:38:07; expecting: 2020-11-10 00:00:00', result: passed} > testcase_31_subscription_management: > - {command: yum --disablerepo="*" -v repolist, expectation: Not loading "subscription-manager" > plugin, result: passed} > - {command: yum --enableplugin=subscription-manager --disablerepo="*" -v repolist, > expectation: Loading "subscription-manager" plugin, result: passed} > - {actual: "subscription-manager list\r\n+-------------------------------------------+\r\ > \n Installed Product Status\r\n+-------------------------------------------+\r\ > \nProduct Name: \tRed Hat Enterprise Linux Server\r\nProduct ID:\ > \ \t69\r\nVersion: \t6.4\r\nArch: \ > \ \ti386\r\nStatus: \tNot Subscribed\r\nStarts: \ > \ \t\r\nEnds: \t\r\n\r\n[root@ip-10-170-13-104 ~]# ", > command: subscription-manager list, expectation: No installed products to > list, result: failed} > 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} > - {command: yum search zsh, result: passed} > - {command: yum -y install zsh, result: passed} > - {command: 'rpm -q --queryformat ''%{NAME}'' zsh', result: passed} > - {command: rpm -e zsh, result: passed} > testcase_55_yum_group_install: > - {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} > - {command: yum -y update, result: passed} > testcase_61_yum_proxy: > - {comment: No proxy set, result: skip} > testcase_99_reboot: > - {command: echo 'doing reboot', result: passed} > stage2: > testcase_08_memory: > - {command: 'grep --color=none ''MemTotal:'' /proc/meminfo', match: ".*\r\n\ > MemTotal:\\s*([0-9]+) ", result: passed, value: '[''610224'']'} > - {command: '[ 610224 -gt 600000 ]', result: passed} > testcase_25_uname: > - {command: uname -r, result: passed, value: 2.6.32-358.el6.i686} > - {command: 'rpm -q --queryformat ''%{VERSION}-%{RELEASE}.%{ARCH} > > '' kernel | sort | tail -1', result: passed, value: 2.6.32-358.el6.i686} > - {command: uname -o, result: passed, value: GNU/Linux} > - {command: '[ 2.6.32-358.el6.i686 = 2.6.32-358.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 908946
: 694773