Bug 1523947 - While running foreman-maintain it fails with "Illegal quoting in line 3."
Summary: While running foreman-maintain it fails with "Illegal quoting in line 3."
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Foreman Maintain
Version: 6.3.0
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: Unspecified
Assignee: Anurag Patel
QA Contact: Nikhil Kathole
URL:
Whiteboard:
Depends On:
Blocks: 1496794
TreeView+ depends on / blocked
 
Reported: 2017-12-09 11:16 UTC by Shivdutt Bharadwaj
Modified: 2020-03-05 16:20 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-03-05 16:20:25 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 22224 0 Normal Closed While running foreman-maintain it fails with "Illegal quoting in line 3." 2020-05-22 12:27:55 UTC

Description Shivdutt Bharadwaj 2017-12-09 11:16:30 UTC
Description of problem:

# foreman-maintain upgrade run  --target-version 6.2.z --whitelist="disk-io" --phase pre_migrations 
Running Procedures before migrating to Satellite 6.2.z
================================================================================
Turn on maintenance mode:                                             [OK]
--------------------------------------------------------------------------------
disable active sync plans: 
/ disabling sync plans                                                [FAIL]    
Illegal quoting in line 3.
--------------------------------------------------------------------------------
Scenario [Procedures before migrating to Satellite 6.2.z] failed.

The following steps ended up in failing state:

  [sync-plans-disable]

Resolve the failed steps and rerun
the command. In case the failures are false positives,
use --whitelist="sync-plans-disable"



Version-Release number of selected component (if applicable):
rubygem-foreman_maintain-0.0.11-1.el7sat

Comment 6 Kavita 2018-05-28 07:36:04 UTC
This issue is fixed in latest build of foreman-maintain i.e rubygem-foreman_maintain-0.2.2-1.el7sat.noarch

With this change before any DB query, it verifies a DB connection first. 
So modifying BZ status to ON_QA to verify.

If this issue still persists then please feel free to reopen this issue.

Comment 9 Nikhil Kathole 2018-08-07 13:23:44 UTC
VERIFIED

Version tested:
# rpm -qa | grep maintain
rubygem-foreman_maintain-0.2.6-1.el7sat.noarch

Steps:
1. katello-service stop
2. # foreman-maintain upgrade run --phase pre_migrations --target-version 6.4 --whitelist="hammer-setup"


--------------------------------------------------------------------------------
disable active sync plans: 
/ disabling sync plans                                                [FAIL]    
Please check whether database service is up & running state.
--------------------------------------------------------------------------------
Scenario [Procedures before migrating to Satellite 6.4] failed.

The following steps ended up in failing state:

  [sync-plans-disable]

Resolve the failed steps and rerun
the command. In case the failures are false positives,
use --whitelist="sync-plans-disable"

Comment 12 Bryan Kearney 2020-03-05 16:20:25 UTC
The current version of foreman_maintain includes this fix.


Note You need to log in before you can comment on or make changes to this bug.