summaryrefslogtreecommitdiff
path: root/nova/tests/unit/fake_console_auth_token.py
Commit message (Collapse)AuthorAgeFilesLines
* Use uuidsentinel from oslo.utilsEric Fried2018-09-051-1/+2
| | | | | | | | | | | | oslo.utils release 3.37.0 [1] introduced uuidsentinel [2]. This change rips out nova's uuidsentinel and replaces it with the one from oslo.utils. [1] https://review.openstack.org/#/c/599754/ [2] https://review.openstack.org/#/c/594179/ Change-Id: I7f5f08691ca3f73073c66c29dddb996fb2c2b266 Depends-On: https://review.openstack.org/600041
* Add access_url_base to console_auth_tokens tablemelanie witt2018-01-061-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | Unfortunately this column was missed off when console_auth_tokens was added to the database. This change adds it in. The access_url is needed for a protocol check in the console proxies. Console proxies run per cell and do not run on compute hosts and thus do not have access to the access_url config options in the compute hosts nova.conf files. So, we need to store part of the access_url in the database. We cannot store the entire access_url because it contains the unhashed token, but we can keep the base part of the url and generate the full access_url on demand. An access url base looks something like this: http://127.0.0.1:6080/vnc_auto.html and using it, we can generate the full access_url on demand for the protocol check in the console proxies. partially-implements: blueprint convert-consoles-to-objects Change-Id: I0f672f5667d42b67d869ff9f467dbb64eb6c9ff9
* Add console auth tokens db api methodsPaul Murray2016-06-231-0/+33
Console auth tokens will be saved in the database instead of in memory in a console auth server. Adding the db api methods to create token records, get them and delete all tokens for an instance in this patch. The following patch in the series will add the console auth token object. Change-Id: I881faa62f3be4986b38d11c4ac059672ae45c11f Co-Authored-By: Eli Qiao <qiaoliyong@gmail.com> partially-implements: blueprint convert-consoles-to-objects