[Kimchi-devel] [PATCH 0/4] Host's software update support

Paulo Vital pvital at linux.vnet.ibm.com
Mon Jan 27 16:34:04 UTC 2014


This patch set provides support to host's software update operations.

At this point, an agnostic class is providing support to backend and 
REST API operations. In addition, YUM (for RHEL and Fedora), APT (for
Debian and Ubuntu) and ZYPPER (for OpenSuse) specific classes are provided
to support the operation os each software update system.

There's no test case to check backend once the software update information 
is volatile to each system/box.

To test the REST API, execute the following commands (all them are agnostic
of the host's distro):

1) Get list of all packages to be updated in the host:
$curl -H 'Content-type: application/json' -H 'Accept: application/json' http://localhost:8000/host/softwareupdate/ -X GET

2) Update the host system:
$ curl -H 'Content-type: application/json' -H 'Accept: application/json' http://localhost:8000/host/softwareupdate/update -X POST -d ''

Paulo Vital (4):
  Host's software update: Update API.md
  Host's software update: Update REST API
  Host's software update: Update backend.
  Host's software update: Update Makefile

 docs/API.md                |  20 ++++
 src/kimchi/Makefile.am     |   1 +
 src/kimchi/control/host.py |  12 ++
 src/kimchi/mockmodel.py    |  12 ++
 src/kimchi/model.py        |   8 ++
 src/kimchi/swupdate.py     | 279 +++++++++++++++++++++++++++++++++++++++++++++
 6 files changed, 332 insertions(+)
 create mode 100644 src/kimchi/swupdate.py

-- 
1.8.3.1




More information about the Kimchi-devel mailing list