# How to create a node

**URL:** <https://discourse.chef.io/t/how-to-create-a-node/2846>\
**Category:** Chef Infra (archive)\
**Created:** [June 19, 2012, 3:52pm UTC](https://discourse.chef.io/t/how-to-create-a-node/2846 "2012-06-19T15:52:41Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![meenakshi\_agrawal](https://avatars.discourse-cdn.com/v4/letter/m/46a35a/32.png) [@meenakshi\_agrawal](https://discourse.chef.io/u/meenakshi_agrawal)\
**Post date:** [June 19, 2012, 3:52pm UTC](https://discourse.chef.io/t/how-to-create-a-node/2846/1 "2012-06-19T15:52:41Z")

</div>

Hi All,

I have a private chef-server (OS:SLES11 SP1)  
Am trying to create nodes,the steps which am following are mentioned below:

I don’t have a bootstrap script for SLES hence am doing all the steps  
manually

1)install rubygems,rubygem-chef  
2)mkdir -p /etc/chef  
3)knife configure client ./  
4)copy validation.pem from server to /etc/chef  
5)Edit the server\_url in client.rb  
6)run chef-client(this should register the node)  
7)add recipe to the node  
8)On running the chef-client again these recipies will run

Issue:

When i do a “knife node list” i get the node name in the result but when i  
do "knife search node name :‘NAME OF THE NODE’ "

I don’t get this node.

Kindly suggest am i missing some step here?

–  
Thanks  
Meenakshi Agrawal  
The secret of achievement is to hold a picture of a successful outcome in  
the mind

---

<div class="post-metadata">

**Author:** ![Ranjib\_Dey](https://avatars.discourse-cdn.com/v4/letter/r/8e8cbc/32.png) [@Ranjib\_Dey](https://discourse.chef.io/u/Ranjib_Dey)\
**Post date:** [June 19, 2012, 4:06pm UTC](https://discourse.chef.io/t/how-to-create-a-node/2846/2 "2012-06-19T16:06:12Z")

</div>

can you share the output of the chef client run, and contents of client.rb ?  
regards  
ranjib

On Tue, Jun 19, 2012 at 11:52 PM, meenakshi agrawal [minmini17@gmail.com](mailto:minmini17@gmail.com)wrote:

> Hi All,
> 
> I have a private chef-server (OS:SLES11 SP1)  
> Am trying to create nodes,the steps which am following are mentioned below:
> 
> I don't have a bootstrap script for SLES hence am doing all the steps  
> manually
> 
> 1)install rubygems,rubygem-chef  
> 2)mkdir -p /etc/chef  
> 3)knife configure client ./  
> 4)copy validation.pem from server to /etc/chef  
> 5)Edit the server\_url in client.rb  
> 6)run chef-client(this should register the node)  
> 7)add recipe to the node  
> 8)On running the chef-client again these recipies will run
> 
> Issue:
> 
> When i do a "knife node list" i get the node name in the result but when i  
> do "knife search node name :'NAME OF THE NODE' "
> 
> I don't get this node.
> 
> Kindly suggest am i missing some step here?
> 
> --  
> Thanks  
> Meenakshi Agrawal  
> The secret of achievement is to hold a picture of a successful outcome in  
> the mind

---

<div class="post-metadata">

**Author:** ![kallistec](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/kallistec/32/23_2.png) [@kallistec](https://discourse.chef.io/u/kallistec)\
**Post date:** [June 19, 2012, 4:14pm UTC](https://discourse.chef.io/t/how-to-create-a-node/2846/3 "2012-06-19T16:14:20Z")

</div>

There's a possibility it could be this: [http://tickets.opscode.com/browse/CHEF-2346](http://tickets.opscode.com/browse/CHEF-2346)

--  
Dan DeLeo

On Tuesday, June 19, 2012 at 9:06 AM, Ranjib Dey wrote:

> can you share the output of the chef client run, and contents of client.rb ?  
> regards  
> ranjib
> 
> On Tue, Jun 19, 2012 at 11:52 PM, meenakshi agrawal \<[minmini17@gmail.com](mailto:minmini17@gmail.com) ([mailto:minmini17@gmail.com](mailto:minmini17@gmail.com))\> wrote:
> 
> > Hi All,
> > 
> > I have a private chef-server (OS:SLES11 SP1)  
> > Am trying to create nodes,the steps which am following are mentioned below:
> > 
> > I don't have a bootstrap script for SLES hence am doing all the steps manually
> > 
> > 1)install rubygems,rubygem-chef  
> > 2)mkdir -p /etc/chef  
> > 3)knife configure client ./  
> > 4)copy validation.pem from server to /etc/chef  
> > 5)Edit the server\_url in client.rb  
> > 6)run chef-client(this should register the node)  
> > 7)add recipe to the node  
> > 8)On running the chef-client again these recipies will run
> > 
> > Issue:
> > 
> > When i do a "knife node list" i get the node name in the result but when i do "knife search node name :'NAME OF THE NODE' "
> > 
> > I don't get this node.
> > 
> > Kindly suggest am i missing some step here?
> > 
> > --  
> > Thanks  
> > Meenakshi Agrawal  
> > The secret of achievement is to hold a picture of a successful outcome in the mind

---

<div class="post-metadata">

**Author:** ![meenakshi\_agrawal](https://avatars.discourse-cdn.com/v4/letter/m/46a35a/32.png) [@meenakshi\_agrawal](https://discourse.chef.io/u/meenakshi_agrawal)\
**Post date:** [June 19, 2012, 4:24pm UTC](https://discourse.chef.io/t/how-to-create-a-node/2846/4 "2012-06-19T16:24:28Z")

</div>

My chef-client run fine,its successful

Contents of client.rb are:

log\_level :info  
log\_location STDOUT  
chef\_server\_url '[http://172.18.4.29:4000](http://172.18.4.29:4000)'  
validation\_client\_name 'chef-validator'

issue is not with chef-client run ,this node is shown in knife node list  
but not searchable with knife search node name

On Tue, Jun 19, 2012 at 9:44 PM, Daniel DeLeo [dan@kallistec.com](mailto:dan@kallistec.com) wrote:

> There's a possibility it could be this:  
> [http://tickets.opscode.com/browse/CHEF-2346](http://tickets.opscode.com/browse/CHEF-2346)
> 
> --  
> Dan DeLeo
> 
> On Tuesday, June 19, 2012 at 9:06 AM, Ranjib Dey wrote:
> 
> > can you share the output of the chef client run, and contents of  
> > client.rb ?  
> > regards  
> > ranjib
> > 
> > On Tue, Jun 19, 2012 at 11:52 PM, meenakshi agrawal \<[minmini17@gmail.com](mailto:minmini17@gmail.com)(mailto:  
> > [minmini17@gmail.com](mailto:minmini17@gmail.com))\> wrote:
> > 
> > > Hi All,
> > > 
> > > I have a private chef-server (OS:SLES11 SP1)  
> > > Am trying to create nodes,the steps which am following are mentioned  
> > > below:
> > > 
> > > I don't have a bootstrap script for SLES hence am doing all the steps  
> > > manually
> > > 
> > > 1)install rubygems,rubygem-chef  
> > > 2)mkdir -p /etc/chef  
> > > 3)knife configure client ./  
> > > 4)copy validation.pem from server to /etc/chef  
> > > 5)Edit the server\_url in client.rb  
> > > 6)run chef-client(this should register the node)  
> > > 7)add recipe to the node  
> > > 8)On running the chef-client again these recipies will run
> > > 
> > > Issue:
> > > 
> > > When i do a "knife node list" i get the node name in the result but  
> > > when i do "knife search node name :'NAME OF THE NODE' "
> > > 
> > > I don't get this node.
> > > 
> > > Kindly suggest am i missing some step here?
> > > 
> > > --  
> > > Thanks  
> > > Meenakshi Agrawal  
> > > The secret of achievement is to hold a picture of a successful outcome  
> > > in the mind

--  
Thanks  
Meenakshi Agrawal  
The secret of achievement is to hold a picture of a successful outcome in  
the mind

---

<div class="post-metadata">

**Author:** ![Ranjib\_Dey](https://avatars.discourse-cdn.com/v4/letter/r/8e8cbc/32.png) [@Ranjib\_Dey](https://discourse.chef.io/u/Ranjib_Dey)\
**Post date:** [June 19, 2012, 4:33pm UTC](https://discourse.chef.io/t/how-to-create-a-node/2846/5 "2012-06-19T16:33:03Z")

</div>

have u checked the solr log for any error? in past we have encountered  
similar issue due to solr hitting max index size ,  
as dan has already mentioned,  
a few things you can try out

> **[Crowbar issues and workarounds deails](https://github.com/dellcloudedge/crowbar/wiki/Crowbar-issues-and-workarounds---deails)**
>
> Cloud Installer (originated by Dell). Contribute to dellcloudedge/crowbar development by creating an account on GitHub.

On Wed, Jun 20, 2012 at 12:24 AM, meenakshi agrawal [minmini17@gmail.com](mailto:minmini17@gmail.com)wrote:

> My chef-client run fine,its successful
> 
> Contents of client.rb are:
> 
> log\_level :info  
> log\_location STDOUT  
> chef\_server\_url '[http://172.18.4.29:4000](http://172.18.4.29:4000)'  
> validation\_client\_name 'chef-validator'
> 
> issue is not with chef-client run ,this node is shown in knife node list  
> but not searchable with knife search node name
> 
> On Tue, Jun 19, 2012 at 9:44 PM, Daniel DeLeo [dan@kallistec.com](mailto:dan@kallistec.com) wrote:
> 
> > There's a possibility it could be this:  
> > [http://tickets.opscode.com/browse/CHEF-2346](http://tickets.opscode.com/browse/CHEF-2346)
> > 
> > --  
> > Dan DeLeo
> > 
> > On Tuesday, June 19, 2012 at 9:06 AM, Ranjib Dey wrote:
> > 
> > > can you share the output of the chef client run, and contents of  
> > > client.rb ?  
> > > regards  
> > > ranjib
> > > 
> > > On Tue, Jun 19, 2012 at 11:52 PM, meenakshi agrawal \<  
> > > [minmini17@gmail.com](mailto:minmini17@gmail.com) ([mailto:minmini17@gmail.com](mailto:minmini17@gmail.com))\> wrote:
> > > 
> > > > Hi All,
> > > > 
> > > > I have a private chef-server (OS:SLES11 SP1)  
> > > > Am trying to create nodes,the steps which am following are mentioned  
> > > > below:
> > > > 
> > > > I don't have a bootstrap script for SLES hence am doing all the steps  
> > > > manually
> > > > 
> > > > 1)install rubygems,rubygem-chef  
> > > > 2)mkdir -p /etc/chef  
> > > > 3)knife configure client ./  
> > > > 4)copy validation.pem from server to /etc/chef  
> > > > 5)Edit the server\_url in client.rb  
> > > > 6)run chef-client(this should register the node)  
> > > > 7)add recipe to the node  
> > > > 8)On running the chef-client again these recipies will run
> > > > 
> > > > Issue:
> > > > 
> > > > When i do a "knife node list" i get the node name in the result but  
> > > > when i do "knife search node name :'NAME OF THE NODE' "
> > > > 
> > > > I don't get this node.
> > > > 
> > > > Kindly suggest am i missing some step here?
> > > > 
> > > > --  
> > > > Thanks  
> > > > Meenakshi Agrawal  
> > > > The secret of achievement is to hold a picture of a successful  
> > > > outcome in the mind
> 
> --  
> Thanks  
> Meenakshi Agrawal  
> The secret of achievement is to hold a picture of a successful outcome in  
> the mind
