Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecate OPENSHIFT_DEFAULT_REGISTRY environment variable #20150

Closed

Conversation

mfojtik
Copy link
Contributor

@mfojtik mfojtik commented Jun 29, 2018

In 3.11 we should drop this variable in favor of master config configuration field that sets this up.

/cc @bparees
/cc @deads2k

Will follow up with deprecation notice in 3.11 release notes.

@openshift-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: mfojtik

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci-robot openshift-ci-robot added approved Indicates a PR has been approved by an approver from all required OWNERS files. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Jun 29, 2018
@deads2k deads2k mentioned this pull request Jun 29, 2018
17 tasks
@mfojtik
Copy link
Contributor Author

mfojtik commented Jun 29, 2018

@dmage @legionus FYI

OpenShift will no longer set this environment variable, but I believe the registry code is already adjusted to pickup this from the registry configuration and does not depend on this variable for at least 1 release.

/cc @sdodson

(to check if there are any usages in ansible)

// OPENSHIFT_DEFAULT_REGISTRY environment variable which should be deprecated in
// future.
func DefaultRegistryHostnameRetriever(deprecatedDefaultRegistryEnvFn func() (string, bool), external, internal string) RegistryHostnameRetriever {
func DefaultRegistryHostnameRetriever(external, internal string) RegistryHostnameRetriever {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't see any value to this anymore. Why not just pass the two names around?

@bparees
Copy link
Contributor

bparees commented Jun 29, 2018

this isn't a deprecation, this is a removal....

@bparees
Copy link
Contributor

bparees commented Jun 29, 2018

We need to make sure the online teams are aware of this as i'm pretty sure they've used the env variable because the master-config setting did not appear to be working for them.

@bparees
Copy link
Contributor

bparees commented Jun 29, 2018

In general i'm concerned about the impact on existing clusters where admins may have set the env variable a long time ago and never looked back. How confident are we that those clusters have any, or the same, value in their master-config?

@sdodson
Copy link
Member

sdodson commented Jun 29, 2018

In 3.9 there's a step to set OPENSHIFT_DEFAULT_REGISTRY env var on the registry DC and the apiserver and controller env vars. Then we set imagePolicyConfig.internalRegistryHostname=docker-registry.default.svc:5000 in the 3.10 install and upgrade. We don't do anything to remove the env vars from the DC or apiserver and controllers in 3.10 upgrade. I think the only thing we'd want to do is remove the environment variables to avoid confusion in 3.11?

@bparees
Copy link
Contributor

bparees commented Jun 29, 2018

I think the only thing we'd want to do is remove the environment variables to avoid confusion in 3.11?

we wouldn't need it on the apiserver+controller, but i think we still want the env var on the registry DC, unless we are injecting it into the registry config as described here: https://docs.openshift.org/latest/install_config/registry/extended_registry_configuration.html#docker-registry-configuration-reference-openshift

also the preferred env var for the registry is now REGISTRY_OPENSHIFT_SERVER_ADDR, as covered here: https://docs.openshift.org/latest/install_config/registry/extended_registry_configuration.html#setting-the-registry-hostname

@openshift-bot
Copy link
Contributor

@mfojtik: PR needs rebase.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@openshift-bot openshift-bot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Jul 4, 2018
@openshift-bot
Copy link
Contributor

/test cross

@openshift-bot
Copy link
Contributor

/retest

@openshift-merge-robot
Copy link
Contributor

Issues go stale after 90d of inactivity.

Mark the issue as fresh by commenting /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.
Exclude this issue from closing by commenting /lifecycle frozen.

If this issue is safe to close now please do so with /close.

/lifecycle stale

@openshift-ci-robot openshift-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Nov 1, 2018
@openshift-bot
Copy link
Contributor

Stale issues rot after 30d of inactivity.

Mark the issue as fresh by commenting /remove-lifecycle rotten.
Rotten issues close after an additional 30d of inactivity.
Exclude this issue from closing by commenting /lifecycle frozen.

If this issue is safe to close now please do so with /close.

/lifecycle rotten
/remove-lifecycle stale

@openshift-ci-robot openshift-ci-robot added lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. and removed lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. labels Dec 2, 2018
@openshift-ci-robot
Copy link

@mfojtik: The following tests failed, say /retest to rerun them all:

Test name Commit Details Rerun command
ci/openshift-jenkins/cross 6570720 link /test cross
ci/openshift-jenkins/cmd 6570720 link /test cmd
ci/openshift-jenkins/extended_clusterup 6570720 link /test extended_clusterup
ci/openshift-jenkins/end_to_end 6570720 link /test end_to_end
ci/prow/unit 6570720 link /test unit
ci/prow/cross 6570720 link /test cross
ci/prow/launch-aws 6570720 link /test launch-aws
ci/prow/e2e-aws-serial 6570720 link /test e2e-aws-serial

Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@openshift-bot
Copy link
Contributor

Rotten issues close after 30d of inactivity.

Reopen the issue by commenting /reopen.
Mark the issue as fresh by commenting /remove-lifecycle rotten.
Exclude this issue from closing again by commenting /lifecycle frozen.

/close

@openshift-ci-robot
Copy link

@openshift-bot: Closed this PR.

In response to this:

Rotten issues close after 30d of inactivity.

Reopen the issue by commenting /reopen.
Mark the issue as fresh by commenting /remove-lifecycle rotten.
Exclude this issue from closing again by commenting /lifecycle frozen.

/close

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants