So In my Centos 5.9 machine, if there is RAID mount ansible will crash, as it cannot find scheduler file. The reason being, this should be a virtual device as there is no "device" folder under e.g. /sys/block/md0/
Here is the crash:
[kk@u1 ansible]$ ansible q3 -m setup -k -u root --tree=/tmp/facts
SSH password:
q3 | FAILED => failed to parse: /sys/block/md0
Traceback (most recent call last):
File "/root/.ansible/tmp/ansible-1360629441.14-171498703486275/setup", line 1797, in ?
main()
File "/root/.ansible/tmp/ansible-1360629441.14-171498703486275/setup", line 1050, in main
data = run_setup(module)
File "/root/.ansible/tmp/ansible-1360629441.14-171498703486275/setup", line 1000, in run_setup
facts = ansible_facts()
File "/root/.ansible/tmp/ansible-1360629441.14-171498703486275/setup", line 990, in ansible_facts
facts.update(Hardware().populate())
File "/root/.ansible/tmp/ansible-1360629441.14-171498703486275/setup", line 312, in populate
self.get_device_facts()
File "/root/.ansible/tmp/ansible-1360629441.14-171498703486275/setup", line 439, in get_device_facts
m = re.match(".*?(\[(.*)\])", scheduler)
File "/usr/lib64/python2.4/sre.py", line 129, in match
return _compile(pattern, flags).match(string)
TypeError: expected string or buffer
| Name |
Last commit
|
Last update |
|---|---|---|
| .. | ||
| add_host | Loading commit data... | |
| apt | Loading commit data... | |
| apt_key | Loading commit data... | |
| apt_repository | Loading commit data... | |
| assemble | Loading commit data... | |
| async_status | Loading commit data... | |
| async_wrapper | Loading commit data... | |
| authorized_key | Loading commit data... | |
| command | Loading commit data... | |
| copy | Loading commit data... | |
| cron | Loading commit data... | |
| debug | Loading commit data... | |
| easy_install | Loading commit data... | |
| ec2 | Loading commit data... | |
| ec2_facts | Loading commit data... | |
| facter | Loading commit data... | |
| fail | Loading commit data... | |
| fetch | Loading commit data... | |
| file | Loading commit data... | |
| fireball | Loading commit data... | |
| get_url | Loading commit data... | |
| git | Loading commit data... | |
| group | Loading commit data... | |
| group_by | Loading commit data... | |
| hg | Loading commit data... | |
| ini_file | Loading commit data... | |
| lineinfile | Loading commit data... | |
| Loading commit data... | ||
| mongodb_user | Loading commit data... | |
| mount | Loading commit data... | |
| mysql_db | Loading commit data... | |
| mysql_user | Loading commit data... | |
| nagios | Loading commit data... | |
| ohai | Loading commit data... | |
| pacman | Loading commit data... | |
| pause | Loading commit data... | |
| ping | Loading commit data... | |
| pip | Loading commit data... | |
| pkgin | Loading commit data... | |
| postgresql_db | Loading commit data... | |
| postgresql_user | Loading commit data... | |
| rabbitmq_plugin | Loading commit data... | |
| rabbitmq_user | Loading commit data... | |
| rabbitmq_vhost | Loading commit data... | |
| raw | Loading commit data... | |
| script | Loading commit data... | |
| seboolean | Loading commit data... | |
| selinux | Loading commit data... | |
| service | Loading commit data... | |
| setup | Loading commit data... | |
| shell | Loading commit data... | |
| slurp | Loading commit data... | |
| subversion | Loading commit data... | |
| supervisorctl | Loading commit data... | |
| svr4pkg | Loading commit data... | |
| sysctl | Loading commit data... | |
| template | Loading commit data... | |
| user | Loading commit data... | |
| virt | Loading commit data... | |
| wait_for | Loading commit data... | |
| yum | Loading commit data... |