存取 VM 主控台 OpenStack Juno 時出現問題

存取 VM 主控台 OpenStack Juno 時出現問題

我已經設定了 OpenStack 的 Juno 部署。我可以啟動我的 cirros 影像:

[root@ost-mgmt-el7-001 ~]# nova list
+-----------+----------+--------+------------+-------------+------------------------+
| ID         | Name     | Status | Task State | Power State | Networks              
+-----------+----------+--------+------------+-------------+------------------------+
| xxxxxxx | test-007 | ACTIVE | -          | Running     | public-59=10.29.103.13
+-----------+----------+--------+------------+-------------+------------------------+
[root@ost-mgmt-el7-001 ~]# ssh 10.29.103.13 -l cirros
[email protected]'s password: 
Permission denied, please try again.
[email protected]'s password: 
$ ls -l
total 0
$ pwd
/home/cirros
$ exit
Connection to 10.29.103.13 closed.

但是當我嘗試像這樣訪問控制台時...

[root@ost-mgmt-el7-001 ~]# nova get-vnc-console test-007 novnc
+-------+---------------------------------------------------------------------------------------------+
| Type  | Url                                                                                         |
+-------+---------------------------------------------------------------------------------------------+
| novnc | https://ost-el7.exaple.com:6080/vnc_auto.html?token=xxxxx |
+-------+---------------------------------------------------------------------------------------------+
[root@ost-mgmt-el7-001 ~]# curl -v https://ost-el7.exaple.com:6080/vnc_auto.html?token=xxxxx

....我收到「伺服器的空回覆」...

* About to connect() to ost-el7.exaple.com port 6080 (#0)
*   Trying 10.29.103.39...
* Connected to ost-el7.exaple.com (10.29.103.39) port 6080 (#0)
* Initializing NSS with certpath: sql:/etc/pki/nssdb
*   CAfile: /etc/pki/tls/certs/ca-bundle.crt
  CApath: none
* SSL connection using TLS_RSA_WITH_AES_128_CBC_SHA
* Server certificate:
*   subject: CN=ost-el7.exaple.com,O="Example Systems, Inc.",L=San Jose,ST=CA,C=US
*   start date: Feb 18 21:54:13 2015 GMT
*   expire date: Feb 18 21:54:00 2017 GMT
*   common name: ost-el7.exaple.com
*   issuer: CN=HydrantID SSL ICA G2,O=HydrantID (Avalanche Cloud Corporation),C=US
> GET /vnc_auto.html?token=5612703c-06cb-497f-a205-bbebbebb6d9c HTTP/1.1
> User-Agent: curl/7.29.0
> Host: ost-el7.exaple.com:6080
> Accept: */*
> 
* Empty reply from server
* Connection #0 to host ost-el7.exaple.com left intact
curl: (52) Empty reply from server

如果我登入 Horizo​​n 並嘗試以這種方式存取控制台,也會發生同樣的情況。

我不知道如何真正調試這個。我在 /var/log/httpd/*log 檔案中沒有看到任何明顯錯誤的內容。

答案1

我發現我必須ssl_only在 nova.conf 中設定為 false。

相關內容