For 2.4.0, the workflow documented in the cobbler man page doesn't work:
Interfaces can be deleted using the --delete-interface option.
Example:
cobbler system edit --name=foo --interface=eth2 --delete-interface
Actual session:
[root@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 : sl6-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@cobbler ~]# cobbler system edit --name=nb2 --interface=em1 --delete-interface At least one interface needs to be defined. [root@cobbler ~]#
IMHO, this should be considered as a bug.
Regards,
-- Zack
On Tue, Nov 20, 2012 at 11:06 PM, Zack Perry zack.perry@sbcglobal.net wrote:
For 2.4.0, the workflow documented in the cobbler man page doesn't work:
Interfaces can be deleted using the --delete-interface option. Example: cobbler system edit --name=foo --interface=eth2 --delete-interface
Actual session:
...
[root@cobbler ~]# cobbler system edit --name=nb2 --interface=em1 --delete-interface At least one interface needs to be defined. [root@cobbler ~]#
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
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@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@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@cobbler ~]# cobbler system edit --name=nb2 --interface=eth0 [root@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@cobbler ~]# cobbler system edit --name=nb2 --interface=em1 --delete-interface At least one interface needs to be defined. [root@cobbler ~]# cobbler version Cobbler 2.4.0 source: ?, ? build time: Fri Oct 12 00:27:33 2012
On Wed, Nov 21, 2012 at 12:13 AM, Zack Perry zack.perry@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@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@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@cobbler ~]# cobbler system edit --name=nb2 --interface=eth0 [root@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.
Hi James,
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.
Got you. My bad. Many thanks!
One good news: got remote and centralized logging working for Ubuntu already. So, remote installation monitoring with cobbler should be more complete 8-)
-- Zack
On Wed, Nov 21, 2012 at 12:32 AM, Zack Perry zack.perry@sbcglobal.net wrote:
Hi James,
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.
Got you. My bad. Many thanks!
One good news: got remote and centralized logging working for Ubuntu already. So, remote installation monitoring with cobbler should be more complete 8-)
Excellent, looking forward to getting your pull requests.
[root@cobbler ~]# cobbler system edit --name=nb2 --interface=em1 --delete-interface At least one interface needs to be defined. [root@cobbler ~]#
IMHO, this should be considered as a bug.
I just realized why this is. Systems always have one interface, even if they look like they have none (the secret default eth0 interface). But when you add an interface, it takes the place of the default, and if you try and remove it cobbler will give you the above error message. It worked on my system because I had two interfaces defined.
In order to remove em1, you'll need to define a new interface first.
Hi James,
[root@cobbler ~]# cobbler system
edit --name=nb2 --interface=em1 --delete-interface
At least one interface needs to be defined. [root@cobbler ~]#
IMHO, this should be considered as a bug.
I just realized why this is. Systems always have one interface, even if they look like they have none (the secret default eth0 interface).
But when you add an interface, it takes the place of the default, and if you try and remove it cobbler will give you the above error message. It worked on my system because I had two interfaces defined.
Yeah. My physical test systems are just a few Acer Aspire One D257 netbooks with one interface for wire, and another one for WiFi.
In order to remove em1, you'll need to define a new interface first.
Not for me ;-( Please see the actual session below:
[root@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 : False Owners : ['admin'] Power Management Address : Power Management ID : Power Management Password : Power Management Type : ipmitool Power Management Username : Profile : sl6-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 ===== : eth0 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@cobbler ~]# cobbler system edit --name=nb2 --interface=em1 [root@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 : False Owners : ['admin'] Power Management Address : Power Management ID : Power Management Password : Power Management Type : ipmitool Power Management Username : Profile : sl6-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 ===== : eth0 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@cobbler ~]# cobbler system edit --name=nb2 --interface=eth0 --delete-interface At least one interface needs to be defined. [root@cobbler ~]#
Not to worry. I can get around this "issue" in a kludgy way for now. Once I am done my full battery of tests, I will fire up epdb and see what's going on.
Have a restful night and thanks again!
Regards,
-- Zack
cobbler@lists.fedorahosted.org