Commit graph

56 commits

Author SHA1 Message Date
Franz Chih-Ping Hsieh
f356ac4f17 force using python2 to run script
Fixes #945
2018-05-24 00:01:30 -04:00
Mike McLean
4c07073403 simplify check for krbV module 2018-04-02 16:38:27 -04:00
Mike McLean
91b306e108 Avoid failing at import time if krbV module is missing
Several parts of Koji already handled this absence gracefully. This change
extends that behavior to all places where krbV is imported.
2018-04-02 16:38:27 -04:00
Tomas Kopecek
8f22069fda drop old ssl support + compatrequests
Koji now uses ssl via python-requests

 - use_old_ssl option is removed
 - koji.ssl library removed
 - compatrequests dropped

Related: https://pagure.io/koji/issue/467
2018-01-03 12:47:03 +01:00
Tomas Kopecek
7c62fb7023 Don't check non-existing file
Related: https://pagure.io/koji/issue/665
2017-11-09 17:50:57 -05:00
Mike McLean
900767cf4b add krb_canon_host option to various clients 2017-10-27 15:32:25 -04:00
Tomas Kopecek
bf0552e6de use contextlib wrapper for older python-requests 2017-10-16 10:03:42 -04:00
Tomas Kopecek
7e2cb6b156 replace pycurl with requests
Related: https://pagure.io/koji/issue/600
2017-10-16 10:03:42 -04:00
Mike McLean
2865f2421b avoid using encode_int in some of the client code 2017-08-25 16:48:02 -04:00
Mike McLean
ca9bd3941b kojivmd: fix typo in serverca path and also fix cert value 2017-08-23 15:00:02 -04:00
Mike McLean
3461e334b2 fix serverca default in kojivmd 2017-08-23 15:00:02 -04:00
Tomas Kopecek
644792ff76 replace urlgrabber with pycurl 2017-06-01 09:39:23 +02:00
Tomas Kopecek
cc9fff9840 remove has_key (not working in python3) 2017-03-07 08:15:20 -05:00
Tomas Kopecek
1494301465 use new exception syntax 2017-03-02 10:52:30 -05:00
Mike McLean
d81d293ed9 allow setting more session options in kojivmd 2016-11-22 16:41:31 -05:00
Mike McLean
89ca42f224 use grab_session_options everywhere 2016-11-22 16:41:31 -05:00
Mike McLean
b4be256abd no coverage for unreached code 2016-10-25 17:16:12 -04:00
Mike McLean
a1c8808544 ImportErrors are uncovered 2016-10-25 17:16:12 -04:00
Mike McLean
b0cdd312ec add krb_rdns option. see https://fedorahosted.org/koji/ticket/328 2016-05-11 16:58:41 -04:00
Till Maas
ffcf1a30eb Remove dead client CA code
The client CA is only needed to for authentication on the server side,
not for authentication on the client side. Therefore remove it from all
client login code.
2015-12-10 18:51:10 -05:00
Mike Bonnet
ab53d2deb0 update copyright 2014-10-28 23:54:21 -04:00
Mike Bonnet
13f7cd2ec3 vm/kojivmd: only clone disk devices 2013-06-20 15:51:30 -04:00
Mike Bonnet
b735b8b371 vm/kojivmd: virt-clone limits the new VM name to 50 characters 2013-06-20 15:51:26 -04:00
Mike Bonnet
33dada913b vm/kojivmd: it is no longer necessary to set the disk type manually 2013-06-20 15:51:23 -04:00
Mike Bonnet
1d13ee6474 win-build: add the --static-mac option to win-build, which retains the original MAC address 2013-06-20 15:51:20 -04:00
Mike Bonnet
a90d8bfb57 vm/kojivmd: use Popen.communicate() to avoid deadlocks 2013-06-20 15:51:15 -04:00
Cole Robinson
1ced6e2b5e kojivmd: Call out to virt-clone instead of virtinst
Reason is that virtinst is going away as a public library, hopefully
for F17. It wasn't ever really intended to be used publically, and it's
not very good :) Long term it will mostly go away anyways as we move to
libvirt-gobject based libraries.

Unfortunately this change doesn't simplify the koji code any, but it
should be equivalent functionality. I did some local unit testing to
verify it was giving sane results, but I'd appreciate if someone with
an actual koji setup could test.
2013-06-20 12:57:12 -04:00
Mike McLean
dd48297c04 use encode_int whenever uploadFile rpc call is used directly 2012-05-16 15:33:02 -04:00
Mike Bonnet
b2edd9011c add "koji wrapper-rpm --create-build" which creates a new build to contain the wrapper rpms 2011-12-12 15:36:07 -05:00
Mike Bonnet
3d28cc0ac3 avoid collisions when downloading files from different builds with the same path and filename 2011-12-12 12:28:41 -05:00
Mike Bonnet
df0e871538 handle rpm and archive tracking in buildroots separately 2011-04-26 14:30:03 -04:00
Mike Bonnet
89d8055731 create BuildRoot objects for Windows builds, and track Windows build dependencies 2011-04-04 11:52:21 -04:00
Mike Bonnet
ea41e74a95 stream all log files to the hub 2011-04-04 11:52:20 -04:00
Mike Bonnet
9d8aae02b9 fix url generation when downloading buildreqs 2011-04-04 11:52:20 -04:00
Mike Bonnet
eea730300a - enable use of a Kerberos service name other than host/ on the hub
- get the Kerberos realm from the client principal, rather than assuming the last two components of the domain name
2011-01-06 15:54:53 -05:00
Mike McLean
482531dcd3 add mass restart support to kojivmd 2010-12-03 11:31:24 -05:00
Mike McLean
048cda0496 remove trailing whitespace 2010-10-06 16:41:27 -04:00
Mike Bonnet
8cb82d0c5f update qemu-img option format for RHEL-6 2010-09-23 13:56:18 -04:00
Mike Bonnet
64df809ab6 add support for wrapping win-build output in rpms 2010-09-17 11:27:33 -04:00
Mike Bonnet
68007995d4 rename --specfile to --winspec so we can use --specfile for wrapper rpms, for consistency with maven-build 2010-09-13 17:23:49 -04:00
Mike Bonnet
52b742634a set cpus and mem directly in the XML, since libvirt in RHEL-6 doesn't support calling vm.setVcpus() or vm.setMemory() on a VM that isn't running 2010-08-10 15:31:20 -04:00
Mike Bonnet
f619543ac8 support specifying parameters of a buildrequires, including type, which allows builds of one type to depend on files from builds of a different type 2010-08-06 08:34:24 -04:00
Mike Bonnet
ae87028d6c support running execute commands with cmd.exe 2010-08-04 15:14:44 -04:00
Mike Bonnet
63f0d357a3 only claim vmExec tasks if the requested VM is available on the current host 2010-07-30 13:31:06 -04:00
Mike Bonnet
b68b43bca9 verify checksum of buildrequires using fileinfo from the server 2010-07-27 00:46:32 -04:00
Mike Bonnet
46a6f85873 - support streaming logfile output from Windows builds
- cleanup logging a bit
2010-07-26 19:16:14 -04:00
Mike Bonnet
91dbcf0b0b remove a couple of unnecessary extra classes 2010-07-26 15:58:45 -04:00
Mike Bonnet
19f37862e7 make sure we're always working with an absolute path 2010-07-26 13:34:06 -04:00
Mike Bonnet
ebf9aaaf1b verify buildrequires after downloading them 2010-07-26 12:53:28 -04:00
Mike Bonnet
fa5c7722cd support for retrieving buildrequires 2010-07-26 11:58:51 -04:00