Skip to content

Instantly share code, notes, and snippets.

@goneri
Last active September 6, 2017 18:32
Show Gist options
  • Save goneri/b190078c80f7f0a91076628955896acd to your computer and use it in GitHub Desktop.
Save goneri/b190078c80f7f0a91076628955896acd to your computer and use it in GitHub Desktop.
show last os-collect-config error
#!/bin/bash
set -eu
do_ssh="ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=quiet heat-admin@"
for i in $(nova list|awk '/ctlplane/ {print $12}'); do
eval $i
echo -n "${ctlplane} "
if [ -z $(${do_ssh}${ctlplane} hostname) ]; then
echo "Cannot reach host $ctlplane"
continue
else
echo "up and running"
fi
${do_ssh}${ctlplane} "
for f in \$(sudo find /var/lib/heat-config/deployed -name '*.notify.json'); do
if [ \$(sudo jq .deploy_status_code \$f) -ne 0 ]; then
sudo jq -r .deploy_stderr \$f
sudo jq -r .deploy_stdout \$f
fi
done
"
done
openstack stack failures list overcloud
@goneri
Copy link
Author

goneri commented Jul 25, 2016

Example:

[stack@directorvm ~]$ ./heat-list-last-errors
/usr/lib/python2.7/site-packages/requests/packages/urllib3/connection.py:303: SubjectAltNameWarning: Certificate for 172.22.216.102 has no `subjectAltName`, falling back to check for a `commonName` for now. This feature is being removed by major browsers and deprecated by RFC 2818. (See https://github.com/shazow/urllib3/issues/497 for details.)
  SubjectAltNameWarning
/usr/lib/python2.7/site-packages/requests/packages/urllib3/connection.py:303: SubjectAltNameWarning: Certificate for 172.22.216.102 has no `subjectAltName`, falling back to check for a `commonName` for now. This feature is being removed by major browsers and deprecated by RFC 2818. (See https://github.com/shazow/urllib3/issues/497 for details.)
  SubjectAltNameWarning
172.22.216.113 up and running
Warning: Scope(Class[Mongodb::Server]): Replset specified, but no replset_members or replset_config provided.
Warning: Scope(Class[Swift]): swift_hash_suffix has been deprecated and should be replaced with swift_hash_path_suffix, this will be removed as part of the N-cycle
Warning: Scope(Class[Keystone]): Execution of db_sync does not depend on $enabled anymore. Please use sync_db instead.
Warning: Scope(Class[Glance::Api]): The known_stores parameter is deprecated, use stores instead
Warning: Scope(Class[Glance::Api]): default_store not provided, it will be automatically set to glance.store.http.Store
Warning: Scope(Class[Glance::Registry]): Execution of db_sync does not depend on $manage_service or $enabled anymore. Please use sync_db instead.
Warning: Scope(Class[Nova::Api]): ec2_listen_port, ec2_workers and keystone_ec2_url are deprecated and have no effect. Deploy openstack/ec2-api instead.
Warning: Scope(Class[Nova::Vncproxy::Common]): Could not look up qualified variable '::nova::compute::vncproxy_host'; class ::nova::compute has not been evaluated
Warning: Scope(Class[Nova::Vncproxy::Common]): Could not look up qualified variable '::nova::compute::vncproxy_protocol'; class ::nova::compute has not been evaluated
Warning: Scope(Class[Nova::Vncproxy::Common]): Could not look up qualified variable '::nova::compute::vncproxy_port'; class ::nova::compute has not been evaluated
Warning: Scope(Class[Nova::Vncproxy::Common]): Could not look up qualified variable '::nova::compute::vncproxy_path'; class ::nova::compute has not been evaluated
Warning: Scope(Class[Neutron]): The neutron::network_device_mtu parameter is deprecated, use neutron::global_physnet_mtu instead.
Warning: Scope(Class[Neutron::Server]): identity_uri, auth_tenant, auth_user, auth_password, auth_region configuration options are deprecated in favor of auth_plugin and related options
Warning: Scope(Class[Neutron::Agents::Dhcp]): The dhcp_delete_namespaces parameter was removed in Mitaka, it does not take any affect
Warning: Scope(Class[Neutron::Agents::L3]): parameter external_network_bridge is deprecated
Warning: Scope(Class[Neutron::Agents::L3]): parameter router_delete_namespaces was removed in Mitaka, it does not take any affect
Warning: Scope(Class[Neutron::Agents::Metadata]): The auth_password parameter is deprecated and was removed in Mitaka release.
Warning: Scope(Class[Neutron::Agents::Metadata]): The auth_tenant parameter is deprecated and was removed in Mitaka release.
Warning: Scope(Class[Neutron::Agents::Metadata]): The auth_url parameter is deprecated and was removed in Mitaka release.
Warning: Scope(Class[Ceilometer::Api]): The keystone_auth_uri parameter is deprecated. Please use auth_uri instead.
Warning: Scope(Class[Ceilometer::Api]): The keystone_identity_uri parameter is deprecated. Please use identity_uri instead.
Warning: Scope(Class[Heat]): "admin_user", "admin_password", "admin_tenant_name" configuration options are deprecated in favor of auth_plugin and related options
Warning: You cannot collect exported resources without storeconfigs being set; the collection will be ignored on line 123 in file /etc/puppet/modules/gnocchi/manifests/api.pp
Warning: Not collecting exported resources without storeconfigs
Warning: Not collecting exported resources without storeconfigs
Warning: Not collecting exported resources without storeconfigs
Warning: Not collecting exported resources without storeconfigs
Warning: Not collecting exported resources without storeconfigs
Error: Could not find dependency Pacemaker::Resource::Ocf[openstack-core] for Pacemaker::Constraint::Base[openstack-core-then-httpd-constraint] at /var/lib/heat-config/heat-config-puppet/fac917e0-2fa1-401e-9b28-9d5a28f75e44.pp:1317

Notice: Compiled catalog for 716182-lab2-controller01.localdomain in environment production in 14.70 seconds

172.22.216.111 up and running
172.22.216.114 up and running
172.22.216.110 up and running
172.22.216.109 up and running
172.22.216.112 up and running
172.22.216.107 up and running
172.22.216.115 up and running
172.22.216.108 up and running

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment