"Pending installation" buidl status

Hi,

I have something strange for few weeks now when I deploy a new Debian host from Foreman.
Build status never switch to "Installed" but remains in "Pending installation".

I don't understand because:

  •      I haven't recently updated finish script
    
  •      It only happens with preseed script, not with kickstart one
    
  •      At the end of the script, the built URL is called:
    

wget -q -O /dev/null --no-check-certificate <%= foreman_url('built') %>
It is the same line into kickstart finish script.
In log file, this call seems to be correctly proceeded:
2016-06-21T15:59:35 [app] [I] Started GET "/unattended/built?token=a230a70e-8201-4e24-b336-2357f59e51f3" for 127.0.0.1 at 2016-06-21 15:59:35 +0000
2016-06-21T15:59:35 [app] [I] Processing by UnattendedController#built as /
2016-06-21T15:59:35 [app] [I] Parameters: {"token"=>"a230a70e-8201-4e24-b336-2357f59e51f3"}
2016-06-21T15:59:35 [app] [I] Found test-debian.qt.cls.fr
2016-06-21T15:59:35 [app] [I] unattended: test-debian.qt.cls.fr is Built!

Does someone have an idea?
Thanks for your help.

Foreman 1.11.2.

Cordialement,
Lionel BEARD
05.61.39.39.19

··· ________________________________

Ce message et toutes les pi?ces jointes (ci-apr?s le “message”) sont ?tablis ? l’intention exclusive de ses destinataires et sont confidentiels. Si vous recevez ce message par erreur ou s’il ne vous est pas destin?, merci de le d?truire ainsi que toute copie de votre syst?me et d’en avertir imm?diatement l’exp?diteur. Toute lecture non autoris?e, toute utilisation de ce message qui n’est pas conforme ? sa destination, toute diffusion ou toute publication, totale ou partielle, est interdite. L’Internet ne permettant pas d’assurer l’int?grit? de ce message ?lectronique susceptible d’alt?ration, l’exp?diteur (et ses filiales) d?cline(nt) toute responsabilit? au titre de ce message dans l’hypoth?se o? il aurait ?t? modifi? ou falsifi?.

This message and any attachments (the “message”) is intended solely for the intended recipient(s) and is confidential. If you receive this message in error, or are not the intended recipient(s), please delete it and any copies from your systems and immediately notify the sender. Any unauthorized view, use that does not comply with its purpose, dissemination or disclosure, either whole or partial, is prohibited. Since the internet cannot guarantee the integrity of this message which may not be reliable, the sender (and its subsidiaries) shall not be liable for the message if modified or falsified.

Wish I could help but I am fighting with the same exact issue only I'm
using CentOS and Kickstart.

··· On Tuesday, June 21, 2016 at 5:58:24 PM UTC-4, Beard Lionel (BOSTON-STORAGE) wrote: > > Hi, > > > > I have something strange for few weeks now when I deploy a new Debian host > from Foreman. > > Build status never switch to “Installed” but remains in “Pending > installation”. > > > > I don’t understand because: > > - I haven’t recently updated finish script > > - It only happens with preseed script, not with kickstart one > > - At the end of the script, the built URL is called: > > wget -q -O /dev/null --no-check-certificate <%= foreman_url('built') %> > > It is the same line into kickstart finish script. > > In log file, this call seems to be correctly proceeded: > > 2016-06-21T15:59:35 [app] [I] Started GET > "/unattended/built?token=a230a70e-8201-4e24-b336-2357f59e51f3" for > 127.0.0.1 at 2016-06-21 15:59:35 +0000 > > 2016-06-21T15:59:35 [app] [I] Processing by UnattendedController#built as > */* > > 2016-06-21T15:59:35 [app] [I] Parameters: > {"token"=>"a230a70e-8201-4e24-b336-2357f59e51f3"} > > 2016-06-21T15:59:35 [app] [I] Found test-debian.qt.cls.fr > > 2016-06-21T15:59:35 [app] [I] unattended: test-debian.qt.cls.fr is Built! > > > > Does someone have an idea? > > Thanks for your help. > > > > Foreman 1.11.2. > > > > Cordialement, > > Lionel BEARD > > 05.61.39.39.19 > > > ------------------------------ > > *Ce message et toutes les pièces jointes (ci-après le "message") sont > établis à l'intention exclusive de ses destinataires et sont confidentiels. > Si vous recevez ce message par erreur ou s'il ne vous est pas destiné, > merci de le détruire ainsi que toute copie de votre système et d'en avertir > immédiatement l'expéditeur. Toute lecture non autorisée, toute utilisation > de ce message qui n'est pas conforme à sa destination, toute diffusion ou > toute publication, totale ou partielle, est interdite. L'Internet ne > permettant pas d'assurer l'intégrité de ce message électronique susceptible > d'altération, l’expéditeur (et ses filiales) décline(nt) toute > responsabilité au titre de ce message dans l'hypothèse où il aurait été > modifié ou falsifié.* > > *This message and any attachments (the "message") is intended solely for > the intended recipient(s) and is confidential. If you receive this message > in error, or are not the intended recipient(s), please delete it and any > copies from your systems and immediately notify the sender. Any > unauthorized view, use that does not comply with its purpose, dissemination > or disclosure, either whole or partial, is prohibited. Since the internet > cannot guarantee the integrity of this message which may not be reliable, > the sender (and its subsidiaries) shall not be liable for the message if > modified or falsified. * >

This looks fine, but just to be sure, can you paste the rest of the log
entry? It should also state a return of 201, eg

2016-06-21T13:21:39 [app] [I] Completed 201 Created in 616ms (ActiveRecord:
101.6ms)

Assuming you see that, I'd suggest enabling DEBUG logs and then retry to
see if anything interesting is logged.

··· On 21 June 2016 at 17:12, Beard Lionel (BOSTON-STORAGE) wrote:
                           2016-06-21T15:59:35 [app] [I] Started GET

“/unattended/built?token=a230a70e-8201-4e24-b336-2357f59e51f3” for
127.0.0.1 at 2016-06-21 15:59:35 +0000

2016-06-21T15:59:35 [app] [I] Processing by UnattendedController#built as
/

2016-06-21T15:59:35 [app] [I] Parameters:
{“token”=>“a230a70e-8201-4e24-b336-2357f59e51f3”}

2016-06-21T15:59:35 [app] [I] Found test-debian.qt.cls.fr

2016-06-21T15:59:35 [app] [I] unattended: test-debian.qt.cls.fr is Built!

Hi,

Here is full log :
2016-06-21T15:59:35 [app] [I] Started GET "/unattended/built?token=a230a70e-8201-4e24-b336-2357f59e51f3" for 127.0.0.1 at 2016-06-21 15:59:35 +0000
2016-06-21T15:59:35 [app] [I] Processing by UnattendedController#built as /
2016-06-21T15:59:35 [app] [I] Parameters: {"token"=>"a230a70e-8201-4e24-b336-2357f59e51f3"}
2016-06-21T15:59:35 [app] [I] Found test-debian.qt.cls.fr
2016-06-21T15:59:35 [app] [I] unattended: test-debian.qt.cls.fr is Built!
2016-06-21T15:59:36 [app] [I] Started GET "/node/test-debian.qt.cls.fr?format=yml" for 127.0.0.1 at 2016-06-21 15:59:36 +0000
2016-06-21T15:59:36 [app] [I] Completed 409 Conflict in 1356ms (ActiveRecord: 17.9ms)

I get a HTTP 409 Conflict, instead of 201.
Any idea?

I’m going to enable DEBUG mode to see if I have more details…

Thanks,
Regards.

··· De : foreman-users@googlegroups.com [mailto:foreman-users@googlegroups.com] De la part de Greg Sutcliffe Envoyé : mercredi 22 juin 2016 12:44 À : Foreman users Objet : Re: [foreman-users] "Pending installation" buidl status

On 21 June 2016 at 17:12, Beard Lionel (BOSTON-STORAGE) <lbeard@cls.frmailto:lbeard@cls.fr> wrote:
2016-06-21T15:59:35 [app] [I] Started GET “/unattended/built?token=a230a70e-8201-4e24-b336-2357f59e51f3” for 127.0.0.1 at 2016-06-21 15:59:35 +0000
2016-06-21T15:59:35 [app] [I] Processing by UnattendedController#built as /
2016-06-21T15:59:35 [app] [I] Parameters: {“token”=>“a230a70e-8201-4e24-b336-2357f59e51f3”}
2016-06-21T15:59:35 [app] [I] Found test-debian.qt.cls.frhttp://test-debian.qt.cls.fr
2016-06-21T15:59:35 [app] [I] unattended: test-debian.qt.cls.frhttp://test-debian.qt.cls.fr is Built!

This looks fine, but just to be sure, can you paste the rest of the log entry? It should also state a return of 201, eg

2016-06-21T13:21:39 [app] [I] Completed 201 Created in 616ms (ActiveRecord: 101.6ms)
Assuming you see that, I’d suggest enabling DEBUG logs and then retry to see if anything interesting is logged.


You received this message because you are subscribed to the Google Groups “Foreman users” group.
To unsubscribe from this group and stop receiving emails from it, send an email to foreman-users+unsubscribe@googlegroups.commailto:foreman-users+unsubscribe@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.commailto:foreman-users@googlegroups.com.
Visit this group at https://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.

Cliquez icihttps://www.mailcontrol.com/sr/EOEM3ZVr293GX2PQPOmvUrwgXREt4LZXXAqAQLMVXCvafqbShiwgfxe3n3i2MQredMZNt7X+4loeRLY+cWrx9g== si ce message est indésirable (pourriel).


Ce message et toutes les pièces jointes (ci-après le “message”) sont établis à l’intention exclusive de ses destinataires et sont confidentiels. Si vous recevez ce message par erreur ou s’il ne vous est pas destiné, merci de le détruire ainsi que toute copie de votre système et d’en avertir immédiatement l’expéditeur. Toute lecture non autorisée, toute utilisation de ce message qui n’est pas conforme à sa destination, toute diffusion ou toute publication, totale ou partielle, est interdite. L’Internet ne permettant pas d’assurer l’intégrité de ce message électronique susceptible d’altération, l’expéditeur (et ses filiales) décline(nt) toute responsabilité au titre de ce message dans l’hypothèse où il aurait été modifié ou falsifié.

This message and any attachments (the “message”) is intended solely for the intended recipient(s) and is confidential. If you receive this message in error, or are not the intended recipient(s), please delete it and any copies from your systems and immediately notify the sender. Any unauthorized view, use that does not comply with its purpose, dissemination or disclosure, either whole or partial, is prohibited. Since the internet cannot guarantee the integrity of this message which may not be reliable, the sender (and its subsidiaries) shall not be liable for the message if modified or falsified.

Debug log level doesn’t help :slight_smile:

··· De : Beard Lionel (BOSTON-STORAGE) Envoyé : mercredi 22 juin 2016 15:04 À : Foreman users Objet : RE: [foreman-users] "Pending installation" buidl status

Hi,

Here is full log :
2016-06-21T15:59:35 [app] [I] Started GET “/unattended/built?token=a230a70e-8201-4e24-b336-2357f59e51f3” for 127.0.0.1 at 2016-06-21 15:59:35 +0000
2016-06-21T15:59:35 [app] [I] Processing by UnattendedController#built as /
2016-06-21T15:59:35 [app] [I] Parameters: {“token”=>“a230a70e-8201-4e24-b336-2357f59e51f3”}
2016-06-21T15:59:35 [app] [I] Found test-debian.qt.cls.fr
2016-06-21T15:59:35 [app] [I] unattended: test-debian.qt.cls.fr is Built!
2016-06-21T15:59:36 [app] [I] Started GET “/node/test-debian.qt.cls.fr?format=yml” for 127.0.0.1 at 2016-06-21 15:59:36 +0000
2016-06-21T15:59:36 [app] [I] Completed 409 Conflict in 1356ms (ActiveRecord: 17.9ms)

I get a HTTP 409 Conflict, instead of 201.
Any idea?

I’m going to enable DEBUG mode to see if I have more details…

Thanks,
Regards.

De : foreman-users@googlegroups.commailto:foreman-users@googlegroups.com [mailto:foreman-users@googlegroups.com] De la part de Greg Sutcliffe
Envoyé : mercredi 22 juin 2016 12:44
À : Foreman users <foreman-users@googlegroups.commailto:foreman-users@googlegroups.com>
Objet : Re: [foreman-users] “Pending installation” buidl status

On 21 June 2016 at 17:12, Beard Lionel (BOSTON-STORAGE) <lbeard@cls.frmailto:lbeard@cls.fr> wrote:
2016-06-21T15:59:35 [app] [I] Started GET “/unattended/built?token=a230a70e-8201-4e24-b336-2357f59e51f3” for 127.0.0.1 at 2016-06-21 15:59:35 +0000
2016-06-21T15:59:35 [app] [I] Processing by UnattendedController#built as /
2016-06-21T15:59:35 [app] [I] Parameters: {“token”=>“a230a70e-8201-4e24-b336-2357f59e51f3”}
2016-06-21T15:59:35 [app] [I] Found test-debian.qt.cls.frhttp://test-debian.qt.cls.fr
2016-06-21T15:59:35 [app] [I] unattended: test-debian.qt.cls.frhttp://test-debian.qt.cls.fr is Built!

This looks fine, but just to be sure, can you paste the rest of the log entry? It should also state a return of 201, eg

2016-06-21T13:21:39 [app] [I] Completed 201 Created in 616ms (ActiveRecord: 101.6ms)
Assuming you see that, I’d suggest enabling DEBUG logs and then retry to see if anything interesting is logged.


You received this message because you are subscribed to the Google Groups “Foreman users” group.
To unsubscribe from this group and stop receiving emails from it, send an email to foreman-users+unsubscribe@googlegroups.commailto:foreman-users+unsubscribe@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.commailto:foreman-users@googlegroups.com.
Visit this group at https://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.

Cliquez icihttps://www.mailcontrol.com/sr/EOEM3ZVr293GX2PQPOmvUrwgXREt4LZXXAqAQLMVXCvafqbShiwgfxe3n3i2MQredMZNt7X+4loeRLY+cWrx9g== si ce message est indésirable (pourriel).


Ce message et toutes les pièces jointes (ci-après le “message”) sont établis à l’intention exclusive de ses destinataires et sont confidentiels. Si vous recevez ce message par erreur ou s’il ne vous est pas destiné, merci de le détruire ainsi que toute copie de votre système et d’en avertir immédiatement l’expéditeur. Toute lecture non autorisée, toute utilisation de ce message qui n’est pas conforme à sa destination, toute diffusion ou toute publication, totale ou partielle, est interdite. L’Internet ne permettant pas d’assurer l’intégrité de ce message électronique susceptible d’altération, l’expéditeur (et ses filiales) décline(nt) toute responsabilité au titre de ce message dans l’hypothèse où il aurait été modifié ou falsifié.

This message and any attachments (the “message”) is intended solely for the intended recipient(s) and is confidential. If you receive this message in error, or are not the intended recipient(s), please delete it and any copies from your systems and immediately notify the sender. Any unauthorized view, use that does not comply with its purpose, dissemination or disclosure, either whole or partial, is prohibited. Since the internet cannot guarantee the integrity of this message which may not be reliable, the sender (and its subsidiaries) shall not be liable for the message if modified or falsified.

Hello

there seems to be some validation problem during the host saving so it does
not save the status change. Maybe this PR [1] would help with the status
update but the original cause is something different. When you go to the host
and try to save it with just new comment, do you see some validation errors?

[1] https://github.com/theforeman/foreman/pull/3447

··· -- Marek

On Wednesday 22 of June 2016 13:03:50 Beard Lionel wrote:

Hi,

Here is full log :
2016-06-21T15:59:35 [app] [I] Started GET
"/unattended/built?token=a230a70e-8201-4e24-b336-2357f59e51f3" for
127.0.0.1 at 2016-06-21 15:59:35 +0000 2016-06-21T15:59:35 [app] [I]
Processing by UnattendedController#built as / 2016-06-21T15:59:35 [app]
[I] Parameters: {“token”=>“a230a70e-8201-4e24-b336-2357f59e51f3”}
2016-06-21T15:59:35 [app] [I] Found test-debian.qt.cls.fr
2016-06-21T15:59:35 [app] [I] unattended: test-debian.qt.cls.fr is Built!
2016-06-21T15:59:36 [app] [I] Started GET
"/node/test-debian.qt.cls.fr?format=yml" for 127.0.0.1 at 2016-06-21
15:59:36 +0000 2016-06-21T15:59:36 [app] [I] Completed 409 Conflict in
1356ms (ActiveRecord: 17.9ms)

I get a HTTP 409 Conflict, instead of 201.
Any idea?

I’m going to enable DEBUG mode to see if I have more details…

Thanks,
Regards.

De : foreman-users@googlegroups.com [mailto:foreman-users@googlegroups.com]
De la part de Greg Sutcliffe Envoyé : mercredi 22 juin 2016 12:44
À : Foreman users foreman-users@googlegroups.com
Objet : Re: [foreman-users] “Pending installation” buidl status

On 21 June 2016 at 17:12, Beard Lionel (BOSTON-STORAGE)
<lbeard@cls.frmailto:lbeard@cls.fr> wrote: 2016-06-21T15:59:35 [app] [I]
Started GET "/unattended/built?token=a230a70e-8201-4e24-b336-2357f59e51f3"
for 127.0.0.1 at 2016-06-21 15:59:35 +0000 2016-06-21T15:59:35 [app] [I]
Processing by UnattendedController#built as / 2016-06-21T15:59:35 [app]
[I] Parameters: {“token”=>“a230a70e-8201-4e24-b336-2357f59e51f3”}
2016-06-21T15:59:35 [app] [I] Found
test-debian.qt.cls.frhttp://test-debian.qt.cls.fr 2016-06-21T15:59:35
[app] [I] unattended: test-debian.qt.cls.frhttp://test-debian.qt.cls.fr
is Built!

This looks fine, but just to be sure, can you paste the rest of the log
entry? It should also state a return of 201, eg

2016-06-21T13:21:39 [app] [I] Completed 201 Created in 616ms (ActiveRecord:
101.6ms) Assuming you see that, I’d suggest enabling DEBUG logs and then
retry to see if anything interesting is logged.


You received this message because you are subscribed to the Google Groups
"Foreman users" group. To unsubscribe from this group and stop receiving
emails from it, send an email to
foreman-users+unsubscribe@googlegroups.com<mailto:foreman-users+unsubscribe
@googlegroups.com>. To post to this group, send email to
foreman-users@googlegroups.commailto:foreman-users@googlegroups.com.
Visit this group at https://groups.google.com/group/foreman-users. For more
options, visit https://groups.google.com/d/optout.

Cliquez
ici<https://www.mailcontrol.com/sr/EOEM3ZVr293GX2PQPOmvUrwgXREt4LZXXAqAQLMV
XCvafqbShiwgfxe3n3i2MQredMZNt7X+4loeRLY+cWrx9g==> si ce message est
indésirable (pourriel).


Ce message et toutes les pièces jointes (ci-après le “message”) sont établis
à l’intention exclusive de ses destinataires et sont confidentiels. Si vous
recevez ce message par erreur ou s’il ne vous est pas destiné, merci de le
détruire ainsi que toute copie de votre système et d’en avertir
immédiatement l’expéditeur. Toute lecture non autorisée, toute utilisation
de ce message qui n’est pas conforme à sa destination, toute diffusion ou
toute publication, totale ou partielle, est interdite. L’Internet ne
permettant pas d’assurer l’intégrité de ce message électronique susceptible
d’altération, l’expéditeur (et ses filiales) décline(nt) toute
responsabilité au titre de ce message dans l’hypothèse où il aurait été
modifié ou falsifié.

This message and any attachments (the “message”) is intended solely for the
intended recipient(s) and is confidential. If you receive this message in
error, or are not the intended recipient(s), please delete it and any
copies from your systems and immediately notify the sender. Any
unauthorized view, use that does not comply with its purpose, dissemination
or disclosure, either whole or partial, is prohibited. Since the internet
cannot guarantee the integrity of this message which may not be reliable,
the sender (and its subsidiaries) shall not be liable for the message if
modified or falsified.