-
Notifications
You must be signed in to change notification settings - Fork 1k
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
profiles: introducing cluster profiles #1018
Conversation
0629bb1
to
c2f6321
Compare
c2f6321
to
c855ebb
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.
Looks good to me.
@cloudnull any idea why I'm getting the rgw section twice?
Could this be because of the |
239d5b5
to
76f21b9
Compare
Are these overrides combined and targetting the same file via some kind of a hash merge happening elsewhere? It looks like the overrides contain different values between the sections which would be something triggered by loading the two sections keys into the same override dictionary. |
@cloudnull well I have my ceph.conf.j2 template that fills the default content of the section and then I filled Am I missing something? |
@leseb @cloudnull The problem is in the config_template module (v2 and v1) as in line 303 of v2 of the module, it is not recongnize the section of the rgw and it creates the new section. I put q in the module : |
Thanks @OrFriedmann for looking into this, do you guys think we can get an easy fix for this? @cloudnull Thanks! |
I have an idea how to solve this, Please comment if you are agree with me |
@OrFriedmann do you mind giving this a try and tell us if that works? |
@leseb @OrFriedmann are we still seeing this with the updated module for 2.2 ? |
also, does the section "[client.rgw.ceph-rgw0]" already exist in the target file which config_template is attempting to append to? |
@cloudnull the issue is still present with ansible 2.2. The section doesn't exist before it gets created. Running ansible twice doesn't merge both sections. |
@leseb @cloudnull The problem as I see it is that the add_section function in the config_template module compares the name of the variable client.rgw.{{ hostvars[inventory_hostname]['ansible_hostname'] }} with the name of the section client.rgw.ceph-osd0, when it should compare the value of the variable with the name of the section. |
76f21b9
to
9bb018c
Compare
jenkins test ansible2.2-xenial-cluster |
jenkins test this please |
9bb018c
to
cc27176
Compare
@leseb I tried running this branch and found that there was an extra endif here (
|
@alimaredia thanks for reporting this, I just pushed a new version. |
See: - #1018 (comment) - #1018 (comment) The workaround here is rendering `ceph_conf_overrides` before passing it to `config_template` to be sure we won't have a section added twice in ceph.conf Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
5fb1439
to
ccfac64
Compare
See: - #1018 (comment) - #1018 (comment) The workaround here is rendering `ceph_conf_overrides` before passing it to `config_template` to be sure we won't have a section added twice in ceph.conf Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
jenkins test kraken-ansible2.2-docker_dmcrypt_journal_collocation |
1 similar comment
jenkins test kraken-ansible2.2-docker_dmcrypt_journal_collocation |
jenkins test jewel-ansible2.2-update_docker_cluster |
jenkins test kraken-ansible2.2-update_docker_cluster |
jenkins test jewel-ansible2.2-update_docker_cluster |
2 similar comments
jenkins test jewel-ansible2.2-update_docker_cluster |
jenkins test jewel-ansible2.2-update_docker_cluster |
jenkins test jewel-ansible2.2-update_docker_cluster |
jenkins test jewel-ansible2.2-update_docker_cluster |
1 similar comment
jenkins test jewel-ansible2.2-update_docker_cluster |
This commit introduces a new directory called "profiles" which contains some set of variables for a particular use case. These profiles provide guidance for certain scenarios such as: * configuring rgw with keystone v3 Signed-off-by: Sébastien Han <seb@redhat.com>
See: - #1018 (comment) - #1018 (comment) The workaround here is rendering `ceph_conf_overrides` before passing it to `config_template` to be sure we won't have a section added twice in ceph.conf Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
Remove `rgw enable static website` and `rgw enable usage log` from ceph.conf and make it usable with ceph_config_overrides as profiles. Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
We don't want to have heterogeous ceph.conf anymore and believe that we should have the right section for the running daemon. If we don't do this and use profiles, e.g: rgw, we will get a new rgw section on some of the nodes. Signed-off-by: Sébastien Han <seb@redhat.com>
OK - luminous-ansible2.2-journal_collocation |
jenkins test jewel-ansible2.2-dmcrypt_journal_collocation |
jenkins test jewel-ansible2.2-xenial_cluster |
jenkins test luminous-ansible2.2-xenial_cluster |
jenkins test luminous-ansible2.2-docker_cluster |
This commit introduces a new directory called "profiles" which
contains some set of variables for a particular use case. These profiles
provide guidance for certain scenarios such as:
Signed-off-by: Sébastien Han seb@redhat.com