码迷,mamicode.com
首页 > 其他好文 > 详细

ironic 注入秘钥失败

时间:2020-05-21 16:19:29      阅读:53      评论:0      收藏:0      [点我收藏+]

标签:key   技术   lin   home   exist   with   __init__   ppi   src   

 

grep authorized_keys  cloud-init*log

技术图片

 

 

正常请况下

grep authorized_keys  cloud-init*log

技术图片

 

 

[root@sysu--2 log]# grep centos cloud-init*log
2019-10-22 02:14:17,322 - __init__.py[INFO]: User centos already exists, skipping.
2019-10-22 02:14:17,323 - util.py[DEBUG]: Running command [passwd, -l, centos] with allowed return codes [0] (shell=False, capture=True)
2019-10-22 02:14:17,355 - util.py[DEBUG]: Restoring selinux mode for /home/centos/.ssh (recursive=True)
2019-10-22 02:14:17,356 - util.py[DEBUG]: Reading from /home/centos/.ssh/authorized_keys (quiet=False)
2019-10-22 02:14:17,356 - util.py[DEBUG]: Read 0 bytes from /home/centos/.ssh/authorized_keys
2019-10-22 02:14:17,357 - util.py[DEBUG]: Restoring selinux mode for /home/centos/.ssh (recursive=False)
2019-10-22 02:14:17,357 - util.py[DEBUG]: Writing to /home/centos/.ssh/authorized_keys - wb: [600] 399 bytes
2019-10-22 02:14:17,357 - util.py[DEBUG]: Restoring selinux mode for /home/centos/.ssh/authorized_keys (recursive=False)
2019-10-22 02:14:17,358 - util.py[DEBUG]: Restoring selinux mode for /home/centos/.ssh/authorized_keys (recursive=False)
2019-10-22 02:14:17,358 - util.py[DEBUG]: Changing the ownership of /home/centos/.ssh/authorized_keys to 1000:1000
2019-10-22 02:14:17,358 - util.py[DEBUG]: Restoring selinux mode for /home/centos/.ssh (recursive=True)
2019-10-22 02:14:38,400 - util.py[DEBUG]: Restoring selinux mode for /home/centos/.ssh (recursive=True)
2019-10-22 02:14:38,401 - util.py[DEBUG]: Reading from /home/centos/.ssh/authorized_keys (quiet=False)
2019-10-22 02:14:38,401 - util.py[DEBUG]: Read 399 bytes from /home/centos/.ssh/authorized_keys

 

 

调试cloud init

技术图片

 

 

[root@fenghuo log]#  rm -rf /var/lib/cloud/instance
[root@fenghuo log]# cloud-init init && cloud-init modules --mode config && cloud-init modules --mode final

 

ironic 注入秘钥失败

标签:key   技术   lin   home   exist   with   __init__   ppi   src   

原文地址:https://www.cnblogs.com/dream397/p/12931265.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!