Bug 1102876 - [Rubygem-Staypuft] staypuft tftp files under /var/lib/tftpboot/boot are 0 byte image size (attach screen-shot).
Summary: [Rubygem-Staypuft] staypuft tftp files under /var/lib/tftpboot/boot are 0 by...
Keywords:
Status: CLOSED DUPLICATE of bug 1105594
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: rubygem-staypuft
Version: 4.0
Hardware: x86_64
OS: Linux
high
high
Target Milestone: ---
: 4.0
Assignee: Marek Hulan
QA Contact: Omri Hochman
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-05-29 18:15 UTC by Omri Hochman
Modified: 2014-08-05 13:35 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-08-05 13:35:49 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
screen-shot (319.53 KB, image/png)
2014-05-29 18:15 UTC, Omri Hochman
no flags Details

Description Omri Hochman 2014-05-29 18:15:09 UTC
[Rubygem-Staypuft] staypuft tftp files under /var/lib/tftpboot/boot  are 0 byte image size (attach screen-shot).

Environment  (puddle : OpenStack/Foreman/2014-05-22.2/) 
-------------------------------------------------------
ruby193-rubygem-staypuft-0.0.16-1.el6ost.noarch
foreman-installer-staypuft-0.0.13-2.el6ost.noarch
openstack-puppet-modules-2013.2-9.1.el6ost.noarch
puppet-3.3.2-2.el6.noarch
puppet-server-3.3.2-2.el6.noarch
foreman-1.6.0.9-1.el6sat.noarch


Steps:
------
(1) Install staypuft server. 
(2) Auto-discover client .
(3) Create a new deployment --> attempt to 'Deploy'.


Results:   ( See attach screen-shot) 
--------
-Client Provision get stuck --> Cannot find the tftp files under   /var/lib/tftpboot/boot

-Looking at the staypuft:/var/lib/tftpboot/boot the files are 0 byte,.
RedHat-6.5-x86_64-initrd.img    0 byte
RedHat-6.5-x86_64-vmlinuz   0 byte 



To Workaround:  (download again those files manually) 
--------------------------------------------------------
cd /var/lib/tftpboot/boot
wget
http://download.eng.bos.redhat.com/released/RHEL-6/6.5/Server/x86_64/os/images/pxeboot/initrd.img -O RedHat-6.5-x86_64-initrd.img

wget http://download.eng.bos.redhat.com/released/RHEL-6/6.5/Server/x86_64/os/images/pxeboot/vmlinuz-O RedHat-6.5-x86_64-vmlinuz

Comment 1 Omri Hochman 2014-05-29 18:15:44 UTC
Created attachment 900479 [details]
screen-shot

Comment 2 Mike Burns 2014-05-29 18:33:58 UTC
Marek, any ideas with this?  The 0-size files seem to show up when triggering the deployment of openstack.  It happens with both nfs:// and http://

Comment 3 Andrew Cathrow 2014-05-29 20:00:07 UTC
Do we believe this will be relevant for OSP5?

Comment 4 Andrew Cathrow 2014-05-29 20:06:19 UTC
Do we believe this will be relevant for OSP5?

Comment 5 Omri Hochman 2014-05-29 20:14:23 UTC
(In reply to Andrew Cathrow from comment #3)
> Do we believe this will be relevant for OSP5?

Yes - this issue would probably effect any release.  If I understand correctly the next major version that coming is OSP5 (even before A5). so maybe it makes more sense to switch this bug to OSP5 .

Comment 6 Marek Hulan 2014-05-30 08:37:10 UTC
Could you please attach your foreman's installation media configuration? Seems like proxy can't download these files from it.

Comment 9 Marek Hulan 2014-06-03 06:23:19 UTC
So there are three possible ways how to cause 0 bytes files.

1) wrong subscription manager credentials
2) wrong repo url
both 1 and 2 have the same solution, you fix values in foreman UI and then just create a new host with particular OS. You can use any mac address, we just need to build new host so images are refreshed and downloaded, you can remove the host just after you create it. Also new openstack deployment should fix it automatically. So we just have to make sure that credentials and url is correct before we start.

Although I agree that we should verify wrong values beforehand, but it's not currently possible without big changes in foreman. I don't think this is high priority - since it's user's issue and he can fix it easily.

3) wrong repo url protocol

nfs:// protocol is not supported so you have to download files manually in such case, only http:// and https:// is supported, later we could add file://

Comment 10 Mike Burns 2014-08-05 13:35:49 UTC

*** This bug has been marked as a duplicate of bug 1105594 ***


Note You need to log in before you can comment on or make changes to this bug.