Project

General

Profile

Bug #34594

Mirror on sync still shows up in 'hammer repository info', while mirroring policy does not

Added by Partha Aji 4 months ago. Updated 4 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Hammer
Target version:
Difficulty:
Triaged:
Yes
Bugzilla link:
Fixed in Releases:
Found in Releases:
Red Hat JIRA:

Description

After the latest addition of mirroring_policy, it seems that mirror_on_sync was replaced but is still supported in the CLI. However, any time you call 'hammer repository info' on a repository, mirroring_policy is not shown and mirror_on_sync is always showing 'NO'. This occurs when any of the mirroring_policy options are selected.

How reproducible: 100%

Steps to Reproduce:
1.Create a repository and select a mirroring policy option
3.Hammer repository info --product '' --organization '' --name ''

Actual results:

[root@dhcp-2-175 ~]# hammer repository info --name EvOoLbJKhkPCQBl --product EHeKKj --organization 'ZrWgnT'
Id: 7
Name: EvOoLbJKhkPCQBl
Label: EvOoLbJKhkPCQBl
Description:
Organization: ZrWgnT
Red Hat Repository: no
Content Type: yum
Mirror on Sync: no
Url: http://foo.example.com/fake_yum1
Publish Via HTTP: yes
Published At: https://sat.example.com/pulp/content/ZrWgnT/Library/custom/EHeKKj/EvOoLbJKhkPCQBl/
Relative Path: ZrWgnT/Library/custom/EHeKKj/EvOoLbJKhkPCQBl
Download Policy: immediate
Ignorable Content Units:
HTTP Proxy:
HTTP Proxy Policy: global_default_http_proxy
Product:
Id: 5
Name: EHeKKj
GPG Key:

Sync:
Status: Success
Last Sync Date: 1 minute
Created: 2022/03/08 16:26:00
Updated: 2022/03/08 17:03:53
Content Counts:
Packages: 32
Source RPMS: 0
Package Groups: 2
Errata: 4
Module Streams: 0

Expected results: mirror_on_sync should either be removed or replaced with mirroring_policy

Associated revisions

Revision 75bac351 (diff)
Added by Partha Aji 4 months ago

fixes #34594 - Mirror Policy shows up in repo info

History

#1 Updated by Partha Aji 4 months ago

  • Bugzilla link set to 2061970

#2 Updated by The Foreman Bot 4 months ago

  • Assignee set to Partha Aji
  • Status changed from New to Ready For Testing
  • Pull request https://github.com/Katello/hammer-cli-katello/pull/840 added

#3 Updated by Partha Aji 4 months ago

  • Status changed from Ready For Testing to Closed

#4 Updated by Partha Aji 4 months ago

  • Fixed in Releases Katello 4.5.0 added

#5 Updated by Partha Aji 4 months ago

  • Triaged changed from No to Yes

#6 Updated by Partha Aji 4 months ago

  • Target version set to Katello 4.5.0

Also available in: Atom PDF