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 675476 Details for
Bug 893500
ami-70b93240 RHEL 5.9 i386 us-west-2
[?]
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-70b93240.yaml
ami-70b93240.yaml (text/yaml), 55.17 KB, created by
mkovacik
on 2013-01-09 12:41:08 UTC
(
hide
)
Description:
ami-70b93240.yaml
Filename:
MIME Type:
Creator:
mkovacik
Created:
2013-01-09 12:41:08 UTC
Size:
55.17 KB
patch
obsolete
>ami: ami-70b93240 >arch: i386 >product: RHEL >region: us-west-2 >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} > - {command: chkconfig --list yum-updatesd, 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: 'grep ''^id:'' /etc/inittab', expectation: 'id:3:initdefault', result: passed} > - {command: 'grep ''^si:'' /etc/inittab', expectation: 'si::sysinit:/etc/rc.d/rc.sysinit', > 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: '[''1781944'']'} > - {command: '[ 1781944 -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: '[''basesystem,kernel-headers,man-pages-it,man-pages-pl,man-pages-cs,glibc,mktemp,audit-libs,bash,nss,cyrus-sasl-lib,sqlite,libattr,binutils,grep,libICE,libusb,libXau,gnutls,cpio,gzip,unixODBC-libs,perl-String-CRC32,iptables-ipv6,svrcore,cpp,desktop-file-utils,pax,libXdmcp,hesiod,pkgconfig,lftp,jwhois,attr,ftp,mtr,nc,setarch,lslk,unix2dos,dosfstools,crontabs,perl-URI,glibc-devel,libXext,libXmu,libXcursor,libXinerama,anacron,e2fsprogs-libs,logrotate,libutempter,e2fsprogs,device-mapper-multipath,MAKEDEV,parted,lsof,aspell-it,aspell-fr,openssl,fontconfig,postgresql-libs,python-libs,pygobject2,libsemanage,libuser,gettext,httpd,kbd,gamin-python,pycairo,neon,distcache,pyOpenSSL,python-numeric,policycoreutils,alsa-lib,cracklib,setools,bind-utils,mod_python,irqbalance,quota,xterm,prelink,cyrus-sasl-gssapi,pam_ccreds,nmap,tux,htmlview,rhnlib,w3m,yum-updatesd,ruby-rdoc,Deployment_Guide-pt-BR,Deployment_Guide-ko-KR,Deployment_Guide-it-IT,rhel-instnum,gtk2,pygtk2-libglade,pinfo,openssh,xorg-x11-xfs,fonts-KOI8-R,fonts-KOI8-R-100dpi,gjdoc,openssh-clients,pm-utils,rhnsd,rhn-check,setup,mailcap,tzdata,cracklib-dicts,nash,man-pages-de,man-pages-fr,rootfiles,redhat-release-notes,man-pages-ru,man-pages,libgcc,zlib,glib2,popt,nspr,expat,libtermcap,ncurses,readline,libsepol,freetype,gawk,libxml2,bzip2-libs,libpng,libacl,ttmkfdir,diffutils,pcre,keyutils-libs,elfutils-libelf,libSM,iptables,libsysfs,libgpg-error,gdbm,libgcrypt,libtiff,libgomp,gpm,less,file,libXfont,zip,lm_sensors,perl-BSD-Resource,virt-what,bc,hmaccalc,ed,time,groff,gamin,iputils,gmp,checkpolicy,ethtool,wireless-tools,sgpio,libvolume_id,mailx,libart_lgpl,mozldap,fbset,iptstate,crash,acl,cyrus-sasl-plain,udftools,nano,telnet,dialog,cpuspeed,compat-db,beecrypt,dos2unix,setserial,traceroute,pam_passwdqc,finger,hdparm,pam_smb,ncompress,jpackage-utils,redhat-menus,redhat-logos,glibc-headers,bitstream-vera-fonts,libX11,libXrender,libXt,libXrandr,libXfixes,libXaw,libXtst,libXp,grub,libselinux,device-mapper,aspell,apr,dbus-libs,kpartx,tar,dbus-glib,dbus,net-tools,cryptsetup-luks,lvm2,vim-minimal,tmpwatch,mlocate,nss_db,kernel-xen-devel,aspell-ru,aspell-pt,aspell-de,aspell-pl,python,pam,openldap,cairo,rpm,udev,rhpl,libxml2-python,apr-util,SysVinit,mysql,rpm-libs,python-dmidecode,system-config-securitylevel-tui,pango,passwd,curl,python-simplejson,initscripts,exim,vixie-cron,mcstrans,authconfig,which,ntsysv,gd,samba-common,bind-libs,at,ruby-libs,net-snmp-libs,iscsi-initiator-utils,python-elementtree,mx,libselinux-python,python-ethtool,yum-metadata-parser,nscd,dmraid-events,mtools,sudo,postgresql-python,mod_ssl,subversion,webalizer,mod_perl,dhcpv6-client,acpid,postgresql,rng-utils,setuptool,MySQL-python,krb5-workstation,postgresql-odbc,openldap-clients,pam_krb5,pam_pkcs11,screen,tcpdump,cyrus-sasl-md5,readahead,ksh,audit,python-iniparse,selinux-policy,ruby-irb,yum,sgml-common,yum-security,yum-utils,yum-fastestmirror,selinux-policy-targeted,Deployment_Guide-ja-JP,Deployment_Guide-de-DE,Deployment_Guide-zh-CN,Deployment_Guide-zh-TW,Deployment_Guide-en-US,redhat-lsb,sos,liberation-fonts,logwatch,libgcj,libglade2,python-rhsm,mutt,system-config-securitylevel,fipscheck-lib,mkinitrd,fipscheck,hwdata,kernel-xen,fonts-korean,fonts-chinese,fonts-KOI8-R-75dpi,antlr,postgresql-jdbc,openssh-server,openswan,kudzu,system-config-network-tui,rhn-client-tools,yum-rhn-plugin,rh-amazon-rhui-client,gpg-pubkey,filesystem,glibc-common,termcap,man-pages-es,man-pages-ja,words,chkconfig,libstdc++,db4,info,sed,tcp_wrappers,atk,libcap,procps,libjpeg,libidn,dmidecode,perl,bzip2,make,libfontenc,slang,perl-DBI,vim-common,m4,tcl,iproute,libnl,mingetty,libFS,libtool-ltdl,sysfsutils,rsync,nss-tools,mgetty,unzip,libicu,symlinks,tree,libaio,compat-libstdc++-33,xorg-x11-filesystem,redhat-release,man-pages-ko,xorg-x11-font-utils,libXpm,libXi,gcc,shadow-utils,findutils,aspell-en,psmisc,libselinux-utils,device-mapper-event,patch,vim-enhanced,aspell-cs,aspell-es,coreutils,krb5-libs,newt,util-linux,dbus-python,m2crypto,rpm-python,libXft,usermode,rsyslog,dmraid,gnupg,man,libsmbclient,cups-libs,ruby,PyXML,audit-libs-python,python-sqlite,tcsh,nss_ldap,net-snmp,samba-client,mod_authz_ldap,vsftpd,dhclient,mysql-connector-odbc,autofs,pkinit-nss,stunnel,libhugetlbfs,conman,hicolor-icon-theme,python-urlgrabber,psgml,yum-updateonboot,Deployment_Guide-fr-FR,Deployment_Guide-ru-RU,Deployment_Guide-es-ES,xinetd,python-setuptools,pygtk2,subscription-manager,chkfontpath,module-init-tools,java-1.4.2-gcj-compat,fonts-japanese,pciutils,usbutils,hal,firstboot-tui,rhn-setup,gpg-pubkey'']'} > - {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:root'' /etc/group', result: passed} > - {command: 'grep ''^daemon:x:2:root,bin,daemon'' /etc/group', result: passed} > - {command: 'grep ''^bin:x:1:root,bin,daemon'' /etc/group', result: passed} > testcase_13_resize2fs: > - {command: resize2fs -p /dev/sda1 15000M, result: passed} > - {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-9027fda2",\r\n "billingProducts" > : [ "bp-6fa54006" ],\r\n "version" : "2010-08-31",\r\n "imageId" : "ami-70b93240",\r\n "accountId" > : "567014786890",\r\n "instanceType" : "c1.medium",\r\n "architecture" > : "i386",\r\n "kernelId" : "aki-2efa771e",\r\n "ramdiskId" : null,\r\n "pendingTime" > : "2013-01-08T09:47:55Z",\r\n "availabilityZone" : "us-west-2b",\r\n "devpayProductCodes" > : null,\r\n "privateIp" : "10.252.90.11",\r\n "region" : "us-west-2"\r\n}'']'} > - {command: '[ "ami-70b93240" = "ami-70b93240" ]', result: passed} > - {command: '[ "i386" = "i386" ]', result: passed} > - {command: '[ "us-west-2" = "us-west-2" ]', result: passed} > - {command: '[ "bp-6fa54006" = "bp-6fa54006" ]', 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: '[''5.9.0.2'']'} > - {command: '[ ''5.9'' = ''5.9'' ]', 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: 612ddf28c3916530d47ef56a1b1ed1ed, > result: passed} > - {command: md5sum /etc/sysconfig/auditd | cut -f 1 -d ' ', expectation: 123beb3a97a32d96eba4f11509e39da2, > 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/sda1} > - {command: 'echo ''###'' ;mount | grep ''^/dev/sda1'' | awk ''{print $3}''; > echo ''###''', match: ".*\r\n###\r\n(.*)\r\n###\r\n.*", result: passed, > value: '[''/'']'} > - {command: 'echo ''###'' ;mount | grep ''^/dev/sda1'' | awk ''{print $5}''; > echo ''###''', match: ".*\r\n###\r\n(.*)\r\n###\r\n.*", result: passed, > value: '[''ext3'']'} > - {command: '[ `df -k /dev/sda1 | awk ''{ print $2 }'' | tail -n 1` -gt 3937219 > ]', result: passed} > - {command: '[ ext3 = ext3 ]', 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-37017186-45761324, result: passed} > testcase_23_syslog: > - {command: md5sum /etc/rsyslog.conf | cut -f 1 -d ' ', result: passed, value: 15936b6fe4e8fadcea87b54de495f975} > - {command: '([ 15936b6fe4e8fadcea87b54de495f975 = bd4e328df4b59d41979ef7202a05e074 > ] || [ 15936b6fe4e8fadcea87b54de495f975 = 15936b6fe4e8fadcea87b54de495f975 > ])', 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: '3'} > - {command: 'rpm -q --queryformat ''%{RELEASE} > > '' redhat-release | cut -d. -f1,2', result: passed, value: '5.9'} > - {command: '[ 3 = 3 ]', result: passed} > - {command: '[ 5.9 = 5.9 ]', result: passed} > - {command: 'rpm -qa --queryformat ''%{PACKAGER} > > '' | sort -u | grep -v ''Red Hat, Inc.''', result: passed, value: (none)} > testcase_27_yum_repos: > - {command: 'yum repolist -v all | csplit --prefix=repolist_xx - "%Repo-id\s*:%"', > result: passed} > - actual repos: > rhel-debuginfo: {repo-status: disabled} > rhui-us-west-2-client-config-server-5: {repo-status: enabled} > rhui-us-west-2-rhel-server: {repo-status: enabled} > rhui-us-west-2-rhel-server-source: {repo-status: disabled} > expected repos: > rhel-debuginfo: {repo-status: disabled} > rhui-us-west-2-client-config-server-5: {repo-status: enabled} > rhui-us-west-2-rhel-server: {repo-status: enabled} > rhui-us-west-2-rhel-server-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 :631 | grep ACCEPT | wc -l', expectation: "\r\n\ > 2\r\n", result: passed} > - {command: 'iptables -L -n | grep :5353 | grep ACCEPT | wc -l', expectation: "\r\n\ > 1\r\n", result: passed} > - {command: iptables -L -n | grep -e esp -e ah | grep ACCEPT | wc -l, expectation: "\r\n\ > 2\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\n1\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 5 swap | grep ^Disk | awk ''{print $2}'' | > sed ''$s/.$//'' | head -1', result: passed, value: /dev/sda3} > - {command: '[ 940 -gt 0 ]', result: passed} > - {command: swapoff /dev/sda3 ; echo, result: passed} > - {command: swapon /dev/sda3, result: passed} > - {command: swapoff /dev/sda3 && swapon /dev/sda3, 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-rhel5.crt\r\n/etc/pki/entitlement/product/rhui-client-config-server-5.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: > 2017-03-14 00:00:00', result: passed} > - {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: 2017-03-14 00:00:00', result: passed} > - {command: openssl x509 -in /etc/pki/entitlement/product/content-rhel5.crt > -noout -dates | grep notAfter, result: passed, value: 'notAfter=Mar 31 18:44:41 > 2017 GMT'} > - {comment: '(/etc/pki/entitlement/product/content-rhel5.crt).notAfter=2017-03-31 > 18:44:41; expecting: 2017-03-14 00:00:00', result: passed} > - {command: openssl x509 -in /etc/pki/entitlement/product/rhui-client-config-server-5.crt > -noout -dates | grep notAfter, result: passed, value: 'notAfter=Mar 31 18:41:55 > 2017 GMT'} > - {comment: '(/etc/pki/entitlement/product/rhui-client-config-server-5.crt).notAfter=2017-03-31 > 18:41:55; expecting: 2017-03-14 00:00:00', result: passed} > testcase_31_subscription_management: {comment: not applicable for version = > 5.9, result: skipped} > testcase_32_ephemeral: > - {command: fdisk -l /dev/sdf | grep ^Disk, result: passed} > - {command: mkfs.vfat -I /dev/sdf, result: passed} > testcase_33_userdata: > - {command: 'rpm -q --queryformat ''%{NAME} > > '' cloud-init', result: passed, value: package cloud-init is not installed} > - {comment: no cloud-init package, result: skip} > 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_99_reboot: > - {command: "sed -i 's,\\(default\\)=.*$,\x01=0,' /boot/grub/menu.lst", result: passed} > stage2: > testcase_08_memory: > - {command: 'grep --color=none ''MemTotal:'' /proc/meminfo', match: ".*\r\n\ > MemTotal:\\s*([0-9]+) ", result: passed, value: '[''1781944'']'} > - {command: '[ 1781944 -gt 1700000 ]', result: passed} > testcase_25_uname: > - {command: 'uname -r | sed ''s,\.el5xen,.el5,''', result: passed, value: 2.6.18-348.el5} > - {command: 'rpm -q --queryformat ''%{VERSION}-%{RELEASE} > > '' kernel-xen | sort | tail -1', result: passed, value: 2.6.18-348.el5} > - {command: uname -o, result: passed, value: GNU/Linux} > - {command: '[ 2.6.18-348.el5 = 2.6.18-348.el5 ]', 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} > - {command: chkconfig --list yum-updatesd, 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: 'grep ''^id:'' /etc/inittab', expectation: 'id:3:initdefault', result: passed} > - {command: 'grep ''^si:'' /etc/inittab', expectation: 'si::sysinit:/etc/rc.d/rc.sysinit', > 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: '[''1740984'']'} > - {command: '[ 1740984 -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: '[''basesystem,kernel-headers,man-pages-it,man-pages-pl,man-pages-cs,glibc,mktemp,audit-libs,bash,nss,cyrus-sasl-lib,sqlite,libattr,binutils,grep,libICE,libusb,libXau,gnutls,cpio,gzip,unixODBC-libs,perl-String-CRC32,iptables-ipv6,svrcore,cpp,desktop-file-utils,pax,libXdmcp,hesiod,pkgconfig,lftp,jwhois,attr,ftp,mtr,nc,setarch,lslk,unix2dos,dosfstools,crontabs,perl-URI,glibc-devel,libXext,libXmu,libXcursor,libXinerama,anacron,e2fsprogs-libs,logrotate,libutempter,e2fsprogs,device-mapper-multipath,MAKEDEV,parted,lsof,aspell-it,aspell-fr,openssl,fontconfig,postgresql-libs,python-libs,pygobject2,libsemanage,libuser,gettext,httpd,kbd,gamin-python,pycairo,neon,distcache,pyOpenSSL,python-numeric,policycoreutils,alsa-lib,cracklib,setools,bind-utils,mod_python,irqbalance,quota,xterm,prelink,cyrus-sasl-gssapi,pam_ccreds,nmap,tux,htmlview,rhnlib,w3m,yum-updatesd,ruby-rdoc,Deployment_Guide-pt-BR,Deployment_Guide-ko-KR,Deployment_Guide-it-IT,rhel-instnum,gtk2,pygtk2-libglade,pinfo,openssh,xorg-x11-xfs,fonts-KOI8-R,fonts-KOI8-R-100dpi,gjdoc,openssh-clients,pm-utils,rhnsd,rhn-check,setup,mailcap,tzdata,cracklib-dicts,nash,man-pages-de,man-pages-fr,rootfiles,redhat-release-notes,man-pages-ru,man-pages,libgcc,zlib,glib2,popt,nspr,expat,libtermcap,ncurses,readline,libsepol,freetype,gawk,libxml2,bzip2-libs,libpng,libacl,ttmkfdir,diffutils,pcre,keyutils-libs,elfutils-libelf,libSM,iptables,libsysfs,libgpg-error,gdbm,libgcrypt,libtiff,libgomp,gpm,less,file,libXfont,zip,lm_sensors,perl-BSD-Resource,virt-what,bc,hmaccalc,ed,time,groff,gamin,iputils,gmp,checkpolicy,ethtool,wireless-tools,sgpio,libvolume_id,mailx,libart_lgpl,mozldap,fbset,iptstate,crash,acl,cyrus-sasl-plain,udftools,nano,telnet,dialog,cpuspeed,compat-db,beecrypt,dos2unix,setserial,traceroute,pam_passwdqc,finger,hdparm,pam_smb,ncompress,jpackage-utils,redhat-menus,redhat-logos,glibc-headers,bitstream-vera-fonts,libX11,libXrender,libXt,libXrandr,libXfixes,libXaw,libXtst,libXp,grub,libselinux,device-mapper,aspell,apr,dbus-libs,kpartx,tar,dbus-glib,dbus,net-tools,cryptsetup-luks,lvm2,vim-minimal,tmpwatch,mlocate,nss_db,kernel-xen-devel,aspell-ru,aspell-pt,aspell-de,aspell-pl,python,pam,openldap,cairo,rpm,udev,rhpl,libxml2-python,apr-util,SysVinit,mysql,rpm-libs,python-dmidecode,system-config-securitylevel-tui,pango,passwd,curl,python-simplejson,initscripts,exim,vixie-cron,mcstrans,authconfig,which,ntsysv,gd,samba-common,bind-libs,at,ruby-libs,net-snmp-libs,iscsi-initiator-utils,python-elementtree,mx,libselinux-python,python-ethtool,yum-metadata-parser,nscd,dmraid-events,mtools,sudo,postgresql-python,mod_ssl,subversion,webalizer,mod_perl,dhcpv6-client,acpid,postgresql,rng-utils,setuptool,MySQL-python,krb5-workstation,postgresql-odbc,openldap-clients,pam_krb5,pam_pkcs11,screen,tcpdump,cyrus-sasl-md5,readahead,ksh,audit,python-iniparse,selinux-policy,ruby-irb,yum,sgml-common,yum-security,yum-utils,yum-fastestmirror,selinux-policy-targeted,Deployment_Guide-ja-JP,Deployment_Guide-de-DE,Deployment_Guide-zh-CN,Deployment_Guide-zh-TW,Deployment_Guide-en-US,redhat-lsb,sos,liberation-fonts,logwatch,libgcj,libglade2,python-rhsm,mutt,system-config-securitylevel,fipscheck-lib,mkinitrd,fipscheck,hwdata,kernel-xen,fonts-korean,fonts-chinese,fonts-KOI8-R-75dpi,antlr,postgresql-jdbc,openssh-server,openswan,kudzu,system-config-network-tui,rhn-client-tools,yum-rhn-plugin,rh-amazon-rhui-client,gpg-pubkey,filesystem,glibc-common,termcap,man-pages-es,man-pages-ja,words,chkconfig,libstdc++,db4,info,sed,tcp_wrappers,atk,libcap,procps,libjpeg,libidn,dmidecode,perl,bzip2,make,libfontenc,slang,perl-DBI,vim-common,m4,tcl,iproute,libnl,mingetty,libFS,libtool-ltdl,sysfsutils,rsync,nss-tools,mgetty,unzip,libicu,symlinks,tree,libaio,compat-libstdc++-33,xorg-x11-filesystem,redhat-release,man-pages-ko,xorg-x11-font-utils,libXpm,libXi,gcc,shadow-utils,findutils,aspell-en,psmisc,libselinux-utils,device-mapper-event,patch,vim-enhanced,aspell-cs,aspell-es,coreutils,krb5-libs,newt,util-linux,dbus-python,m2crypto,rpm-python,libXft,usermode,rsyslog,dmraid,gnupg,man,libsmbclient,cups-libs,ruby,PyXML,audit-libs-python,python-sqlite,tcsh,nss_ldap,net-snmp,samba-client,mod_authz_ldap,vsftpd,dhclient,mysql-connector-odbc,autofs,pkinit-nss,stunnel,libhugetlbfs,conman,hicolor-icon-theme,python-urlgrabber,psgml,yum-updateonboot,Deployment_Guide-fr-FR,Deployment_Guide-ru-RU,Deployment_Guide-es-ES,xinetd,python-setuptools,pygtk2,subscription-manager,chkfontpath,module-init-tools,java-1.4.2-gcj-compat,fonts-japanese,pciutils,usbutils,hal,firstboot-tui,rhn-setup,gpg-pubkey'']'} > - {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:root'' /etc/group', result: passed} > - {command: 'grep ''^daemon:x:2:root,bin,daemon'' /etc/group', result: passed} > - {command: 'grep ''^bin:x:1:root,bin,daemon'' /etc/group', result: passed} > testcase_13_resize2fs: > - {command: resize2fs -p /dev/sda1 15000M, result: passed} > - {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-9227fda0",\r\n "billingProducts" > : [ "bp-6fa54006" ],\r\n "version" : "2010-08-31",\r\n "imageId" : "ami-70b93240",\r\n "accountId" > : "567014786890",\r\n "instanceType" : "m1.small",\r\n "architecture" > : "i386",\r\n "kernelId" : "aki-2efa771e",\r\n "ramdiskId" : null,\r\n "pendingTime" > : "2013-01-08T09:47:53Z",\r\n "availabilityZone" : "us-west-2c",\r\n "devpayProductCodes" > : null,\r\n "privateIp" : "10.244.31.207",\r\n "region" : "us-west-2"\r\n}'']'} > - {command: '[ "ami-70b93240" = "ami-70b93240" ]', result: passed} > - {command: '[ "i386" = "i386" ]', result: passed} > - {command: '[ "us-west-2" = "us-west-2" ]', result: passed} > - {command: '[ "bp-6fa54006" = "bp-6fa54006" ]', 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: '[''5.9.0.2'']'} > - {command: '[ ''5.9'' = ''5.9'' ]', 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: 612ddf28c3916530d47ef56a1b1ed1ed, > result: passed} > - {command: md5sum /etc/sysconfig/auditd | cut -f 1 -d ' ', expectation: 123beb3a97a32d96eba4f11509e39da2, > 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/sda1} > - {command: 'echo ''###'' ;mount | grep ''^/dev/sda1'' | awk ''{print $3}''; > echo ''###''', match: ".*\r\n###\r\n(.*)\r\n###\r\n.*", result: passed, > value: '[''/'']'} > - {command: 'echo ''###'' ;mount | grep ''^/dev/sda1'' | awk ''{print $5}''; > echo ''###''', match: ".*\r\n###\r\n(.*)\r\n###\r\n.*", result: passed, > value: '[''ext3'']'} > - {command: '[ `df -k /dev/sda1 | awk ''{ print $2 }'' | tail -n 1` -gt 3937219 > ]', result: passed} > - {command: '[ ext3 = ext3 ]', 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-37017186-45761324, result: passed} > testcase_23_syslog: > - {command: md5sum /etc/rsyslog.conf | cut -f 1 -d ' ', result: passed, value: 15936b6fe4e8fadcea87b54de495f975} > - {command: '([ 15936b6fe4e8fadcea87b54de495f975 = bd4e328df4b59d41979ef7202a05e074 > ] || [ 15936b6fe4e8fadcea87b54de495f975 = 15936b6fe4e8fadcea87b54de495f975 > ])', 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: '3'} > - {command: 'rpm -q --queryformat ''%{RELEASE} > > '' redhat-release | cut -d. -f1,2', result: passed, value: '5.9'} > - {command: '[ 3 = 3 ]', result: passed} > - {command: '[ 5.9 = 5.9 ]', result: passed} > - {command: 'rpm -qa --queryformat ''%{PACKAGER} > > '' | sort -u | grep -v ''Red Hat, Inc.''', result: passed, value: (none)} > testcase_27_yum_repos: > - {command: 'yum repolist -v all | csplit --prefix=repolist_xx - "%Repo-id\s*:%"', > result: passed} > - actual repos: > rhel-debuginfo: {repo-status: disabled} > rhui-us-west-2-client-config-server-5: {repo-status: enabled} > rhui-us-west-2-rhel-server: {repo-status: enabled} > rhui-us-west-2-rhel-server-source: {repo-status: disabled} > expected repos: > rhel-debuginfo: {repo-status: disabled} > rhui-us-west-2-client-config-server-5: {repo-status: enabled} > rhui-us-west-2-rhel-server: {repo-status: enabled} > rhui-us-west-2-rhel-server-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 :631 | grep ACCEPT | wc -l', expectation: "\r\n\ > 2\r\n", result: passed} > - {command: 'iptables -L -n | grep :5353 | grep ACCEPT | wc -l', expectation: "\r\n\ > 1\r\n", result: passed} > - {command: iptables -L -n | grep -e esp -e ah | grep ACCEPT | wc -l, expectation: "\r\n\ > 2\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\n1\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 5 swap | grep ^Disk | awk ''{print $2}'' | > sed ''$s/.$//'' | head -1', result: passed, value: /dev/sda3} > - {command: '[ 940 -gt 0 ]', result: passed} > - {command: swapoff /dev/sda3 ; echo, result: passed} > - {command: swapon /dev/sda3, result: passed} > - {command: swapoff /dev/sda3 && swapon /dev/sda3, 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-rhel5.crt\r\n/etc/pki/entitlement/product/rhui-client-config-server-5.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: > 2017-03-14 00:00:00', result: passed} > - {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: 2017-03-14 00:00:00', result: passed} > - {command: openssl x509 -in /etc/pki/entitlement/product/content-rhel5.crt > -noout -dates | grep notAfter, result: passed, value: 'notAfter=Mar 31 18:44:41 > 2017 GMT'} > - {comment: '(/etc/pki/entitlement/product/content-rhel5.crt).notAfter=2017-03-31 > 18:44:41; expecting: 2017-03-14 00:00:00', result: passed} > - {command: openssl x509 -in /etc/pki/entitlement/product/rhui-client-config-server-5.crt > -noout -dates | grep notAfter, result: passed, value: 'notAfter=Mar 31 18:41:55 > 2017 GMT'} > - {comment: '(/etc/pki/entitlement/product/rhui-client-config-server-5.crt).notAfter=2017-03-31 > 18:41:55; expecting: 2017-03-14 00:00:00', result: passed} > testcase_31_subscription_management: {comment: not applicable for version = > 5.9, result: skipped} > testcase_32_ephemeral: > - {command: fdisk -l /dev/sdf | grep ^Disk, result: passed} > - {command: mkfs.vfat -I /dev/sdf, result: passed} > testcase_33_userdata: > - {command: 'rpm -q --queryformat ''%{NAME} > > '' cloud-init', result: passed, value: package cloud-init is not installed} > - {comment: no cloud-init package, result: skip} > 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_99_reboot: > - {command: "sed -i 's,\\(default\\)=.*$,\x01=0,' /boot/grub/menu.lst", result: passed} > stage2: > testcase_08_memory: > - {command: 'grep --color=none ''MemTotal:'' /proc/meminfo', match: ".*\r\n\ > MemTotal:\\s*([0-9]+) ", result: passed, value: '[''1740984'']'} > - {command: '[ 1740984 -gt 1700000 ]', result: passed} > testcase_25_uname: > - {command: 'uname -r | sed ''s,\.el5xen,.el5,''', result: passed, value: 2.6.18-348.el5} > - {command: 'rpm -q --queryformat ''%{VERSION}-%{RELEASE} > > '' kernel-xen | sort | tail -1', result: passed, value: 2.6.18-348.el5} > - {command: uname -o, result: passed, value: GNU/Linux} > - {command: '[ 2.6.18-348.el5 = 2.6.18-348.el5 ]', 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} > - {command: chkconfig --list yum-updatesd, 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: 'grep ''^id:'' /etc/inittab', expectation: 'id:3:initdefault', result: passed} > - {command: 'grep ''^si:'' /etc/inittab', expectation: 'si::sysinit:/etc/rc.d/rc.sysinit', > 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: '[''629944'']'} > - {command: '[ 629944 -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: '[''basesystem,kernel-headers,man-pages-it,man-pages-pl,man-pages-cs,glibc,mktemp,audit-libs,bash,nss,cyrus-sasl-lib,sqlite,libattr,binutils,grep,libICE,libusb,libXau,gnutls,cpio,gzip,unixODBC-libs,perl-String-CRC32,iptables-ipv6,svrcore,cpp,desktop-file-utils,pax,libXdmcp,hesiod,pkgconfig,lftp,jwhois,attr,ftp,mtr,nc,setarch,lslk,unix2dos,dosfstools,crontabs,perl-URI,glibc-devel,libXext,libXmu,libXcursor,libXinerama,anacron,e2fsprogs-libs,logrotate,libutempter,e2fsprogs,device-mapper-multipath,MAKEDEV,parted,lsof,aspell-it,aspell-fr,openssl,fontconfig,postgresql-libs,python-libs,pygobject2,libsemanage,libuser,gettext,httpd,kbd,gamin-python,pycairo,neon,distcache,pyOpenSSL,python-numeric,policycoreutils,alsa-lib,cracklib,setools,bind-utils,mod_python,irqbalance,quota,xterm,prelink,cyrus-sasl-gssapi,pam_ccreds,nmap,tux,htmlview,rhnlib,w3m,yum-updatesd,ruby-rdoc,Deployment_Guide-pt-BR,Deployment_Guide-ko-KR,Deployment_Guide-it-IT,rhel-instnum,gtk2,pygtk2-libglade,pinfo,openssh,xorg-x11-xfs,fonts-KOI8-R,fonts-KOI8-R-100dpi,gjdoc,openssh-clients,pm-utils,rhnsd,rhn-check,setup,mailcap,tzdata,cracklib-dicts,nash,man-pages-de,man-pages-fr,rootfiles,redhat-release-notes,man-pages-ru,man-pages,libgcc,zlib,glib2,popt,nspr,expat,libtermcap,ncurses,readline,libsepol,freetype,gawk,libxml2,bzip2-libs,libpng,libacl,ttmkfdir,diffutils,pcre,keyutils-libs,elfutils-libelf,libSM,iptables,libsysfs,libgpg-error,gdbm,libgcrypt,libtiff,libgomp,gpm,less,file,libXfont,zip,lm_sensors,perl-BSD-Resource,virt-what,bc,hmaccalc,ed,time,groff,gamin,iputils,gmp,checkpolicy,ethtool,wireless-tools,sgpio,libvolume_id,mailx,libart_lgpl,mozldap,fbset,iptstate,crash,acl,cyrus-sasl-plain,udftools,nano,telnet,dialog,cpuspeed,compat-db,beecrypt,dos2unix,setserial,traceroute,pam_passwdqc,finger,hdparm,pam_smb,ncompress,jpackage-utils,redhat-menus,redhat-logos,glibc-headers,bitstream-vera-fonts,libX11,libXrender,libXt,libXrandr,libXfixes,libXaw,libXtst,libXp,grub,libselinux,device-mapper,aspell,apr,dbus-libs,kpartx,tar,dbus-glib,dbus,net-tools,cryptsetup-luks,lvm2,vim-minimal,tmpwatch,mlocate,nss_db,kernel-xen-devel,aspell-ru,aspell-pt,aspell-de,aspell-pl,python,pam,openldap,cairo,rpm,udev,rhpl,libxml2-python,apr-util,SysVinit,mysql,rpm-libs,python-dmidecode,system-config-securitylevel-tui,pango,passwd,curl,python-simplejson,initscripts,exim,vixie-cron,mcstrans,authconfig,which,ntsysv,gd,samba-common,bind-libs,at,ruby-libs,net-snmp-libs,iscsi-initiator-utils,python-elementtree,mx,libselinux-python,python-ethtool,yum-metadata-parser,nscd,dmraid-events,mtools,sudo,postgresql-python,mod_ssl,subversion,webalizer,mod_perl,dhcpv6-client,acpid,postgresql,rng-utils,setuptool,MySQL-python,krb5-workstation,postgresql-odbc,openldap-clients,pam_krb5,pam_pkcs11,screen,tcpdump,cyrus-sasl-md5,readahead,ksh,audit,python-iniparse,selinux-policy,ruby-irb,yum,sgml-common,yum-security,yum-utils,yum-fastestmirror,selinux-policy-targeted,Deployment_Guide-ja-JP,Deployment_Guide-de-DE,Deployment_Guide-zh-CN,Deployment_Guide-zh-TW,Deployment_Guide-en-US,redhat-lsb,sos,liberation-fonts,logwatch,libgcj,libglade2,python-rhsm,mutt,system-config-securitylevel,fipscheck-lib,mkinitrd,fipscheck,hwdata,kernel-xen,fonts-korean,fonts-chinese,fonts-KOI8-R-75dpi,antlr,postgresql-jdbc,openssh-server,openswan,kudzu,system-config-network-tui,rhn-client-tools,yum-rhn-plugin,rh-amazon-rhui-client,gpg-pubkey,filesystem,glibc-common,termcap,man-pages-es,man-pages-ja,words,chkconfig,libstdc++,db4,info,sed,tcp_wrappers,atk,libcap,procps,libjpeg,libidn,dmidecode,perl,bzip2,make,libfontenc,slang,perl-DBI,vim-common,m4,tcl,iproute,libnl,mingetty,libFS,libtool-ltdl,sysfsutils,rsync,nss-tools,mgetty,unzip,libicu,symlinks,tree,libaio,compat-libstdc++-33,xorg-x11-filesystem,redhat-release,man-pages-ko,xorg-x11-font-utils,libXpm,libXi,gcc,shadow-utils,findutils,aspell-en,psmisc,libselinux-utils,device-mapper-event,patch,vim-enhanced,aspell-cs,aspell-es,coreutils,krb5-libs,newt,util-linux,dbus-python,m2crypto,rpm-python,libXft,usermode,rsyslog,dmraid,gnupg,man,libsmbclient,cups-libs,ruby,PyXML,audit-libs-python,python-sqlite,tcsh,nss_ldap,net-snmp,samba-client,mod_authz_ldap,vsftpd,dhclient,mysql-connector-odbc,autofs,pkinit-nss,stunnel,libhugetlbfs,conman,hicolor-icon-theme,python-urlgrabber,psgml,yum-updateonboot,Deployment_Guide-fr-FR,Deployment_Guide-ru-RU,Deployment_Guide-es-ES,xinetd,python-setuptools,pygtk2,subscription-manager,chkfontpath,module-init-tools,java-1.4.2-gcj-compat,fonts-japanese,pciutils,usbutils,hal,firstboot-tui,rhn-setup,gpg-pubkey'']'} > - {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:root'' /etc/group', result: passed} > - {command: 'grep ''^daemon:x:2:root,bin,daemon'' /etc/group', result: passed} > - {command: 'grep ''^bin:x:1:root,bin,daemon'' /etc/group', result: passed} > testcase_13_resize2fs: > - {command: resize2fs -p /dev/sda1 15000M, result: passed} > - {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-ae27fd9c",\r\n "billingProducts" > : [ "bp-6fa54006" ],\r\n "version" : "2010-08-31",\r\n "imageId" : "ami-70b93240",\r\n "accountId" > : "567014786890",\r\n "instanceType" : "t1.micro",\r\n "architecture" > : "i386",\r\n "kernelId" : "aki-2efa771e",\r\n "ramdiskId" : null,\r\n "pendingTime" > : "2013-01-08T09:47:53Z",\r\n "availabilityZone" : "us-west-2a",\r\n "devpayProductCodes" > : null,\r\n "privateIp" : "10.249.43.9",\r\n "region" : "us-west-2"\r\n}'']'} > - {command: '[ "ami-70b93240" = "ami-70b93240" ]', result: passed} > - {command: '[ "i386" = "i386" ]', result: passed} > - {command: '[ "us-west-2" = "us-west-2" ]', result: passed} > - {command: '[ "bp-6fa54006" = "bp-6fa54006" ]', 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: '[''5.9.0.2'']'} > - {command: '[ ''5.9'' = ''5.9'' ]', 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: 612ddf28c3916530d47ef56a1b1ed1ed, > result: passed} > - {command: md5sum /etc/sysconfig/auditd | cut -f 1 -d ' ', expectation: 123beb3a97a32d96eba4f11509e39da2, > 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/sda1} > - {command: 'echo ''###'' ;mount | grep ''^/dev/sda1'' | awk ''{print $3}''; > echo ''###''', match: ".*\r\n###\r\n(.*)\r\n###\r\n.*", result: passed, > value: '[''/'']'} > - {command: 'echo ''###'' ;mount | grep ''^/dev/sda1'' | awk ''{print $5}''; > echo ''###''', match: ".*\r\n###\r\n(.*)\r\n###\r\n.*", result: passed, > value: '[''ext3'']'} > - {command: '[ `df -k /dev/sda1 | awk ''{ print $2 }'' | tail -n 1` -gt 3937219 > ]', result: passed} > - {command: '[ ext3 = ext3 ]', 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-37017186-45761324, result: passed} > testcase_23_syslog: > - {command: md5sum /etc/rsyslog.conf | cut -f 1 -d ' ', result: passed, value: 15936b6fe4e8fadcea87b54de495f975} > - {command: '([ 15936b6fe4e8fadcea87b54de495f975 = bd4e328df4b59d41979ef7202a05e074 > ] || [ 15936b6fe4e8fadcea87b54de495f975 = 15936b6fe4e8fadcea87b54de495f975 > ])', 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: '3'} > - {command: 'rpm -q --queryformat ''%{RELEASE} > > '' redhat-release | cut -d. -f1,2', result: passed, value: '5.9'} > - {command: '[ 3 = 3 ]', result: passed} > - {command: '[ 5.9 = 5.9 ]', result: passed} > - {command: 'rpm -qa --queryformat ''%{PACKAGER} > > '' | sort -u | grep -v ''Red Hat, Inc.''', result: passed, value: (none)} > testcase_27_yum_repos: > - {command: 'yum repolist -v all | csplit --prefix=repolist_xx - "%Repo-id\s*:%"', > result: passed} > - actual repos: > rhel-debuginfo: {repo-status: disabled} > rhui-us-west-2-client-config-server-5: {repo-status: enabled} > rhui-us-west-2-rhel-server: {repo-status: enabled} > rhui-us-west-2-rhel-server-source: {repo-status: disabled} > expected repos: > rhel-debuginfo: {repo-status: disabled} > rhui-us-west-2-client-config-server-5: {repo-status: enabled} > rhui-us-west-2-rhel-server: {repo-status: enabled} > rhui-us-west-2-rhel-server-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 :631 | grep ACCEPT | wc -l', expectation: "\r\n\ > 2\r\n", result: passed} > - {command: 'iptables -L -n | grep :5353 | grep ACCEPT | wc -l', expectation: "\r\n\ > 1\r\n", result: passed} > - {command: iptables -L -n | grep -e esp -e ah | grep ACCEPT | wc -l, expectation: "\r\n\ > 2\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\n1\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-rhel5.crt\r\n/etc/pki/entitlement/product/rhui-client-config-server-5.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: > 2017-03-14 00:00:00', result: passed} > - {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: 2017-03-14 00:00:00', result: passed} > - {command: openssl x509 -in /etc/pki/entitlement/product/content-rhel5.crt > -noout -dates | grep notAfter, result: passed, value: 'notAfter=Mar 31 18:44:41 > 2017 GMT'} > - {comment: '(/etc/pki/entitlement/product/content-rhel5.crt).notAfter=2017-03-31 > 18:44:41; expecting: 2017-03-14 00:00:00', result: passed} > - {command: openssl x509 -in /etc/pki/entitlement/product/rhui-client-config-server-5.crt > -noout -dates | grep notAfter, result: passed, value: 'notAfter=Mar 31 18:41:55 > 2017 GMT'} > - {comment: '(/etc/pki/entitlement/product/rhui-client-config-server-5.crt).notAfter=2017-03-31 > 18:41:55; expecting: 2017-03-14 00:00:00', result: passed} > testcase_31_subscription_management: {comment: not applicable for version = > 5.9, 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: package cloud-init is not installed} > - {comment: no cloud-init package, result: skip} > 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_99_reboot: > - {command: "sed -i 's,\\(default\\)=.*$,\x01=0,' /boot/grub/menu.lst", result: passed} > stage2: > testcase_08_memory: > - {command: 'grep --color=none ''MemTotal:'' /proc/meminfo', match: ".*\r\n\ > MemTotal:\\s*([0-9]+) ", result: passed, value: '[''629944'']'} > - {command: '[ 629944 -gt 600000 ]', result: passed} > testcase_25_uname: > - {command: 'uname -r | sed ''s,\.el5xen,.el5,''', result: passed, value: 2.6.18-348.el5} > - {command: 'rpm -q --queryformat ''%{VERSION}-%{RELEASE} > > '' kernel-xen | sort | tail -1', result: passed, value: 2.6.18-348.el5} > - {command: uname -o, result: passed, value: GNU/Linux} > - {command: '[ 2.6.18-348.el5 = 2.6.18-348.el5 ]', 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: '5.9'
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 893500
: 675476