Bug 1412150
Summary: | activation returns 0 even if it fails | ||
---|---|---|---|
Product: | Red Hat Satellite 5 | Reporter: | Jan Hutař <jhutar> |
Component: | Satellite Synchronization | Assignee: | Jan Dobes <jdobes> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Pavel Studeník <pstudeni> |
Severity: | low | Docs Contact: | |
Priority: | unspecified | ||
Version: | 580 | CC: | galtukho, pstudeni, rdrazny, tlestach |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | spacewalk-backend-2.5.3-120 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2017-06-21 12:13:35 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: | |||
Bug Blocks: | 1340444 |
Description
Jan Hutař
2017-01-11 12:02:24 UTC
I can't reproduce it on newer version, this case was probably fixed in different BZ, switching to MODIFIED. # rpm -q spacewalk-backend spacewalk-backend-2.5.3-120.el6sat.noarch # rhn-satellite-activate --manifest manifest_c8b26514-96db-4083-9682-3abf332eb8e9.zip 09:23:34 Populating channel families... 09:23:34 Updating certificates... 09:23:35 WARNING: 'CDN-CLIENT-CERT-8a99f99e596553270159741b1363080f' certificate is not valid. 09:23:36 WARNING: 'CDN-CLIENT-CERT-8a99f9845958a3cb01597406caed08e9' certificate is not valid. 09:23:37 Updating manifest repositories... ERROR: unhandled exception occurred: Traceback (most recent call last): File "/usr/bin/rhn-satellite-activate", line 38, in <module> sys.exit(abs(mod.main() or 0)) File "/usr/lib/python2.6/site-packages/spacewalk/satellite_tools/rhn_satellite_activate.py", line 549, in main localUpdateChannels(cdn_activate.manifest.get_satellite_certificate()) File "/usr/lib/python2.6/site-packages/spacewalk/satellite_tools/rhn_satellite_activate.py", line 290, in localUpdateChannels sync_handlers.populate_channel_family_permissions(sat_cert) File "/usr/lib/python2.6/site-packages/spacewalk/satellite_tools/sync_handlers.py", line 706, in populate_channel_family_permissions importer.run() File "/usr/lib/python2.6/site-packages/spacewalk/server/importlib/importLib.py", line 675, in run self.submit() File "/usr/lib/python2.6/site-packages/spacewalk/server/importlib/channelImport.py", line 301, in submit self.backend.processChannelFamilyPermissions(self.batch) File "/usr/lib/python2.6/site-packages/spacewalk/server/importlib/backend.py", line 1119, in processChannelFamilyPermissions cfp['channel_family'], cfp['max_members'], cfp['max_flex']) File "/usr/lib/python2.6/site-packages/spacewalk/server/rhnSQL/driver_postgresql.py", line 116, in __call__ result = Function.__call__(self, *args) File "/usr/lib/python2.6/site-packages/spacewalk/server/rhnSQL/driver_postgresql.py", line 92, in __call__ raise sql_base.SQLSchemaError(error_code, e.pgerror, e) spacewalk.common.rhnException.rhnFault: (23, 'ERROR: -20290 : (not_enough_entitlements_in_base_org) - You do not have enough entitlements in the base org.: org_id [1] family [rhel-client-7-rh-common-debug] max [-39]', 'Could not update database entry.') # echo $? 1 Verified with spacewalk-backend-tools-2.5.3-131.el6sat.noarch >> rhn-satellite-activate --manifest manifest.zip Certificate specifies 1 of enterprise_entitled entitlements. There are 8 entitlements used by systems in the base (id 1) organization. You might need to unentitle some systems in the base organization. You need to free 7 entitlements to match the new certificate. In the WebUI, the entitlement is named Management. Certificate specifies 1 of provisioning_entitled entitlements. There are 8 entitlements used by systems in the base (id 1) organization. You might need to unentitle some systems in the base organization. You need to free 7 entitlements to match the new certificate. In the WebUI, the entitlement is named Provisioning. Activation failed, will now exit with no changes. >> echo $? 1 >> rhn-satellite-activate --manifest manifest_fail.zip ERROR: Red Hat Satellite Entitlement Certificate failed to validate. MORE INFORMATION: Return value: 255 Standard-out: Standard-error: RHN::Exception: Required field slots not found in RHN::SatelliteCert=HASH(0x21a7f38) RHN::Cert /usr/share/perl5/vendor_perl/RHN/Cert.pm 218 RHN::Exception::throw main /usr/bin/validate-sat-cert.pl 60 RHN::Cert::check_required_fields ERROR: RHN Entitlement Certificate failed to validate. >> echo $? 10 |