Commit Graph

6 Commits

Author SHA1 Message Date
Steve Baker 407e5051d4 Set image_disk_format from file extension for HTTP images
Node instance_info `image_disk_format` needs to be set to `raw` for
large raw images or the deployment may fail with a memory check error
or a full node tmpfs. Even when there is no error, without
image_disk_format=raw the image will not be streamed directly to disk.

image_disk_format is auto-detected and set by ironic for glance and
file sourced images, but this does not occur for direct HTTP based
images.

This change will set image_disk_format=raw when the URL file extension
ends with .raw, which is enough to support TripleO's conventions for
the overcloud raw image.

Change-Id: I6a9c225fc2d14b2d07cd0bf2379cd2c8c548f312
2021-07-06 14:58:59 +12:00
Dmitry Tantsur 3621535d67 Stop requiring checksums with file images
Neither deploy method requires checksums with file images, they're
simply ignored. Deprecate providing them.

Change-Id: Ia123c1d3c57cc2814e3f971209cbee3ab336f7bd
2020-09-03 14:23:52 +02:00
Dmitry Tantsur 90671a01e3 Get rid of testtools and fixtures
testtools was used to provide a smoother transition to Python 3.
fixtures seems no longer actively maintained and is mostly redundant.

Change-Id: I3fff3beafca13a783bcb4d5a811099ad491ac7ac
2020-05-04 11:19:58 +02:00
Sean McGinnis f6fb359cf5
Use unittest.mock instead of third party mock
Now that we no longer support py27, we can use the standard library
unittest.mock module instead of the third party mock lib.

Change-Id: I97af946c244559513689c1ea9ac2d736d55dbe0f
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2020-04-18 16:05:36 -05:00
Dmitry Tantsur 2d801e2526 Stop requiring root size for whole disk images
This requirement has been fixed in newer versions of ironic.

Change-Id: I4460755ee66b4aa0b8a651b6bd142c769d669ee2
2019-11-05 18:29:16 +01:00
Dmitry Tantsur 8263ca2c2e Add sources.detect to detect various source types
Change-Id: Ic1e325538f0975b04750e10233e877ffcfbf4263
2019-01-16 12:40:50 +01:00