-
Notifications
You must be signed in to change notification settings - Fork 0
Add neutron-namespace-drain role #9
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
base: main
Are you sure you want to change the base?
Conversation
5ac4e3e
to
7bfb233
Compare
7bfb233
to
7cc3696
Compare
ansible.builtin.command: > | ||
{{ neutron_namespace_drain_venv }}/bin/openstack | ||
network agent list --host {{ neutron_namespace_drain_host }} | ||
--agent-type dhcp -f value -c ID | ||
register: src_dhcp_id | ||
environment: "{{ openstack_auth_env }}" | ||
changed_when: false | ||
delegate_to: "{{ neutron_namespace_drain_host }}" | ||
vars: | ||
ansible_host: "{{ hostvars[neutron_namespace_drain_host].ansible_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.
Does this command have to be run from the host it is targetting? If not, I'm not sure that neutron_namespace_drain_host
should refer both to the host being drained and the host that the commands are running from. If you want to default them to the same thing that's fine, but it would be nice if we could specify where we run openstack commands as a separate 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.
I see what you're saying and I don't see any reason for these commands to be run from the same host really, though I'm not sure if they're any implications to running it on localhost
or whatever. I think we should set a new delegate_to var neutron_namespace_drain_play_host
default to the namespace drain host, and potentially change it to something else after testing.
with_items: | ||
- "{{ router_ids }}" | ||
|
||
- name: Wait for no more routers to be attached to the 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.
See previous file
- name: Add agents to router | ||
ansible.builtin.include_tasks: add-new-l3.yml | ||
when: router_ids | length > 0 |
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.
Shouldn't this be "Add router to agents"?
Changes paused until Arcus prod upgrade finishes. |
@assumptionsandg what's the timeline on the upgrade? |
@assumptionsandg prod upgrade is done now |
Co-authored-by: Alex Welsh <[email protected]>
removed merge conflict
become root for query source task
No description provided.