Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1193023 - Networking configuration snippet should be used during image based provisioning
Networking configuration snippet should be used during image based provisioning
Status: CLOSED ERRATA
Product: Red Hat Satellite 6
Classification: Red Hat
Component: Provisioning (Show other bugs)
6.0.4
Unspecified Unspecified
unspecified Severity high (vote)
: Unspecified
: Unused
Assigned To: Marek Hulan
Kedar Bidarkar
http://projects.theforeman.org/issues...
: Triaged
Depends On: 1193460
Blocks:
  Show dependency treegraph
 
Reported: 2015-02-16 07:10 EST by Marek Hulan
Modified: 2017-02-23 15:30 EST (History)
6 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2015-08-12 01:26:01 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Foreman Issue Tracker 9287 None None None 2016-04-22 12:12 EDT
Red Hat Product Errata RHSA-2015:1592 normal SHIPPED_LIVE Important: Red Hat Satellite 6.1.1 on RHEL 6 2015-08-12 05:04:35 EDT

  None (edit)
Description Marek Hulan 2015-02-16 07:10:54 EST
Currently we run the configuring snippet only when we provision using PXE, we can include the same snippet in finish templates. We'll have to restart networking as well because host is not rebooted after finish script is run.
Comment 1 Marek Hulan 2015-02-16 07:10:56 EST
Created from redmine issue http://projects.theforeman.org/issues/9287
Comment 3 Bryan Kearney 2015-02-16 08:05:00 EST
Moving to POST since upstream bug http://projects.theforeman.org/issues/9287 has been closed
Comment 5 Marek Hulan 2015-02-16 10:25:15 EST
Katello part is here https://github.com/Katello/katello/pull/5012
Comment 7 Tazim Kolhar 2015-04-21 06:20:42 EDT
hi

please provide verification steps

thanks
Comment 8 Marek Hulan 2015-04-24 07:18:08 EDT
Try to provision a host with additional interfaces, using image based provisioning (finish template is used). Make sure that the interface is configured on that host.
Comment 9 Kedar Bidarkar 2015-05-05 11:59:32 EDT
I am currently using 

a) image based provisioning (on libvirt)
b) using finish based template 
c) when trying to provision a host with additional interfaces, the "ifcfg-" file get's created. 
d) Under the network tab and under the vm tab I had selected the "add interface options"

Looks like I am missing something in here. Need help here.
Comment 10 Marek Hulan 2015-05-06 03:51:16 EDT
How did you set the additional interface, what values did you use? It should be able to create additional virtual interfaces (vlans, aliases), but you probably can't setup additional physical interfaces because you don't know the MAC until the machine is created, so the Foreman can't find the real interface name.
Comment 11 Kedar Bidarkar 2015-05-06 06:06:47 EDT
Now I feel, I don't know how to test this bug, if I go as per you comment 10.

I might really be missing soemthing.

The comment 8 says,

a) I need to use additional interface (whihc means use "Add interface")
b) Use image based provisioning with finish tempalte (which means I need to use either 'rhevm or libvirt', taking into consideration step a), no openstack as for openstack we cannot "add interface")

So wondering how can we check this if we cannot know the MAC address until the machine is created and real interface name not known?
Comment 12 Kedar Bidarkar 2015-05-06 10:05:26 EDT
This bug can only be verified once Bug 1193460 is FIXED.
Comment 13 Kedar Bidarkar 2015-05-18 07:11:32 EDT
As we need to use virtual interfaces with aliases and that not possible to configure currently due to the bug 1193460, wondering is there any other way to verify this bug.
Comment 14 Marek Hulan 2015-05-18 08:03:36 EDT
Just review other than virtual interfaces. E.g. use baremetal with two interfaces and configure second interface (you have to know MAC), verify its configuration file.
Comment 15 Kedar Bidarkar 2015-05-19 05:19:41 EDT
This requires image based provisioning, so thinking baremetal would not be of much use here.
Comment 16 Marek Hulan 2015-05-19 06:26:00 EDT
Right, sorry I forgot you want to test image template explicitly. You may try to configure additional interface for image based provisioning since the finish script is run later so it might work. At least we should see that it tried to create config file (that was subject of this BZ). If it creates the file with wrong MAC, it will be fixed by bug 1193460
Comment 17 Kedar Bidarkar 2015-05-19 13:05:53 EDT
currently it creates a ifcfg-:0 device file when trying to create using virtual NIC's.

I don't know how to configure additional interface when using image based provisioning apart from virtual NIC's.
Comment 18 Marek Hulan 2015-05-22 02:49:01 EDT
You can add additional interfaces in "Virtual Machine" tab using "+ Add Interface"  button, unfortunately this won't help since we won't get the MAC from libvirt. So running the configuration snippet for image based provisioning is not much useful now but you've verified that it's being run.
Comment 19 Kedar Bidarkar 2015-06-04 06:57:45 EDT
VERIFIED this bug with Sat6.1-GA-SNAP3 

Networking configuration snippet does get used during image based provisioning, but currently it does not create an interface properly due to bug 1193460.

so I will be moving this bug to VERIFIED state.
Comment 20 Bryan Kearney 2015-08-11 09:30:35 EDT
This bug is slated to be released with Satellite 6.1.
Comment 21 errata-xmlrpc 2015-08-12 01:26:01 EDT
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2015:1592

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