Bug 1404260

Summary: RH Satellite Configuration - Certificate uses still certification
Product: Red Hat Satellite 5 Reporter: Pavel Studeník <pstudeni>
Component: ServerAssignee: Grant Gainey <ggainey>
Status: CLOSED CURRENTRELEASE QA Contact: Radovan Drazny <rdrazny>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 580CC: adujicek, ggainey, jdobes, rdrazny, tlestach
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: spacewalk-java-2.5.14-44-sat Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-06-21 12:08:33 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: 1340444    

Description Pavel Studeník 2016-12-13 13:39:29 UTC
Description of problem:
Satellite 5.8 uses manifest, not certification and this page is implemented for work with certification.

Change "Certificate" to "Manifest" and text field is not necessary because manifest is zipfile.

Version-Release number of selected component (if applicable):
spacewalk-java-2.5.14-32.el6sat.noarch

How reproducible:
always 

Steps to Reproduce:
1. Go to page /rhn/admin/config/CertificateConfig.do
2. Try to upload manifest

Actual results:
The page counts with certification

Expected results:
The page works with manifest

Additional info:
>>> /var/log/tomcat6/catalina.out <<<
2016-12-13 14:35:20,441 [TP-Processor1] ERROR com.redhat.rhn.manager.satellite.SystemCommandExecutor - Error encountered executing (args=[/usr/bin/sudo, /usr/bin/rhn-satellite-activate, --old-api, --rhn-cert, /var/cache/tomcat6/temp/cert_textZ3W4xGmwCuZ8e.cert, --disconnected])
2016-12-13 14:35:20,442 [TP-Processor1] ERROR com.redhat.rhn.manager.satellite.SystemCommandExecutor - Error message from process: Usage: rhn-satellite-activate [options]

rhn-satellite-activate: error: no such option: --old-api

Comment 1 Pavel Studeník 2016-12-13 14:09:43 UTC
This page was removed in Spacewalk

Two options exist for solution

* removed this page from Satellite as well
* transform to work with manifest

Comment 3 Grant Gainey 2017-01-06 19:26:57 UTC
To do:

* admin/config/CertificateConfig.do => .../ManifestConfig.do
* Tab-name to 'Manifest'
* left-nav to 'Manifest'
* Page header to 'Red Hat Satellite Manifest'
* 'Upload Manifest'
* lose text-entry-field
* CertificateConfigAction => ManifestAction
* ConfigureCertificateCommand => UploadManifestCommand
* UploadManifestCommand - update to use new cmdline params

Comment 6 Grant Gainey 2017-02-06 15:08:08 UTC
Pulling back to assigned while investigating a possible bug

Comment 7 Grant Gainey 2017-02-06 19:01:19 UTC
#c6 is a false alarm - rhn-satellite-activate doesn't give the UI enough info to do better than it does when reporting that there was a problem. Returning to 'ON_QA'

Comment 8 Radovan Drazny 2017-05-17 14:31:51 UTC
Verified on compose Satellite-5.8-RHEL-6-20170509.n.0.

> * admin/config/CertificateConfig.do => .../ManifestConfig.do
New page URL is ../admin/config/ManifestUpload.do
Check.

> * Tab-name to 'Manifest'
Check.

> * left-nav to 'Manifest'
Check.

> * Page header to 'Red Hat Satellite Manifest'
Check.

> * 'Upload Manifest'
"Upload Manifest File"
Check.

> * lose text-entry-field
No text entry field present.
Check.

> * CertificateConfigAction => ManifestAction
> * ConfigureCertificateCommand => UploadManifestCommand
> * UploadManifestCommand - update to use new cmdline params

Manifest upload is working, there was a "reactivation successful" message, /var/log/rhn/activation.log contained message about activation using "Command: ['/usr/bin/rhn-satellite-activate', '--manifest', '/var/cache/tomcat6/temp/cert_textiR5nOPggZgvqj.cert']" command.