diff --git a/compass/actions/util.py b/compass/actions/util.py index 40b660b4..3a9b4b3b 100644 --- a/compass/actions/util.py +++ b/compass/actions/util.py @@ -256,7 +256,7 @@ class ActionHelper(object): if delete_underlying_host: for host_id in host_id_list: host_db.del_host( - user, host_id, True, True + host_id, True, True, user=user ) cluster_db.del_cluster( cluster_id, True, True, user=user @@ -305,5 +305,5 @@ class ActionHelper(object): @staticmethod def get_machine_IPMI(machine_id, user): - machine_info = machine_db.get_machine(user, machine_id) + machine_info = machine_db.get_machine(machine_id, user=user) return machine_info[const.IPMI_CREDS] diff --git a/install/chef.sh b/install/chef.sh index 0a731d7c..5bbfba89 100755 --- a/install/chef.sh +++ b/install/chef.sh @@ -49,6 +49,16 @@ fi sudo mkdir -p ~/.chef +if [ ! -f /etc/chef-server/admin.pem ]; then + echo "/etc/chef-server/admin.pem does not exist" + exit 1 +fi + +if [ ! -f /etc/chef-server/chef-validator.pem ]; then + echo "/etc/chef-server/chef-validator.pem does not exist" + exit 1 +fi + sudo knife configure -y -i --defaults -r ~/chef-repo -s https://$IPADDR:443 -u $USER --admin-client-name admin --admin-client-key /etc/chef-server/admin.pem --validation-client-name chef-validator --validation-key /etc/chef-server/chef-validator.pem <