New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Sahara barclamp #480

Merged
merged 1 commit into from Sep 19, 2016

Conversation

@Itxaka
Contributor

Itxaka commented Aug 2, 2016

This is basically #365 fixed and improved upon.

= t(".logging_header")
= boolean_field :verbose
= boolean_field :debug
= boolean_field :use_syslog

This comment has been minimized.

@houndci-bot

houndci-bot Aug 3, 2016

Files should end with a trailing newline

@houndci-bot

houndci-bot Aug 3, 2016

Files should end with a trailing newline

This comment has been minimized.

@vuntz

vuntz Sep 7, 2016

Member

Do we usually expose the use_syslog setting? I think it's hidden for all other barclamps.

@vuntz

vuntz Sep 7, 2016

Member

Do we usually expose the use_syslog setting? I think it's hidden for all other barclamps.

This comment has been minimized.

@Itxaka

Itxaka Sep 7, 2016

Contributor

Indeed, other barclamps do not expose this. But we still have the switch in the configuration to enable or disable it based on node[barclamp][:use_syslog], so why not expose it to the user and set it to a default value? And if we want it to be always false (because of supportconfig?) then whyset a switch instead of setting it to false on the template directly?

Knowing that we do not have a central logging system in place for crowbar, enabling this means that there is a cheap and easy way for customers to use syslog as forwarder to set up their own centralized log management.

@Itxaka

Itxaka Sep 7, 2016

Contributor

Indeed, other barclamps do not expose this. But we still have the switch in the configuration to enable or disable it based on node[barclamp][:use_syslog], so why not expose it to the user and set it to a default value? And if we want it to be always false (because of supportconfig?) then whyset a switch instead of setting it to false on the template directly?

Knowing that we do not have a central logging system in place for crowbar, enabling this means that there is a cheap and easy way for customers to use syslog as forwarder to set up their own centralized log management.

@Itxaka Itxaka removed the wip label Aug 5, 2016

@toabctl

This comment has been minimized.

Show comment
Hide comment
@toabctl

toabctl Sep 7, 2016

Contributor

Ummm. Hound finding stuff now that was already in there since the start? was hound broken?

Maybe the Hound creators changed something. I would just ignore hound as long as I'm not able to run it locally with a reproducible result ( but I guess I'm the only one with that opinion).

Contributor

toabctl commented Sep 7, 2016

Ummm. Hound finding stuff now that was already in there since the start? was hound broken?

Maybe the Hound creators changed something. I would just ignore hound as long as I'm not able to run it locally with a reproducible result ( but I guess I'm the only one with that opinion).

@toabctl

This comment has been minimized.

Show comment
Hide comment
@toabctl

toabctl Sep 7, 2016

Contributor

+1

Contributor

toabctl commented Sep 7, 2016

+1

@toabctl

This comment has been minimized.

Show comment
Hide comment
@toabctl

toabctl Sep 7, 2016

Contributor

And while I'm already complaining - LGTM is also useless - you updated the PR and it still shows that there are 2 +1's. tsts (end of complain mode)

Contributor

toabctl commented Sep 7, 2016

And while I'm already complaining - LGTM is also useless - you updated the PR and it still shows that there are 2 +1's. tsts (end of complain mode)

@dguitarbite

This comment has been minimized.

Show comment
Hide comment
@dguitarbite

dguitarbite Sep 7, 2016

Contributor

+1 from my side. Thanks for updating the PR.

Contributor

dguitarbite commented Sep 7, 2016

+1 from my side. Thanks for updating the PR.

@Itxaka

This comment has been minimized.

Show comment
Hide comment
@Itxaka

Itxaka Sep 8, 2016

Contributor

goddammit hound

Contributor

Itxaka commented Sep 8, 2016

goddammit hound

@Itxaka

This comment has been minimized.

Show comment
Hide comment
@Itxaka

Itxaka Sep 8, 2016

Contributor

waiting for #523

Contributor

Itxaka commented Sep 8, 2016

waiting for #523

@toabctl

This comment has been minimized.

Show comment
Hide comment
@toabctl

toabctl Sep 9, 2016

Contributor

@Itxaka Error: Committing the crowbar 'default' proposal for 'sahara' failed (1)..:

[2016-09-08T18:13:30+00:00] WARN: Current  execute[a2enmod deflate]: /var/chef/cache/cookbooks/apache2/definitions/apache_module.rb:28:in `block in from_file'
================================================================================
Recipe Compile Error in /var/chef/cache/cookbooks/sahara/recipes/role_sahara_server.rb
================================================================================
NameError
---------
uninitialized constant Chef::Recipe::SaharaHelper
Cookbook Trace:
---------------
  /var/chef/cache/cookbooks/sahara/recipes/common.rb:18:in `from_file'
  /var/chef/cache/cookbooks/sahara/recipes/role_sahara_server.rb:18:in `from_file'
Relevant File Content:
----------------------
/var/chef/cache/cookbooks/sahara/recipes/common.rb:
 11:  # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 12:  # See the License for the specific language governing permissions and
 13:  # limitations under the License.
 14:  #
 15:  
 16:  package "openstack-sahara"
 17:  
 18>> network_settings = SaharaHelper.network_settings(node)
 19:  db_settings = fetch_database_settings
 20:  
 21:  include_recipe "database::client"
 22:  include_recipe "#{db_settings[:backend_name]}::client"
 23:  include_recipe "#{db_settings[:backend_name]}::python-client"
 24:  
 25:  # get Database data
 26:  db_password = node[:sahara][:db][:password]
 27:  sql_connection = "#{db_settings[:url_scheme]}://#{node[:sahara][:db][:user]}:"\
[2016-09-08T18:13:30+00:00] ERROR: Running exception handlers
Contributor

toabctl commented Sep 9, 2016

@Itxaka Error: Committing the crowbar 'default' proposal for 'sahara' failed (1)..:

[2016-09-08T18:13:30+00:00] WARN: Current  execute[a2enmod deflate]: /var/chef/cache/cookbooks/apache2/definitions/apache_module.rb:28:in `block in from_file'
================================================================================
Recipe Compile Error in /var/chef/cache/cookbooks/sahara/recipes/role_sahara_server.rb
================================================================================
NameError
---------
uninitialized constant Chef::Recipe::SaharaHelper
Cookbook Trace:
---------------
  /var/chef/cache/cookbooks/sahara/recipes/common.rb:18:in `from_file'
  /var/chef/cache/cookbooks/sahara/recipes/role_sahara_server.rb:18:in `from_file'
Relevant File Content:
----------------------
/var/chef/cache/cookbooks/sahara/recipes/common.rb:
 11:  # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 12:  # See the License for the specific language governing permissions and
 13:  # limitations under the License.
 14:  #
 15:  
 16:  package "openstack-sahara"
 17:  
 18>> network_settings = SaharaHelper.network_settings(node)
 19:  db_settings = fetch_database_settings
 20:  
 21:  include_recipe "database::client"
 22:  include_recipe "#{db_settings[:backend_name]}::client"
 23:  include_recipe "#{db_settings[:backend_name]}::python-client"
 24:  
 25:  # get Database data
 26:  db_password = node[:sahara][:db][:password]
 27:  sql_connection = "#{db_settings[:url_scheme]}://#{node[:sahara][:db][:user]}:"\
[2016-09-08T18:13:30+00:00] ERROR: Running exception handlers
@Itxaka

This comment has been minimized.

Show comment
Hide comment
@Itxaka

Itxaka Sep 9, 2016

Contributor

Thanks @toabctl should be fixed. That was a very dumb mistake :D

Contributor

Itxaka commented Sep 9, 2016

Thanks @toabctl should be fixed. That was a very dumb mistake :D

@toabctl

This comment has been minimized.

Show comment
Hide comment
@toabctl

toabctl Sep 9, 2016

Contributor

I retriggered gating with want_sahara=1...

Contributor

toabctl commented Sep 9, 2016

I retriggered gating with want_sahara=1...

@nicolasbock

This comment has been minimized.

Show comment
Hide comment
@nicolasbock
Member

nicolasbock commented Sep 10, 2016

+1

@Itxaka

This comment has been minimized.

Show comment
Hide comment
@Itxaka

Itxaka Sep 13, 2016

Contributor

Retriggered with want_sahara. Did a mistake and set the port to the host and the host to the port so the service wasnt coming up :D

Contributor

Itxaka commented Sep 13, 2016

Retriggered with want_sahara. Did a mistake and set the port to the host and the host to the port so the service wasnt coming up :D

@dguitarbite

This comment has been minimized.

Show comment
Hide comment
@dguitarbite

dguitarbite Sep 13, 2016

Contributor

+1

Contributor

dguitarbite commented Sep 13, 2016

+1

@Itxaka

This comment has been minimized.

Show comment
Hide comment
@Itxaka

Itxaka Sep 13, 2016

Contributor

@vuntz @aspiers Any last comments before I merge? I think I covered all your requests :)

Contributor

Itxaka commented Sep 13, 2016

@vuntz @aspiers Any last comments before I merge? I think I covered all your requests :)

@Itxaka Itxaka merged commit 82ee315 into crowbar:master Sep 19, 2016

5 checks passed

approvals/lgtm this commit looks good
ci.suse.de/openstack-mkcloud/gating CI mkcloud gating succeeded
Details
ci.suse.de/openstack-mkcloud/gating/want_sahara CI mkcloud gating succeeded
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
hound No violations found. Woof!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment