Skip to content
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

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

Merged
merged 7 commits into from
May 10, 2024

Conversation

Gerrit91
Copy link
Contributor

Closes #155.

@Gerrit91 Gerrit91 requested a review from a team as a code owner April 29, 2024 08:52
@robertvolkmann robertvolkmann changed the title Move leaf and router role from metal-roles into mini-lab. Move leaf role from metal-roles into mini-lab. Apr 30, 2024
@robertvolkmann
Copy link
Contributor

Maybe rename the role leaf to cumulus.

@Gerrit91 Gerrit91 changed the title Move leaf role from metal-roles into mini-lab. Move leaf and router role from metal-roles into mini-lab. May 2, 2024
Comment on lines +71 to +79
- name: render frr configuration
template:
src: frr.conf.j2
dest: /etc/frr/frr.conf
validate: '/usr/bin/vtysh --dryrun --inputfile %s'
tags: frr
register: frr_rendered
notify: reload frr
when: "ansible_facts.services['metal-core.service'] is not defined"
Copy link
Contributor

Choose a reason for hiding this comment

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

Not needed for a leaf

Comment on lines +43 to +49
- name: render interfaces configuration
template:
src: interfaces.j2
dest: /etc/network/interfaces
validate: '/sbin/ifup --syntax-check --all --interfaces %s'
notify: reload interfaces
when: "ansible_facts.services['metal-core.service'] is not defined"
Copy link
Contributor

Choose a reason for hiding this comment

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

Not needed for a leaf

@Gerrit91
Copy link
Contributor Author

Gerrit91 commented May 3, 2024

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.

Copy link
Contributor

@robertvolkmann robertvolkmann left a comment

Choose a reason for hiding this comment

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

Looks fine. Reworking will be done in the next PR.

@Gerrit91 Gerrit91 merged commit 27aedbf into master May 10, 2024
1 check passed
@Gerrit91 Gerrit91 deleted the leaf-and-router branch May 10, 2024 10:34
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.

Move leaf and router role from metal-roles into mini-lab
2 participants