Add playbook to prepare seed SNO before seeed gen#544
Conversation
| changed_when: false | ||
| become: true | ||
|
|
||
| - name: Attach containers disk if not already attached |
There was a problem hiding this comment.
What is containers disk? This operation is dangerous because it affect hypervisor which is shared between different CI setups
There was a problem hiding this comment.
This is only for dev process, later spokes will be switched to BMs and this will be removed.
| - name: Power off seed spoke node via SSH | ||
| ansible.builtin.command: | ||
| cmd: > | ||
| ssh -o StrictHostKeyChecking=no | ||
| -o ConnectTimeout=10 | ||
| core@{{ spoke_node_ip.stdout }} | ||
| sudo systemctl poweroff | ||
| async: 15 | ||
| poll: 0 | ||
| changed_when: true |
There was a problem hiding this comment.
not mandatory - but you can use the inventory to shutdown the host / VM via redfish
it will be more reliable and faster
- name: Force power off node via Redfish
community.general.redfish_command:
category: Systems
command: PowerForceOff
baseuri: "{{ hostvars[item].bmc_address }}"
username: "{{ hostvars[item].bmc_user }}"
password: "{{ hostvars[item].bmc_password }}"|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
/lgtm |
No description provided.