Dear Eleanor, The problem disappeared after I restart the chef server and chef client. So, I couldn't reproduce the problem.
But now, I meet another problem, when I try to create an account via ellis, I get the following message in ellis's log: ------ 04-11-2015 05:23:09.013 UTC INFO web.py:1447: 200 GET /ping (0.0.0.0) 0.33ms 04-11-2015 05:23:20.947 UTC INFO users.py:71: Request to create new account 04-11-2015 05:23:20.949 UTC INFO users.py:60: User email [email protected] not found 04-11-2015 05:23:21.233 UTC INFO web.py:1447: 302 POST /accounts/?onsuccess=/index.html%23first&onfailure=/signup.html (0.0.0.0) 286.01ms 04-11-2015 05:23:22.276 UTC WARNING numbers.py:142: No available numbers 04-11-2015 05:23:22.276 UTC WARNING _base.py:163: 503 POST /accounts/bob.%40example.com/numbers/?cb=199db708aaK0 (0.0.0.0): No available numbers 04-11-2015 05:23:22.277 UTC ERROR web.py:1447: 503 POST /accounts/bob.%40example.com/numbers/?cb=199db708aaK0 (0.0.0.0) 5.03ms 04-11-2015 05:23:39.180 UTC INFO web.py:1447: 200 GET /ping (0.0.0.0) 0.33ms 04-11-2015 05:23:43.630 UTC WARNING web.py:1447: 404 GET /favicon.ico (0.0.0.0) 2.41ms 04-11-2015 05:23:59.225 UTC INFO web.py:1447: 200 GET /ping (0.0.0.0) 0.33ms ------ My environment is ------ chef_type: environment cookbook_versions: clearwater: = 0.1.0 default_attributes: description: Clearwater deployment - clearwater json_class: Chef::Environment name: clearwater override_attributes: clearwater: availability_zones: us-east-1a gr: false keypair: fd_wang_usa keypair_dir: ~/.chef/ number_count: 1000 number_start: 6505550000 pstn_number_count: 0 repo_server: http://repo.cw-ngv.com/stable root_domain: testclearwater.net ------ It seems to indicate the 1000 numbers are used up or not available. I have no idea where I went wrong :( Thanks, Xiaoke On Wed, Nov 4, 2015 at 1:57 AM, Eleanor Merry <[email protected]> wrote: > 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
