Mike McLean
4b36a8f2f9
fix spelling error
2016-09-15 15:59:03 -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
Zbigniew Jędrzejewski-Szmek
7c435492cf
Add systemd unit file for kojivmd
...
Signed-off-by: Dennis Gilmore <dennis@ausil.us>
2015-06-07 08:14:53 -05:00
Pavol Babincak
9e89ebb9a4
Ran reindent.py from cpython tools on all python scripts
...
Citing from reindent docs:
Change Python (.py) files to use 4-space indents and no hard tab
characters. Also trim excess spaces and tabs from ends of lines, and
remove empty lines at the end of files. Also ensure the last line
ends with a newline.
Citing from PEP 8:
Use 4 spaces per indentation level.
Python 2 code indented with a mixture of tabs and spaces should be
converted to using spaces exclusively.
Don't write string literals that rely on significant trailing
whitespace. Such trailing whitespace is visually indistinguishable
and some editors (or more recently, reindent.py) will trim them.
Also PyLint recommends not to have trailing whitespace on any line.
2015-05-13 16:39:53 -04:00
Mike Bonnet
ab53d2deb0
update copyright
2014-10-28 23:54:21 -04:00
Mike Bonnet
df316c0c6f
xmlrpclib is not thread-safe, create a new ServerProxy instance so we're not sharing with the stream_logs thread
2014-10-28 23:54:20 -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 Bonnet
407a1764e4
also exclude SCM metadata dirs from the sources and patches zip files of Windows builds
2012-12-19 17:10:36 -05: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
95c61ca424
expand $name, $version, and $release in postbuild checks
2011-04-04 15:36:11 -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
20c1d4f10d
set source_dir, spec_dir, and patches_dir variables when executing the build
2011-04-04 11:52:20 -04:00
Mike Bonnet
6099255dab
zip checkouts of sources, spec, and patches, and include them in build output
2011-04-04 11:52:20 -04:00
Mike Bonnet
6710853fce
only use patch files ending in .patch
2011-04-04 11:52:20 -04:00
Mike Bonnet
dcbe99e9e1
use full path when exec'ing tools
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 Bonnet
891b5fa35e
promote some useful logging from debug to info
2010-11-11 10:36:50 -05:00
Mike Bonnet
850c509a2b
remove obsolete files from koji-vm development
2010-10-21 14:03:24 -04:00
Mike McLean
94ea106518
alter SCM.checkout() to mesh with kojikamid
2010-10-20 16:19:05 -04:00
Mike McLean
b16b3304f4
replace 'heinous copy&paste' with build-time substitution
2010-10-20 16:19:05 -04:00
Mike McLean
5d190c9aeb
rename kojikamid
2010-10-20 16:19:05 -04:00
Mike McLean
e1fc769c70
package kojivmd
2010-10-20 16:18:56 -04:00
Mike McLean
048cda0496
remove trailing whitespace
2010-10-06 16:41:27 -04:00
Jay Greguske
47d4302863
added kojivmd initscript
2010-09-28 16:12:33 -04:00
Mike Bonnet
8cb82d0c5f
update qemu-img option format for RHEL-6
2010-09-23 13:56:18 -04:00
Jay Greguske
c1e9b18dd6
added support for $name $version $release variables in execute=, output=, and logs= fields
2010-09-22 12:27:21 -04:00
Mike Bonnet
64df809ab6
add support for wrapping win-build output in rpms
2010-09-17 11:27:33 -04:00
Mike Bonnet
b1c11c07d0
add support for an optional epoch
2010-09-16 17:59:03 -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
Jay Greguske
f37b8184e5
check that clamAV is installed before bothering to build
2010-09-02 18:15:55 -04:00
Jay Greguske
fc34dba899
added virus checking with ClamAV
2010-09-01 16:08:19 -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
e764f30551
enable validation of build output
2010-08-10 12:06:26 -04:00
Mike Bonnet
a45ad20df1
allow the spec file to define a list of files, directories, and commands that must be available in the chroot for the build to run
2010-08-09 13:21:18 -04:00
Mike Bonnet
cacaeb1285
- do all logging using the same handler, to simplify reading the build log
...
- pass the file object to StreamHandler
2010-08-09 13:20:23 -04:00
Mike Bonnet
dcf665862b
- more logging cleanup
...
- move logic into main()
2010-08-09 09:46:14 -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
4e8eb0c4e3
retry fail incremental uploads
2010-08-04 15:14:44 -04:00