Bug 1527007

Summary: After upgrade to 6.3 TFTP files are not created under /var/lib/tftpboot/pxelinux.cfg/ with libvirt hv
Product: Red Hat Satellite Reporter: Michal Dekan <mdekan>
Component: UpgradesAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED DUPLICATE QA Contact: Katello QA List <katello-qa-list>
Severity: urgent Docs Contact:
Priority: urgent    
Version: 6.3.0CC: bbuckingham, ddolguik, inecas, mbacovsk, mdekan, tbrisker
Target Milestone: UnspecifiedKeywords: Regression, Triaged
Target Release: Unused   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-01-17 12:00:20 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
TFTP: false on internal capsule, tab services none

Description Michal Dekan 2017-12-18 10:36:58 UTC
Description of problem:

TFTP on Satellite 6.3 public beta is not generating TFTP files under  /var/lib/tftpboot/pxelinux.cfg/ when trying to provision VM guest on libvirt hv.

Version-Release number of selected component (if applicable):

[root@provisioning ~]# rpm -qa | egrep "satellite|*tftp*"
satellite-cli-6.3.0-21.0.beta.el7sat.noarch
satellite-common-6.3.0-21.0.beta.el7sat.noarch
tftp-server-5.2-13.el7.x86_64
tfm-rubygem-foreman_theme_satellite-1.0.4.11-1.el7sat.noarch
foreman-bootloaders-redhat-tftpboot-201707171807-1.el7sat.noarch
satellite-6.3.0-21.0.beta.el7sat.noarch
satellite-installer-6.3.0.9-1.beta.el7sat.noarch
satellite-capsule-6.3.0-21.0.beta.el7sat.noarch


==> /var/log/messages <==
Dec 18 10:45:54 provisioning dhcpd: Dynamic and static leases present for 192.168.111.119.
Dec 18 10:45:54 provisioning dhcpd: Remove host declaration mdekan-vst-ftp.sysmgmt.lan or remove 192.168.111.119
Dec 18 10:45:54 provisioning dhcpd: from the dynamic address pool for 192.168.111.0/24
Dec 18 10:45:54 provisioning dhcpd: DHCPREQUEST for 192.168.111.119 (192.168.111.1) from 52:54:00:65:4a:7f via ens8
Dec 18 10:45:54 provisioning dhcpd: DHCPACK on 192.168.111.119 to 52:54:00:65:4a:7f via ens8
Dec 18 10:45:54 provisioning in.tftpd[3405]: RRQ from 192.168.111.119 filename pxelinux.0
Dec 18 10:45:54 provisioning in.tftpd[3405]: Client 192.168.111.119 finished pxelinux.0
Dec 18 10:45:54 provisioning in.tftpd[3406]: RRQ from 192.168.111.119 filename pxelinux.cfg/a5b70b51-63db-2d42-9544-d8984ba1213e
Dec 18 10:45:54 provisioning in.tftpd[3406]: Client 192.168.111.119 File not found pxelinux.cfg/a5b70b51-63db-2d42-9544-d8984ba1213e
Dec 18 10:45:54 provisioning in.tftpd[3407]: RRQ from 192.168.111.119 filename pxelinux.cfg/01-52-54-00-65-4a-7f
Dec 18 10:45:54 provisioning in.tftpd[3407]: Client 192.168.111.119 File not found pxelinux.cfg/01-52-54-00-65-4a-7f
Dec 18 10:45:54 provisioning in.tftpd[3408]: RRQ from 192.168.111.119 filename pxelinux.cfg/C0A86F77
Dec 18 10:45:54 provisioning in.tftpd[3408]: Client 192.168.111.119 File not found pxelinux.cfg/C0A86F77
Dec 18 10:45:54 provisioning in.tftpd[3409]: RRQ from 192.168.111.119 filename pxelinux.cfg/C0A86F7
Dec 18 10:45:54 provisioning in.tftpd[3409]: Client 192.168.111.119 File not found pxelinux.cfg/C0A86F7
Dec 18 10:45:54 provisioning in.tftpd[3410]: RRQ from 192.168.111.119 filename pxelinux.cfg/C0A86F
Dec 18 10:45:54 provisioning in.tftpd[3410]: Client 192.168.111.119 File not found pxelinux.cfg/C0A86F
Dec 18 10:45:54 provisioning in.tftpd[3411]: RRQ from 192.168.111.119 filename pxelinux.cfg/C0A86
Dec 18 10:45:54 provisioning in.tftpd[3411]: Client 192.168.111.119 File not found pxelinux.cfg/C0A86
Dec 18 10:45:54 provisioning in.tftpd[3412]: RRQ from 192.168.111.119 filename pxelinux.cfg/C0A8
Dec 18 10:45:54 provisioning in.tftpd[3412]: Client 192.168.111.119 File not found pxelinux.cfg/C0A8
Dec 18 10:45:54 provisioning in.tftpd[3413]: RRQ from 192.168.111.119 filename pxelinux.cfg/C0A
Dec 18 10:45:54 provisioning in.tftpd[3413]: Client 192.168.111.119 File not found pxelinux.cfg/C0A
Dec 18 10:45:54 provisioning in.tftpd[3414]: RRQ from 192.168.111.119 filename pxelinux.cfg/C0
Dec 18 10:45:54 provisioning in.tftpd[3414]: Client 192.168.111.119 File not found pxelinux.cfg/C0
Dec 18 10:45:54 provisioning in.tftpd[3415]: RRQ from 192.168.111.119 filename pxelinux.cfg/C
Dec 18 10:45:54 provisioning in.tftpd[3415]: Client 192.168.111.119 File not found pxelinux.cfg/C
Dec 18 10:45:54 provisioning in.tftpd[3416]: RRQ from 192.168.111.119 filename pxelinux.cfg/default
Dec 18 10:45:54 provisioning in.tftpd[3416]: Client 192.168.111.119 finished pxelinux.cfg/default
Dec 18 10:45:54 provisioning in.tftpd[3417]: RRQ from 192.168.111.119 filename menu
Dec 18 10:45:54 provisioning in.tftpd[3417]: Client 192.168.111.119 File not found menu
Dec 18 10:45:54 provisioning in.tftpd[3418]: RRQ from 192.168.111.119 filename menu.cbt
Dec 18 10:45:54 provisioning in.tftpd[3418]: Client 192.168.111.119 File not found menu.cbt
Dec 18 10:45:54 provisioning in.tftpd[3419]: RRQ from 192.168.111.119 filename menu.0
Dec 18 10:45:54 provisioning in.tftpd[3419]: Client 192.168.111.119 File not found menu.0
Dec 18 10:45:54 provisioning in.tftpd[3420]: RRQ from 192.168.111.119 filename menu.com
Dec 18 10:45:54 provisioning in.tftpd[3420]: Client 192.168.111.119 File not found menu.com
Dec 18 10:45:54 provisioning in.tftpd[3421]: RRQ from 192.168.111.119 filename menu.c32
Dec 18 10:45:54 provisioning in.tftpd[3421]: Client 192.168.111.119 finished menu.c32
Dec 18 10:45:54 provisioning in.tftpd[3422]: RRQ from 192.168.111.119 filename pxelinux.cfg/default
Dec 18 10:45:54 provisioning in.tftpd[3422]: Client 192.168.111.119 finished pxelinux.cfg/default

[root@provisioning ~]# ll /var/lib/tftpboot/pxelinux.cfg/
total 8
-rw-r--r--. 1 foreman-proxy foreman-proxy 164 Dec 14 11:32 01-52-54-00-db-f0-17
-rw-r--r--. 1 foreman-proxy foreman-proxy 523 Oct 28  2016 default
[root@provisioning ~]# 


How reproducible:

100%


Steps to Reproduce:
1. Upgrade 6.2.12 wit set and working libvirt compute resource to 6.3 public beta from cdn repositories
2. Try to provision the VM guest on libvirt with upgraded sat 6.3
3.

Actual results:

VM guest is unable to boot from PXE due to missing files in /var/lib/tftpboot/

Expected results:

Previously working provisioning should work after upgrade.

Additional info

:tftp_servername: undef in /etc/foreman-proxy/settings.d/tftp.yml tried to fix it with

]# satellite-installer --scenario satellite --foreman-proxy-tftp true --foreman-proxy-tftp-servername 192.168.111.1

It did update the config file with ip but still files are not generated on tftp.

Comment 2 Michal Dekan 2017-12-18 11:42:59 UTC
Created attachment 1369384 [details]
TFTP: false on internal capsule, tab services

Internal capsule (provisioning.sysmgmt.lan) used for provisioning and hosting tftp server reports "tftp: false" in webui, see attachment.

Comment 4 Lukas Zapletal 2017-12-18 14:17:17 UTC
This is actually installer/upgrade issue, no TFTP regression in the code itself. I can't tell if the customer turned off TFTP by mistake during their installer runs or this actually regressed somewhere in kafo/installer. I will let installer team to investigate and tell.

Comment 7 Ivan Necas 2018-01-17 12:00:20 UTC
It turned out the issue with tftp files was not cause by the configuration of tftp, but rather an issue with selected PXE loader. Closing as a duplicate of #1523059

I've created a separate issue for the TFTP server false https://bugzilla.redhat.com/show_bug.cgi?id=1535437, but this is not related to upgrades (has been there in 6.2 as well) and should not have any effect on the provisioning itself: it's just an issue with properly displaying the data.

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