Project

General

Profile

Actions

Bug #34594

closed

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

Added by Partha Aji about 2 years ago. Updated about 2 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Hammer
Target version:
Difficulty:
Triaged:
Yes
Fixed in Releases:
Found in Releases:

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

Actions #1

Updated by Partha Aji about 2 years ago

  • Bugzilla link set to 2061970
Actions #2

Updated by The Foreman Bot about 2 years ago

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

Updated by Partha Aji about 2 years ago

  • Status changed from Ready For Testing to Closed
Actions #4

Updated by Partha Aji about 2 years ago

  • Fixed in Releases Katello 4.5.0 added
Actions #5

Updated by Partha Aji about 2 years ago

  • Triaged changed from No to Yes
Actions #6

Updated by Partha Aji about 2 years ago

  • Target version set to Katello 4.5.0
Actions

Also available in: Atom PDF