-
Notifications
You must be signed in to change notification settings - Fork 12
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
Override bootstrap host assuming mon[0] is available #109
base: master
Are you sure you want to change the base?
Override bootstrap host assuming mon[0] is available #109
Conversation
For case where mon[0] is being rebuilt we can't direct the bootstrap requests there.
For the case where we are rebuilding mon[0] we need to direct commands to another host
@@ -8,5 +8,5 @@ | |||
changed_when: true | |||
when: cephadm_commands | length > 0 | |||
|
|||
delegate_to: "{{ groups['mons'][0] }}" | |||
delegate_to: "{{ cephadm_bootstrap_host }}" |
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.
Each of these roles will need a default for this variable.
I wonder how appropriate the name is, since these roles will execute after bootstrap is complete. How about cephadm_delegate_host
?
That makes sense to me too
From: Mark Goddard ***@***.***>
Date: Tuesday, 4 July 2023 at 09:03
To: stackhpc/ansible-collection-cephadm ***@***.***>
Cc: Stuart Cornell ***@***.***>, Author ***@***.***>
Subject: Re: [stackhpc/ansible-collection-cephadm] Override bootstrap host assuming mon[0] is available (PR #109)
@markgoddard requested changes on this pull request.
________________________________
In roles/commands/tasks/main.yml<#109 (comment)>:
@@ -8,5 +8,5 @@
changed_when: true
when: cephadm_commands | length > 0
- delegate_to: "{{ groups['mons'][0] }}"
+ delegate_to: "{{ cephadm_bootstrap_host }}"
Each of these roles will need a default for this variable.
I wonder how appropriate the name is, since these roles will execute after bootstrap is complete. How about cephadm_delegate_host?
—
Reply to this email directly, view it on GitHub<#109 (review)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AMSV7WA2OF4BNTG4MBYZ2LDXOPE5NANCNFSM6AAAAAAZ4Q7JSY>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
** We have updated our privacy policy, which contains important information about how we collect and process your personal data. To read the policy, please click here<http://www.graphcore.ai/privacy> **
This email and its attachments are intended solely for the addressed recipients and may contain confidential or legally privileged information.
If you are not the intended recipient you must not copy, distribute or disseminate this email in any way; to do so may be unlawful.
Any personal data/special category personal data herein are processed in accordance with UK data protection legislation.
All associated feasible security measures are in place. Further details are available from the Privacy Notice on the website and/or from the Company.
Graphcore Limited (registered in England and Wales with registration number 10185006) is registered at 107 Cheapside, London, UK, EC2V 6DN.
This message was scanned for viruses upon transmission. However Graphcore accepts no liability for any such transmission.
|
Some kayobe playbooks I have been working benefits from on PR such as this. Something such as delegate_to: "{{ lookup('vars', admin_oc_net_name ~ '_ips')[cephadm_delegate_host | default(groups['mons'][0], true)] }}" Would allow for overriding the delegate host when needed and |
When rebuilding mon[0] we need to use a different bootstrap hosts, however many rules have mon[0] hard-coded