Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] machine_name 'host' returns error #181

Closed
ricardoalcazar opened this issue Jan 28, 2019 · 3 comments
Closed

[BUG] machine_name 'host' returns error #181

ricardoalcazar opened this issue Jan 28, 2019 · 3 comments
Labels

Comments

@ricardoalcazar
Copy link

Describe the Bug

When using the 'machine_name' resource to set the hostname, an error message is received. This exceptions is also thrown if I explicitly specify the hostname attribute.

Error Message

Chef::Exceptions::ValidationFailed: Property hostname must be one of: String! You passed nil.

Chef Exception

Compiled Resource:
------------------
# Declared in /var/chef/cache/cookbooks/gma-macos-mojave/recipes/default.rb:15:in `from_file'

machine_name("gma-mojave") do
  action [:set]
  default_guard_interpreter :default
  declared_type :machine_name
  cookbook_name "gma-macos-mojave"
  recipe_name "default"
  hostname "gma-mojave"
end

System Info:
------------
chef_version=14.9.13
platform=mac_os_x
platform_version=10.14
ruby=ruby 2.5.3p105 (2018-10-18 revision 65156) [x86_64-darwin16]
program_name=/usr/local/bin/chef-client
executable=/opt/chef/bin/chef-client
Running handlers:
[2019-01-27T19:08:28-06:00] ERROR: Running exception handlers
Running handlers complete
[2019-01-27T19:08:28-06:00] ERROR: Exception handlers complete
Chef Client failed. 1 resources updated in 10 seconds
[2019-01-27T19:08:28-06:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
[2019-01-27T19:08:28-06:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report
[2019-01-27T19:08:28-06:00] FATAL: Chef::Exceptions::ValidationFailed: machine_name[gma-mojave] (gma-macos-mojave::default line 15) had an error: Chef::Exceptions::ValidationFailed: Property hostname must be one of: String!  You passed nil.
@mjmerin mjmerin added the bug label Jan 28, 2019
@mjmerin
Copy link
Member

mjmerin commented Jan 28, 2019

Hi @ricardoalcazar, thank you for submitting this issue. We have started investigating.

@mjmerin mjmerin mentioned this issue Jan 29, 2019
@jazaval
Copy link
Contributor

jazaval commented Jan 30, 2019

Resolved by #182

@jazaval jazaval closed this as completed Jan 30, 2019
@ricardoalcazar
Copy link
Author

I appreciate the quick response!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants