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
Out of date hosted templates #77
Comments
@jperville Thanks for bringing that :-) execute 'Import Openshift Hosted Examples' do
command "#{node['cookbook-openshift3']['openshift_common_client_binary']} create -f #{node['cookbook-openshift3']['openshift_common_hosted_base']} --recursive --config=admin.kubeconfig -n openshift || #{node['cookbook-openshift3']['openshift_common_client_binary']} replace -f #{node['cookbook-openshift3']['openshift_common_hosted_base']} --recursive --config=admin.kubeconfig -n openshift"
cwd Chef::Config[:file_cache_path]
ignore_failure true
end c) Happy to put a new logic for handling the versioning (why not :-)) Having you and @ianmiell will make things easier I believe as we can do more together. |
I think we should add a LWRP to deploy the logging addon, similar to how we deploy the metrics, registry and router addons. From my experience, both metrics and logging are difficult to get right (different setup needed depending on openshift version, deployer pod which can fail for many reasons, and impossible to update automatically). At least we can deploy for a target version and explain that automatic upgrades between major versions are not supported yet. At the minimum, we should deploy the addon hosted templates from within the LWRPs that use it (eg. the logging-deployer template from the logging LWRP, the metrics templates from the metrics LWRP) instead of globally, regardless of whether we use the cookbook to deploy the feature or not. That way we can deploy the proper version and not be out of sync, and if we chose not to deploy for example metrics with this cookbook's LWRP we won't have a hosted template coming back at every chef-run which is incompatible with what we deploy. For example, if I want to deploy v1.3.2 of the logging addon (version selected by a LWRP attribute), the LWRP will fetch https://github.com/openshift/origin-aggregated-logging/blob/v1.3.2/deployer/deployer.yaml and will setup service account and SCCs as exampled in instructions for v1.3.2. If I want to install v1.4.1 instead, then I will use the template at tag v1.4.1, and will setup the Should I work on such a PR to remove the global addon templates and install the proper version from each addon LWRP instead? |
👍 I agree with you and my point was more or less : Yes we should and let's do it |
Tests passed. |
The hosted templates are now up to date (as of v1.10.40), thanks @IshentRas . |
Just reporting it here before working on a PR (little time this week).
I tried to deploy the openshift logging addon with openshift origin 1.4.1, and I found out that the template that is loaded into openshift (stored on the master as /usr/share/openshift/hosted/logging-deployer.yaml) is not compatible with v1.4.1 of the logging addon; I run into the following error:
My own cookbook supplies an uptodate version of the template but it was not installed because a "not_if" clause said there is already a template installed for "logging-deployer-template" in the openshift namespace.
If we compare the template supplied by this cookbook here with the current template on the origin-aggregated logging project (as of v1.4.1) here we see the templates have evolved quite a bit. There are many differences, at least the "rolebinding-reader" role is missing in this cookbook's version.
My questions:
The text was updated successfully, but these errors were encountered: