Created attachment 1075404 [details] Provisioning Image fails with error Description of problem: Version-Release number of selected component (if applicable): How reproducible: Provisioning an image from Platform installer. Steps to Reproduce: 1. Install fresh RHEL 7.1 2. Register & subscribe 3. Yum install -y rhel-osp-installer 4. Finish installation 5. Provision a default image Actual results: Expected results: 1. The host to boot with the kickstart and then install the Operating System. instead we get Additional info:
rhel-osp-installer-client-0.5.7-4.el7ost.noarch rhel-osp-installer-0.5.7-4.el7ost.noarch
There was an error rendering the Kickstart RHEL default template: undefined method `neutron_networking?' for nil:NilClass Template: <%# kind: provision name: Kickstart RHEL default oses: - RedHat 4 - RedHat 5 - RedHat 6 - RedHat 7 %> <% os_major = @host.operatingsystem.major.to_i # safemode renderer does not support unary negation pm_set = @host.puppetmaster.empty? ? false : true puppet_enabled = pm_set || @host.params['force-puppet'] %> install <%= @mediapath %> lang en_US.UTF-8 selinux --enforcing keyboard us skipx <% subnet = @host.subnet -%> <% dhcp = subnet.dhcp_boot_mode? -%> network --bootproto <%= dhcp ? 'dhcp' : "static --ip=#{@host.ip} --netmask=#{subnet.mask} --gateway=#{subnet.gateway} --nameserver=#{[subnet.dns_primary, subnet.dns_secondary].select(&:present?).join(',')}" %> --device=<%= @host.mac -%> --hostname <%= @host %> rootpw --iscrypted <%= root_pass %> authconfig --useshadow --passalgo=sha256 --kickstart timezone --utc <%= @host.params['time-zone'] || 'UTC' %> <% if os_major >= 7 && @host.info["parameters"]["realm"] && @host.otp && @host.realm -%> realm join --one-time-password=<%= @host.otp %> <%= @host.realm %> <% end -%> <% if os_major > 4 -%> services --enabled iptables --disabled autofs,gpm,sendmail,cups,iptables,ip6tables,auditd,arptables_jf,xfs,pcmcia,isdn,rawdevices,hpoj,bluetooth,openibd,avahi-daemon,avahi-dnsconfd,hidd,hplip,pcscd,restorecond,mcstrans,rhnsd,yum-updatesd <% if puppet_enabled && @host.params['enable-puppetlabs-repo'] && @host.params['enable-puppetlabs-repo'] == 'true' -%> repo --name=puppetlabs-products --baseurl=http://yum.puppetlabs.com/el/<%= @host.operatingsystem.major %>/products/<%= @host.architecture %> repo --name=puppetlabs-deps --baseurl=http://yum.puppetlabs.com/el/<%= @host.operatingsystem.major %>/dependencies/<%= @host.architecture %> <% end -%> <% end -%> bootloader --location=mbr --append="nofb quiet splash=quiet" <%= grub_pass %> <% if os_major == 5 -%> key --skip <% end -%> %include /tmp/diskpart.cfg text reboot %packages --ignoremissing yum dhclient ntp wget @Core iptables-services -firewalld <% if puppet_enabled %> puppet <% if @host.params['enable-puppetlabs-repo'] && @host.params['enable-puppetlabs-repo'] == 'true' -%> puppetlabs-release <% end -%> <% end -%> %end %pre cat > /tmp/diskpart.cfg << EOF <%= @host.diskLayout %> EOF # ensures a valid disk is addressed in the partition table layout # sda is assumed and replaced if it is not correct sed -i "s/sda/$(cat /proc/partitions | awk '{ print $4 }' | grep -e "^.d.$" | grep -vw fd0 | sort | head -1)/" /tmp/diskpart.cfg %end %post --nochroot exec < /dev/tty3 > /dev/tty3 #changing to VT 3 so that we can see whats going on.... /usr/bin/chvt 3 ( cp -va /etc/resolv.conf /mnt/sysimage/etc/resolv.conf /usr/bin/chvt 1 ) 2>&1 | tee /mnt/sysimage/root/install.postnochroot.log %end %post logger "Starting anaconda <%= @host %> postinstall" exec < /dev/tty3 > /dev/tty3 #changing to VT 3 so that we can see whats going on.... /usr/bin/chvt 3 ( <%= snippet 'kickstart_networking_setup' %> #update local time echo "updating system time" /usr/sbin/ntpdate -sub <%= @host.params['ntp-server'] || '0.fedora.pool.ntp.org' %> /usr/sbin/hwclock --systohc #disable NetworkManager and enable network chkconfig NetworkManager off chkconfig network on # setup SSH key for root user <%= snippet 'ssh_public_key' %> <%= snippet 'redhat_register' %> <%= snippet 'custom_deployment_repositories' %> <% if @host.info["parameters"]["realm"] && @host.otp && @host.realm && @host.realm.realm_type == "Red Hat Directory Server" && os_major <= 6 -%> <%= snippet "freeipa_register" %> <% end -%> # update all the base packages from the updates repository yum -t -y -e 0 update # install sos related tools yum -t -y -e 0 install sos sos-plugins-openstack rhos-log-collector <% if puppet_enabled %> # and add the puppet package yum -t -y -e 0 install puppet # we reuse our machine registerer instead <%= snippet 'staypuft_client_bootstrap' %> <% end -%> sync # Inform the build system that we are done. echo "Informing Foreman that we are built" wget -q -O /dev/null --no-check-certificate <%= foreman_url %> # Sleeping an hour for debug ) 2>&1 | tee /root/install.post.log exit 0 %end
Please help at the earliest. I did not face any issues with Foreman.
Closing list of bugs for RHEL OSP Installer since its support cycle has already ended [0]. If there is some bug closed by mistake, feel free to re-open. For new deployments, please, use RHOSP director (starting with version 7). -- Jaromir Coufal -- Sr. Product Manager -- Red Hat OpenStack Platform [0] https://access.redhat.com/support/policy/updates/openstack/platform