metal-stack / mini-lab

a small, virtual setup to locally run the metal-stack
MIT License
55 stars 13 forks source link

Move `leaf` and `router` role from metal-roles into mini-lab. #161

Closed Gerrit91 closed 2 months ago

Gerrit91 commented 2 months ago

Closes #155.

robertvolkmann commented 2 months ago

Maybe rename the role leaf to cumulus.

Gerrit91 commented 2 months ago

Fails when I apply your requested changes:

deploy-partition      | TASK [cumulus : ensure that static route for return path to pxe network is present] ***
deploy-partition      | fatal: [leaf02]: FAILED! => changed=true 
deploy-partition      |   cmd:
deploy-partition      |   - ip
deploy-partition      |   - r
deploy-partition      |   - a
deploy-partition      |   - 10.0.1.0/24
deploy-partition      |   - vrf
deploy-partition      |   - mgmt
deploy-partition      |   - via
deploy-partition      |   - 10.0.1.1
deploy-partition      |   - dev
deploy-partition      |   - vlan4000
deploy-partition      |   delta: '0:00:00.063829'
deploy-partition      |   end: '2024-05-03 06:25:57.705250'
deploy-partition      |   msg: non-zero return code
deploy-partition      |   rc: 1
deploy-partition      |   start: '2024-05-03 06:25:57.641421'
deploy-partition      |   stderr: Cannot find device "vlan4000"
deploy-partition      |   stderr_lines: <omitted>
deploy-partition      |   stdout: ''
deploy-partition      |   stdout_lines: <omitted>
deploy-partition      | fatal: [leaf01]: FAILED! => changed=true 
deploy-partition      |   cmd:
deploy-partition      |   - ip
deploy-partition      |   - r
deploy-partition      |   - a
deploy-partition      |   - 10.0.1.0/24
deploy-partition      |   - vrf
deploy-partition      |   - mgmt
deploy-partition      |   - via
deploy-partition      |   - 10.0.1.1
deploy-partition      |   - dev
deploy-partition      |   - vlan4000
deploy-partition      |   delta: '0:00:00.071334'
deploy-partition      |   end: '2024-05-03 06:25:57.692110'
deploy-partition      |   msg: non-zero return code
deploy-partition      |   rc: 1
deploy-partition      |   start: '2024-05-03 06:25:57.620776'
deploy-partition      |   stderr: Cannot find device "vlan4000"
deploy-partition      |   stderr_lines: <omitted>
deploy-partition      |   stdout: ''
deploy-partition      |   stdout_lines: <omitted>

Please feel free to commit to this pull request directly if you want changes for the switch configuration as I will not be able to judge those. I only moved existing tasks with this PR.