Bug 1302996 - The system.comparePackageProfile and system.comparePackages API do not return installed rpm's package_id instead it returns 'package_name_id'. This makes it unsuable with other APIs like system.schedulePackageInstall and system.schedulePackageRemove.
The system.comparePackageProfile and system.comparePackages API do not return...
Status: CLOSED CURRENTRELEASE
Product: Spacewalk
Classification: Community
Component: API (Show other bugs)
2.4
All Linux
medium Severity medium
: ---
: ---
Assigned To: Gennadii Altukhov
Red Hat Satellite QA List
:
Depends On: 1086451
Blocks:
  Show dependency treegraph
 
Reported: 2016-01-29 04:10 EST by Gennadii Altukhov
Modified: 2016-06-16 04:01 EDT (History)
6 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 1086451
Environment:
Last Closed: 2016-06-16 04:01:58 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Gennadii Altukhov 2016-01-29 04:10:55 EST
The system.comparePackageProfile API does not return installed rpm's package_id instead it returns 'package_name_id'. This makes it unsuable with other APIs like system.schedulePackageInstall and system.schedulePackageRemove.

There is no other API which returns package id when package_name_id is provided.

When there are multiple systems comparing them with stored package profile from WebUI is manual task. The API system.comparePackageProfile can be used to automate this but as this provides package_name_id its not usable with any other API.
Comment 1 Gennadii Altukhov 2016-01-29 04:11:33 EST
Taking...
Comment 2 Gennadii Altukhov 2016-01-29 04:12:56 EST
Taking...
Comment 3 Gennadii Altukhov 2016-01-29 07:21:50 EST
spacewalk.git:

a60ba0f5d0f12bfc685f375bca0fb72fe7a90d3d
7531663c58fe6e92d68e4408d6fbb55d9c59d4da

Changes to fix bug:

1) added information about epoch, version, release to PackageMetadataSerializer (if epoch is null, PackageMetadataSerializer omit it from XML-RPC)

2) Added new API-methods to install/remove packages using their Nevra:

schedulePackageInstallByNevra
schedulePackageRemoveByNevra
Comment 4 Tomáš Kašpárek 2016-06-16 04:01:58 EDT
Spacewalk 2.5 was released.

Note You need to log in before you can comment on or make changes to this bug.