(overcloud) [stack@nyimsp01-director-01 ~]$ 源 stackrc (undercloud) [stack@nyimsp01-director-01 ~]$ for i in openstack server list | grep "ctlplane" | awk '{print $8}' | awk -F "=" '{print $2}'
; do echo "----$i----";ssh heat-admin@i "sudo cat /etc/neutron/policy.json | grep 'create_port'";done
使用此命令我得到以下错误
ssh:无法解析主机名 i:名称或服务未知