Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1867153

Summary: Fix Capsule upgrade playbook template
Product: Red Hat Satellite Reporter: Vladimír Sedmík <vsedmik>
Component: Ansible - Configuration ManagementAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED DUPLICATE QA Contact: Lukas Pramuk <lpramuk>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.8.0CC: mawerner, tbrisker
Target Milestone: 6.8.0Keywords: Triaged
Target Release: Unused   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Known Issue
Doc Text:
Fix Capsule upgrade playbook template
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-08-24 11:05:22 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 Vladimír Sedmík 2020-08-07 14:10:08 UTC
Description of problem:
In Sat 6.8 a new feature "Capsule upgrade automation" has been introduced and tracked here: https://projects.theforeman.org/issues/29643

One of the pending issues - https://projects.theforeman.org/issues/29616 - prevents users from running the upgrade in case when no whitelist_options are provided, which is the default use case.

Considering this a blocker, the user should be able to run it without whitelisting.


Version-Release number of selected component (if applicable):
6.8.0


How reproducible:
always


Steps to Reproduce:
1. Have a Satellite and a Capsule registered to it
2. Monitor > Jobs > Run Job > 
3. Fill the following fileds, leave 'whitelist_options' blank
   Job category : Ansible Playbook
   Job template : Capsule Upgrade Playbook
   Search Query : name ~ <caps-fqdn>
   target_version : 6.8
4. Submit


Actual results:
TASK [Upgrade Capsule server using satellite-maintain] *************************
fatal: [dhcp-3-70.vms.sat.rdu2.redhat.com]: FAILED! => {"changed": true, "cmd": "satellite-maintain upgrade run --assumeyes --target-version=6.8 --whitelist=\"\"", "delta": "0:00:02.497951", "end": "2020-08-07 09:21:34.121539", "msg": "non-zero return code", "rc": 1, "start": "2020-08-07 09:21:31.623588", "stderr": "ERROR: option '--whitelist': value not specified\n\nSee: 'satellite-maintain upgrade run --help'", "stderr_lines": ["ERROR: option '--whitelist': value not specified", "", "See: 'satellite-maintain upgrade run --help'"], "stdout": "", "stdout_lines": []}


Expected results:
Successful run even without any whitelist_options provided.

Comment 1 Tomer Brisker 2020-08-24 11:05:22 UTC

*** This bug has been marked as a duplicate of bug 1861397 ***