summaryrefslogtreecommitdiff
path: root/ironic/tests/unit/db/test_volume_targets.py
Commit message (Collapse)AuthorAgeFilesLines
* Enable foreign keys in SQLiteDmitry Tantsur2021-12-151-1/+3
| | | | | | | | For backward compatibility reasons, they're off by default. Fix all unit tests that rely on dangling foreign keys. Change-Id: I54a45fab1aefc03b2252c655e14b375dea3d9f12
* Stop using six libraryRiccardo Pittau2019-12-231-4/+3
| | | | | | | | | | Since we've dropped support for Python 2.7, it's time to look at the bright future that Python 3.x will bring and stop forcing compatibility with older versions. This patch removes the six library from requirements, not looking back. Change-Id: Ib546f16965475c32b2f8caabd560e2c7d382ac5a
* Enable getting volume targets by their volume_idMichael Turek2017-05-161-0/+10
| | | | | | | | | | | | This patch introduces methods for retrieving volume targets by their ID. As this field does not have a unique constraint, getting volume targets by their volume_id field will return a list. This will allow us to simplify attaching volumes in the cinder driver as we can now easily query the database rather than looping through all connected volumes. Change-Id: I05709fd2ab09bd127c0d202ddcd4863077db3d5b Partial-Bug: #1559691
* Add volume_targets table to databaseSatoru Moriya2016-12-011-0/+160
This patch adds a "volume_targets" DB table in order to save the volume target information of physical nodes. With this patch, Ironic can put/get volume target information to/from the database. Co-Authored-By: Stephane Miller <stephane@alum.mit.edu> Co-Authored-By: Ruby Loo <ruby.loo@intel.com> Change-Id: I79063f9d0aafd7b740785a883732536704e43b7c Partial-Bug: 1526231