Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Podman Support #29

Merged
merged 1 commit into from
Feb 14, 2021

Conversation

trevor-vaughan
Copy link
Contributor

  • Fixed
    • Validated support for podman in root and rootless mode
    • Changed the acceptance nodesets to centos so that testing on both
      podman and docker will function properly
    • No longer start containers in privileged mode by default for safety
      reasons
    • Updated the README
    • Fixed support for connections to socket files
    • Added a check for detection of SSH ports < 1024 if operating in
      rootless mode
    • Ensure that the IP is set to 127.0.0.1 instead of 0.0.0.0 for better
      SSH connections
    • Override host.reboot so that containers are not accidentally
      destroyed
    • Fixed PAM session entries due to known pam_loginuid issues
    • Override enable_root_login since it is already performed by
      this plugin
    • Override ssh_service retart if the init process is set as sshd since
      that causes container termination
  • Added
    • Migrated to support docker-api 2.X
    • Set container names as beaker-<uniquehash> for easy cleanup if a
      name is not otherwise specified
    • Ensure that the underlying container object can be accessed at any
      time through host[:docker_container] for selective optimization
      • May want to override the archive_to and scp_to/from methods to
        call the underlying docker-api commands at some point

@trevor-vaughan trevor-vaughan changed the title Add Podman Support WIP: Add Podman Support Jan 17, 2021
@trevor-vaughan
Copy link
Contributor Author

Found some updates that are needed when running against the system podman instead of rootless.

@trevor-vaughan trevor-vaughan force-pushed the support_rootless_podman branch from 9f58efb to 1a86f10 Compare January 18, 2021 01:00
@trevor-vaughan trevor-vaughan changed the title WIP: Add Podman Support Add Podman Support Jan 18, 2021
@trevor-vaughan trevor-vaughan force-pushed the support_rootless_podman branch from 1a86f10 to 39cc977 Compare January 19, 2021 00:08
trevor-vaughan added a commit to trevor-vaughan/rubygem-simp-beaker-helpers that referenced this pull request Jan 20, 2021
* Fixed:
  * Allow all methods that can safely take SUT arrays to do so
  * Ensure thta pfact_on returns a Hash if appropriate
  * Fix container support in copy_to
* Added:
  * Explicitly support podman local and remote in copy_to

For full podman support, the following are required:
  * voxpupuli/beaker-docker#29
  * upserve/docker-api#569

SIMP-9131 #close
SIMP-9129 #close
op-ct added a commit to simp/rubygem-simp-beaker-helpers that referenced this pull request Jan 20, 2021
* Fixed:
  * Allow all methods that can safely take SUT arrays to do so
  * Ensure that pfact_on returns a Hash, if appropriate
  * Fix container support in copy_to
* Added:
  * Explicitly support podman local and remote in copy_to

For full podman support, the following are required:
  * voxpupuli/beaker-docker#29
  * upserve/docker-api#569

SIMP-9131 #close
SIMP-9129 #close

Co-authored-by: op-ct <chris.tessmer@onyxpoint.com>
@trevor-vaughan trevor-vaughan force-pushed the support_rootless_podman branch 2 times, most recently from 08f4f07 to 4d0411c Compare February 9, 2021 15:39
Copy link
Contributor

@genebean genebean left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems fine to me but I have not run this myself. Holding merge for a little bit in case others want to chime in.

* Fixed
  * Validated support for podman in root and rootless mode
    * Requires upserve/docker-api#569
  * Changed the acceptance nodesets to centos so that testing on both
    podman and docker will function properly
  * No longer start containers in privileged mode by default for safety
    reasons
  * Updated the README
  * Fixed support for connections to socket files
  * Added a check for detection of SSH ports < 1024 if operating in
    rootless mode
  * Ensure that the IP is set to 127.0.0.1 instead of 0.0.0.0 for better
    SSH connections
  * Override host.reboot so that containers are not accidentally
    destroyed
  * Fixed PAM session entries due to known pam_loginuid issues
  * Override enable_root_login since it is already performed by
    this plugin
  * Override ssh_service retart if the init process is set as sshd since
    that causes container termination
* Added
  * Migrated to support docker-api 2.X
  * Set container names as `beaker-<hostname>-<uniquehash>` for easy
    cleanup if a name is not otherwise specified and easy identification
    when debuggin
  * Ensure that the underlying container object can be accessed at any
    time through `host[:docker_container]` for selective optimization
    * May want to override the archive_to and scp_to/from methods to
      call the underlying docker-api commands at some point
@trevor-vaughan trevor-vaughan force-pushed the support_rootless_podman branch from 4d0411c to 9d36b42 Compare February 9, 2021 16:35
@genebean genebean merged commit e823cd4 into voxpupuli:master Feb 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants