Failed to save: Name is invalid error

I have foreman 1.5.0 up and running with my puppetmaster (3.6.1). I am
using it to manage the physical hosts and virtual hosts on an openstack
(havana) system. When I launch a new virtual host it registers with my
foreman instance and I can see it getting updated reports. However if I
want to edit the host and add a puppet class I am getting a "Failed to
save: Name is invalid error" after I hit submit. Here is what I do to get
this error.

Log into Foreman UI
Navigate to all hosts
Select the Virtual Instance I want to edit
I click the Edit button
I select the Puppet Classes tab in the edit menu
I select the Class I want added to the VM
I hit the Submit button
The page goes back to the Host tab and the Name box is highlighted red and
there is a "is invalid" message at the end of the box.

Here is the log snippet from the production log

Started POST "/puppetclasses/377/parameters" for {ip address} at 2014-05-28
14:06:49 -0400
Processing by PuppetclassesController#parameters as /
Parameters: {"utf8"=>"✓",
"authenticity_token"=>"yB395o6QAZC9BVl0TupHKhmfD8Aa+NomqYXhpdDUTww=",
"host"=>{"name"=>"{the hostname}", "hostgroup_id"=>"",
"environment_id"=>"2", "puppet_ca_proxy_id"=>"1", "puppet_proxy_id"=>"1",
"puppetclass_ids"=>["", "377"], "managed"=>"0",
"progress_report_id"=>"[FILTERED]", "is_owned_by"=>"1-Users",
"enabled"=>"1", "model_id"=>"4", "comment"=>"", "overwrite"=>"false"},
"host_id"=>"95", "id"=>"377"}
Rendered puppetclasses/_class_parameters.html.erb (13.5ms)
Completed 200 OK in 26ms (Views: 16.2ms | ActiveRecord: 1.6ms)

Started PUT "/hosts/{the hostname}" for {ip address} at 2014-05-28 14:06:59
-0400
Processing by HostsController#update as /
Parameters: {"utf8"=>"✓",
"authenticity_token"=>"yB395o6QAZC9BVl0TupHKhmfD8Aa+NomqYXhpdDUTww=",
"host"=>{"name"=>"{the hostname}", "hostgroup_id"=>"",
"environment_id"=>"2", "puppet_ca_proxy_id"=>"1", "puppet_proxy_id"=>"1",
"puppetclass_ids"=>["", "377"], "managed"=>"0",
"progress_report_id"=>"[FILTERED]", "is_owned_by"=>"1-Users",
"enabled"=>"1", "model_id"=>"4", "comment"=>"", "overwrite"=>"false"},
"id"=>"{the hostname}"}
Failed to save: Name is invalid
Rendered hosts/_progress.html.erb (0.1ms)
Rendered puppetclasses/_selectedClasses.html.erb (1.8ms)
Rendered puppetclasses/_classes_in_groups.html.erb (0.0ms)

Installed Packages

foreman-mysql2-1.5.0-1.el6.noarch
foreman-selinux-1.5.0-1.el6.noarch
foreman-proxy-1.5.0-1.el6.noarch
ruby193-rubygem-foremancli-1.0-6.el6.noarch
foreman-console-1.5.0-1.el6.noarch
foreman-release-1.5.0-1.el6.noarch
foreman-1.5.0-1.el6.noarch
rubygem-foreman_api-0.1.11-1.el6.noarch
foreman-gce-1.5.0-1.el6.noarch
foreman-vmware-1.5.0-1.el6.noarch
rubygem-hammer_cli_foreman-0.1.0-1.el6.noarch
foreman-postgresql-1.5.0-1.el6.noarch
foreman-installer-1.5.0-1.el6.noarch
foreman-compute-1.5.0-1.el6.noarch
foreman-ovirt-1.5.0-1.el6.noarch
foreman-assets-1.5.0-1.el6.noarch
foreman-cli-1.5.0-1.el6.noarch

puppet-server-3.6.1-1.el6.noarch
puppetlabs-release-6-10.noarch
packstack-modules-puppet-2013.2.1-0.28.dev989.el6ost.noarch
puppet-3.6.1-1.el6.noarch

Local Gems

bigdecimal (1.2.4)
bundler (1.6.2)
bundler-unload (1.0.2)
dotenv (0.7.0)
executable-hooks (1.3.1)
foreman (0.67.0)
gem-wrappers (1.2.4)
io-console (0.4.2)
json (1.8.1)
minitest (4.7.5)
psych (2.0.5)
rake (10.1.0)
rdoc (4.1.0)
rubygems-bundler (1.4.3)
rvm (1.11.3.9)
test-unit (2.1.2.0)
thor (0.17.0)