node-get-console returns url always start with http
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ironic |
Fix Released
|
Low
|
baiyuan |
Bug Description
If I use SSL cert(PEM in shellinabox web console, ironic node-get-console <node_uuid> returns url which starts with http, in this case, it should start with https;
Reproduce steps:
1, edit /etc/ironic/
[console]
terminal_
root@byrh05:/# ls /tmp/ca
certificate.pem
2, set node console mode true:
root@byrh05:/# ironic node-set-
root@byrh05:/# ironic node-get-console fa81dcc8-
+------
| Property | Value |
+------
| console_enabled | True |
| console_info | {u'url': u'http://
+------
3, open url in web browser to test it, url "http://
4, check shellinaboxd in ironic conductor, shellinabox use -c option to use SSL support, so http should be https:
root@byrh05:/# ps -ef|grep shellinaboxd |grep 8024
nobody 7064 1 0 01:01 ? 00:00:00 shellinaboxd -c /tmp/ca -p 8024 --background=
nobody 7065 7064 0 01:01 ? 00:00:00 shellinaboxd -c /tmp/ca -p 8024 --background=
Changed in ironic: | |
importance: | Undecided → Low |
Changed in ironic: | |
milestone: | none → 4.0.0 |
status: | Fix Committed → Fix Released |
When we use -t option in shellinabox, it means disable ssl, url can start with http;
When we use -c option in shellinabox, it means supporting ssl, url should start with https