Bug 1302996

Summary: 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.
Product: [Community] Spacewalk Reporter: Gennadii Altukhov <galtukho>
Component: APIAssignee: Gennadii Altukhov <galtukho>
Status: CLOSED CURRENTRELEASE QA Contact: Red Hat Satellite QA List <satqe-list>
Severity: medium Docs Contact:
Priority: medium    
Version: 2.4CC: aupadhye, galtukho, nerawat, satqe-list, tkasparek, xdmoon
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 1086451 Environment:
Last Closed: 2016-06-16 08:01:58 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1086451    
Bug Blocks: 1484117    

Description Gennadii Altukhov 2016-01-29 09:10:55 UTC
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 09:11:33 UTC
Taking...

Comment 2 Gennadii Altukhov 2016-01-29 09:12:56 UTC
Taking...

Comment 3 Gennadii Altukhov 2016-01-29 12:21:50 UTC
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 08:01:58 UTC
Spacewalk 2.5 was released.

Comment 5 Eric Herget 2017-09-28 18:08:57 UTC
This BZ closed some time during 2.5, 2.6 or 2.7.  Adding to 2.7 tracking bug.