Bug #1273
closedwrong regulax expression check for MAC addresses can lead to strange errors
Description
Unable to save
Failed to set TFTP: Invalid MAC address: 00:11:22:33:44:55:66
Failed to perform rollback on DHCP Settings for R310-lv-1.prod.domain.net - undefined method `destroy' for nil:NilClass
Failed to perform rollback on DNS record for R310-lv-1.prod.domain.net - undefined method `destroy' for nil:NilClass
Failed to perform rollback on Reverse DNS record for R310-lv-1.prod.domain.net - undefined method `destroy' for nil:NilClass
Unable to save
Failed to set TFTP: TFTP: Failed to create pxe config file: Permission denied - /var/lib/tftpboot/pxelinux.cfg
Failed to perform rollback on DHCP Settings for R310-lv-1.prod.domain.net - undefined method `destroy' for nil:NilClass
Failed to perform rollback on DNS record for R310-lv-1.prod.domain.net - undefined method `destroy' for nil:NilClass
Failed to perform rollback on Reverse DNS record for R310-lv-1.prod.domain.net - undefined method `destroy' for nil:NilClass
foreman.log:
Processing HostsController#create (for 10.0.2.16 at 2011-10-29 00:55:37) [POST]
Parameters: {"commit"=>"Submit", "action"=>"create", "authenticity_token"=>"TOKEN=", "controller"=>"hosts", "host"=>{"comment"=>"", "architecture_id"=>"1",
"subnet_id"=>"1", "managed"=>"true", "puppetproxy_id"=>"1", "name"=>"barbaz-lv-1.prod.domain.net", "puppetmaster_name"=>"foobar-1.prod.domain.net", "mac"=>"38:4b:4b:41:44:4d", "domain_id"=>"1" , "enabled"=>"1", "build"=>"1", "medium_id"=>"5", "hostgroup_id"=>"1", "ptable_id"=>"1", "ip"=>"10.100.40.1", "environment_id"=>"1", "model_id"=>"", "disk"=>"", "puppetclass_ids"=>[""], "operatin
gsystem_id"=>"2"}}
Add DNS PTR record for barbaz-lv-1.prod.domain.net/10.100.40.1
Add DNS A record for barbaz-lv-1.prod.domain.net/10.100.40.1
Add the TFTP configuration for barbaz-lv-1.prod.domain.net
Failed to set TFTP: TFTP: Failed to create pxe config file: Permission denied - /var/lib/tftpboot/pxelinux.cfg
Failed to perform rollback on DHCP Settings for barbaz-lv-1.prod.domain.net - undefined method `destroy' for nil:NilClass
Failed to perform rollback on DNS record for barbaz-lv-1.prod.domain.net - undefined method `destroy' for nil:NilClass
Failed to perform rollback on Reverse DNS record for barbaz-lv-1.prod.domain.net - undefined method `destroy' for nil:NilClass
Failed to save: Failed to set TFTP: TFTP: Failed to create pxe config file: Permission denied - /var/lib/tftpboot/pxelinux.cfg, Failed to perform rollback on DHCP Settings for barbaz-lv-1.prod.mari
nsw.net - undefined method `destroy' for nil:NilClass, Failed to perform rollback on DNS record for barbaz-lv-1.prod.domain.net - undefined method `destroy' for nil:NilClass, Failed to perform rol
lback on Reverse DNS record for barbaz-lv-1.prod.domain.net - undefined method `destroy' for nil:NilClass
Versions:
foreman-0.4-0.1rc4.noarch
foreman-release-1-1.noarch
foreman-proxy-0.3-0.1rc2.noarch