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
Common: changed civetweb line in rgw section(conf) #1731
Conversation
jenkins test this please |
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.
You have to re-use this entire block in your rgw code: https://github.com/SirishaGuduru/ceph-ansible/blob/341af20e6820a924df11cb983aaa674a07954606/roles/ceph-common/templates/ceph.conf.j2#L61-L80
@leseb, In this section "https://github.com/SirishaGuduru/ceph-ansible/blob/341af20e6820a924df11cb983aaa674a07954606/roles/ceph-common/templates/ceph.conf.j2#L67-L73" monitor address is basically the addresses of mon nodes. If we have RGWs residing on different nodes other than mon nodes, how will this work? And this condition gives the same IP for all RGW sections. |
@SirishaGuduru sorry I might have been not very clear. You really need to re-use this entire block https://github.com/SirishaGuduru/ceph-ansible/blob/341af20e6820a924df11cb983aaa674a07954606/roles/ceph-common/templates/ceph.conf.j2#L67-L80, leave the block thing but you have to create a set of variables for rgw:
Then, you need to make these variables mandatory by adding check in the rgw role, see examples from the mon here: https://github.com/ceph/ceph-ansible/blob/149f21b2eff8d37c979148fb838bb73bfd5b00a6/roles/ceph-mon/tasks/check_mandatory_vars.yml Hope it's clearer now. |
@leseb, its clear now. I will look at how mon is implemented and try doing the same. |
@SirishaGuduru thanks! |
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.
You don't need to delete manually, you need to rebase your branch on master and then push force
@leseb , I did try rebasing master. There was a merge conflict with this file on my branch. Hence had to do a commit. Also since, my PR has changes in this file. |
@SirishaGuduru if there is a conflict you have to resolve it then you can pursue you rebase and then push cleanly. |
8d859fc
to
8224d73
Compare
aa52db4
to
3b6d1bf
Compare
@SirishaGuduru I think you forgot to modify the You shouldn't edit |
@guits, sorry I didn't change this |
As far as I know, if you rebased well on master, you shouldn't have any other changes except yours when running |
@guits, I'm well on par with master, except for my commit in my branch. But still when I run generate_group_vars_sample.sh, I see |
@SirishaGuduru it doesn't matter, commit the changes and push them, unless I see something wrong it should be ok. |
@@ -294,7 +294,15 @@ radosgw_civetweb_num_threads: 100 | |||
# For additional civetweb configuration options available such as SSL, logging, | |||
# keepalive, and timeout settings, please see the civetweb docs at | |||
# https://github.com/civetweb/civetweb/blob/master/docs/UserManual.md | |||
radosgw_civetweb_options: "port={{ radosgw_civetweb_bind_ip }}:{{ radosgw_civetweb_port }} num_threads={{ radosgw_civetweb_num_threads }}" | |||
#radosgw_civetweb_options: "num_threads={{ radosgw_civetweb_num_threads }}" |
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.
all the variables declared here should be uncommented.
ccad501
to
4ed17aa
Compare
@SirishaGuduru |
@guits will do that. Do you have any specific tests that I need to target on? or should I go with how monitor_interface is used in tests? |
@SirishaGuduru yes, reproduce the same thing which has been made for |
5ccd5de
to
feccd20
Compare
jenkins test luminous-ansible2.3-update_dmcrypt |
jenkins test luminous-ansible2.3-docker_dmcrypt_journal_collocation |
@guits, does this look good? |
@gfidente, in this PR I have implemented radosgw_address_block just as "monitor_address_block" is done. |
@SirishaGuduru yes this is great indeed, I pointed to this PR from issue #1767 ; I don't think it addresses setting the civetweb bind ip address for the docker container; also see PR #1773 |
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.
One thing only, please run ./generate_group_vars_sample.sh
. Do not edit group_vars/rhcs.yml.sample
. Just let the script run and do its business :). Thanks! Once we have that I'll merge.
@leseb , I did not edit this file manually. This got modified when I ran generate_group_vars_sample.sh |
8e34389
to
fe15042
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.
Can you rebase on master and then run ./generate_group_vars_sample.sh
. We are almost there, thanks!
@@ -0,0 +1,8 @@ | |||
--- |
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.
Having a check in roles/ceph-common/tasks/checks/check_mandatory_vars.yml
is sufficient, so you can remove this one.
e7fee01
to
4289864
Compare
Resolves issue: Multiple RGW Ceph.conf Issue ceph#1258 In multi-RGW setup, in ceph.conf the RGW sections contain identical bind IP in civetweb line. So this modification fixes that issue and puts the right IP for each RGW. Signed-off-by: SirishaGuduru SGuduru@walmartlabs.com Modified ceph-defaults and ran generate_group_vars_sample.sh group_vars/osds.yml.sample and group_vars/rhcs.yml.sample are not part of the changes. But they got modified when generate_group_vars_sample.sh is ran to generate group_vars/ all.yml.sample. Uncommented added variables in ceph-defaults Updated tests by adding value for radosgw_interface Added radosgw_interface to centos cluster tests Modified ceph-rgw role,rebased and ran generate_group_vars_sample.sh In ceph-rgw role removed check_mandatory_vars.yml. Rebased on master. Ran generate_group_vars_sample.sh and then the below files got modified.
4289864
to
1359869
Compare
jenkins test luminous-ansible2.3-bluestore_dmcrypt_journal |
jenkins test luminous-ansible2.3-update_docker_cluster |
jenkins test luminous-ansible2.3-xenial_cluster |
jenkins test luminous-ansible2.3-update_dmcrypt |
jenkins test ansible2.3-bluestore_docker_dmcrypt_journal_collocation |
@SirishaGuduru did you run Thanks! |
Resolves issue: Multiple RGW Ceph.conf Issue #1258
In multi-RGW setup, in ceph.conf the RGW sections
contain identical bind IP in civetweb line. So this
modification fixes that issue and puts the right IP
for each RGW.
Closes: #1767
Signed-off-by: SirishaGuduru SGuduru@walmartlabs.com