Autodetecting RAID Arrays results in no partitions found

Problem:
New install of Foreman, with Katello. Coming from Spacewalk which is discontinued since May.
I got Foreman up and running, with DHCP and TFTP working. My server boots over the network but fails to discover any partitions in my RAID configuration, i.e. first stage boot seems to work but then throws a kernel panic.

Expected outcome:
Start installing CentOS 7,
Foreman and Proxy versions:
Foreman 2.0.1, Katello 3.15.2

Foreman and Proxy plugin versions:

Distribution and version:
CentOS 7.8.2003

Other relevant data:
Screenshot of iLO: https://snipboard.io/Qlf0tH.jpg

Any help is greatly appreciated.

Kind regards,

Eric V.

Hi,

I was able to fix the disk/partition issue, was pointing to the wrong bootloader, changing to grubx64.efi did the trick.
But now I’m confronted with the issue that the system can’t seem to find the kickstart file. See screenshot: https://snipboard.io/Zv2GF1.jpg.

If I wait long enough I get dropped into a dracut shell, in which I did confirm that I have access to the Foreman server on port 8000, that DNS resolves correct and that the file exists.
What am I missing here?

Kind regards,

Eric V.

1 Like

there are two errors in that screenshot, one is that you have a duplicate
ip address? The other is that the server returned 500, I suggest looking
into the server logs to say why it failed, I suspect a failed template or
something along those lines…

Hey,

server replied 500, something unexpected happened. What’s in production.log?

Yeah, PXELinux BIOS or PXEGrub2 UEFI must be set appropriately, Foreman does not detect what environment are you booting. It must match the host.

Hi,
Thanks for your replies, really appreciated. I haven’t had time to address this again, so apologies for a late reply.

Whatever I try I can’t seem to get rid of the duplicate IP address message. My server gets a DHCP address assigned correctly and then goes into first stage. My understanding is that if I configure an IP on the interface when I create a host in Foreman it will configure that IP address on said interface, correct?
So how can it be a duplicate IP if it’s not configured yet?

I’m going through the documentation and the logs today to see if I can find any indication on why the errors are popping up, but I don’t see the logic for the duplicate IP error message.

Kind regards,

Eric V.

Hi again,

Here are entries from the production.log when trying to install my server:

020-07-15T15:55:16 [I|app|3d0056dd] Started GET "/unattended/provision?token=cb3c3d66-3f1c-4964-affd-79430a2b5050&url=http%3A%2F%2Ftw-stg-man01.app-stg01.activeinfra.net%3A8000" for tw-stg-man01.app-stg01.activeinfra.net at 2020-07-15 15:55:16 +0800
2020-07-15T15:55:16 [I|app|3d0056dd] Processing by UnattendedController#host_template as TEXT
2020-07-15T15:55:16 [I|app|3d0056dd]   Parameters: {"token"=>"cb3c3d66-3f1c-4964-affd-79430a2b5050", "url"=>"http://tw-stg-man01.app-stg01.activeinfra.net:8000", "kind"=>"provision", "unattended"=>{}}
2020-07-15T15:55:16 [E|app|3d0056dd] unattended: unable to find a host that matches the request from 10.34.0.31
2020-07-15T15:55:16 [I|app|3d0056dd]   Rendering text template
2020-07-15T15:55:16 [I|app|3d0056dd]   Rendered text template (0.0ms)
2020-07-15T15:55:16 [I|app|3d0056dd] Completed 404 Not Found in 17ms (Views: 1.2ms | ActiveRecord: 3.1ms)
2020-07-15T15:55:17 [I|app|5df1575a] Started GET "/unattended/provision?token=cb3c3d66-3f1c-4964-affd-79430a2b5050&url=http%3A%2F%2Ftw-stg-man01.app-stg01.activeinfra.net%3A8000" for tw-stg-man01.app-stg01.activeinfra.net at 2020-07-15 15:55:17 +0800
2020-07-15T15:55:17 [I|app|5df1575a] Processing by UnattendedController#host_template as TEXT
2020-07-15T15:55:17 [I|app|5df1575a]   Parameters: {"token"=>"cb3c3d66-3f1c-4964-affd-79430a2b5050", "url"=>"http://tw-stg-man01.app-stg01.activeinfra.net:8000", "kind"=>"provision", "unattended"=>{}}
2020-07-15T15:55:17 [E|app|5df1575a] unattended: unable to find a host that matches the request from 10.34.0.31
2020-07-15T15:55:17 [I|app|5df1575a]   Rendering text template
2020-07-15T15:55:17 [I|app|5df1575a]   Rendered text template (0.0ms)
2020-07-15T15:55:17 [I|app|5df1575a] Completed 404 Not Found in 32ms (Views: 1.4ms | ActiveRecord: 2.8ms)
2020-07-15T15:55:20 [I|app|facc353a] Started GET "/unattended/provision?token=cb3c3d66-3f1c-4964-affd-79430a2b5050&url=http%3A%2F%2Ftw-stg-man01.app-stg01.activeinfra.net%3A8000" for tw-stg-man01.app-stg01.activeinfra.net at 2020-07-15 15:55:20 +0800
2020-07-15T15:55:20 [I|app|facc353a] Processing by UnattendedController#host_template as TEXT
2020-07-15T15:55:20 [I|app|facc353a]   Parameters: {"token"=>"cb3c3d66-3f1c-4964-affd-79430a2b5050", "url"=>"http://tw-stg-man01.app-stg01.activeinfra.net:8000", "kind"=>"provision", "unattended"=>{}}
2020-07-15T15:55:20 [E|app|facc353a] unattended: unable to find a host that matches the request from 10.34.0.31
2020-07-15T15:55:20 [I|app|facc353a]   Rendering text template
2020-07-15T15:55:20 [I|app|facc353a]   Rendered text template (0.0ms)
2020-07-15T15:55:20 [I|app|facc353a] Completed 404 Not Found in 16ms (Views: 1.1ms | ActiveRecord: 2.4ms)
2020-07-15T15:55:24 [I|app|ad984999] Started GET "/notification_recipients" for 10.34.34.2 at 2020-07-15 15:55:24 +0800
2020-07-15T15:55:24 [I|app|ad984999] Processing by NotificationRecipientsController#index as JSON
2020-07-15T15:55:24 [I|app|ad984999] Completed 200 OK in 23ms (Views: 0.8ms | ActiveRecord: 2.0ms)
2020-07-15T15:55:24 [I|app|2fb069e6] Started GET "/unattended/provision?token=cb3c3d66-3f1c-4964-affd-79430a2b5050&url=http%3A%2F%2Ftw-stg-man01.app-stg01.activeinfra.net%3A8000" for tw-stg-man01.app-stg01.activeinfra.net at 2020-07-15 15:55:24 +0800
2020-07-15T15:55:24 [I|app|2fb069e6] Processing by UnattendedController#host_template as TEXT
2020-07-15T15:55:24 [I|app|2fb069e6]   Parameters: {"token"=>"cb3c3d66-3f1c-4964-affd-79430a2b5050", "url"=>"http://tw-stg-man01.app-stg01.activeinfra.net:8000", "kind"=>"provision", "unattended"=>{}}
2020-07-15T15:55:24 [E|app|2fb069e6] unattended: unable to find a host that matches the request from 10.34.0.31
2020-07-15T15:55:24 [I|app|2fb069e6]   Rendering text template
2020-07-15T15:55:24 [I|app|2fb069e6]   Rendered text template (0.0ms)

Can you please give me a push in the right direction? The documentation is overwhelming to me :-).

Kind regards,

Eric V.

When provisioning endpoint returns 404 it means that the token has expired. By default it has 6 hours expiration (Administer - Settings - token duration). Exit build mode by clicking on Cancel build and click on Build again.

Hi,

Thanks for your reply. I’ve been breaking my head over this and can’t get it to work at all.
Been spending so many hours on this that my head is spinning. Foreman is so much more complicated than Spacewalk :frowning:

I’ll give it another try over the weekend to dig in deep.

Kind regards,

Eric V.

Well Foreman can do a lot more. Granted it’s not easy to start with.

Alongside with our official docs, we have some WIP documentation which can also help to understand some concepts. It is focused on Foreman with Katello deployment scenario tho: https://docs.theforeman.org/web/