Jhon Honce
3bfe07b4f5
Support Attach subcommand in pypodman
...
* Fix some random error handling
Signed-off-by: Jhon Honce <jhonce@redhat.com>
Closes : #1296
Approved by: rhatdan
2018-08-20 15:26:09 +00:00
Matthew Heon
4068ec82b8
Bump to v0.8.4-dev
...
Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
2018-08-17 15:47:18 -04:00
Jhon Honce
95c7d20142
Add dependency for python3-psutil module
...
Signed-off-by: Jhon Honce <jhonce@redhat.com>
Closes : #1290
Approved by: baude
2018-08-17 18:12:11 +00:00
Daniel J Walsh
cd73f77414
Fix handling of socket connection refusal.
...
Currently if the socket was never started you get an error about
the service being started. But if the service was started and later
stopped, you get a useless error.
This change causes the error to always be the same for connection refused.
The error message was also repeating the address twice which looked bad.
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Closes : #1287
Approved by: baude
2018-08-17 08:41:19 +00:00
Daniel J Walsh
1b87fbc591
Merge pull request #1271 from vrothberg/recommend-slirp4netns
...
podman.spec: recommend slirp4netns
2018-08-16 16:58:39 -04:00
Daniel J Walsh
d20f3a5146
switch projectatomic to containers
...
Need to get some small changes into libpod to pull back into buildah
to complete buildah transition.
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Closes : #1270
Approved by: mheon
2018-08-16 17:12:36 +00:00
Valentin Rothberg
7855d0ac71
podman.spec: recommend slirp4netns
...
Fixes : #1234
Signed-off-by: Valentin Rothberg <vrothberg@suse.com>
2018-08-16 08:05:27 +02:00
Jhon Honce
3445abd89d
Add create and pull commands
...
* Rename id_ to ident, make non-PEP8'ers happier
* Fix bug where port was required on local connections
* Improve error messages for exceptions
Signed-off-by: Jhon Honce <jhonce@redhat.com>
Closes : #1246
Approved by: rhatdan
2018-08-14 18:25:51 +00:00
Matthew Heon
7d116f5f73
Merge pull request #1254 from mheon/systemd_cgroups_default
...
Switch default CGroup manager to systemd
2018-08-11 15:07:29 -04:00
Daniel J Walsh
86410523dc
Bump to v0.8.3-dev
...
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Closes : #1256
Approved by: rhatdan
2018-08-10 22:27:35 +00:00
Matthew Heon
9c42e84173
Fix python tests again
...
Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
2018-08-10 16:18:44 -04:00
Matthew Heon
f4d124da93
Fix python tests to use cgroupfs
...
Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
2018-08-10 15:48:35 -04:00
Matthew Heon
ab4f190f41
Force cgroupfs for python tests
...
Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
2018-08-10 14:32:28 -04:00
baude
14b6106c7b
enabled copr epel builds again
...
centos/epel does not understand the Recommends tag
Signed-off-by: baude <bbaude@redhat.com>
Closes : #1231
Approved by: rhatdan
2018-08-08 09:03:08 +00:00
baude
69a741817b
Test regressions against the RPM spec file
...
We need to make sure we dont break the RPM spec files week-to-week. If we do, the
packagers need to have a place to look at what changes are needed to the SPEC so
they can pull the changes into the distributions.
Signed-off-by: baude <bbaude@redhat.com>
Closes : #1230
Approved by: rhatdan
2018-08-07 20:23:53 +00:00
Daniel J Walsh
7d43e7c451
Pass DESTDIR down to python Makefile
...
In order to get a cleaner build out of the rpms we should
pass down the DESTDIR to the python Makefiles. Then we
can use them instead of hard coding other inteligence into
the spec files.
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Closes : #1214
Approved by: baude
2018-08-07 14:52:30 +00:00
Jhon Honce
606b5f9a61
Remove inotify work around
...
PR#1215 fixed issue with podman blowing up inotify
Signed-off-by: Jhon Honce <jhonce@redhat.com>
Closes : #1222
Approved by: baude
2018-08-06 16:58:26 +00:00
baude
bd9d3a8fa5
Rename varlink socket and interface
...
io.projectatomic.podman -> io.podman
Signed-off-by: baude <bbaude@redhat.com>
Closes : #1204
Approved by: mheon
2018-08-06 14:49:11 +00:00
baude
3c20bb0e70
Change tarball filename in copr prepare and match short-commit length
...
Signed-off-by: baude <bbaude@redhat.com>
2018-08-06 08:45:34 -05:00
baude
9987dd961b
update copr spec, lets get it building again
...
Signed-off-by: baude <bbaude@redhat.com>
2018-08-05 11:38:21 -05:00
Jhon Honce
54eec54b2a
Add missing dependencies to build system
...
Signed-off-by: Jhon Honce <jhonce@redhat.com>
Closes : #1199
Approved by: rhatdan
2018-08-05 11:06:18 +00:00
Jhon Honce
47620961fe
Port to MacOS
...
* Refactor Tunnel to support selecting port for remote sshd
* Refactor ssh tunnel to support MacOS version of ssh
* Refactor Tunnel.close() to find and kill off zombie siblings
* Add psutil dependency
* Add logging setup, letting library produce debugging records
* Clean up Tunnel API
* Fix test_runner.sh to propagate returncode to caller
Signed-off-by: Jhon Honce <jhonce@redhat.com>
Closes : #1199
Approved by: rhatdan
2018-08-05 11:06:18 +00:00
Matthew Heon
11264dabda
Bump to v0.8.2-dev
...
Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
2018-08-03 14:46:15 -04:00
Jhon Honce
5aa36c1861
Clean up pylint warnings and errors for podman
...
* Some of the pedantic errors were not corrected
* Clean up prep for porting to MacOS and PyPi hosting
* Fix broken unittest
Signed-off-by: Jhon Honce <jhonce@redhat.com>
Closes : #1159
Approved by: rhatdan
2018-07-28 11:49:11 +00:00
Matthew Heon
07a1f33edc
Bump to v0.8.1-dev
...
Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
2018-07-27 12:05:41 -04:00
Jhon Honce
32b690e902
Clean up pylint warnings and errors
...
* Some of the pedantic errors were not corrected
* Clean up prep for porting to MacOS and PyPi hosting
Signed-off-by: Jhon Honce <jhonce@redhat.com>
Closes : #1155
Approved by: baude
2018-07-25 02:50:16 +00:00
Jhon Honce
9a18681ba6
[WIP] Refactor and simplify python builds
...
* pypodman namespaced in site-packages
* version numbers pulled from requirements.txt
* add python-podman spec file to install eggs
Signed-off-by: Jhon Honce <jhonce@redhat.com>
Closes : #1106
Approved by: rhatdan
2018-07-23 18:53:44 +00:00
Matthew Heon
7476efe565
Bump to v0.7.4-dev
...
Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
2018-07-20 14:06:45 -04:00
Jhon Honce
06c546e88d
Downgrade setup.py
...
Signed-off-by: Jhon Honce <jhonce@redhat.com>
Closes : #1095
Approved by: mheon
2018-07-14 03:40:20 +00:00
Matthew Heon
adf588bed8
Bump to v0.7.3-dev
...
Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
2018-07-13 16:36:27 -04:00
Jhon Honce
74ccd9ce5f
Update python directories to better support setup.py
...
Signed-off-by: Jhon Honce <jhonce@redhat.com>
2018-07-13 12:50:12 -07:00
Jhon Honce
44b523c946
remote python client for podman
...
* Use podman library for access
* Verbose error checking
* Planned windows and macosx ports
Signed-off-by: Jhon Honce <jhonce@redhat.com>
2018-07-13 11:29:28 -07:00
Jhon Honce
86154b6538
Refactor attach()/start() after podman changes
...
* Update examples
* Update/Clean up unittests
* Add Mixins for container attach()/start()
Signed-off-by: Jhon Honce <jhonce@redhat.com>
Closes : #1080
Approved by: baude
2018-07-12 01:38:30 +00:00
Jhon Honce
ca6ffbccc2
Refactor unittest for change in history API
...
* test_images.TestImages.test_history changed to allow
'<missing>' as legal image ID. Previously all layers
used the image ID. Now layer 0 reports '<missing>'.
Signed-off-by: Jhon Honce <jhonce@redhat.com>
Closes : #1056
Approved by: jwhonce
2018-07-06 21:59:36 +00:00
Matthew Heon
6fb7a68848
Bump to v0.7.2-dev
...
Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
2018-07-06 14:32:50 -04:00
W. Trevor King
8aed3857d3
contrib/python/test/test_tunnel: Fix -nNT -> -nNTq
...
Catching the tests up with 60427ab3
(add podman remote client,
2018-06-22, #986 ) to avoid non-fatal smoketest failures like [1]:
======================================================================
FAIL: test_tunnel (test.test_tunnel.TestTunnel)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib64/python3.6/unittest/mock.py", line 1179, in patched
return func(*args, **keywargs)
File "/go/src/github.com/projectatomic/libpod/contrib/python/test/test_tunnel.py", line 79, in test_tunnel
mock_Popen.assert_called_once_with(cmd, close_fds=True)
File "/usr/lib64/python3.6/unittest/mock.py", line 825, in assert_called_once_with
return self.assert_called_with(*args, **kwargs)
File "/usr/lib64/python3.6/unittest/mock.py", line 814, in assert_called_with
raise AssertionError(_error_message()) from cause
AssertionError: Expected call: Popen(['ssh', '-nNT', '-L', '/tmp/user/socket:/run/podman/socket', '-i', '~/.ssh/id_rsa', 'ssh://user@hostname'], close_fds=True)
Actual call: Popen(['ssh', '-nNTq', '-L', '/tmp/user/socket:/run/podman/socket', '-i', '~/.ssh/id_rsa', 'ssh://user@hostname'], close_fds=True)
[1]: 0d792d5c92
.1.1529764423989739036/output.log
Signed-off-by: W. Trevor King <wking@tremily.us>
Closes : #1035
Approved by: mheon
2018-07-06 16:38:42 +00:00
Matthew Heon
c71845fa70
Bump to v0.7.1-dev
...
Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
2018-06-29 15:59:22 -04:00
baude
60427ab3d2
add podman remote client
...
podman client that is capable of:
* images
* ps
* rm
* rmi
this is only a mockup to frame out and prove python library and ssh
tunnelling usage.
Signed-off-by: baude <bbaude@redhat.com>
Closes : #986
Approved by: rhatdan
2018-06-27 04:52:22 +00:00
Matthew Heon
32bfb5107c
Bump to v0.6.5-dev
...
Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
2018-06-22 15:55:05 -04:00
Jhon Honce
2f0f9944b6
Add unittests and fix bugs
...
* Improved error messages
* Improved checking of user input
Signed-off-by: Jhon Honce <jhonce@redhat.com>
Closes : #978
Approved by: mheon
2018-06-22 17:25:44 +00:00
Daniel J Walsh
2c81a756e3
Update the version of conmon used in test
...
Also start using podmin in /usr/libexec/podman rather then crio.
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Closes : #979
Approved by: baude
2018-06-22 13:19:08 +00:00
Jhon Honce
7ea95a6afa
Implement SSH tunnels between client and podman server
...
* client currently forks ssh client pending finding a well
maintained ssh library for python. Including support for
AF_UNIX forwarding.
Signed-off-by: Jhon Honce <jhonce@redhat.com>
2018-06-19 20:08:20 -07:00
Matthew Heon
5d0557530a
Bump to v0.6.4-dev
...
Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
2018-06-15 11:15:14 -04:00
Daniel J Walsh
4bed83a54c
Bump to v0.6.3-dev
...
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2018-06-08 12:23:13 -04:00
Jhon Honce
93c1722caa
Add support for BuildImage
...
Signed-off-by: Jhon Honce <jhonce@redhat.com>
Closes : #908
Approved by: baude
2018-06-05 21:23:54 +00:00
Matthew Heon
e156208280
Bump to v0.6.2-dev
...
Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
2018-06-01 18:20:12 -04:00
Jhon Honce
4f5e6728b7
Provide examples for python podman API
...
Signed-off-by: Jhon Honce <jhonce@redhat.com>
Closes : #870
Approved by: rhatdan
2018-06-01 21:19:56 +00:00
Jhon Honce
727ecfeadf
Use Version from spec file in setup.py
...
- If envvar PODMAN_VERSION not set use default version of 0.0.0
Signed-off-by: Jhon Honce <jhonce@redhat.com>
Closes : #807
Approved by: rhatdan
2018-06-01 20:18:23 +00:00
Jhon Honce
80baf0d800
Fix lable handling
...
Signed-off-by: Jhon Honce <jhonce@redhat.com>
2018-06-01 10:03:54 -07:00
Jhon Honce
2cb881fa58
Implement container attach
...
Signed-off-by: Jhon Honce <jhonce@redhat.com>
2018-05-31 20:13:35 -07:00