[Rocky] fail to get VNC console
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
I'm runnig Rocky verion on Centos7.5-1804.
Everything works fine, except VNC console. But when I use VNCviewer( the 3rd software)
to view Instance, type 172.16.237.10:5900, it's working.
############# Begin of nova.conf #
[DEFAULT]
enabled_apis = osapi_compute,
transport_url = rabbit:
my_ip = 172.16.237.10
firewall_driver = nova.virt.
[api_database]
connection = mysql+pymysql:
[database]
connection = mysql+pymysql:
[placement_
connection = mysql+pymysql:
[api]
auth_strategy = keystone
[keystone_
auth_url = http://
www_authenticat
memcached_servers = controller-01:11211
auth_type = password
project_domain_name = default
user_domain_name = default
project_name = service
username = nova
password = nova
[vnc]
enabled = true
server_listen = 0.0.0.0
server_
novncproxy_base_url = http://
[glance]
api_servers = http://
[oslo_concurrency]
lock_path = /var/lib/nova/tmp
[placement]
region_name = RegionOne
project_domain_name = default
project_name = service
auth_type = password
user_domain_name = default
auth_url = http://
username = placement
password = placement
[scheduler]
discover_
[libvirt]
virt_type = qemu
[neutron]
auth_url = http://
auth_type = password
project_domain_name = default
user_domain_name = default
region_name = RegionOne
project_name = service
username = neutron
password = neutron
service_
### end of nova.conf ####
How to reproduce
`nova --debug get-vnc-console <Insance_UUID> novnc
this comes for nova-api.log
2018-09-15 14:22:05.226 6338 ERROR nova.api.
2018-09-15 14:22:05.226 6338 ERROR nova.api.
2018-09-15 14:22:05.226 6338 ERROR nova.api.
2018-09-15 14:22:05.226 6338 ERROR nova.api.
2018-09-15 14:22:05.226 6338 ERROR nova.api.
2018-09-15 14:22:05.226 6338 ERROR nova.api.
2018-09-15 14:22:05.226 6338 ERROR nova.api.
2018-09-15 14:22:05.226 6338 ERROR nova.api.
2018-09-15 14:22:05.226 6338 ERROR nova.api.
2018-09-15 14:22:05.226 6338 ERROR nova.api.
2018-09-15 14:22:05.226 6338 ERROR nova.api.
2018-09-15 14:22:05.226 6338 ERROR nova.api.
2018-09-15 14:22:05.226 6338 ERROR nova.api.
2018-09-15 14:22:05.226 6338 ERROR nova.api.
2018-09-15 14:22:05.226 6338 ERROR nova.api.
2018-09-15 14:22:05.226 6338 ERROR nova.api.
2018-09-15 14:22:05.226 6338 ERROR nova.api.
2018-09-15 14:22:05.226 6338 ERROR nova.api.
2018-09-15 14:22:05.226 6338 ERROR nova.api.
2018-09-15 14:22:05.226 6338 ERROR nova.api.
2018-09-15 14:22:05.226 6338 ERROR nova.api.
2018-09-15 14:22:05.226 6338 ERROR nova.api.
2018-09-15 14:22:05.226 6338 ERROR nova.api.
2018-09-15 14:22:05.226 6338 ERROR nova.api.
2018-09-15 14:22:05.226 6338 ERROR nova.api.
2018-09-15 14:22:05.226 6338 ERROR nova.api.
2018-09-15 14:22:05.226 6338 ERROR nova.api.
2018-09-15 14:22:05.226 6338 ERROR nova.api.
2018-09-15 14:22:05.226 6338 ERROR nova.api.
2018-09-15 14:22:05.226 6338 ERROR nova.api.
2018-09-15 14:22:05.226 6338 ERROR nova.api.
2018-09-15 14:22:05.226 6338 ERROR nova.api.
2018-09-15 14:22:05.228 6338 INFO nova.api.
<class 'oslo_messaging
2018-09-15 14:22:05.229 6338 INFO nova.osapi_
Changed in nova: | |
status: | New → Confirmed |
This is part of debug log
# nova --debug get-vnc-console <INSTANCE_NAME> novnc
..... ignore part of them 172.16. 237.10: 8774/v2. 1/servers/ 45631db8- 654a-4e79- af3c-b891f2130d ec/remote- consoles -H "Accept: application/json" -H "Content-Type: application/json" -H "OpenStack- API-Version: compute 2.65" -H "User-Agent: python-novaclient" -H "X-Auth-Token: {SHA1}45ed5ea4e dfbca4df143d10b ba4808b2be85383 c" -H "X-OpenStack- Nova-API- Version: 2.65" -d '{"remote_console": {"type": "novnc", "protocol": "vnc"}}'
DEBUG (session:448) REQ: curl -g -i -X POST http://
DEBUG (session:511) RESP BODY: {"computeFault": {"message": "Unexpected API Error. Please report this at http:// bugs.launchpad. net/nova/ and attach the Nova API log if possible.\n<class 'oslo_messaging .exceptions. MessagingTimeou t'>", "code": 500}} 172.16. 64.12:8774/ v2.1/servers/ 45631db8- 654a-4e79- af3c-b891f2130d ec/remote- consoles used request id req-14cf5912- 2d65-441e- 9697-339df0bce3 40 bugs.launchpad. net/nova/ and attach the Nova API log if possible. .exceptions. MessagingTimeou t'> (HTTP 500) (Request-ID: req-14cf5912- 2d65-441e- 9697-339df0bce3 40) python2. 7/site- packages/ novaclient/ shell.py" , line 830, in main mputeShell( ).main( argv) python2. 7/site- packages/ novaclient/ shell.py" , line 752, in main func(self. cs, args) python2. 7/site- packages/ novaclient/ v2/shell. py", line 2562, in do_get_vnc_console get_vnc_ console( args.console_ type) python2. 7/site- packages/ novaclient/ v2/servers. py", line 107, in get_vnc_console get_vnc_ console( self, console_type) python2. 7/site- packages/ novaclient/ v2/servers. py", line 876, in get_vnc_console console_ url(server, console_type) python2. 7/site- packages/ novaclient/ api_versions. py", line 393, in substitution -1].func( obj, *args, **kwargs) python2. 7/site- packages/ novaclient/ v2/servers. py", line 964, in get_console_url client. post(url, body=body) python2. 7/site- packages/ keystoneauth1/ adapter. py", line 334, in post python2. 7/site- packages/ novaclient/ client. py", line 83, in request from_response( resp, body, url, method) bugs.launchpad. net/nova/ and attach the Nova API log if possible. .exceptions. MessagingTimeou t'> (HTTP 500) (Request-ID: req-14cf5912- 2d65-441e- 9697-339df0bce3 40)
DEBUG (session:844) POST call to compute for http://
DEBUG (shell:832) Unexpected API Error. Please report this at http://
<class 'oslo_messaging
Traceback (most recent call last):
File "/usr/lib/
OpenStackCo
File "/usr/lib/
args.
File "/usr/lib/
data = server.
File "/usr/lib/
return self.manager.
File "/usr/lib/
return self.get_
File "/usr/lib/
return methods[
File "/usr/lib/
resp, body = self.api.
File "/usr/lib/
return self.request(url, 'POST', **kwargs)
File "/usr/lib/
raise exceptions.
ClientException: Unexpected API Error. Please report this at http://
<class 'oslo_messaging