Should this be allowed?  Seems like this is not the appropriate behaviour
given I could have multiple interfaces on a host, no?
[EMAIL PROTECTED] dhcpd]# cobbler system edit --name=foo --interface=eth0
--hostname=foo
[EMAIL PROTECTED] dhcpd]# cobbler system edit --name=foo --interface=eth1
--hostname=foo
[EMAIL PROTECTED] dhcpd]# cobbler system edit --name=foo --interface=eth2
--hostname=foo
[EMAIL PROTECTED] dhcpd]# cobbler sync
[EMAIL PROTECTED] dhcpd]#

[EMAIL PROTECTED] dhcpd]# cobbler system edit --name=foo --interface=eth0
--hostname=foo --ip=1.2.3.4 --subnet=255.255.255.0
[EMAIL PROTECTED] dhcpd]# cobbler system edit --name=foo --interface=eth1
--hostname=foo --ip=1.2.3.4 --subnet=255.255.255.0
[EMAIL PROTECTED] dhcpd]# cobbler system edit --name=foo --interface=eth2
--hostname=foo --ip=1.2.3.4 --subnet=255.255.255.0
[EMAIL PROTECTED] dhcpd]# cobbler sync

[EMAIL PROTECTED] dhcpd]# cobbler system report --name=foo
system                : foo
profile               : Legacy-Image-v1.0
comment               :
created               : Wed Nov 26 05:13:46 2008
image                 :
kernel options        : {}
kernel options post   : {}
kickstart             : <<inherit>>
ks metadata           : {}
mgmt classes          : []
modified              : Wed Nov 26 05:18:03 2008
netboot enabled?      : True
owners                : ['admin']
server                : <<inherit>>
template files        : {}
virt cpus             : <<inherit>>
virt file size        : <<inherit>>
virt path             : <<inherit>>
virt ram              : <<inherit>>
virt type             : <<inherit>>
power type            : ipmitool
power address         :
power user            :
power password        :
power id              :
interface        : eth0
  bonding        :
  bonding_master :
  bonding_opts   :
  dhcp tag       :
  gateway        :
  hostname       : foo
  ip address     : 1.2.3.4
  is static?     : False
  mac address    : 00:00:00:12:34:56
  subnet         : 255.255.255.0
  virt bridge    :
interface        : eth1
  bonding        :
  bonding_master :
  bonding_opts   :
  dhcp tag       :
  gateway        :
  hostname       : foo
  ip address     : 1.2.3.4
  is static?     : False
  mac address    : 00:00:00:12:34:56
  subnet         : 255.255.255.0
  virt bridge    :
interface        : eth2
  bonding        :
  bonding_master :
  bonding_opts   :
  dhcp tag       :
  gateway        :
  hostname       : foo
  ip address     : 1.2.3.4
  is static?     : False
  mac address    : 00:00:00:12:34:56
  subnet         : 255.255.255.0
  virt bridge    :


[EMAIL PROTECTED] dhcpd]# grep duplicate /etc/cobbler/settings
# if 1, cobbler will allow insertions of system records that duplicate
allow_duplicate_hostnames: 0
# if 1, cobbler will allow insertions of system records that duplicate
allow_duplicate_ips: 0
# if 1, cobbler will allow insertions of system records that duplicate
allow_duplicate_macs: 0

Also a copy of a system record seems to be allowed, but not forcing me to
change any of the unique data in the record such as ip, hostname or mac
address.  See below.

system                : foo
profile               : Legacy-Image-v1.0
comment               :
created               : Wed Nov 26 05:13:46 2008
image                 :
kernel options        : {}
kernel options post   : {}
kickstart             : <<inherit>>
ks metadata           : {}
mgmt classes          : []
modified              : Wed Nov 26 05:18:03 2008
netboot enabled?      : True
owners                : ['admin']
server                : <<inherit>>
template files        : {}
virt cpus             : <<inherit>>
virt file size        : <<inherit>>
virt path             : <<inherit>>
virt ram              : <<inherit>>
virt type             : <<inherit>>
power type            : ipmitool
power address         :
power user            :
power password        :
power id              :
interface        : eth0
  bonding        :
  bonding_master :
  bonding_opts   :
  dhcp tag       :
  gateway        :
  hostname       : foo
  ip address     : 1.2.3.4
  is static?     : False
  mac address    : 00:00:00:12:34:56
  subnet         : 255.255.255.0
  virt bridge    :
interface        : eth1
  bonding        :
  bonding_master :
  bonding_opts   :
  dhcp tag       :
  gateway        :
  hostname       : foo
  ip address     : 1.2.3.4
  is static?     : False
  mac address    : 00:00:00:12:34:56
  subnet         : 255.255.255.0
  virt bridge    :
interface        : eth2
  bonding        :
  bonding_master :
  bonding_opts   :
  dhcp tag       :
  gateway        :
  hostname       : foo
  ip address     : 1.2.3.4
  is static?     : False
  mac address    : 00:00:00:12:34:56
  subnet         : 255.255.255.0
  virt bridge    :

system                : foo1
profile               : Legacy-Image-v1.0
comment               :
created               : Wed Nov 26 05:13:46 2008
image                 :
kernel options        : {}
kernel options post   : {}
kickstart             : <<inherit>>
ks metadata           : {}
mgmt classes          : []
modified              : Wed Nov 26 05:22:00 2008
netboot enabled?      : True
owners                : ['admin']
server                : <<inherit>>
template files        : {}
virt cpus             : <<inherit>>
virt file size        : <<inherit>>
virt path             : <<inherit>>
virt ram              : <<inherit>>
virt type             : <<inherit>>
power type            : ipmitool
power address         :
power user            :
power password        :
power id              :
interface        : eth0
  bonding        :
  bonding_master :
  bonding_opts   :
  dhcp tag       :
  gateway        :
  hostname       : foo
  ip address     : 1.2.3.4
  is static?     : False
  mac address    : 00:00:00:12:34:56
  subnet         : 255.255.255.0
  virt bridge    :
interface        : eth1
  bonding        :
  bonding_master :
  bonding_opts   :
  dhcp tag       :
  gateway        :
  hostname       : foo
  ip address     : 1.2.3.4
  is static?     : False
  mac address    : 00:00:00:12:34:56
  subnet         : 255.255.255.0
  virt bridge    :
interface        : eth2
  bonding        :
  bonding_master :
  bonding_opts   :
  dhcp tag       :
  gateway        :
  hostname       : foo
  ip address     : 1.2.3.4
  is static?     : False
  mac address    : 00:00:00:12:34:56
  subnet         : 255.255.255.0
  virt bridge    :
_______________________________________________
cobbler mailing list
[email protected]
https://fedorahosted.org/mailman/listinfo/cobbler

Reply via email to