[chef] Re: Re: Re: Chef cookbooks converges to 0 resources


Chronological Thread 
  • From: Tensibai < >
  • To:
  • Subject: [chef] Re: Re: Re: Chef cookbooks converges to 0 resources
  • Date: Thu, 22 Jan 2015 11:50:48 +0100

I did not go really far in the analysis of your problem but most of the recipes in openstack-network start with:

['quantum', 'neutron'].include?(node['openstack']['compute']['network']['service_type']) || return

which ends up the recipe compilation if the attribute node['openstack']['compute']['network']['service_type'] is not 'quantum' or 'neutron' (this attribute is not set by default in this cookbook)

I suspect you're missing some attributes for this runlist and all the recipes returns before defining any resource to be converged, that's why it ends up with 0 resources.

 

I can't help more on the subject, hope someone more used to this can give you a better hint/guide lines 

 

Le 2015-01-22 11:17, Vijaya Bhaskar a écrit :

Hi ,

Thank you for the response:

Here is the link to the debug log:
https://gist.github.com/anonymous/b5ab6a435f6c06b8187a


On Thu, Jan 22, 2015 at 3:35 PM, AJ Christensen < "> > wrote:
Run with debug logging turned on via -l debug and post that to a
gist/pastebin service.

cheers,

--aj

On Thu, Jan 22, 2015 at 11:03 PM, Vijaya Bhaskar
< "> > wrote:
> Hello All,
>
> I am trying to deploy openstack network with chef. When I run the
> chef-client , it simply finishes with 0 resources:
>
> :~# chef-client
>
> [2015-01-22T15:21:04+05:30] WARN:
> * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
> * *
> SSL validation of HTTPS requests is disabled. HTTPS connections are still
> encrypted, but chef is not able to detect forged replies or man in the
> middle
> attacks.
>
> To fix this issue add an entry like this to your configuration file:
>
> ```
>   # Verify all HTTPS connections (recommended)
>   ssl_verify_mode :verify_peer
>
>   # OR, Verify only connections to chef-server
>   verify_api_cert true
> ```
>
> To check your SSL configuration, or troubleshoot errors, you can use the
> `knife ssl check` command like so:
>
> ```
>   knife ssl check -c /etc/chef/client.rb
> ```
>
> * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
> * *
>
> Starting Chef Client, version 11.16.4
> resolving cookbooks for run list:
> ["openstack-network::identity_registration",
> "openstack-network::linuxbridge", "openstack-network::l3_agent",
> "openstack-network::dhcp_agent", "openstack-network::metadata_agent",
> "openstack-network::server"]
> Synchronizing Cookbooks:
>   - openstack-identity
>   - openstack-network
>   - openstack-common
>   - smf
>   - apt
>   - database
>   - yum-mysql-community
>   - yum
>   - mysql
>   - postgresql
>   - rbac
>   - openssl
>   - aws
>   - xfs
>   - mysql_chef_gem
>   - build-essential
>   - chef-sugar
>   - yum-epel
>   - mariadb
> Compiling Cookbooks...
> Converging 0 resources
>
> Running handlers:
> Running handlers complete
> Chef Client finished, 0/0 resources updated in 6.136653261 seconds
>
> No other cookbooks have this issue and the node has a role assigned to it.
>
> Please update about the possible reasons of failure.

 

 



Archive powered by MHonArc 2.6.16.

§