Commit graph

1992 commits

Author SHA1 Message Date
Zbigniew Jędrzejewski-Szmek
6e80ecfe16 Add watch-tasks alias
list-tasks wants a matching watch-tasks counterpart.
2016-03-11 15:21:56 -05:00
Zbigniew Jędrzejewski-Szmek
3b8861c78b Implement watch-task --mine, --user, etc
This is useful to e.g. wait on tasks you have fired off without
having to explicitly list their ids. For simplicity,
watch-tasks accepts the same options as list-tasks.
2016-03-11 15:21:56 -05:00
Zbigniew Jędrzejewski-Szmek
79f2fb565d Split out task list retrieval 2016-03-11 14:51:23 -05:00
Mike McLean
736eb068fd add --krbservice cli opt 2016-02-16 12:17:41 -05:00
Michael Bonnet
b4bd435ba8 Merge #24 separate and clean up schema clearing sql commands 2016-02-10 17:26:06 +00:00
Pavol Babincak
b964487d57 Configure httpd's access control automatically with IfVersion
See documentation for upgrading to 2.4:
https://httpd.apache.org/docs/2.4/upgrading.html#access
2016-02-05 09:07:24 -05:00
Mike McLean
5aa6ed4818 move table drops to schema-clear.sql 2016-02-05 08:58:49 -05:00
Mike McLean
4b98f6bd47 drop tables in reverse creation order 2016-02-05 08:50:49 -05:00
Pavol Babincak
401e232508 CLI: fix download-task's session typo
Koji CLI calls on like this:

    koji -d download-task $TASK_ID

which involve getTaskChildren() XMLRPC call fail:

    ...
    File "/usr/bin/koji", line 6460, in anon_handle_download_task
        base_task = session.getTaskInfo(base_task_id)
    NameError: global name 'session' is not defined
2016-02-04 11:41:02 -05:00
Mike McLean
3b182a096a Merge #22 Drop tables and functions only if exist 2016-02-04 16:10:20 +00:00
Mike McLean
6513039f4d obr archivetype 2016-02-01 09:46:57 -05:00
Pavol Babincak
48c48606fe Drop tables and functions only if exist
At the time of first initialization of Koji database tables and
functions don't exist. This isn't really a problem as SQL commands later
in the script create them.

For non-existent tables or functions psql prints NOTICE instead of an
ERROR. Therefore one can check if database was initialized correctly
with ON_ERROR_STOP set (see psql(1)):

     psql returns 3 if an error occurred in a script and the variable
     ON_ERROR_STOP was set.
2016-01-21 16:57:52 +01:00
Mike McLean
709558eaa9 cli: if given an rpm name without --rpm, download the containing build 2016-01-18 16:34:15 -05:00
Mike McLean
393dba2fa9 cli: handle rpms in download-build 2016-01-18 16:34:09 -05:00
Mike McLean
4365699e84 add-pkg: use multicall and ignore existing packages 2016-01-18 16:22:59 -05:00
Mike McLean
a621081b4e wsdl archivetype 2016-01-15 12:01:51 -05:00
Mike McLean
a6c218df94 avoid traceback when cli fails to parse task parameters
also, fix parameter parsing for createLiveCD and createAppliance
2016-01-11 14:30:55 -05:00
Mike McLean
33cf1ab6f2 avoid masking exceptions in retry code 2016-01-05 17:56:40 -05:00
Mike McLean
7e56b133a0 handle Unexpected EOF exceptions on reads 2016-01-05 17:56:40 -05:00
Mike McLean
de92c542dc clarify error message for noarch rpmdiff mismatches
see https://fedorahosted.org/koji/ticket/325
2016-01-04 15:15:00 -05:00
Mike McLean
8168da12cd add rc archivetype 2016-01-04 12:44:35 -05:00
Mike McLean
7bac2721f8 fix errors in several raise statements 2015-12-21 13:31:17 -05:00
Dennis Gilmore
490dc1e958 allow filtering runroot tasks
Signed-off-by: Dennis Gilmore <dennis@ausil.us>
2015-12-17 14:06:19 -06:00
Mike McLean
4d528dfcd4 add missing comma in schema file 2015-12-15 18:55:03 -05:00
Mike McLean
d3da1bb50b adjust default seach result order for large tables
Based on a user request. For some searches, ordering by id descending
(approximately "most recent") makes more sense.
2015-12-14 11:09:41 -05:00
Mike McLean
a2ed2beb38 adjust option name to: use_createrepo_c 2015-12-11 16:49:37 -05:00
Dennis Gilmore
cfe69773c2 enable using createrepo_c instread of createrepo.
Make createrepo_c use a configurable action, defaulting to createrepo

Signed-off-by: Dennis Gilmore <dennis@ausil.us>
2015-12-11 16:46:40 -05:00
Mike McLean
cdf8c2497d fix using https url with non-ssl auth in python 2.7.9+
In python 2.7.9, a context option was added to httplib.HTTPSConnection and
changed its behavior to performs certificate and hostname checks by default.

While this is definitely an improvement, we were relying on the old behavior.
This change restores that (until we can switch to proper verification).
2015-12-11 16:39:14 -05:00
Mike McLean
9453272a50 remove additional dead ssl code
I've been meaning to do this for a while. No part of Koji uses the
removed code anymore (some of it was never used by Koji)
2015-12-11 16:34:44 -05:00
Dennis Gilmore
86ca706a2e Make sure a URL is written to the output kickstart file.
pykickstart isn't setting ks.handler.url.seen when setting url.url, but
it does set seen when using the style in this patch.  Having seen set,
the URL line should be written to the kickstart file.

Patch written by Chris Lumens <clumens@redhat.com>

Signed-off-by: Dennis Gilmore <dennis@ausil.us>
2015-12-11 16:00:42 -05:00
Dennis Gilmore
b968701b85 Don't use stringToVersion from pykickstart.
First off, it's in the version module, not in the parser.  Second, it's
not necessary since makeVersion will take either a string or a constant
as an argument.

Patch by Chris Lumens <clumens@redhat.com>

Signed-off-by: Dennis Gilmore <dennis@ausil.us>
2015-12-11 16:00:41 -05: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 McLean
c54ea3312a new archivetypes: shell scripts and batch files 2015-12-10 14:45:37 -05:00
Dennis Gilmore
625c6dbcf5 fix the matching of archivetypes
updated query came from mikem in https://pagure.io/koji/issue/10

Signed-off-by: Dennis Gilmore <dennis@ausil.us>
2015-12-10 12:34:13 -06:00
Mike McLean
c8fccdeba5 display task info for regen-repo command 2015-12-04 16:31:55 -05:00
Mike McLean
b74052f0cd don't break listArchives argument ordering 2015-12-04 16:04:34 -05:00
Mike McLean
14caa6edb7 fix query opts in repo_references 2015-12-04 16:04:34 -05:00
Mike McLean
bf57dfca5b avoid waiting on empty task list in newRepo tasks 2015-12-04 16:04:34 -05:00
Mike McLean
4d981318dc avoid db error when taskSetWait called with empty task list 2015-12-04 16:04:34 -05:00
Mike McLean
a1e8ff5ba5 fix query opts passing in repo_references 2015-12-04 16:04:34 -05:00
Mike McLean
2853c9b4f4 ensure fixed_params variable is defined 2015-12-04 16:04:34 -05:00
Mike McLean
a63e61dcef fix nvr recycling 2015-12-04 16:04:33 -05:00
Mike McLean
964561b426 fall back to client side info for authtype 2015-12-03 19:50:10 -05:00
Mike Bonnet
5569c058c1 print the correct authentication method in "koji moshimoshi" 2015-12-01 18:51:53 -05:00
Mike McLean
ecb5c5a397 remove stray # from literal footers in web ui 2015-12-01 13:02:31 -05:00
Mike McLean
41237ec6a9 taginfo: return error code if tag does not exist, drop stray newlines 2015-12-01 13:02:31 -05:00
Till Maas
3a13307598 Increase default SSL timeout to 600
60 is not enough to process a full release like Rawhide and last I
checked the code to use a different timeout than the default timeout
does not work. Therefore use a working default value.

Signed-off-by: Till Maas <opensource@till.name>
2015-11-27 18:39:13 +01:00
Mike McLean
47189e0c3a Merge branch 'cgen'
Merge in content generator changes

Conflicts:
	hub/kojihub.py
2015-11-18 10:55:21 -05:00
Mike McLean
c1e1f34f64 remove mutable default args in _do_target_image 2015-11-17 15:13:57 -05:00
Ian McLeod
66fdccd1b3 add mechanism for general purpose parameter passing to Image Factory
We originally added semi-generic parameter passing for OVA support and
then overloaded it for Vagrant support, before breaking that back out
as specific image types.

This change adds a fairly generic mechanism for parameter passthrough
to plugins and the base builder that does not require patching the
builder and CLI each time a new class of parameter is added to Factory.

The immediate reason for doing this is to expose the Docker plugin's
ability to set custom labels, environments and commands, but it is
likely to be useful for other things in the future.
2015-11-17 14:47:30 -05:00