-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Creating initial tsb role to consume and apply templates provided for… #5226
Creating initial tsb role to consume and apply templates provided for… #5226
Conversation
Changes dependent on openshift/origin#15993 |
3c8f020
to
2554302
Compare
bec03f6
to
85520e0
Compare
@deads2k is this the correct way to handle the TSB config? I'm seeing this when I try to fatal: [m01.example.com]: FAILED! => {
"changed": true,
"cmd": [
"kubectl",
"apply",
"-f",
"/tmp/tsb-ansible-lS4vzn/apiserver-config.yaml"
],
"delta": "0:00:00.219908",
"end": "2017-09-08 16:51:36.256954",
"failed": true,
"invocation": {
"module_args": {
"_raw_params": "kubectl apply -f /tmp/tsb-ansible-lS4vzn/apiserver-config.yaml",
"_uses_shell": false,
"chdir": null,
"creates": null,
"executable": null,
"removes": null,
"warn": true
}
},
"rc": 1,
"start": "2017-09-08 16:51:36.037046",
"stderr": "error: unable to recognize \"/tmp/tsb-ansible-lS4vzn/apiserver-config.yaml\": no matches for config.templateservicebroker.openshift.io/, Kind=TemplateServiceBrokerConfig",
"stderr_lines": [
"error: unable to recognize \"/tmp/tsb-ansible-lS4vzn/apiserver-config.yaml\": no matches for config.templateservicebroker.openshift.io/, Kind=TemplateServiceBrokerConfig"
],
"stdout": "",
"stdout_lines": []
} |
I'm afraid I don't speak ansible very well. You're doing |
@deads2k apologies... I'm doing
|
I don't recognize that file. Is it a template file or a processed template (list)? If it is https://github.com/openshift/origin/blob/master/install/templateservicebroker/apiserver-config.yaml , then that's the config file for the server which you will pass to the template as a parameter. You don't apply that one. |
@deads2k ack, yes... I'm forgetting that there's that layer of abstraction. It is that config file... so when I create the server template I pass this as a parameter, got it! Much appreciated |
aa43fa3
to
36829d0
Compare
They'd both need to be delivered for 3.7 but it might make sense to get #5056 merged in first |
@@ -0,0 +1,25 @@ | |||
--- |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What do we do when any of these commands fail? How do we ensure that these objects are removed? Just something to think about.
aos-ci-test |
/retest |
@deads2k with the latest tested locally I see the TSB pods start up and run after an installation |
|
||
- set_fact: | ||
openshift_metrics_storage_kind: "{{ openshift_hosted_metrics_storage_kind }}" | ||
when: openshift_hosted_metrics_storage_kind is defined |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This file seems unrelated to the topic of the PR?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ugh, i committed while on the wrong branch locally... but i thought i reverted it. Will remove
with_items: | ||
- "{{ __tsb_template_file }}" | ||
- "{{ __tsb_config_file }}" | ||
- "{{ __tsb_rbac_file }}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Has this stabilized enough that we should go ahead and add this content to openshift-ansible in the location we agreed upon rather than fetching it from origin github?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought the alternative to pulling the content from origin was going to be a locally sync'd place in ansible. Is that configured yet? We should be able to just change the source location in vars/
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, we'll setup CI tooling for that but lets go ahead and import a copy of current content as part of this PR and use that rather than fetching from github?
|
||
- name: Delete template file | ||
command: > | ||
kubectl delete -f {{ mktemp.stdout }}/{{ __tsb_template_file }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
kubectl versus oc in the next task, is that intentional?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@deads2k delete on a template will delete all the resources defined in the template?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@deads2k delete on a template will delete all the resources defined in the template?
You need to process the template, then pipe that to delete. You probably want to delete the entire namespace (after doing this) just in case.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was going to suggest just nuking the namespace.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was going to suggest just nuking the namespace.
both are useful. Some resources which are created are cluster scoped. ClusterRoles for instance.
Assuming the metrics related stuff is unrelated to this PR lets remove that then I'm LGTM. |
841a4c6
to
7277cbc
Compare
/retest |
7277cbc
to
5e4255c
Compare
5e4255c
to
dace516
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
/lgtm |
/test all [submit-queue is verifying that this PR is safe to merge] |
/retest |
Automatic merge from submit-queue |
… tsb
cc: @deads2k @sdodson
Addresses:
https://bugzilla.redhat.com/show_bug.cgi?id=1486623
https://bugzilla.redhat.com/show_bug.cgi?id=1470623
https://bugzilla.redhat.com/show_bug.cgi?id=1491626