Skip to content
This repository was archived by the owner on Aug 30, 2024. It is now read-only.

Recipe Compile Error on AWS #408

@ghost

Description

When I set up the eucalyptus-cookbook for AWS I get this error:

==> eucadev-all: - selinux (2.0.3)
==> eucadev-all: Installing Cookbook Gems:
==> eucadev-all: Compiling Cookbooks...
==> eucadev-all: 
==> eucadev-all: ================================================================================
==> eucadev-all: 
==> eucadev-all: Recipe Compile Error in /var/chef/cache/cookbooks/eucalyptus/recipes/cloud-controller.rb
==> eucadev-all: ================================================================================
==> eucadev-all: 
==> eucadev-all: NoMethodError
==> eucadev-all: -------------
==> eucadev-all: undefined method `supports' for Chef::Resource::User::LinuxUser
==> eucadev-all: 
==> eucadev-all: Cookbook Trace:
==> eucadev-all: ---------------
==> eucadev-all:   /var/chef/cache/cookbooks/eucalyptus/recipes/install-source.rb:35:in `block in from_file'
==> eucadev-all:   /var/chef/cache/cookbooks/eucalyptus/recipes/install-source.rb:34:in `from_file'
==> eucadev-all:   /var/chef/cache/cookbooks/eucalyptus/recipes/cloud-service.rb:52:in `from_file'
==> eucadev-all:   /var/chef/cache/cookbooks/eucalyptus/recipes/cloud-controller.rb:25:in `from_file'
==> eucadev-all: 
==> eucadev-all: Relevant File Content:
==> eucadev-all: ----------------------
==> eucadev-all: /var/chef/cache/cookbooks/eucalyptus/recipes/install-source.rb:
==> eucadev-all: 
==> eucadev-all:  28:  execute 'remove kvm module if loaded' do
==> eucadev-all:  29:    command 'modprobe -r kvm'
==> eucadev-all:  30:    only_if { '/sbin/lsmod | grep kvm' }
==> eucadev-all:  31:  end
==> eucadev-all:  32:  
==> eucadev-all:  33:  ### Create eucalyptus user
==> eucadev-all:  34:  user "eucalyptus" do
==> eucadev-all:  35>>   supports :manage_home => true
==> eucadev-all:  36:    comment "Eucalyptus cloud"
==> eucadev-all:  37:    home "/var/lib/eucalyptus"
==> eucadev-all:  38:    system true
==> eucadev-all:  39:    shell "/sbin/nologin"
==> eucadev-all:  40:  end
==> eucadev-all:  41:  
==> eucadev-all:  42:  group 'eucalyptus' do
==> eucadev-all:  43:    action :create
==> eucadev-all:  44:    members 'eucalyptus'
==> eucadev-all: 
==> eucadev-all: System Info:
==> eucadev-all: ------------
==> eucadev-all: chef_version=13.2.20
==> eucadev-all: platform=centos
==> eucadev-all: platform_version=6.5
==> eucadev-all: ruby=ruby 2.4.1p111 (2017-03-22 revision 58053) [x86_64-linux]
==> eucadev-all: program_name=chef-solo worker: ppid=7743;start=15:10:57;
==> eucadev-all: executable=/opt/chef/bin/chef-solo
==> eucadev-all: 
==> eucadev-all: 
==> eucadev-all: Running handlers:
==> eucadev-all: [2017-07-09T15:11:01+00:00] ERROR: Running exception handlers
==> eucadev-all: Running handlers complete
==> eucadev-all: [2017-07-09T15:11:01+00:00] ERROR: Exception handlers complete
==> eucadev-all: Chef Client failed. 0 resources updated in 03 seconds
==> eucadev-all: [2017-07-09T15:11:01+00:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
==> eucadev-all: [2017-07-09T15:11:01+00:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report
==> eucadev-all: [2017-07-09T15:11:01+00:00] ERROR: undefined method `supports' for Chef::Resource::User::LinuxUser
==> eucadev-all: [2017-07-09T15:11:01+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
Chef never successfully completed! Any errors should be visible in the
output above. Please fix your recipes so that they properly complete.

I don't know what this mean. It has anything to do with this supports-method. Does anyone know, what I must do?

Thanks for your help 😃

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions