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.
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
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.
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).
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>
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>
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.
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>
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.