Hi Xiaoke, 

What happened when you tried to create the Clearwater deployment?

It looks like the resize failed halfway through, and a node has been created 
that doesn't have any roles on it - we normally expect a node to have at least 
the clearwater-infrastructure role on it. 
To work out which node is faulty, can you run 'knife node show <node name>' for 
each of your nodes? Then for any nodes that are missing roles, run 'knife node 
delete <node name>' and 'knife client delete <node name>', then delete the box 
on EC2. You can then run the 'knife deployment delete' command again

Ellie

 
-----Original Message-----
From: Clearwater [mailto:[email protected]] On 
Behalf Of xiaoke wang
Sent: 01 November 2015 14:39
To: [email protected]
Subject: [Clearwater] Undefined method or attribute `roles' on `node' 
(NoMethodError)

Dear all,

I am trying to deploy clearwater on EC2. When I tried to delete the deployment 
and run the following command:

knife deployment delete -E clearwater -VV

I got the following message:

/home/ubuntu/.rvm/gems/ruby-1.9.3-p551/gems/chef-11.4.0/lib/chef/node/attribute.rb:358:in
`method_missing': Undefined method or attribute `roles' on `node'
(NoMethodError)
        from 
/home/ubuntu/.rvm/gems/ruby-1.9.3-p551/gems/chef-11.4.0/lib/chef/node.rb:236:in
`method_missing'
        from 
/home/ubuntu/chef/.chef/plugins/knife/knife-deployment-delete.rb:62:in
`block in run'
        from 
/home/ubuntu/chef/.chef/plugins/knife/knife-deployment-delete.rb:62:in
`select'
        from 
/home/ubuntu/chef/.chef/plugins/knife/knife-deployment-delete.rb:62:in
`run'
        from 
/home/ubuntu/.rvm/gems/ruby-1.9.3-p551/gems/chef-11.4.0/lib/chef/knife.rb:460:in
`run_with_pretty_exceptions'
        from 
/home/ubuntu/.rvm/gems/ruby-1.9.3-p551/gems/chef-11.4.0/lib/chef/knife.rb:173:in
`run'
        from 
/home/ubuntu/.rvm/gems/ruby-1.9.3-p551/gems/chef-11.4.0/lib/chef/application/knife.rb:123:in
`run'
        from 
/home/ubuntu/.rvm/gems/ruby-1.9.3-p551/gems/chef-11.4.0/bin/knife:25:in
`<top (required)>'
        from /home/ubuntu/.rvm/gems/ruby-1.9.3-p551/bin/knife:23:in `load'
        from /home/ubuntu/.rvm/gems/ruby-1.9.3-p551/bin/knife:23:in `<main>'
        from 
/home/ubuntu/.rvm/gems/ruby-1.9.3-p551/bin/ruby_executable_hooks:15:in
`eval'
        from 
/home/ubuntu/.rvm/gems/ruby-1.9.3-p551/bin/ruby_executable_hooks:15:in
`<main>'

But I can run the command

knife deployment clean -E clearwater -VV

without errors.

Could anyone give me a hint about what's going wrong?

Thanks,
Xiaoke

_______________________________________________
Clearwater mailing list
[email protected]
http://lists.projectclearwater.org/mailman/listinfo/clearwater_lists.projectclearwater.org

_______________________________________________
Clearwater mailing list
[email protected]
http://lists.projectclearwater.org/mailman/listinfo/clearwater_lists.projectclearwater.org

Reply via email to