[cobbler] cobbler 2.4.0, Fedora 17, eth0 and em1

James Cammarata jimi at sngx.net
Wed Nov 21 06:25:57 UTC 2012


On Wed, Nov 21, 2012 at 12:13 AM, Zack Perry <zack.perry at sbcglobal.net> wrote:
> Hi James,
>
> [...]
>> > IMHO, this should be considered as a bug.
>>
>> Well that's odd, it works as expected on my system with the
>> master branch:
>>
>> # cobbler system edit --name=test --interface=em1
>> --mac=random
>> # cobbler system report --name=test | grep "^Interface ="
>> Interface =====
>>     : em1
>> Interface =====
>>     : eth0
>> # cobbler system edit --name=test --interface=em1
>> --delete-interface
>> # cobbler system report --name=test | grep "^Interface ="
>> Interface =====
>>     : eth0
>>
>> And on release24:
>>
>> # cobbler system edit --name=test --interface=em1
>> --mac=random
>> # cobbler system report --name=test | grep "^Interface ="
>> Interface =====
>>     : em1
>> Interface =====
>>     : eth0
>> # cobbler system edit --name=test --interface=em1
>> --delete-interface
>> # cobbler system report --name=test | grep "^Interface ="
>> Interface =====
>>     : eth0
>> # cobbler version
>> Cobbler 2.4.0
>>   source: fe754cc, Fri Oct 12 16:59:48 2012 -0500
>>   build time: Tue Nov 20 23:17:22 2012
>
> Just to compare notes, I have attached my test session below.
> Please review.  As you can see, I used 'cobbler system add' and em1
> to replace the default and secret eth0.
>
> Then, I used the cobbler system edit --name=nb2 --interface=eth0
> to add a 2nd interface to the system object.
>
> The first observation: I didn't see two interfaces in the
> cobbler system report after the addition of the eth0.  Yours however
> has two interfaces.
>
> But then, my attempt to delete the em1 interface failed.  I will
> try to figure out what's going on with a debugger.
>
> Regards,
>
> -- Zack
>
>
> [root at cobbler ~]# !928
> cobbler system add --name="nb2" --profile="fedora17-ph-x86_64" --interface=em1 --static=1 --mac="e8:9a:8f:17:1b:eb" --ip-address="192.168.1.12" --dns-name=nb2 --gateway=192.168.1.254 --subnet="255.255.255.0" --hostname="nb2"
> [root at cobbler ~]# cobbler system report --name=nb2
> Name                           : nb2
> TFTP Boot Files                : {}
> Comment                        :
> Enable gPXE?                   : 0
> Fetchable Files                : {}
> Gateway                        : 192.168.1.254
> Hostname                       : nb2
> Image                          :
> IPv6 Autoconfiguration         : False
> IPv6 Default Device            :
> Kernel Options                 : {}
> Kernel Options (Post Install)  : {}
> Kickstart                      : <<inherit>>
> Kickstart Metadata             : {}
> LDAP Enabled                   : False
> LDAP Management Type           : authconfig
> Management Classes             : []
> Management Parameters          : <<inherit>>
> Monit Enabled                  : False
> Name Servers                   : []
> Name Servers Search Path       : []
> Netboot Enabled                : True
> Owners                         : ['admin']
> Power Management Address       :
> Power Management ID            :
> Power Management Password      :
> Power Management Type          : ipmitool
> Power Management Username      :
> Profile                        : fedora17-ph-x86_64
> Proxy                          : <<inherit>>
> Red Hat Management Key         : <<inherit>>
> Red Hat Management Server      : <<inherit>>
> Repos Enabled                  : False
> Server Override                : <<inherit>>
> Status                         : production
> Template Files                 : {}
> Virt Auto Boot                 : <<inherit>>
> Virt CPUs                      : <<inherit>>
> Virt Disk Driver Type          : <<inherit>>
> Virt File Size(GB)             : <<inherit>>
> Virt Path                      : <<inherit>>
> Virt RAM (MB)                  : <<inherit>>
> Virt Type                      : <<inherit>>
> Interface =====                : em1
> Bonding Opts                   :
> Bridge Opts                    :
> DHCP Tag                       :
> DNS Name                       : nb2
> Master Interface               :
> Interface Type                 :
> IP Address                     : 192.168.1.12
> IPv6 Address                   :
> IPv6 Default Gateway           :
> IPv6 MTU                       :
> IPv6 Secondaries               : []
> IPv6 Static Routes             : []
> MAC Address                    : e8:9a:8f:17:1b:eb
> Management Interface           : False
> MTU                            :
> Subnet Mask                    : 255.255.255.0
> Static                         : True
> Static Routes                  : []
> Virt Bridge                    :
>
> [root at cobbler ~]# cobbler system edit --name=nb2 --interface=eth0
> [root at cobbler ~]# cobbler system report --name=nb2
> Name                           : nb2
> TFTP Boot Files                : {}
> Comment                        :
> Enable gPXE?                   : 0
> Fetchable Files                : {}
> Gateway                        : 192.168.1.254
> Hostname                       : nb2
> Image                          :
> IPv6 Autoconfiguration         : False
> IPv6 Default Device            :
> Kernel Options                 : {}
> Kernel Options (Post Install)  : {}
> Kickstart                      : <<inherit>>
> Kickstart Metadata             : {}
> LDAP Enabled                   : False
> LDAP Management Type           : authconfig
> Management Classes             : []
> Management Parameters          : <<inherit>>
> Monit Enabled                  : False
> Name Servers                   : []
> Name Servers Search Path       : []
> Netboot Enabled                : True
> Owners                         : ['admin']
> Power Management Address       :
> Power Management ID            :
> Power Management Password      :
> Power Management Type          : ipmitool
> Power Management Username      :
> Profile                        : fedora17-ph-x86_64
> Proxy                          : <<inherit>>
> Red Hat Management Key         : <<inherit>>
> Red Hat Management Server      : <<inherit>>
> Repos Enabled                  : False
> Server Override                : <<inherit>>
> Status                         : production
> Template Files                 : {}
> Virt Auto Boot                 : <<inherit>>
> Virt CPUs                      : <<inherit>>
> Virt Disk Driver Type          : <<inherit>>
> Virt File Size(GB)             : <<inherit>>
> Virt Path                      : <<inherit>>
> Virt RAM (MB)                  : <<inherit>>
> Virt Type                      : <<inherit>>
> Interface =====                : em1
> Bonding Opts                   :
> Bridge Opts                    :
> DHCP Tag                       :
> DNS Name                       : nb2
> Master Interface               :
> Interface Type                 :
> IP Address                     : 192.168.1.12
> IPv6 Address                   :
> IPv6 Default Gateway           :
> IPv6 MTU                       :
> IPv6 Secondaries               : []
> IPv6 Static Routes             : []
> MAC Address                    : e8:9a:8f:17:1b:eb
> Management Interface           : False
> MTU                            :
> Subnet Mask                    : 255.255.255.0
> Static                         : True
> Static Routes                  : []
> Virt Bridge                    :
>

The problem is above - note that no new interface is in the output,
there is only em1 still. You need to specify some other option like
--mac=random to actually have the interface created.


More information about the cobbler mailing list