Various changes to enable FIO and PostgreSQL tests in (Docker/ACI) container#435
Various changes to enable FIO and PostgreSQL tests in (Docker/ACI) container#435micromaomao wants to merge 8 commits intomicrosoft:mainfrom
Conversation
A DiskManager that simply presents a OS disk, and does not try to do any discovery. Useful in containers.
… to FormatDisks/MountDisks
yangpanMS
left a comment
There was a problem hiding this comment.
Great to see this POC, blocking in case of accidental check in. We will transform this into LinuxContainerDiskManager before checking in
…h dir to use on the disk Particularly useful when using the os disk
…n a container We won't have permission to change netfilter rules from within a container
|
Note that postgresql still doesn't work "out of the box", and we need a mock systemctl in the container image. However I decided to not bake that into VirtualClient - maybe the configure scripts in the package need to be updated. |
|
Actually there is one more thing that need to be fixed - |
|
Note: the SuperuserPassword parameter change is not actually required, and since it causes CodeQL alert I can drop it |
|
Looks like unfortunately the sysbench postgresql tests still doesn't quite work: |
Added a DummyDiskManager that just returns one root disk. However this is a TODO item - we want to make it use
dfto determine any additional volumes mounted to the container, and report correct filesystem size (makes more sense in ACI where it's the sandbox VHD's size), as well as any mounted volumes (need to experiment to see how volumes actually turn up in containers / ACI)Test command:
For some reason this currently still fails in Docker (testing TODO in ACI):
But works on WSL using
DOTNET_RUNNING_IN_CONTAINER=trueNot written any unit tests at this point, nor have I tested if the profile still works in a VM (I think it should)