Bug 972891
Summary: | DBCHANGE needed to support Satellite5.6-Beta2 | ||
---|---|---|---|
Product: | [Retired] Red Hat Network | Reporter: | vikas kumar <vkumar> |
Component: | RHN/API | Assignee: | Derek Brown <debrown> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Nicole Yancey <nyancey> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | MR51 (AMS) | CC: | bsaylor, dspaldin, jturel, nbronson, nyancey, vlaad |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
URL: | https://url.corp.redhat.com/chg1953 | ||
Whiteboard: | CHG1953 | ||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2013-06-27 16:08:21 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: |
Description
vikas kumar
2013-06-10 18:25:57 UTC
Spoke to Grant and made two changes to the queries. 1) We set beta flag to Y instead of N. 2) removed insert for RHN Proxy, That isn't part of the beta. dbchange looks good! Testing Steps Quick Reference 1) create new user 2) grant-sku.cgi: MCT0370 qty 1 3) generate sat cert in portal UI 4) ssh to am-satellite, register system to new account/env and activate the satellite (see: 'history' command) Activation should pass. http://git.corp.redhat.com/cgit/rhn/rhn/commit/?id=f2633888d05a6d6776e4616e3d9b627eacbf388a On dev and ready to test. We need to include the 5.6beta version in the getVersions API. I've made the code change, pending review. Code review complete http://git.corp.redhat.com/cgit/rhn/rhn/commit/?id=8d8e504a6df7dfef185fdcdf6d983d987b567d83 Use the following command on am-rhn2.devlab.phx1.redhat.com: python /git/rhn-hosted/java/rhn/xml_rpc_api/callAnyMethod.py dev2 public.satellite.getVersions rhn-noc redhat This is ready to test. moved to version 6.1.8: http://git.corp.redhat.com/cgit/rhn/rhn/commit/?id=a61ec390d15c61b2341eb338c7b9b6b720f0cb61 verified on ams-dev2 Link to test run - https://tcms.engineering.redhat.com/run/66827/ Do not understand why must generate certificate with account that has MCT0370 first, then upload certificate after user is granted SKU SYS1192 or SYS0962. Steps to Reproduce: 1. Create new login - ny_0624q1 2. Grant the following SKUs to user: MCT0370, SYS1192 and SYS0062 3. Register system - rhnreg_ks --serverUrl http://xmlrpc.rhn.qa.redhat.com/XMLRPC --username ny_0624q1 --password redhat --force 4. Generate satellite certificate - python callAnyMethod.py qa public.satellite.generateCertificate ITENGRHNUSER redhat 6567000 5.6beta '{@2902367 : 1}' > certificate.xml Expected result - certificate should be generated successfully Actual result - Traceback (most recent call last): File "callAnyMethod.py", line 157, in <module> main(sys.argv) File "callAnyMethod.py", line 149, in main res = obj(*rpc_args) File "/usr/lib64/python2.6/xmlrpclib.py", line 1199, in __call__ return self.__send(self.__name, args) File "/usr/lib64/python2.6/xmlrpclib.py", line 1489, in __request verbose=self.__verbose File "/usr/lib64/python2.6/xmlrpclib.py", line 1253, in request return self._parse_response(h.getfile(), sock) File "/usr/lib64/python2.6/xmlrpclib.py", line 1392, in _parse_response return u.close() File "/usr/lib64/python2.6/xmlrpclib.py", line 838, in close raise Fault(**self._stack[0]) xmlrpclib.Fault: <Fault 10064: 'Tried to generate certificate for Multi Satellite Org: '> Executed above test with following logins: ny_0621q2 and ny_0621qqq. ***Workaround - Grant user MCT0370 only, then generated the certificate. After certificate is generated, grant the user the skus - SYS0962 and SYS1198. Now user can successfully upload the certificate. ----------------------------------------------------------------------- NOTE: In dev2, 5.6 beta certificate is generated and activated for account that has MCT0370, SYS1192 and SYS0062. Login=ny_0624d22 verified on qa SKU configuration. In QA should only use 1 of the SKUs - SYS0962 or SYS1198. Pushed to production 06/27 |