Bug 1390241

Summary: ISE 500 during pushing solaris packages
Product: Red Hat Satellite 5 Reporter: Pavel Studeník <pstudeni>
Component: ServerAssignee: Gennadii Altukhov <galtukho>
Status: CLOSED CURRENTRELEASE QA Contact: Jan Hutař <jhutar>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 580CC: galtukho, jhutar, pstudeni, tlestach
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: spacewalk-backend-2.5.3-66-sat Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-06-21 12:13:39 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:
Bug Depends On:    
Bug Blocks: 1358815    
Attachments:
Description Flags
Solaris package for testing none

Description Pavel Studeník 2016-10-31 14:44:20 UTC
Description of problem:
I tried push a solaris packages to Satellite 5.8. This version of product doesn't support solaris architecture (include pushing of package). I think that some message should be shown instead of errors.


Version-Release number of selected component (if applicable):
spacewalk-backend-server-2.5.3-23.el6sat.noarch

How reproducible:
always

Steps to Reproduce:
1. rhnpush -c test-channel-x86_64-4 *.mpm

Actual results:
Internal Server Error

Expected results:
Without ISE and show some corresponding message

Additional info:
>> tail /var/log/httpd/error_log

Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/spacewalk/server/apacheUploadServer.py", line 103, in _wrapper
    ret = function(req)
  File "/usr/share/rhn/upload_server/handlers/package_push/package_push.py", line 125, in handler
    relative_path=self.rel_package_path, org_id=self.org_id)
  File "/usr/lib/python2.6/site-packages/spacewalk/server/rhnPackageUpload.py", line 158, in push_package
    importer.run()
  File "/usr/lib/python2.6/site-packages/spacewalk/server/importlib/importLib.py", line 668, in run
    self.submit()
  File "/usr/lib/python2.6/site-packages/spacewalk/server/importlib/packageImport.py", line 313, in submit
    transactional=self.transactional)
  File "/usr/lib/python2.6/site-packages/spacewalk/server/importlib/backend.py", line 756, in processPackages
    transactional=transactional)
  File "/usr/lib/python2.6/site-packages/spacewalk/server/importlib/backend.py", line 1616, in __processObjectCollection__
    _buildExternalValue(extObject, object, parentTableObj)
  File "/usr/lib/python2.6/site-packages/spacewalk/server/importlib/backend.py", line 2113, in _buildExternalValue
    dict[f] = sanitizeValue(entry[attr], datatype)
  File "/usr/lib/python2.6/site-packages/spacewalk/server/importlib/backendLib.py", line 518, in sanitizeValue
    return int(value)
TypeError: int() argument must be a string or a number, not 'list'

Comment 1 Tomas Lestach 2016-10-31 15:35:56 UTC
What is the rhnpush output?

Comment 2 Pavel Studeník 2016-10-31 15:38:40 UTC
>> rhnpush -u admin -p nimda --server=https://localhost/APP -c test-channel-x86_64-4 -d sparc
('Internal server error', 500, 'Internal Server Error')
Error pushing (...)/sparc/CSWcommon-1.5-2010.07.29_PSTAMP_2010.07.30.02.13.sparc-solaris.mpm:  (500)
Waiting 5 seconds and trying again...

Comment 3 Pavel Studeník 2016-11-01 13:42:31 UTC
Created attachment 1216119 [details]
Solaris package for testing

Comment 5 Gennadii Altukhov 2017-02-20 14:28:03 UTC
bug is fixed in upstream. spacewalk.git:
ea1adc3d9076ca4b2310b032608973a56ec516cd