Isso normalmente acontece se uma compilação anterior falhar e você tentar construir a máquina novamente - mesmo que esteja no modo de construção. A maneira mais simples de resolver esse problema é excluir e recriar a máquina no Foreman.
Sou novo no capataz e no fantoche. Não tenho certeza do que mudei, mas agora meus modelos de provisionamento não estão em execução.
A instalação do Ubuntu falha com o código de saída 8 com a seguinte tela:
descobriqueaURLestádefinidanomodelopadrãodaPreseed:
<%#kind:provisionname:Preseeddefaultoses:-Debian6.0-Debian7.0-Ubuntu10.04-Ubuntu12.04-Ubuntu13.04-Ubuntu14.04%><%#safemoderendererdoesnotsupportunarynegationpm_set=@host.puppetmaster.empty??false:truepuppet_enabled=pm_set||@host.params['force-puppet']%>#Locale,countryandkeyboardsettingsd-idebian-installer/localestringen_USd-iconsole-setup/ask_detectbooleanfalsed-iconsole-setup/modelcodestringpc105d-iconsole-setup/variantUSAd-iconsole-setup/layoutUSAd-iconsole-setup/layoutcodestringus<%[email protected]=='Debian'&&@host.operatingsystem.major.to_i>=7-%>d-ikeymapselectus<%end-%><%if@static-%>#Staticnetworkconfiguration.d-inetcfg/disable_dhcpbooleantrued-inetcfg/get_ipaddressstring<%[email protected]%>d-inetcfg/get_netmaskstring<%[email protected]%>d-inetcfg/get_nameserversstring<%=[@host.subnet.dns_primary,@host.subnet.dns_secondary].reject{|n|n.blank?}.join('')%>d-inetcfg/get_gatewaystring<%[email protected]%>d-inetcfg/confirm_staticbooleantrue<%end-%>#Networkconfigurationd-inetcfg/choose_interfaceselectautod-inetcfg/get_hostnamestring<%=@host%>d-inetcfg/get_domainstring<%[email protected]%>d-inetcfg/wireless_wepstringd-ihw-detect/load_firmwarebooleantrue#Mirrorsettingsd-imirror/countrystringmanuald-imirror/http/hostnamestring<%=@preseed_server%>d-imirror/http/directorystring<%=@preseed_path%>d-imirror/http/proxystringd-imirror/codenamestring<%[email protected]_name%>d-imirror/suitestring<%[email protected]_name%>d-imirror/udeb/suitestring<%[email protected]_name%>#Timesettingsd-iclock-setup/utcbooleantrued-itime/zonestring<%[email protected]['time-zone']||'UTC'%>#NTPd-iclock-setup/ntpbooleantrued-iclock-setup/ntp-serverstring<%[email protected]['ntp-server']||'0.debian.pool.ntp.org'%>#Setalignmentforautomaticpartitioning#Choices:cylinder,minimal,optimal#d-ipartman/alignmentselectcylinder<%[email protected]%>#Installdifferentkernel#d-ibase-installer/kernel/imagestringlinux-server#Usersettingsd-ipasswd/root-password-cryptedpassword<%=root_pass%>user-setup-udebpasswd/root-loginbooleantrued-ipasswdpasswd/make-userbooleanfalseuser-setup-udebpasswd/make-userbooleanfalse<%ifpuppet_enabled&&@host.params['enable-puppetlabs-repo']&&@host.params['enable-puppetlabs-repo']=='true'-%>#Puppetlabsproductsd-iapt-setup/local0/repositorystring\http://apt.puppetlabs.com<%[email protected]_name%>maind-iapt-setup/local0/commentstringPuppetlabsproductsd-iapt-setup/local0/sourcebooleantrued-iapt-setup/local0/keystringhttp://apt.puppetlabs.com/pubkey.gpg#Puppetlabsdependenciesd-iapt-setup/local1/repositorystring\http://apt.puppetlabs.com<%[email protected]_name%>dependenciesd-iapt-setup/local1/commentstringPuppetlabsdependenciesd-iapt-setup/local1/sourcebooleantrued-iapt-setup/local1/keystringhttp://apt.puppetlabs.com/pubkey.gpg<%end-%>#Installminimaltaskset(seetasksel--task-packagesminimal)taskseltasksel/firstmultiselectminimal<%ifpuppet_enabled%><%[email protected]=='Ubuntu'[email protected]_i==10-%><%puppet_package='puppet/lucid-backports'-%>d-iapt-setup/backportsbooleantrue<%else-%><%puppet_package='puppet'-%><%end-%><%else-%><%puppet_package=''-%><%end-%>#Installsomebasepackagesd-ipkgsel/includestring<%=puppet_package%>lsb-releaseopenssh-serverd-ipkgsel/update-policyselectunattended-upgradespopularity-contestpopularity-contest/participatebooleanfalse#Bootloadersettings#grub-pcgrub-pc/hidden_timeoutbooleanfalse#grub-pcgrub-pc/timeoutstring10d-igrub-installer/only_debianbooleantrued-igrub-installer/with_other_osbooleantrued-ifinish-install/reboot_in_progressnoted-ipreseed/late_commandstringwget<%=foreman_url('finish')%>-O/target/tmp/finish.sh&&in-targetchmod+x/tmp/finish.sh&&in-target/tmp/finish.sh
Euolheipara/var/log/foreman/production.log
evejoasolicitaçãogeteoslogsparaelasão:
StartedGET"/unattended/finish?token=2df48ae2-c67b-4e40-883a-91c397bb8bed" for 192.168.20.127 at 2014-09-10 18:19:27 -0700
Processing by UnattendedController#finish as */*
Parameters: {"token"=>"2df48ae2-c67b-4e40-883a-91c397bb8bed"}
Found mon01.prod.devita.co
Rendered inline template (20.3ms)
Completed 200 OK in 51.8ms (Views: 20.2ms | ActiveRecord: 22.7ms)
Started GET "/node/mon01.prod.devita.co?format=yml" for 127.0.0.1 at 2014-09-10 18:19:30 -0700
Processing by HostsController#externalNodes as YML
Parameters: {"name"=>"mon01.prod.devita.co"}
Rendered text template (0.0ms)
Completed 200 OK in 52.4ms (Views: 0.6ms | ActiveRecord: 8.2ms)
Started POST "/api/hosts/facts" for 127.0.0.1 at 2014-09-10 18:19:31 -0700
Processing by Api::V2::HostsController#facts as JSON
Parameters: {"facts"=>"[FILTERED]", "name"=>"mon01.devita.co", "certname"=>"mon01.prod.devita.co", "apiv"=>"v2", "host"=>{"facts"=>"[FILTERED]", "name"=>"mon01.devita.co", "certname"=>"mon01.prod.devita.co"}}
Import facts for 'mon01.devita.co' completed. Added: 87, Updated: 0, Deleted 0 facts
Completed 201 Created in 1087.2ms (Views: 40.6ms | ActiveRecord: 0.0ms)
Started GET "/node/mon01.prod.devita.co?format=yml" for 127.0.0.1 at 2014-09-10 18:19:32 -0700
Processing by HostsController#externalNodes as YML
Parameters: {"name"=>"mon01.prod.devita.co"}
Rendered text template (0.0ms)
Completed 200 OK in 30.5ms (Views: 0.6ms | ActiveRecord: 5.2ms)
Started POST "/api/reports" for 127.0.0.1 at 2014-09-10 18:19:33 -0700
Processing by Api::V2::ReportsController#create as JSON
Parameters: {"report"=>"[FILTERED]", "apiv"=>"v2"}
processing report for mon01.prod.devita.co
Imported report for mon01.prod.devita.co in 0.05 seconds
Completed 201 Created in 60.1ms (Views: 2.6ms | ActiveRecord: 0.0ms)
Started GET "/unattended/built?token=2df48ae2-c67b-4e40-883a-91c397bb8bed" for 192.168.20.127 at 2014-09-10 18:19:33 -0700
Processing by UnattendedController#built as */*
Parameters: {"token"=>"2df48ae2-c67b-4e40-883a-91c397bb8bed"}
Found mon01.prod.devita.co
unattended: mon01.prod.devita.co is Built!
Completed 409 Conflict in 256.7ms (ActiveRecord: 8.7ms)
Isso normalmente acontece se uma compilação anterior falhar e você tentar construir a máquina novamente - mesmo que esteja no modo de construção. A maneira mais simples de resolver esse problema é excluir e recriar a máquina no Foreman.
Tags puppetmaster foreman