Bug 1568602

Summary: Git repo automate datastore refresh timing out upon credential change
Product: Red Hat CloudForms Management Engine Reporter: Satoe Imaishi <simaishi>
Component: AutomateAssignee: Greg McCullough <gmccullo>
Status: CLOSED ERRATA QA Contact: Dmitry Misharov <dmisharo>
Severity: medium Docs Contact:
Priority: high    
Version: 5.8.0CC: cpelland, dmisharo, gmccullo, hkataria, lavenel, mfeifer, mkanoor, mpovolny, obarenbo, tfitzger
Target Milestone: GAKeywords: ZStream
Target Release: 5.9.2   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 5.9.2.3 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1552274 Environment:
Last Closed: 2018-05-07 20:49:36 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: CFME Core Target Upstream Version:
Embargoed:
Bug Depends On: 1552274    
Bug Blocks:    

Comment 2 CFME Bot 2018-04-17 22:11:42 UTC
New commit detected on ManageIQ/manageiq/gaprindashvili:

https://github.com/ManageIQ/manageiq/commit/d494db96eefc9cbfa041f8e58032b7f49d8eb5d2
commit d494db96eefc9cbfa041f8e58032b7f49d8eb5d2
Author:     Greg McCullough <gmccullo>
AuthorDate: Tue Apr 17 08:49:19 2018 -0400
Commit:     Greg McCullough <gmccullo>
CommitDate: Tue Apr 17 08:49:19 2018 -0400

    Merge pull request #14889 from mkanoor/bad_credentials

    Use credential callback to set credentials
    (cherry picked from commit 2dd64f87eadf69294a4706a4082bc08d6c9bbb11)

    Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1568602
    Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1568604

 app/models/git_repository.rb | 4 +-
 lib/git_worktree.rb | 16 +-
 lib/git_worktree_exception.rb | 1 +
 spec/lib/git_worktree_spec.rb | 12 +
 spec/models/git_repository_spec.rb | 3 +
 5 files changed, 31 insertions(+), 5 deletions(-)

Comment 3 Dmitry Misharov 2018-04-23 12:33:02 UTC
There were no FATAL messages in the log if the credentials were changed. I can see now such line: [----] E, [2018-04-23T08:13:41.121296 #11900:8e7114] ERROR -- : MIQ(MiqQueue#deliver) Message id: [777], Error: [Invalid credentials for URL https://some_url/somne_manageiq_datastore.git]. I marked this as verified for 5.9.2.3.20180419182310_cab2891. Along with that, I've created another BZ https://bugzilla.redhat.com/show_bug.cgi?id=1570806, because UI flash message is missing.

Comment 6 errata-xmlrpc 2018-05-07 20:49:36 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2018:1328