Project

General

Profile

Actions

Bug #12480

closed

Error when trying to provision a new VM via network based install

Added by Anthony Lapenna about 9 years ago. Updated over 7 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

Hello,

This error appears occasionally when trying to provision a VM on a VMWARE provider via a network based install (see image in attachment).

This error can be viewed on the virtual machine itself by accessing it via the vSphere client console.

When trying to check the URL it returns a 404 code.

$ curl -w %{http_code} -s -o /dev/null 'http://foreman.wit.prod:80/unattended/finish?token=09077d68-1c31-439f-8265-2bc8071a6e00'
404

Note that this issue does not block the provisioning, you can just press enter to continue and the installation will proceed.


Files

image.png View image.png 51.8 KB Anthony Lapenna, 11/14/2015 01:13 PM
foreman_host_creation_log.txt foreman_host_creation_log.txt 202 KB Anthony Lapenna, 11/16/2015 05:26 AM
foreman_host_creation_log_2.txt foreman_host_creation_log_2.txt 58.7 KB Anthony Lapenna, 11/16/2015 05:36 AM
foreman_host_creation_log_3.txt foreman_host_creation_log_3.txt 27.9 KB Anthony Lapenna, 11/16/2015 05:44 AM
Actions #1

Updated by Dominic Cleal about 9 years ago

  • Status changed from New to Need more information

Could you provide the logs from Foreman (/var/log/foreman/production.log) during the request from the installation? This should show where the problem is - e.g. it doesn't recognise the host, a template error etc. Although it may not stop installation, it probably prevents the finish script from running.

Actions #2

Updated by Anthony Lapenna about 9 years ago

I've attached the logs related to the installation request.

Actions #3

Updated by Dominic Cleal about 9 years ago

The log shows an image build, not a network install. It also doesn't show the finish template request, so either, a) the log's wrong, or b) the request isn't making it to Foreman (some network, DNS etc issue).

Actions #4

Updated by Anthony Lapenna about 9 years ago

My bad, it seems that the VM has been built via image, deleted and then rebuilt via network.

Logs attached.

Actions #5

Updated by Dominic Cleal about 9 years ago

Do you have any later logs? You should see requests for:

/unattended/provision - the main preseed, which must be working to have got it that far
/unattended/finish - the finish script, which appears to be failing

Actions #7

Updated by Dominic Cleal about 9 years ago

  • Status changed from Need more information to Feedback

The log shows multiple requests to /finish, the first of which is working fine (2015-11-13T13:41:10). The ones later (2015-11-13T13:46:42) are probably you testing, but the server was built by that stage so they returned 404.

I think the screenshot is probably instead saying that something inside your finish script failed. Have a look at the template and the preview and try to debug it - perhaps a command is failing. You can always add some logging to it, e.g.

(
... commands
) 2>&1 | tee /root/install.post.log

and check the log on the server after installation.

Actions #8

Updated by Anthony Lapenna about 9 years ago

Ok, I'll try to debug my finish script.

Actions #9

Updated by Anonymous over 7 years ago

  • Status changed from Feedback to Resolved
Actions

Also available in: Atom PDF