Bug 1312839 - [RFE] As a user I'd like to cancel running synchronization from CLI
Summary: [RFE] As a user I'd like to cancel running synchronization from CLI
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Hammer
Version: 6.0.4
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: Unspecified
Assignee: Tomas Strachota
QA Contact: Kedar Bidarkar
URL: http://projects.theforeman.org/issues...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-02-29 11:03 UTC by Tomas Strachota
Modified: 2019-09-26 14:35 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Enhancement
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-07-27 11:00:01 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 13615 0 None None None 2016-04-22 16:41:08 UTC

Description Tomas Strachota 2016-02-29 11:03:52 UTC

Comment 1 Tomas Strachota 2016-02-29 11:03:54 UTC
Created from redmine issue http://projects.theforeman.org/issues/13615

Comment 2 Tomas Strachota 2016-02-29 11:03:58 UTC
Upstream bug assigned to tstrachota

Comment 3 Bryan Kearney 2016-03-02 23:00:39 UTC
Moving to POST since upstream bug http://projects.theforeman.org/issues/13615 has been closed
-------------
Anonymous
Applied in changeset commit:hammer-cli-katello|c1b8eb02f2d6df720d5f399d355e6d1b1fcc6c65.

Comment 7 Kedar Bidarkar 2016-05-24 15:13:43 UTC
[root@xyz ~]# hammer -u admin -p changeme capsule content info --id 2
Lifecycle Environments: 
 1) Name:          DEV
    Organization:  Default Organization
    Content Views: 
     1) Name:           RHEL 7 CV
        Composite:      no
        Last Published: 2016/05/24 12:11:22
        Content:        
            Hosts:          2
            Products:       2
            Yum repos:      3
            Docker repos:   0
            Packages:       15540
            Package groups: 143
            Errata:         1197
            Puppet modules: 0
     2) Name:           RHEL 6 CV
        Composite:      no
        Last Published: 2016/05/18 21:34:55
        Content:        
            Hosts:          2
            Products:       2
            Yum repos:      3
            Docker repos:   0
            Packages:       21902
            Package groups: 405
            Errata:         3639
            Puppet modules: 0
     3) Name:           Capsule RHEL 7 CV
        Composite:      no
        Last Published: 2016/05/19 14:40:36
        Content:        
            Hosts:          1
            Products:       3
            Yum repos:      3
            Docker repos:   0
            Packages:       11327
            Package groups: 73
            Errata:         1197
            Puppet modules: 0

[root@xyz ~]# hammer -u admin -p changeme capsule content synchronization-status  --id 2
Last sync:                    2016/05/24 12:40:14
Status:                       Capsule is synchronized
Currently running sync tasks: 

Last failure:                 
    Task id:  
    Messages:

[root@xyz ~]# hammer -u admin -p changeme capsule content synchronize --id 2 
[...........................................] [65%]



[root@xyz ~]# hammer -u admin -p changeme capsule content synchronization-status  --id 2
Last sync:                    2016/05/24 12:40:14
Status:                       Capsule is synchronized
Currently running sync tasks: 
 1) Task id:  1a2671db-a5bd-4fc9-8a75-fd5ae439cf4b
    Progress: 0%
Last failure:                 
    Task id:  
    Messages:

[root@xyz ~]# hammer -u admin -p changeme capsule content synchronization-status  --id 2
Last sync:                    2016/05/24 12:40:14
Status:                       Capsule is synchronized
Currently running sync tasks: 
 1) Task id:  1a2671db-a5bd-4fc9-8a75-fd5ae439cf4b
    Progress: 65%
Last failure:                 
    Task id:  
    Messages:

[root@xyz ~]# hammer -u admin -p changeme capsule content cancel-synchronization --id 2
Trying to cancel the synchronization...

[root@xyz ~]# hammer -u admin -p changeme capsule content synchronization-status  --id 2
Last sync:                    2016/05/24 12:40:14
Status:                       Capsule is synchronized
Currently running sync tasks: 

Last failure:                 
    Task id:  1a2671db-a5bd-4fc9-8a75-fd5ae439cf4b
    Messages: 
      Task canceled
      Task canceled
      Task canceled

[root@xyz ~]# hammer -u admin -p changeme capsule content synchronize --id 2 
[......................................................................] [100%]
Task canceled
Task canceled
Task canceled



VERIFIED with sat62-snap12.1

Comment 8 Bryan Kearney 2016-07-27 11:00:01 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/RHBA-2016:1501


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