Bug 1318976 - imagePolicyConfig should be in master-config by default
Summary: imagePolicyConfig should be in master-config by default
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OpenShift Online
Classification: Red Hat
Component: Image Registry
Version: 3.x
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
: ---
Assignee: Abhishek Gupta
QA Contact: Wei Sun
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-03-18 10:02 UTC by XiaochuanWang
Modified: 2016-05-23 15:08 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-05-23 15:08:25 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description XiaochuanWang 2016-03-18 10:02:18 UTC
Description of problem:
imagePolicyConfig is required for how fast, how often, and how many images can be imported at a time. There is a requirement that allow imported images to be refreshed automatically from their upstreams:
As a user of OpenShift, I should be able to indicate that certain image stream tags should be periodically checked against their remote docker registries to determine whether a new image is available, and if so, import them. This import should leverage any image credentials I have available.

Version-Release number of selected component (if applicable):
dev-preview-int

How reproducible:
Always

Steps to Reproduce:
Check if imagePolicyConfig is in master-config.

Actual results:
imagePolicyConfig is not in master-config

Expected results:
There should be imagePolicyConfig from master-config by default like:
imagePolicyConfig:
  disableScheduledImport: false
  maxImagesBulkImportedPerRepository: 5
  maxScheduledImageImportsPerMinute: 60
  scheduledImageImportMinimumIntervalSeconds: 900

Comment 1 Maciej Szulik 2016-03-21 12:38:27 UTC
This is already happening in origin. Tested with latest master https://github.com/openshift/origin/commit/2ddfc71bf4f24d35afbf4085b1e26ae64bffa107 and it works ok.

Comment 2 Abhishek Gupta 2016-03-29 00:30:55 UTC
This will likely need a release ticket to specify the desired configuration - I will get to this tomorrow.

Comment 3 Maciej Szulik 2016-03-30 09:34:54 UTC
I'm re-assigning this to Abishek since it's Online configuration right now and not a origin bug per se.

Comment 5 XiaochuanWang 2016-04-06 06:49:04 UTC
This is verified on origin. For On-line, there are two config as below:
imagePolicyConfig:
  disableScheduledImport: true
  maxImagesBulkImportedPerRepository: 3

According to PR the other 2 ones are dropped:
  maxScheduledImageImportsPerMinute: 1
  scheduledImageImportMinimumIntervalSeconds: 20

Seems it's by designed for online, so accept it as verified.


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