Error when using ("foreman::plugin::discovery": install_images: true) on install

Hi,

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]

Kind regards,

Jorick Astrego
Netbulae B.V.

curl's exit code of 23 means: "Write error. Curl couldn't write data to
a local filesystem or similar".

Could the disk have been temporarily full, or something along those lines?

··· On 06/10/14 12:39, Jorick Astrego wrote: > Hi, > > 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]


Dominic Cleal
Red Hat Engineering