Commit Graph

6355 Commits

Author SHA1 Message Date
Matthew Heon fba494de8e Use more reliable check for rootless for firewall init
We probably won't be able to initialize a firewall plugin when we
are not running as root, so we shouldn't even try. Replace the
less-effect EUID check with the rootless package's better check
to make sure we don't accidentally set up the firewall in these
cases.

Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
2018-10-23 10:33:38 -04:00
Daniel J Walsh 57b0b89d0c
Vendor in latest containers/storage opencontainers/selinux
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2018-10-23 10:32:32 -04:00
OpenShift Merge Robot ab2b3d64ce
Merge pull request #1697 from baude/statserr
correct stats err with non-running containers
2018-10-23 07:27:19 -07:00
OpenShift Merge Robot 9a6a64f78c
Merge pull request #1665 from vrothberg/ignore-env-vars
fix environment variable parsing
2018-10-23 06:39:21 -07:00
baude ee8f19e7be Make podman ps fast
Like Ricky Bobby, we want to go fast.

Signed-off-by: baude <bbaude@redhat.com>
2018-10-23 08:26:21 -05:00
Qi Wang cc27cd35a6 Support auth file environment variable in podman build
Signed-off-by: Qi Wang <qiwan@redhat.com>
2018-10-23 09:08:58 -04:00
OpenShift Merge Robot 95c93577cd
Merge pull request #1688 from baude/isf29ready
re-enable f29 testing
2018-10-23 05:56:40 -07:00
OpenShift Merge Robot ad88fcfc22
Merge pull request #1660 from cevich/cirrus_criu
Cirrus: Install CRIU in test images
2018-10-23 05:56:29 -07:00
OpenShift Merge Robot 3a45fd1115
Merge pull request #1700 from baude/restoreArtifactsa
Use restoreArtifacts to save time in integration tests
2018-10-23 05:42:42 -07:00
OpenShift Merge Robot a65fdf581b
Merge pull request #1639 from baude/pararm
Make rm faster
2018-10-23 05:42:32 -07:00
OpenShift Merge Robot fca5ad095e
Merge pull request #1681 from giuseppe/cleanup-runtime-status
oci: cleanup process status
2018-10-23 05:17:21 -07:00
Valentin Rothberg 125202923f fix environment variable parsing
Fix the parsing of environment variables to catch invalid ones, such as
`-e = ` or `-e =A`, early in the stack to return meaningful error
messages.  Also, instead of erroring out, set unspecified env variables
as empty (e.g., `-e FOO`) to remain compatible with Docker.

Fixes: #1663
Signed-off-by: Valentin Rothberg <vrothberg@suse.com>
2018-10-23 12:57:14 +02:00
Adrian Reber a14155917b
tests: use existing CRIU version check
Do not re-implement the CRIU version check in the test suite, use it
from libpod/pkg/criu.

Signed-off-by: Adrian Reber <areber@redhat.com>
2018-10-23 12:52:03 +02:00
Adrian Reber 8f6fb79ba8
Use the CRIU version check in checkpoint/restore
The newly introduced CRIU version check is now used to make sure
checkpointing and restoring is only used if the CRIU version is new
enough.

Signed-off-by: Adrian Reber <areber@redhat.com>
2018-10-23 12:52:03 +02:00
Adrian Reber f75065842f
Add helper function to read out CRIU version
This adds a simple CRIU version check using the vendored-in
CRIU go bindings.

Signed-off-by: Adrian Reber <areber@redhat.com>
2018-10-23 12:52:03 +02:00
Adrian Reber 20b5714f35
vendor in go-criu and dependencies
Signed-off-by: Adrian Reber <areber@redhat.com>
2018-10-23 12:52:03 +02:00
Giuseppe Scrivano fc89065a80
oci: cleanup process status
I've seen a runc zombie process hanging around, it is caused by not
cleaning up the "$OCI status" process.  Also adjust another location
that has the same issue.

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2018-10-23 09:32:44 +02:00
OpenShift Merge Robot 58a26ac9dc
Merge pull request #1661 from TomSweeneyRedHat/dev/tsweeney/loginhttp
Handle http/https in registry given to login/out
2018-10-22 16:30:15 -07:00
TomSweeneyRedHat e75b3477ce Handle http/https in registry given to login/out
Signed-off-by: TomSweeneyRedHat <tsweeney@redhat.com>
2018-10-22 19:20:34 -04:00
baude 65d0078336 re-enable f29 testing
Signed-off-by: baude <bbaude@redhat.com>
2018-10-22 17:08:26 -05:00
baude 6362158615 correct stats err with non-running containers
when doing stats -a|--all, if you have non-running containers, we should
not error on not being able to get information like PID, etc on them.

Signed-off-by: baude <bbaude@redhat.com>
2018-10-22 17:07:42 -05:00
baude 949d292567 Use restoreArtifacts to save time in integration tests
Signed-off-by: baude <bbaude@redhat.com>
2018-10-22 17:07:04 -05:00
baude fc4b34c8c0 Make rm faster
When doing rm, we now parallelize the actual conainter deletions so they
can complete faster.  This speeds up operations like rm -a.

Signed-off-by: baude <bbaude@redhat.com>
2018-10-22 17:06:30 -05:00
OpenShift Merge Robot 5b2478ed87
Merge pull request #1698 from rhatdan/man
Fix man page to show info on storage
2018-10-22 14:33:05 -07:00
Daniel J Walsh 3157595288
Fix man page to show info on storage
Also fix lint errors.

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2018-10-22 16:16:54 -04:00
Daniel J Walsh f3b0837974
Merge pull request #1693 from rhatdan/rootless
Move rootless directory handling to the libpod/pkg/util directory
2018-10-22 12:28:48 -04:00
Daniel J Walsh 2444ac9926
Move rootless directory handling to the libpod/pkg/util directory
This should allow us to share this code with buildah.

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2018-10-22 09:43:59 -04:00
Adrian Reber bb98a9cd2f
Fix podman port -l
Running 'podman port -l' on a system without any containers created
gives:

 $ podman port -l
 panic: runtime error: invalid memory address or nil pointer dereference
 [signal SIGSEGV: segmentation violation code=0x1 addr=0x10 pc=0xf3cef1]

 goroutine 1 [running]:
 github.com/containers/libpod/libpod.(*Container).State(0x0, 0x0, 0x0, 0x0)
 	/share/go/src/github.com/containers/libpod/libpod/container.go:658 +0x41
 main.portCmd(0xc420094580, 0x0, 0x0)
 	/share/go/src/github.com/containers/libpod/cmd/podman/port.go:118 +0x406

This fixes it by making sure the variable 'containers' is nil and not [<nil>].

Signed-off-by: Adrian Reber <areber@redhat.com>
2018-10-19 08:47:52 +02:00
OpenShift Merge Robot 0fefe3b191
Merge pull request #1673 from stickster/patch-1
Fix trivial missing markup in manpage
2018-10-18 14:32:57 -07:00
Paul W. Frields a7a3a5ca2a Fix trivial missing markup in manpage
Signed-off-by: Paul W. Frields <stickster@gmail.com>
2018-10-18 14:22:24 -04:00
Chris Evich 89b5484ad2
Cirrus: Install CRIU in test images
Signed-off-by: Chris Evich <cevich@redhat.com>
2018-10-18 12:37:09 -04:00
Chris Evich a18494a345
Cirrus: Use different CNI_COMMIT for Fedora
Just noticed this in Dockerfile.Fedora.  Updated all the right
places to make this happen.

Signed-off-by: Chris Evich <cevich@redhat.com>
2018-10-18 12:37:08 -04:00
Chris Evich 02bc3c9962
Fix Cirrus/Packer VM image building
An invalid GCE value is being passed to packer, preventing it from
building VM images.  Fix this, and centralize the definition of the
image name suffix by setting it at ``setup_environment.sh`` call-time,
rather encoding inside packer's `libpod_images.json`.  This makes
the value available for use by other scripts.

Also, switch the unique component of the name, to be based on the
commit-sha being tested.  This will improve traceability, since the git
history is more permanent than the `CIRRUS_BUILD_ID` env. var.  The
later is subject to log-rotation, destroying evidence of the images
source state.

Signed-off-by: Chris Evich <cevich@redhat.com>
2018-10-18 12:37:08 -04:00
Chris Evich 4de69da7bd
Revert "Cirrus: Enable debugging delay on non-zero exit"
This reverts commit b610913ef5.

Signed-off-by: Chris Evich <cevich@redhat.com>
2018-10-18 12:33:36 -04:00
Chris Evich 0c17f2010a
Cirrus: IRC message when cirrus testing successful
Signed-off-by: Chris Evich <cevich@redhat.com>
2018-10-18 12:33:36 -04:00
Chris Evich a50410467a
cirrus: Add simple IRC messenger
Add a naive python script that's able to connect to IRC and send a
single line of text to the #podman channel.  Wrap this in a new
library function to ensure nick-name collisions are unlikely.

Signed-off-by: Chris Evich <cevich@redhat.com>
2018-10-18 12:33:36 -04:00
OpenShift Merge Robot a75a888640
Merge pull request #1647 from baude/notify
fix NOTIFY_SOCKET in e2e testfix NOTIFY_SOCKET in e2e tests
2018-10-18 09:07:53 -07:00
baude 4662d06efd fix NOTIFY_SOCKET in e2e testfix NOTIFY_SOCKET in e2e tests
Signed-off-by: baude <bbaude@redhat.com>
2018-10-18 10:38:16 -05:00
Matthew Heon 05cadf31d2
Merge pull request #1679 from mheon/bump-0.10.1.3
Bump to  v0.10.1.3
2018-10-17 18:53:20 -04:00
Matthew Heon 683d8b579b Bump gitvalidation epoch
Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
2018-10-17 18:51:37 -04:00
Matthew Heon 27a5c1a203 Bump to v0.10.2-dev
Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
2018-10-17 18:51:36 -04:00
Matthew Heon db08685af5 Bump to v0.10.1.3
Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
2018-10-17 18:51:33 -04:00
Matthew Heon 733cfe9681
Merge pull request #1678 from mheon/release_notes_0.10.1.3
Update release notes for 0.10.1.3
2018-10-17 18:49:42 -04:00
Matthew Heon 98f30f69cf Update release notes for 0.10.1.3
Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
2018-10-17 18:49:54 -04:00
Matthew Heon d01382aed1
Merge pull request #1676 from baude/updatebuildah
Vendor in new new buildah/ci
2018-10-17 18:44:56 -04:00
baude bfc473f982 Vendor in new new buildah/ci
libpod requires new buildah and container image versions to resolve
bug #1640298

Signed-off-by: baude <bbaude@redhat.com>
2018-10-17 17:04:19 -05:00
Matthew Heon 19c150bef1
Merge pull request #1672 from rhatdan/podman
Fix podman in podman
2018-10-17 13:52:57 -04:00
Daniel J Walsh 854eb5c541
Fix podman in podman
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2018-10-17 13:17:02 -04:00
Matthew Heon 2d14ba9e6f
Merge pull request #1669 from mheon/bump-0.10.1.2
Bump to v0.10.1.2
2018-10-17 11:35:36 -04:00
Matthew Heon 6a32daad08 Bump gitvalidation epoch
Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
2018-10-17 11:34:13 -04:00