failure during generation of ceph.conf "'dict object' has no attribute 'stdout'"
See original GitHub issuefailing during trying to generate ceph.conf,
with ansible 2.5 and python 2.7.14:
ansible 2.5.0
config file = /Users/jiri/GIT/ceph-ansible/ansible.cfg
configured module search path = [u'/Users/jiri/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
ansible python module location = /usr/local/Cellar/ansible/2.5.0/libexec/lib/python2.7/site-packages/ansible
executable location = /usr/local/bin/ansible
python version = 2.7.14 (default, Mar 13 2018, 22:42:48) [GCC 4.2.1 Compatible Apple LLVM 9.0.0 (clang-900.0.39.2)]
and using community rpms from http://download.ceph.com/rpm-luminous/el7/x86_64/ for newest centos7:
[root@ceph01 ~]# uname -a Linux ceph01 3.10.0-693.21.1.el7.x86_64 #1 SMP Wed Mar 7 19:03:37 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux [root@ceph01 ~]# cat /etc/redhat-release CentOS Linux release 7.4.1708 (Core)
TASK [ceph-config : generate ceph configuration file: ceph.conf] ********************************************************************************************************************
task path: /Users/jiri/GIT/ceph-ansible/roles/ceph-config/tasks/main.yml:12
Friday 30 March 2018 23:32:36 +0200 (0:00:00.790) 0:01:02.953 **********
<ceph01.noibit.dc> ESTABLISH SSH CONNECTION FOR USER: root
<ceph01.noibit.dc> SSH: EXEC ssh -o ControlMaster=auto -o ControlPersist=600s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=30 -o ControlPath=/Users/jiri/.ansible/cp/%h-%r-%p ceph01.noibit.dc '/bin/sh -c '"'"'echo ~ && sleep 0'"'"''
<ceph02.noibit.dc> ESTABLISH SSH CONNECTION FOR USER: root
<ceph02.noibit.dc> SSH: EXEC ssh -o ControlMaster=auto -o ControlPersist=600s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=30 -o ControlPath=/Users/jiri/.ansible/cp/%h-%r-%p ceph02.noibit.dc '/bin/sh -c '"'"'echo ~ && sleep 0'"'"''
<ceph01.noibit.dc> (0, '/root\n', '')
<ceph01.noibit.dc> ESTABLISH SSH CONNECTION FOR USER: root
<ceph01.noibit.dc> SSH: EXEC ssh -o ControlMaster=auto -o ControlPersist=600s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=30 -o ControlPath=/Users/jiri/.ansible/cp/%h-%r-%p ceph01.noibit.dc '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo /root/.ansible/tmp/ansible-tmp-1522445556.27-161485482241916 `" && echo ansible-tmp-1522445556.27-161485482241916="` echo /root/.ansible/tmp/ansible-tmp-1522445556.27-161485482241916 `" ) && sleep 0'"'"''
<ceph02.noibit.dc> (0, '/root\n', '')
<ceph02.noibit.dc> ESTABLISH SSH CONNECTION FOR USER: root
<ceph02.noibit.dc> SSH: EXEC ssh -o ControlMaster=auto -o ControlPersist=600s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=30 -o ControlPath=/Users/jiri/.ansible/cp/%h-%r-%p ceph02.noibit.dc '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo /root/.ansible/tmp/ansible-tmp-1522445556.33-162053579072661 `" && echo ansible-tmp-1522445556.33-162053579072661="` echo /root/.ansible/tmp/ansible-tmp-1522445556.33-162053579072661 `" ) && sleep 0'"'"''
<ceph01.noibit.dc> (0, 'ansible-tmp-1522445556.27-161485482241916=/root/.ansible/tmp/ansible-tmp-1522445556.27-161485482241916\n', '')
<ceph02.noibit.dc> (0, 'ansible-tmp-1522445556.33-162053579072661=/root/.ansible/tmp/ansible-tmp-1522445556.33-162053579072661\n', '')
<ceph03.noibit.dc> ESTABLISH SSH CONNECTION FOR USER: root
<ceph03.noibit.dc> SSH: EXEC ssh -o ControlMaster=auto -o ControlPersist=600s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=30 -o ControlPath=/Users/jiri/.ansible/cp/%h-%r-%p ceph03.noibit.dc '/bin/sh -c '"'"'echo ~ && sleep 0'"'"''
<ceph03.noibit.dc> (0, '/root\n', '')
<ceph03.noibit.dc> ESTABLISH SSH CONNECTION FOR USER: root
<ceph03.noibit.dc> SSH: EXEC ssh -o ControlMaster=auto -o ControlPersist=600s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=30 -o ControlPath=/Users/jiri/.ansible/cp/%h-%r-%p ceph03.noibit.dc '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo /root/.ansible/tmp/ansible-tmp-1522445556.63-6387500904421 `" && echo ansible-tmp-1522445556.63-6387500904421="` echo /root/.ansible/tmp/ansible-tmp-1522445556.63-6387500904421 `" ) && sleep 0'"'"''
<ceph03.noibit.dc> (0, 'ansible-tmp-1522445556.63-6387500904421=/root/.ansible/tmp/ansible-tmp-1522445556.63-6387500904421\n', '')
fatal: [ceph01.noibit.dc]: FAILED! => {
"msg": "'dict object' has no attribute 'stdout'"
}
fatal: [ceph02.noibit.dc]: FAILED! => {
"msg": "'dict object' has no attribute 'stdout'"
}
fatal: [ceph03.noibit.dc]: FAILED! => {
"msg": "'dict object' has no attribute 'stdout'"
}
PLAY RECAP **************************************************************************************************************************************************************************
ceph01.noibit.dc : ok=48 changed=0 unreachable=0 failed=1
ceph02.noibit.dc : ok=45 changed=0 unreachable=0 failed=1
ceph03.noibit.dc : ok=45 changed=0 unreachable=0 failed=1
INSTALLER STATUS ********************************************************************************************************************************************************************
Install Ceph Monitor : In Progress (0:00:58)
This phase can be restarted by running: roles/ceph-mon/tasks/main.yml
Issue Analytics
- State:
- Created 5 years ago
- Comments:6
Top Results From Across the Web
Ansible dict object has no attribute stdout (or) stderr
This error appears when you are trying to iterate through a list or dictionary incorrectly. In this post, we will discuss how to...
Read more >wait for all osd to be up] with error "dict object has no attribute ...
Deploy ceph failed at TASK [ceph-osd : wait for all osd to be up] with error "dict object has no attribute osdmap".
Read more >FAILED! => {"msg": "'dict object' has no attribute 'stdout'"}
1 Answer 1 · Now its not throwing an error but skipping the master node for the task ie it is not inserting...
Read more >https://mirrors.aliyun.com/ceph/rpm-octopus/el7/no...
This file lock is only NOT None, if the object currently holds the # lock. self. ... mon_id }) logger.info('Generating new minimal ceph.conf....
Read more >ceph status error in task 'wait for all osd to be up'
The error was: error while evaluating conditional ((wait_for_all_osds_up.stdout ... int > 0): ''dict object'' has no attribute ''num_osds'''.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
The problem is in variable in group_vars/mons.yml originally there is monitor_secret: “{{ monitor_keyring.stdout }}” when you replace it one of the value from monitor_keys_example file like: monitor_secret: “AQAPn8tUmPBwCxAAeIfvpDKA1fGvrBeXGdc6xQ==” it works well. Or better you can also realize that variable “vm_min_free_kbytes” is not set. I just put to all.yml vm_min_free_kbytes: 4194303
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.