Bug 1455479
Summary: | Command 'oc import-image' don't respect para 'maxImagesBulkImportedPerRepository' set in master-config | ||
---|---|---|---|
Product: | OpenShift Container Platform | Reporter: | ge liu <geliu> |
Component: | Image Registry | Assignee: | Maciej Szulik <maszulik> |
Status: | CLOSED ERRATA | QA Contact: | ge liu <geliu> |
Severity: | medium | Docs Contact: | |
Priority: | unspecified | ||
Version: | 3.6.0 | CC: | aos-bugs, maszulik |
Target Milestone: | --- | ||
Target Release: | 3.6.z | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | No Doc Update | |
Doc Text: |
This was a mis-configuration, not a bug.
|
Story Points: | --- |
Clone Of: | Environment: | ||
Last Closed: | 2017-10-25 13:02:19 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
ge liu
2017-05-25 09:45:08 UTC
Tested with: $ oc version oc v3.6.0-alpha.1+93af347-969 kubernetes v1.6.1+5115d708d7 features: Basic-Auth Server https://localhost:8443 openshift v3.6.0-alpha.1+93af347-969 kubernetes v1.6.1+5115d708d7 And it works as expected, I got: $ oc import-image --confirm --from=centos centos --all=true The import completed successfully. Name: centos Namespace: test Created: Less than a second ago Labels: <none> Annotations: openshift.io/image.dockerRepositoryCheck=2017-06-01T10:47:13Z Docker Pull Spec: 172.30.108.189:5000/test/centos Unique Images: 12 Tags: 25 <-------------- @maszulik , I tried it again in ocp env, but still reproduce this problem, I guess our difference exist the master-config.yaml config, I pasted mine below: imageConfig: maxImagesBulkImportedPerRepository: 25 format: brew-pulp-docker01.web.prod.ext.phx2.redhat.com:8888/openshift3/ose-${component}:${version} latest: false I config this item following the doc: https://docs.openshift.org/latest/install_config/master_node_configuration.html, openshift v3.6.88 kubernetes v1.6.1+5115d708d7 etcd 3.1.0 @GeLiu your error is in master-config.yaml, here's how this should look like: imageConfig: format: openshift/origin-${component}:${version} latest: true imagePolicyConfig: allowedRegistriesForImport: - domainName: docker.io - domainName: '*.docker.io' - domainName: registry.access.redhat.com - domainName: gcr.io - domainName: quay.io - domainName: '*.amazonaws.com' disableScheduledImport: false maxImagesBulkImportedPerRepository: 25 <--------- maxScheduledImageImportsPerMinute: 60 scheduledImageImportMinimumIntervalSeconds: 900 In your case maxImagesBulkImportedPerRepository is under imageConfig, but should rather be under imagePolicyConfig. Please double check your configuration against what I've pasted above. This is the entire image configuration we have in OpenShift. @maszulik, thanks, I tried it follow your comments, and it works well now, it looks like the doc have some misguide at this point, because the 'ImagePolicyConfig' and 'MaxImagesBulkImportedPerRepository' at same level under the imageconfig. @geliu agreed, I've added comment to https://github.com/openshift/openshift-docs/issues/4462 which covers this topic. 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-2017:3049 |