Project

General

Profile

Bug #7853

installer fails on curl when using the discovery plugin "install_images: true"

Added by Jorick Astrego almost 8 years ago. Updated over 6 years ago.

Status:
Rejected
Priority:
Normal
Assignee:
-
Category:
Foreman modules
Target version:
-
Difficulty:
Triaged:
No
Bugzilla link:
Pull request:
Fixed in Releases:
Found in Releases:

Description

When using the auto discovery download in the answers file ( "foreman::plugin::discovery": install_images: true ), I get the errors below. This is strange because when I run the same command manually from the server, the files download without errors.

What does "returned 23 instead of one of [0]" imply?

/usr/bin/curl -s http://downloads.theforeman.org/discovery/releases/latest/foreman-discovery-image-latest.el6.iso-vmlinuz -o /var/lib/tftpboot/boot/foreman-discovery-image-latest.el6.iso-vmlinuz returned 23 instead of one of [0]
/Stage[main]/Foreman::Plugin::Discovery/Foreman::Remote_file[/var/lib/tftpboot/boot/foreman-discovery-image-latest.el6.iso-vmlinuz]/Exec[retrieve_/var/lib/tftpboot/boot/foreman-discovery-image-latest.el6.iso-vmlinuz]/returns: change from notrun to 0 failed: /usr/bin/curl -s http://downloads.theforeman.org/discovery/releases/latest/foreman-discovery-image-latest.el6.iso-vmlinuz -o /var/lib/tftpboot/boot/foreman-discovery-image-latest.el6.iso-vmlinuz returned 23 instead of one of [0]
/usr/bin/curl -s http://downloads.theforeman.org/discovery/releases/latest/foreman-discovery-image-latest.el6.iso-img -o /var/lib/tftpboot/boot/foreman-discovery-image-latest.el6.iso-img returned 23 instead of one of [0]
/Stage[main]/Foreman::Plugin::Discovery/Foreman::Remote_file[/var/lib/tftpboot/boot/foreman-discovery-image-latest.el6.iso-img]/Exec[retrieve_/var/lib/tftpboot/boot/foreman-discovery-image-latest.el6.iso-img]/returns: change from notrun to 0 failed: /usr/bin/curl -s http://downloads.theforeman.org/discovery/releases/latest/foreman-discovery-image-latest.el6.iso-img -o /var/lib/tftpboot/boot/foreman-discovery-image-latest.el6.iso-img returned 23 instead of one of [0]

History

#1 Updated by Lukas Zapletal almost 8 years ago

  • Status changed from New to Need more information

Hello,

as the curl's man page says:

23     Write error. Curl couldn't write data to a local filesystem or similar

Can you make sure you have enought free space on the device?

#2 Updated by Dominic Cleal almost 8 years ago

  • Project changed from Foreman to Installer
  • Category set to Foreman modules

#3 Updated by Jorick Astrego almost 8 years ago

That was the obvious thing to check, no diskspace problems as it's a fresh install with plenty of space...

The exact same url works perfectly when I do it from cli after or before I run the installer.

Can it be a permission error? Does it switch to another user to do curl?

It could be selinux although I can't find curl in audit.log

#4 Updated by Marek Hulán almost 8 years ago

No, the installer runs puppet (that runs curl) under same user (probably root). After you run the installer and it fails with code 23, are the files present and if so is their size > 0?

#5 Updated by Lukas Zapletal almost 8 years ago

I've just tested against nightly and images download fine. Please double check your volumes.

#6 Updated by Tomer Brisker over 6 years ago

  • Status changed from Need more information to Rejected

Could not be reproduced, no activity over a year. Closing.

Also available in: Atom PDF