输入镜像上传指令
[root@controller ~]# glance image-create --name "centos7.2" --disk-format qcow2 --container-format bare --progress < /opt/iaas/i mages/CentOS_7.2_x86_64_XD.qcow2
返回结果如下
WARNING: The client is falling back to v1 because the accessing to v2 failed. This behavior will be removed in future versions
[> ] 1%Error finding address for http://controller:9292/v1/images: Unable to establish connection to http://controller:9292/v1/images: [Errno 32] Broken pipe
端口状态如下
[root@controller ~]# netstat -ntulp |grep 9292
tcp 0 0 0.0.0.0:9292 0.0.0.0:* LISTEN 27726/python2
[root@controller ~]# netstat -ntlp
返回结果
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 1823/master
tcp 0 0 0.0.0.0:9191 0.0.0.0:* LISTEN 27723/python2
tcp 0 0 0.0.0.0:25672 0.0.0.0:* LISTEN 1109/beam.smp
tcp 0 0 192.168.92.138:3306 0.0.0.0:* LISTEN 21302/mysqld
tcp 0 0 0.0.0.0:9292 0.0.0.0:* LISTEN 27726/python2
tcp 0 0 0.0.0.0:4369 0.0.0.0:* LISTEN 1/systemd
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 1103/sshd
tcp6 0 0 ::1:25 :::* LISTEN 1823/master
tcp6 0 0 :::35357 :::* LISTEN 22682/httpd
tcp6 0 0 :::5000 :::* LISTEN 22682/httpd
tcp6 0 0 :::5672 :::* LISTEN 1109/beam.smp
tcp6 0 0 :::80 :::* LISTEN 22682/httpd
tcp6 0 0 :::21 :::* LISTEN 1112/vsftpd
tcp6 0 0 :::22 :::* LISTEN 1103/sshd
求解QWQ