Add support for deploying with docker to devstack #124
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
In upstream openstack CI on older stable branches (for example stable/yoga), we use ubuntu based VMs, which don't yet have the podman package it their package manager and the installation fails. For these distros, we need to use docker instead.
I added a code, that would install docker if it fails to install podman. It also configures docker to be usable by the stack user.
I should note, that I wasn't able to create a ubuntu 20.04 or ubuntu 18.04 VM, which should be the affected ubuntus so I tested with debian 10 instead, which also doesn't have podman. I wasn't able to get the whole devstack deployed though, because debian 10 isn't supported and it failed because of unrelated issues, but the devstack got far enough to execute the
install_container_executable
here. It correctly installed docker and I was able to execute the rest of the steps in this plugin manually without issues.