400 Bad request when access vm console with openstack

fine

#1

Error detail on ManageIQ dashboard

Console access failed: Expected([200, 202]) <=> Actual(400 Bad Request) excon.error.response :body => “{“badRequest”: {“message”: “Unavailable console type novnc.”, “code”: 400}}” :cookies => [ ] :headers => { “Content-Length” => “75” “Content-Type” => “application/json; charset=UTF-8” “Date” => “Wed, 13 Sep 2017 11:27:21 GMT” “Openstack-Api-Version” => “compute 2.1” “Vary” => “OpenStack-API-Version, X-OpenStack-Nova-API-Version” “X-Compute-Request-Id” => “req-4c227e15-10ff-446c-8f61-adbaacece1be” “X-Openstack-Nova-Api-Version” => “2.1” } :host => “lab.test.io” :local_address => “172.17.0.2” :local_port => 49786 :path => “/v2.1/<project_id>/servers/1974635a-78e5-425c-a052-e02cbc2b3ed1/action.json” :port => 8774 :reason_phrase => “Bad Request” :remote_ip => “<os_haproxy_ip_address>” :status => 400 :status_line => “HTTP/1.1 400 Bad Request\r\n”

Informaiton

  • On OpenStack, I use html5 spice for console
  • I use latest-fine docker image (13 Sep 2017 UTC+7)
  • I use cloud provider as OpenStack (authen with keystone v3, and ceilometer for event (but event not work too) )

I should change my console to use vnc? but I saw spice in manageiq code on github
Did you support SPICE console right now?

Best regard,
Thank you


#2

I solved this problem because ManageIQ do not support html5 spice console

Besides, I lookup code in Github and found function
( manageiq/app/models/manageiq/providers/openstack/cloud_manager/vm/remote_console.rb )

21| response = con.get_vnc_console(ems_ref, 'novnc')

and I look around in function get_vnc_console then found
( https://github.com/philbert/chef-repo/blob/1c291d8ec11e304d5791a918e266dff463f1ab13/vendor/ruby/1.9.1/gems/fog-1.15.0/lib/fog/openstack/requests/compute/get_vnc_console.rb )

From code return body of novnc similar to spice
I think it not too hard to support spice console, isn’t it

Do you have roadmap to implement spice for vm console?