Initial LMC optparsing post for koji cli, and probably needs improvement as
backside arguments are fleshed out. Code taken iand modified slightly
from handle_spin_appliance() by Jay Greguski.
Signed-off-by: Jon Disnard <jdisnard@redhat.com>
Wait-repo had time.sleep(60) call before a check for timeout
expiration was done. This patch moves the check before
the sleep() call.
Signed-off-by: Tomas Mlcoch <tmlcoch@redhat.com>
This patch adds support to build squashfs images which are compatible to
anaconda's liveimg directive and dracuts liveimg feature.
The feature is pretty simple, as it just reuses the raw diskimage, and
strips the disklabel, to retrieve the plain filesystem image.
Two open issues:
- Stripping the disk label is a pretty hack
- Database schema upgrade is missing
Signed-off-by: Fabian Deutsch <fabiand@fedoraproject.org>
Dict comprehensions (PEP-274) were added to python 2.7+. The patch that added the --mine
option to list-tasks made use of a dict comprehension, which broke python 2.6 support.
This patch restores the older dict() + list comprehension approach, which restores
support for python 2.6.
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
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.
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.