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 873623 Details for
Bug 1075671
Disk information not completely restored when actions are canceled
[?]
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.
File: ks.cfg
ks.cfg (text/plain), 10.23 KB, created by
Bruno Goncalves
on 2014-03-12 14:53:16 UTC
(
hide
)
Description:
File: ks.cfg
Filename:
MIME Type:
Creator:
Bruno Goncalves
Created:
2014-03-12 14:53:16 UTC
Size:
10.23 KB
patch
obsolete
>nfs --server nfs-01.eng.brq.redhat.com --dir /pub/rhel/nightly/RHEL-7.0-20140312.n.0/compose/Server/x86_64/os/ >#url --url=nfs://nfs-01.eng.brq.redhat.com:/pub/rhel/nightly/RHEL-7.0-20140312.n.0/compose/Server/x86_64/os/ > > >%pre --log=/dev/console >set -x ># Check in with Beaker Server >wget -O - http://lab-02.rhts.eng.brq.redhat.com:8000/install_start/1263935 > >wget -O /tmp/anamon 'http://lab-02.rhts.eng.brq.redhat.com/beaker/anamon' >python /tmp/anamon --recipe-id 1263935 --xmlrpc-url 'http://lab-02.rhts.eng.brq.redhat.com:8000/RPC2' ># no snippet data for RedHatEnterpriseLinux7_pre ># no snippet data for system_pre >%end > > >%post --log=/dev/console >set -x ># Check in with Beaker Server, let it know our hostname, and ># record our install time. >REPORTED_FQDN=$(hostname -f) >if [[ -z "$REPORTED_FQDN" || $REPORTED_FQDN == localhost || $REPORTED_FQDN == localhost.* ]] ; then > # hostname -f is the most future-proof approach, but it isn't always reliable > if [ -f /etc/hostname ] ; then > # Preferred fallback if the OS is recent enough to provide it > REPORTED_FQDN=$(cat /etc/hostname) > elif grep -q ^HOSTNAME= /etc/sysconfig/network ; then > # Last resort fallback to try to report something sensible > REPORTED_FQDN=$(grep ^HOSTNAME= /etc/sysconfig/network | cut -f2- -d=) > fi >fi >curl http://lab-02.rhts.eng.brq.redhat.com:8000/install_done/1263935/$REPORTED_FQDN > >curl http://lab-02.rhts.eng.brq.redhat.com:8000/nopxe/storageqe-81.lab.eng.brq.redhat.com >echo 1263935 > /root/RECIPE.TXT > ># If netboot_method= is found in /proc/cmdline record it to /root >netboot_method=$(perl -n -e'/netboot_method=([^\s]+)/ && print $1' /proc/cmdline) >if [ -n "$netboot_method" ]; then >echo $netboot_method >/root/NETBOOT_METHOD.TXT >fi > ># Enable post-install boot notification > >curl -R "http://lab-02.rhts.eng.brq.redhat.com/beaker/anamon" -o /usr/local/sbin/anamon >curl -R "http://lab-02.rhts.eng.brq.redhat.com/beaker/anamon.init" -o /etc/rc.d/init.d/anamon > >chmod 755 /etc/rc.d/init.d/anamon /usr/local/sbin/anamon > >if selinuxenabled &>/dev/null; then > restorecon /etc/rc.d/init.d/anamon /usr/local/sbin/anamon >fi > >chkconfig --add anamon > >cat << __EOT__ > /etc/sysconfig/anamon >XMLRPC_URL="http://lab-02.rhts.eng.brq.redhat.com:8000/RPC2" >RECIPE_ID="1263935" >LOGFILES="/var/log/boot.log /var/log/messages /var/log/dmesg" >__EOT__ > > >if [ -e /etc/sysconfig/ntpdate ] ; then > /sbin/chkconfig ntpdate on >/dev/null 2>&1 || : >fi >if [ -e "/etc/sysconfig/ntpd" ]; then > /sbin/chkconfig ntpd on >/dev/null 2>&1 || : > GOT_G=$(/bin/cat /etc/sysconfig/ntpd | grep -E '^OPTIONS' | grep '\-g') > > if [ -z "$GOT_G" ]; then > /bin/sed -i -r 's/(^OPTIONS\s*=\s*)(['\''|"])(.+)$/\1\2\-x \3 /' /etc/sysconfig/ntpd > fi >fi >if [ -e /etc/chrony.conf ] ; then > cp /etc/chrony.conf{,.orig} > # use only DHCP-provided time servers, no default pool servers > sed -i '/^server /d' /etc/chrony.conf > cp /etc/sysconfig/network{,.orig} > # setting iburst should speed up initial sync > # https://bugzilla.redhat.com/show_bug.cgi?id=787042#c12 > echo NTPSERVERARGS=iburst >>/etc/sysconfig/network > /sbin/chkconfig ntpd off >/dev/null 2>&1 || : > /sbin/chkconfig ntpdate off >/dev/null 2>&1 || : >fi > > >if efibootmgr &>/dev/null ; then > # The installer should have added a new boot entry for the OS > # at the top of the boot order. We move it to the end of the order > # and set it as BootNext instead. > boot_order=$(efibootmgr | awk '/BootOrder/ { print $2 }') > os_boot_entry=$(cut -d, -f1 <<<"$boot_order") > new_boot_order=$(cut -d, -f2- <<<"$boot_order"),"$os_boot_entry" > efibootmgr -o "$new_boot_order" > efibootmgr -n "$os_boot_entry" > # save the boot entry for later, so that rhts-reboot can set BootNext as well > echo "$os_boot_entry" >/root/EFI_BOOT_ENTRY.TXT >fi > > > >#Add Task Repo >cat <<"EOF" >/etc/yum.repos.d/beaker-tasks.repo >[beaker-tasks] >name=beaker-tasks >baseurl=http://beaker.engineering.redhat.com/repos/1263935 >enabled=1 >gpgcheck=0 >EOF > > ># Add Harness Repo >cat <<"EOF" >/etc/yum.repos.d/beaker-harness.repo >[beaker-harness] >name=beaker-harness >baseurl=http://beaker.engineering.redhat.com/harness/RedHatEnterpriseLinux7/ >enabled=1 >gpgcheck=0 >EOF > ># Add distro and custom Repos >cat <<"EOF" >/etc/yum.repos.d/beaker-HighAvailability.repo >[beaker-HighAvailability] >name=beaker-HighAvailability >baseurl=http://download-01.eng.brq.redhat.com/pub/rhel/nightly/RHEL-7.0-20140312.n.0/compose/Server/x86_64/os/addons/HighAvailability >enabled=1 >gpgcheck=0 >skip_if_unavailable=1 >EOF >cat <<"EOF" >/etc/yum.repos.d/beaker-ResilientStorage.repo >[beaker-ResilientStorage] >name=beaker-ResilientStorage >baseurl=http://download-01.eng.brq.redhat.com/pub/rhel/nightly/RHEL-7.0-20140312.n.0/compose/Server/x86_64/os/addons/ResilientStorage >enabled=1 >gpgcheck=0 >skip_if_unavailable=1 >EOF >cat <<"EOF" >/etc/yum.repos.d/beaker-Server-debuginfo.repo >[beaker-Server-debuginfo] >name=beaker-Server-debuginfo >baseurl=http://download-01.eng.brq.redhat.com/pub/rhel/nightly/RHEL-7.0-20140312.n.0/compose/Server/x86_64/debug/tree >enabled=1 >gpgcheck=0 >skip_if_unavailable=1 >EOF >cat <<"EOF" >/etc/yum.repos.d/beaker-Server-optional-debuginfo.repo >[beaker-Server-optional-debuginfo] >name=beaker-Server-optional-debuginfo >baseurl=http://download-01.eng.brq.redhat.com/pub/rhel/nightly/RHEL-7.0-20140312.n.0/compose/Server-optional/x86_64/debug/tree >enabled=1 >gpgcheck=0 >skip_if_unavailable=1 >EOF >cat <<"EOF" >/etc/yum.repos.d/beaker-Server-SAP-debuginfo.repo >[beaker-Server-SAP-debuginfo] >name=beaker-Server-SAP-debuginfo >baseurl=http://download-01.eng.brq.redhat.com/pub/rhel/nightly/RHEL-7.0-20140312.n.0/compose/Server-SAP/x86_64/debug/tree >enabled=1 >gpgcheck=0 >skip_if_unavailable=1 >EOF >cat <<"EOF" >/etc/yum.repos.d/beaker-Server-SAP.repo >[beaker-Server-SAP] >name=beaker-Server-SAP >baseurl=http://download-01.eng.brq.redhat.com/pub/rhel/nightly/RHEL-7.0-20140312.n.0/compose/Server-SAP/x86_64/os >enabled=1 >gpgcheck=0 >skip_if_unavailable=1 >EOF >cat <<"EOF" >/etc/yum.repos.d/beaker-Server-optional.repo >[beaker-Server-optional] >name=beaker-Server-optional >baseurl=http://download-01.eng.brq.redhat.com/pub/rhel/nightly/RHEL-7.0-20140312.n.0/compose/Server-optional/x86_64/os >enabled=1 >gpgcheck=0 >skip_if_unavailable=1 >EOF >cat <<"EOF" >/etc/yum.repos.d/beaker-Server.repo >[beaker-Server] >name=beaker-Server >baseurl=http://download-01.eng.brq.redhat.com/pub/rhel/nightly/RHEL-7.0-20140312.n.0/compose/Server/x86_64/os >enabled=1 >gpgcheck=0 >skip_if_unavailable=1 >EOF > > ># fill the yum cache and redirect output to /dev/null ># This speeds up yum because of a bug where it will update stdout too often. ># http://lists.baseurl.org/pipermail/yum-devel/2011-December/008857.html >yum check-update > /dev/null 2>&1 || true >yum -y install beah rhts-test-env beakerlib ># This may fail if you are outside of Red Hat.. >yum -y install beakerlib-redhat > >cp /etc/beah_beaker.conf{,.default} >cat << EOF > /etc/beah_beaker.conf ># see /etc/beah_beaker.conf.default for commented configuration > >[DEFAULT] ># LAB_CONTROLLER: URI of Beaker's XML-RPC handler >LAB_CONTROLLER=http://lab-02.rhts.eng.brq.redhat.com:8000 ># ># HOSTNAME: Pretend to be machine with given name. ># NOTE: This is mostly pointless as usually correct name is assigned by DHCP. >HOSTNAME=storageqe-81.lab.eng.brq.redhat.com >RECIPEID=1263935 > ># Turn on hard limits on upload sizes: >FILE_SIZE_LIMIT=200000000 >TASK_SIZE_LIMIT=800000000 > >EOF > >cp /etc/beah.conf{,.default} >cat << EOF > /etc/beah.conf ># see /etc/beah.conf.default for commented configuration > >[DEFAULT] ># Turn on more verbose logging and redirect to console. This is useful for ># debugging harness' problems. >LOG=Info >CONSOLE_LOG=Console ># To turn on debug logging uncomment the following line. Warning: this is ># rather verbose! This also requires LOG to be Debug. >#DEVEL=True > >[TASK] >INTERFACE= > >EOF > >chkconfig --level 345 beah-srv on >chkconfig --level 345 beah-beaker-backend on >chkconfig --level 345 beah-fwd-backend on > >#Add test user account >useradd --password '$6$oIW3o2Mr$XbWZKaM7nA.cQqudfDJScupXOia5h1u517t6Htx/Q/MgXm82Pc/OcytatTeI4ULNWOMJzvpCigWiL4xKP9PX4.' test >cat <<"EOF" >/etc/profile.d/beaker.sh >export BEAKER="https://beaker.engineering.redhat.com/" >export BEAKER_JOB_WHITEBOARD='Provision RHEL-7.0-20140312.n.0 Server x86_64' >export BEAKER_RECIPE_WHITEBOARD='' >EOF >cat <<"EOF" >/etc/profile.d/beaker.csh >setenv BEAKER "https://beaker.engineering.redhat.com/" >setenv BEAKER_JOB_WHITEBOARD 'Provision RHEL-7.0-20140312.n.0 Server x86_64' >setenv BEAKER_RECIPE_WHITEBOARD '' >EOF >cat << EOF > /etc/profile.d/rh-env.sh >export LAB_CONTROLLER=lab-02.rhts.eng.brq.redhat.com >export DUMPSERVER=netdump-01.eng.brq.redhat.com >export NFSSERVERS="rhel3-nfs.rhts.eng.brq.redhat.com:/export/home rhel4-nfs.rhts.eng.brq.redhat.com:/export/home rhel5-nfs.rhts.eng.brq.redhat.com:/export/home rhel6-nfs.rhts.eng.brq.redhat.com:/export/home " >export LOOKASIDE=http://download.eng.brq.redhat.com/pub/rhel/qa/rhts/lookaside/ >export BUILDURL=http://download.eng.brq.redhat.com >EOF >cat << EOF > /etc/profile.d/rh-env.csh >setenv LAB_CONTROLLER lab-02.rhts.eng.brq.redhat.com >setenv DUMPSERVER netdump-01.eng.brq.redhat.com >setenv NFSSERVERS "rhel3-nfs.rhts.eng.brq.redhat.com:/export/home rhel4-nfs.rhts.eng.brq.redhat.com:/export/home rhel5-nfs.rhts.eng.brq.redhat.com:/export/home rhel6-nfs.rhts.eng.brq.redhat.com:/export/home" >setenv LOOKASIDE http://download.eng.brq.redhat.com/pub/rhel/qa/rhts/lookaside/ >setenv BUILDURL http://download.eng.brq.redhat.com >EOF >mkdir -p /root/.ssh >cat >>/root/.ssh/authorized_keys <<"__EOF__" >ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCeU2Kft+WY7mTA28fcXFjR1HQjIwB7dgbpnHOZyncr59z01/Pl8EqMpS/xIv4WAiAIoXAh0EuluqiiiBsj0Oj2YA/V/9L5tnykRRQ62tjd6rYNcovVdIlJDKaANEaZ3ZfE5DNZdsgXE/+IAy3vkKEzwjpQqjzBrgeGebuSbaPnbU0jNqGJlRjLdAaMGoXVfL7UU9DyHQ0moWYGyH9iwyfTUQIrS5l9TAe89PRsiQXfEG8ZCxft7AY+nxqLNAN+Ce7RIlHFYAv9zvVhKY56KrVQMB3CQDBy4JuQdo2uZtHCSoWtO+fXXbK5vq/s4p6J/UcTbzwXLH77hm6nKgMNQ191 bgoncalv@dhcp-30-172.brq.redhat.com >__EOF__ >restorecon -R /root/.ssh >chmod go-w /root /root/.ssh /root/.ssh/authorized_keys ># Check in with Beaker Server, record our postinstall time. >curl http://lab-02.rhts.eng.brq.redhat.com:8000/postinstall_done/1263935 ># Disable rhts-compat for Fedora15/RHEL7 and newer. >cat >> /etc/profile.d/task-overrides-rhts.sh <<END >export RHTS_OPTION_COMPATIBLE= >export RHTS_OPTION_COMPAT_SERVICE= >END ># no snippet data for RedHatEnterpriseLinux7_post ># no snippet data for system_post >%end > > >
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 1075671
:
873620
|
873621
|
873622
| 873623 |
873624
|
873625
|
873626
|
873627
|
873628
|
873629
|
873630
|
873631
|
875628
|
875677
|
875696
|
875697
|
875698
|
875699
|
875700
|
875701