You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are deprecating two deployment environment variables: OPENSHIFT_MASTER and KUBERNETES_MASTER. The variables were scrutinized in a Bugzilla report.
Although the variables aren't documented and aren't used by OpenShift's supported deployment strategies, it's possible there are custom deployer images or hooks in the wild which may be using the variables.
@smarterclayton, do you know of any user-facing docs around these variables? A search of the docs repo turned up the following potential references:
OpenShift deployments using a custom strategy or hooks are provided with a container environment which includes
two variables for API connectivity:
OPENSHIFT_MASTER: a URL to the OpenShift API
KUBERNETES_MASTER: a URL to the Kubernetes API exposed by OpenShift
These variables are now deprecated, as they refer to internal endpoints rather than the published OpenShift API service endpoints. To connect to the OpenShift API in these contexts, use service DNS or the automatically exposed KUBERENTESservice environment variables.
The OPENSHIFT_MASTER and KUBERNETES_MASTER environment variables will be removed from deployment container environments as of $OPENSHIFT_VERSION.
The openshift_hosted_{logging,metrics}_* Ansible variables used by the installer have been deprecated. Installation documentation has been updated to use the newer variable names. The deprecated variable names are planned for removal in the next minor release of OpenShift Container Platform.
We are deprecating a large number of policy related APIs and commands.
In 3.7 we completely removed the policy objects, and we are using native RBAC instead.
Any command trying to directly manipulate a policy object will fail. Roles and Rolebindings endpoints are still available, and they proxy the operation to create native RBAC objects instead.
The following commands do not work against a 3.7 server:
Note: a 3.7 client will display an error message when trying these command against a 3.7 server, but will still work against a previous server version, and old client will just fail hard against a 3.7 server.
Starting with 3.7 versions of the installer if you've configured AWS provider credentials you must also ensure that all instances are labeled and then set openshift_clusterid variable to the cluster id. Please see #5732 for more details.
Some SCCs became stricter and now drop the following capabilities:
nonroot drops KILL, MKNOD, SETUID, and SETGID
hostaccess drops KILL, MKNOD, SETUID, and SETGID
hostmount-anyuid drops MKNOD
It's possible that the pods that previously were admitted by these SCCs and were using such capabilities will fail after upgrade. In this (rare) cases, cluster administrator should create a custom SCC for such pods.
A 3.7 master will return an unstructured response instead of structured JSON when an action is forbidden. This is a known issue (openshift/origin/issues/16731) and will be fixed in 3.8.
Known issue: The installer can not deploy system container based installations when the specified registry requires authentication credentials in order to pull the required system container images. The fix for this depends on an update to the atomic command which will be updated after 3.7 GA.
Known issue: The volume snapshot tech-preview feature may not be available to non-admin users by default due to API RBAC settings. When the volume snapshot controller and provisioner are installed and run, the cluster admin needs to configure the API access to the VolumeSnapshot objects by creating Roles/ClusterRoles and assigning them to the desired users or user groups.
The node authorizer and admission plugin are used to manage and limit node's permissions in 3.7. Thus nodes should be removed from the group that previously granted them broad permissions across the cluster:
@ahardin-rh In regard to the last release note (#4906 (comment)), we plan to perform this step automatically via Ansible as a post upgrade step once the cluster is upgraded to 3.8. Specifically, since this a new feature, we want to give users a release (i.e. 3.7) before forcing it on for them.
The kube-service-catalog namespace is now also made global (by ansible openshift/openshift-ansible#4756), so if you want multicast to work in vnid 0, you have to set the netnamespace.network.openshift.io/multicast-enabled=true annotation on both namespaces (i.e. default and kube-service-catalog).
Migration to Kubernetes Role Based Access Control (RBAC)
Steps Taken During the 3.6 Release
A custom migration controller was created to automatically migrate OpenShift authorization policy resources to the equivalent RBAC resources:
If an OpenShift authorization policy resource was created or modified or deleted, the action was automatically mirrored to the corresponding RBAC resource
Changes directly applied to RBAC resources were generally automatically rolled back and forced to match the corresponding Openshift authorization policy resource. If no corresponding resource existed, the RBAC resource would be deleted.
In essence, OpenShift authorization policy objects were the source of truth, and the RBAC objects were forced into matching these objects.
Release 3.6 Pre-upgrade steps before upgrading to 3.7
There is a small set of configurations that are possible in OpenShift authorization policy resources that are not supported by RBAC. Such configurations require manual migration based on the customer's use case. To guarantee that all Openshift authorization policy objects are in sync with RBAC, the oc adm migrate authorization command has been added. This read-only command emulates the migration controller logic, and reports if any resource is out of sync. It is run as a pre-upgrade step via an ansible playbook and will cause the upgrade to fail if the objects are not in sync.
During rolling upgrade from release 3.6 to 3.7
The following scenario describes a rolling upgrade
One master is upgraded and starts proxying OpenShift authorization policy resources and authorizing against RBAC objects
Old masters are still running the migration controller and one of them holds the controller leader election lock (either because it already had it or because it gained it by the first master being upgraded)
The new master cannot modify any RBAC or proxied OpenShift authorization policy objects because the migration controller will undo all changes
Old masters can change OpenShift authorization policy resources and the migration controller will sync these to RBAC, making the changes visible to the new master
The new master does not have the migration controller
Controllers only speak to their local masters in OpenShift installed via Ansible, thus the migration controller is guaranteed to only communicate with the old masters
There is a small chance that a 3.7 controller process will become the leader once two masters have been upgraded (meaning no migrations of policy objects will occur after this point)
Once all masters have been upgraded from 3.6 to 3.7, OpenShift authorization policy objects will be always proxied to RBAC objects
The migration controller will be gone and it will be possible to make changes to RBAC objects directly
Considerations for administrators during rolling upgrade
Avoid actions that require changes to OpenShift authorization policy resources such as the creation of new projects. If a project is created against a new master, the RBAC resources it creates will be deleted by the migration controller since they will be seen as out of sync from the OpenShift authorization policy resources. If a project is created against an old master and the migration controller is no longer present due to a 3.7 controller process being the leader, then its policy objects will not be synced and it will have no RBAC resources. After the 3.7 upgrade is complete, the following read-only script can be used to determine what namespaces lack RBAC role bindings (it is up to the cluster administrator to decide how to remediate these namespaces):
#!/bin/bashset -o errexit
set -o nounset
set -o pipefail
fornamespacein$(oc get namespace -o name);do
ns=$(echo "${namespace}"| cut -d / -f 2)
rolebindings_count=$(oc get rolebinding.rbac -o name -n "${ns}"| wc -l)if [[ "${rolebindings_count}"=="0" ]];thenecho"Namespace ${ns} has no role bindings which may require further investigation"elseecho"Namespace ${ns}: ok"fidone
RBAC and OpenShift authorization policy in release 3.7
In 3.7, the RBAC objects become the source of truth. The OpenShift authorization policy objects no longer exist as real objects; the APIs are proxied to the RBAC resources. Therefore creating or modifying or deleting OpenShift authorization policy resources seamlessly results in actions against RBAC objects. The API master handles the conversion between these resources and legacy clients will continue to work as if nothing has changed. The RBAC objects also support watches, unlike the OpenShift authorization policy resources.
Policy-based resources have been removed in 3.7. However, RBAC role and binding objects are available and provide equivalent functionality.
Activity
ahardin-rh commentedon Aug 1, 2017
Notes are already being tracked via #4021
Thanks!
[-]OpenShift 3.6 Release Notes Tracke[/-][+]OpenShift 3.7 Release Notes Tracke[/+]mfojtik commentedon Aug 1, 2017
@ahardin-rh sorry this was for 3.7 ;-) wrong copy/paste...
mfojtik commentedon Aug 1, 2017
The 'generatedeploymentconfig' API endpoint will be removed: openshift/origin#15585
[-]OpenShift 3.7 Release Notes Tracke[/-][+]OpenShift 3.7 Release Notes Tracker[/+]Merge pull request #15585 from mfojtik/deprecate-generator
ironcladlou commentedon Sep 7, 2017
We are deprecating two deployment environment variables:
OPENSHIFT_MASTERandKUBERNETES_MASTER. The variables were scrutinized in a Bugzilla report.Although the variables aren't documented and aren't used by OpenShift's supported deployment strategies, it's possible there are custom deployer images or hooks in the wild which may be using the variables.
@smarterclayton, do you know of any user-facing docs around these variables? A search of the docs repo turned up the following potential references:
Release note draft
OpenShift deployments using a custom strategy or hooks are provided with a container environment which includes
two variables for API connectivity:
OPENSHIFT_MASTER: a URL to the OpenShift APIKUBERNETES_MASTER: a URL to the Kubernetes API exposed by OpenShiftThese variables are now deprecated, as they refer to internal endpoints rather than the published OpenShift API service endpoints. To connect to the OpenShift API in these contexts, use service DNS or the automatically exposed
KUBERENTESservice environment variables.The
OPENSHIFT_MASTERandKUBERNETES_MASTERenvironment variables will be removed from deployment container environments as of $OPENSHIFT_VERSION.adellape commentedon Oct 5, 2017
The
openshift_hosted_{logging,metrics}_*Ansible variables used by the installer have been deprecated. Installation documentation has been updated to use the newer variable names. The deprecated variable names are planned for removal in the next minor release of OpenShift Container Platform.(Per https://trello.com/c/6FsbeKeJ.)
simo5 commentedon Oct 9, 2017
We are deprecating a large number of policy related APIs and commands.
In 3.7 we completely removed the policy objects, and we are using native RBAC instead.
Any command trying to directly manipulate a policy object will fail. Roles and Rolebindings endpoints are still available, and they proxy the operation to create native RBAC objects instead.
The following commands do not work against a 3.7 server:
Note: a 3.7 client will display an error message when trying these command against a 3.7 server, but will still work against a previous server version, and old client will just fail hard against a 3.7 server.
vikram-redhat commentedon Oct 13, 2017
From Ben B: The odds of someone hitting this (https://bugzilla.redhat.com/show_bug.cgi?id=1500961) are so slim there's no point. Especially if we get the ostree update out in a day or two after 7.4.2.
Where we might make a note is in the OCP docs for 3.7, stating that 7.4.2.1 or newer is required for a containerized install.
@adellape @ahardin-rh - might need an update in both the release notes and install docs.
sdodson commentedon Oct 23, 2017
Starting with 3.7 versions of the installer if you've configured AWS provider credentials you must also ensure that all instances are labeled and then set
openshift_clusteridvariable to the cluster id. Please see #5732 for more details.php-coder commentedon Oct 23, 2017
Some SCCs became stricter and now drop the following capabilities:
nonrootdrops KILL, MKNOD, SETUID, and SETGIDhostaccessdrops KILL, MKNOD, SETUID, and SETGIDhostmount-anyuiddrops MKNODIt's possible that the pods that previously were admitted by these SCCs and were using such capabilities will fail after upgrade. In this (rare) cases, cluster administrator should create a custom SCC for such pods.
Related PR: openshift/origin#16436
adellape commentedon Oct 30, 2017
Updated installer support for CFME 4.6 on OCP 3.7.
enj commentedon Nov 4, 2017
A 3.7 master will return an unstructured response instead of structured JSON when an action is forbidden. This is a known issue (openshift/origin/issues/16731) and will be fixed in 3.8.
sdodson commentedon Nov 6, 2017
Known issue: The installer can not deploy system container based installations when the specified registry requires authentication credentials in order to pull the required system container images. The fix for this depends on an update to the
atomiccommand which will be updated after 3.7 GA.https://bugzilla.redhat.com/show_bug.cgi?id=1505744
tsmetana commentedon Nov 8, 2017
Known issue: The volume snapshot tech-preview feature may not be available to non-admin users by default due to API RBAC settings. When the volume snapshot controller and provisioner are installed and run, the cluster admin needs to configure the API access to the VolumeSnapshot objects by creating Roles/ClusterRoles and assigning them to the desired users or user groups.
https://bugzilla.redhat.com/show_bug.cgi?id=1502945
enj commentedon Nov 9, 2017
The node authorizer and admission plugin are used to manage and limit node's permissions in 3.7. Thus nodes should be removed from the group that previously granted them broad permissions across the cluster:
oc adm policy remove-cluster-role-from-group system:node system:nodesenj commentedon Nov 13, 2017
@ahardin-rh In regard to the last release note (#4906 (comment)), we plan to perform this step automatically via Ansible as a post upgrade step once the cluster is upgraded to 3.8. Specifically, since this a new feature, we want to give users a release (i.e. 3.7) before forcing it on for them.
knobunc commentedon Nov 13, 2017
The
kube-service-catalognamespace is now also made global (by ansible openshift/openshift-ansible#4756), so if you want multicast to work in vnid 0, you have to set thenetnamespace.network.openshift.io/multicast-enabled=trueannotation on both namespaces (i.e.defaultandkube-service-catalog).enj commentedon Nov 15, 2017
Migration to Kubernetes Role Based Access Control (RBAC)
Steps Taken During the 3.6 Release
A custom migration controller was created to automatically migrate OpenShift authorization policy resources to the equivalent RBAC resources:
In essence, OpenShift authorization policy objects were the source of truth, and the RBAC objects were forced into matching these objects.
Release 3.6 Pre-upgrade steps before upgrading to 3.7
There is a small set of configurations that are possible in OpenShift authorization policy resources that are not supported by RBAC. Such configurations require manual migration based on the customer's use case. To guarantee that all Openshift authorization policy objects are in sync with RBAC, the
oc adm migrate authorizationcommand has been added. This read-only command emulates the migration controller logic, and reports if any resource is out of sync. It is run as a pre-upgrade step via an ansible playbook and will cause the upgrade to fail if the objects are not in sync.During rolling upgrade from release 3.6 to 3.7
The following scenario describes a rolling upgrade
Considerations for administrators during rolling upgrade
Avoid actions that require changes to OpenShift authorization policy resources such as the creation of new projects. If a project is created against a new master, the RBAC resources it creates will be deleted by the migration controller since they will be seen as out of sync from the OpenShift authorization policy resources. If a project is created against an old master and the migration controller is no longer present due to a 3.7 controller process being the leader, then its policy objects will not be synced and it will have no RBAC resources. After the 3.7 upgrade is complete, the following read-only script can be used to determine what namespaces lack RBAC role bindings (it is up to the cluster administrator to decide how to remediate these namespaces):
RBAC and OpenShift authorization policy in release 3.7
In 3.7, the RBAC objects become the source of truth. The OpenShift authorization policy objects no longer exist as real objects; the APIs are proxied to the RBAC resources. Therefore creating or modifying or deleting OpenShift authorization policy resources seamlessly results in actions against RBAC objects. The API master handles the conversion between these resources and legacy clients will continue to work as if nothing has changed. The RBAC objects also support watches, unlike the OpenShift authorization policy resources.
Policy-based resources have been removed in 3.7. However, RBAC role and binding objects are available and provide equivalent functionality.
mwithrow commentedon Nov 21, 2017
is the catalog api opened back up in 3.7? I can't find any info on it.
chengzhang1016 commentedon Nov 22, 2017
@mfojtik
We(svc-catalog & asb QE) hit a issue in ocp3.6 - ASB bootstrap failed while apb registry exist images of 3.7
https://bugzilla.redhat.com/show_bug.cgi?id=1515211
That means if apb registry only have 3.6 apb images, asb work well. But, will have problem while we upgrade to ocp3.7.
@jwmatthews @pmorie Please help to confirm this issue and decide if need to add release note. Thanks.
liggitt commentedon Apr 9, 2018
@openshift/team-documentation can this be closed now?