SUSE OpenStack Cloud 6.0 NoMethodError: undefined method `[]' for nil:NilClass after removing a node from cluster.

This document (7017620) is provided subject to the disclaimer at the end of this document.


SUSE OpenStack Cloud 6


After removing a node via crowbar from a pacemaker cluster, chef client throws following error :

NoMethodError: undefined method `[]' for nil:NilClass
/var/chef/cache/cookbooks/utils/libraries/helpers.rb:48:in `get_host_for_public_url'


Remove obsolete roles manually executing the following commands on the Cloud 6 admin node :

1. Get full node name for the node removed:
knife node list
2. Get role name for the node from role list:
knife node show <full node name>
3. Obtain the node role from the output, for example
crowbar-<mac address_cloud6_example_com
4. Remove obsolete roles from "run_list":
knife role edit <role> 

 "chef_type": "role",
  "run_list": [
Which roles need to be removed depend on the cluster type.
For example 'Pacemaker' roles would be already removed, but e.g. for controller there could also be e.g. cinder, glance, nova which need to be removed manually.


Crowbar only removes the pacemaker role while not simultaneously removing all of the other openstack roles.

Additional Information


This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.

  • Document ID:7017620
  • Creation Date: 20-May-2016
  • Modified Date:03-Mar-2020
    • SUSE Open Stack Cloud

< Back to Support Search

For questions or concerns with the SUSE Knowledgebase please contact:

SUSE Support Forums

Get your questions answered by experienced Sys Ops or interact with other SUSE community experts.

Join Our Community

Support Resources

Learn how to get the most from the technical support you receive with your SUSE Subscription, Premium Support, Academic Program, or Partner Program.

SUSE Customer Support Quick Reference Guide SUSE Technical Support Handbook Update Advisories
Support FAQ

Open an Incident

Open an incident with SUSE Technical Support, manage your subscriptions, download patches, or manage user access.

Go to Customer Center