Skip to content

Conversation

assumptionsandg
Copy link

No description provided.

@assumptionsandg assumptionsandg requested a review from a team as a code owner December 17, 2024 12:51
@assumptionsandg assumptionsandg force-pushed the feature/neutron-namespace-drain branch 3 times, most recently from 5ac4e3e to 7bfb233 Compare January 20, 2025 13:18
Comment on lines 3 to 12
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 }}"
Copy link
Member

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

Copy link
Author

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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See previous file

Comment on lines +33 to +35
- name: Add agents to router
ansible.builtin.include_tasks: add-new-l3.yml
when: router_ids | length > 0
Copy link
Member

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"?

@assumptionsandg
Copy link
Author

Changes paused until Arcus prod upgrade finishes.

@Alex-Welsh
Copy link
Member

@assumptionsandg what's the timeline on the upgrade?

@Alex-Welsh
Copy link
Member

@assumptionsandg prod upgrade is done now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants