risuorg / risu

Automation Troubleshooting Framework to validate and report configuration, software installed, etc with bash, python, and your language of choice.
https://risuorg.github.io
GNU General Public License v3.0
106 stars 35 forks source link

bash vs python framework execution differences #25

Closed zerodayz closed 7 years ago

zerodayz commented 7 years ago

bash marks correctly debug.sh as failed, when python okay.

[root@undercloud-0 citellus]# ./citellus /root/sosreport-controller-1.localdomain-20170705201135/ plugins/openstack/
...
citellus: found 8 tests
mode: fs snapshot /root/sosreport-controller-1.localdomain-20170705201135
# plugins/openstack/crontab_heat_stack-purge.sh: okay 
# plugins/openstack/crontab_keystone_cleanup.sh: okay 
# plugins/openstack/debug.sh: failed 
    disabled in /etc/ceilometer/ceilometer.conf
    disabled in /etc/cinder/cinder.conf
    disabled in /etc/cinder/rootwrap.conf
    disabled in /etc/glance/glance-api.conf
    disabled in /etc/glance/glance-cache.conf
    disabled in /etc/glance/glance-glare.conf
    disabled in /etc/glance/glance-registry.conf
    disabled in /etc/glance/glance-scrubber.conf
    disabled in /etc/glance/glance-swift.conf
    disabled in /etc/heat/heat.conf
    disabled in /etc/keystone/keystone.conf
    disabled in /etc/keystone/logging.conf
    disabled in /etc/neutron/dnsmasq-neutron.conf
    disabled in /etc/neutron/neutron.conf
    disabled in /etc/neutron/neutron_lbaas.conf
    disabled in /etc/neutron/rootwrap.conf
    disabled in /etc/neutron/services_lbaas.conf
    disabled in /etc/nova/nova.conf
    disabled in /etc/nova/rootwrap.conf
    disabled in /etc/puppet/auth.conf
    disabled in /etc/puppet/puppet.conf
    disabled in /etc/sahara/rootwrap.conf
    disabled in /etc/sahara/sahara.conf
    disabled in /etc/selinux/semanage.conf
    disabled in /etc/swift/account-server.conf
    disabled in /etc/swift/container-reconciler.conf
    disabled in /etc/swift/container-server.conf
    disabled in /etc/swift/object-expirer.conf
    disabled in /etc/swift/object-server.conf
    disabled in /etc/swift/proxy-server.conf
    disabled in /etc/swift/swift.conf
# plugins/openstack/hardware_memory_recommendations.sh: failed 
    memory is lower than 16gb ram
# plugins/openstack/keystone_cleanup_last-run.sh: okay 
    2017-07-05 00:02:22.458
# plugins/openstack/keystone_cleanup_runs.sh: okay 
    1
# plugins/openstack/mysql_keystone_tokendb.sh: skipped 
# plugins/openstack/version.sh: okay 
    mitaka

[root@undercloud-0 citellus]# python ./citellus.py /root/sosreport-controller-1.localdomain-20170705201135/ plugins/openstack/
...
found 8 tests at plugins/openstack/
mode: fs snapshot False
# plugins/openstack/keystone_cleanup_runs.sh: skipped
# plugins/openstack/crontab_keystone_cleanup.sh: skipped
# plugins/openstack/hardware_memory_recommendations.sh: skipped
# plugins/openstack/mysql_keystone_tokendb.sh: skipped
# plugins/openstack/keystone_cleanup_last-run.sh: skipped
# plugins/openstack/version.sh: okay
# plugins/openstack/crontab_heat_stack-purge.sh: skipped
# plugins/openstack/debug.sh: okay
iranzo commented 7 years ago

The fs snapshot False has been identified and fixed, now working on the logging to also show more info if needed

iranzo commented 7 years ago

Fixed in:

https://github.com/zerodayz/citellus/pull/27

zerodayz commented 7 years ago

Verified as fixed.