Support #22283
closed
Bootdisk generates empty iso
Added by michele pezzi over 6 years ago.
Updated over 6 years ago.
Description
HI,
i try to create an iso image in this way :
[
root@foo.foo public]# foreman-rake bootdisk:generate:host NAME=host.foo.it OUTPUT=/var/lib/foreman/public/host --trace
- Invoke bootdisk:generate:host (first_time)
- Invoke environment (first_time)
- Execute environment
- Execute bootdisk:generate:host
I: -input-charset not specified, using utf-8 (detected in locale settings)
Size of boot image is 4 sectors -> No emulation
Total translation table size: 2048
Total rockridge attributes bytes: 0
Total directory bytes: 0
Path table size(bytes): 10
Max brk space used 0
328 extents written (0 MB)
Wrote /var/lib/foreman/public/host
But the iso is empty.
what is my error?
- Project changed from Foreman to Boot disk
- Subject changed from bootdisk - empty iso to Bootdisk generates empty iso
- Category deleted (
Rake tasks)
- Priority changed from High to Normal
Hey, we don't know what is your error. Check production.log there you have it.
- Priority changed from Normal to High
i see that :
2018-01-16 14:54:23 [app] [I] Current user: foreman_admin (administrator)
2018-01-16 14:54:23 [app] [I] Current user: foreman_admin (administrator)
2018-01-16 14:54:24 [app] [I] Current user: foreman_admin (administrator)
2018-01-16 14:54:24 [templates] [I] Rendering template 'Unnamed'
2018-01-16 14:54:24 [dynflow] [I] start terminating throttle_limiter...
2018-01-16 14:54:24 [dynflow] [I] start terminating client dispatcher...
2018-01-16 14:54:24 [dynflow] [I] stop listening for new events...
2018-01-16 14:54:24 [dynflow] [I] start terminating clock...
- Priority changed from High to Normal
Ensure the host host.foo.it exists. Ensure the directory is writeable by foreman user. Add missing ISO extension:
foreman-rake bootdisk:generate:host NAME=host.foo.it OUTPUT=/tmp/test.iso
Hi,
The directory /var/lib/foreman /var/lib/foreman/public are both writeable by foreman user and the host.foo.it exist (i create and i see it on the web interface).
The production log and the command output are the same as in the previous message.
[root@foreman_server public]# foreman-rake bootdisk:generate:host NAME=host.foo.it OUTPUT=/var/lib/foreman/public/host.foo.it --trace
- Invoke bootdisk:generate:host (first_time)
- Invoke environment (first_time)
- Execute environment
- Execute bootdisk:generate:host
I: -input-charset not specified, using utf-8 (detected in locale settings)
Size of boot image is 4 sectors -> No emulation
Total translation table size: 2048
Total rockridge attributes bytes: 0
Total directory bytes: 0
Path table size(bytes): 10
Max brk space used 0
328 extents written (0 MB)
Wrote /var/lib/foreman/public/host.foo.it
2018-01-17 11:07:29 3ebf011c [app] [I] Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.3ms)
2018-01-17 11:07:30 [app] [I] Current user: foreman_admin (administrator)
2018-01-17 11:07:30 [app] [I] Current user: foreman_admin (administrator)
2018-01-17 11:07:31 [app] [I] Current user: foreman_admin (administrator)
2018-01-17 11:07:32 [templates] [I] Rendering template 'Unnamed'
drwxr-xr-x 5 foreman foreman 41 Jan 15 13:09 foreman
drwxr-xr-x 5 foreman foreman 148 Jan 16 14:54 public
The command
foreman-rake bootdisk:generate:host NAME=host.foo.it OUTPUT=/var/lib/foreman/public/host.foo.it --trace
should work only if the host is in "build mode" ? because if the host isn't in "build mode" the output is the same.
Yes must be in build mode. By the way, when you download the same disk from UI, does it work? If it does, workaround might be to use API/hammer CLI to get the ISO.
it doesn't work. The host reach installation media, and then download the vmlinuz etc.., but then it doesn't go through the installation process.
- Status changed from New to Resolved
hi,
i found the problem and i fix it.
The database was corrupted during the import after a new foreman server installation.
thank you for the support
Also available in: Atom
PDF