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

Support VLAN links network_info.json #11

Merged
merged 1 commit into from Sep 18, 2021
Merged

Support VLAN links network_info.json #11

merged 1 commit into from Sep 18, 2021

Conversation

markgoddard
Copy link
Contributor

With older versions of cloud-init (e.g. CentOS 7), it seemed to be
possible to specify an interface named ., and cloud-init
would assume that this is a VLAN interface on with VLAN ID
.

In more recent versions of cloud-init (e.g. CentOS 8), several
additional parameters are required in more recent cloud-init versions:

  • vlan_id
  • vlan_link
  • vlan_mac_address

While the MAC address is required, it does seem possible to set it to
null. Additionally, the backend device must be listed in the
configuration.

With older versions of cloud-init (e.g. CentOS 7), it seemed to be
possible to specify an interface named <link>.<vlan>, and cloud-init
would assume that this is a VLAN interface on <link> with VLAN ID
<vlan>.

In more recent versions of cloud-init (e.g. CentOS 8), several
additional parameters are required in more recent cloud-init versions:

* vlan_id
* vlan_link
* vlan_mac_address

While the MAC address is required, it does seem possible to set it to
null. Additionally, the backend device must be listed in the
configuration.
@jriguera jriguera merged commit 469b2af into jriguera:master Sep 18, 2021
@jriguera
Copy link
Owner

Looks ok! Merged.

Thanks for the PR!

@markgoddard
Copy link
Contributor Author

Thanks!

openstack-mirroring pushed a commit to openstack/kayobe that referenced this pull request Jan 7, 2022
The jriguera.configdrive role does not add VLAN=yes to the ifcfg script
of a VLAN interface on the seed VM, unless type=vlan is passed in the
network device list. This change passes this field for VLAN interfaces.

Depends on jriguera/ansible-role-configdrive#11

Change-Id: I6946b578f23843dd3cbafcb185b8d8cfbb00c080
Story: 2008089
Task: 40790
openstack-mirroring pushed a commit to openstack/openstack that referenced this pull request Jan 7, 2022
* Update kayobe from branch 'master'
  to 6828184ab13193b85f7f1b34ff142b444696b4bc
  - Merge "Fix seed VM configdrive when admin network is a VLAN"
  - Fix seed VM configdrive when admin network is a VLAN
    
    The jriguera.configdrive role does not add VLAN=yes to the ifcfg script
    of a VLAN interface on the seed VM, unless type=vlan is passed in the
    network device list. This change passes this field for VLAN interfaces.
    
    Depends on jriguera/ansible-role-configdrive#11
    
    Change-Id: I6946b578f23843dd3cbafcb185b8d8cfbb00c080
    Story: 2008089
    Task: 40790
openstack-mirroring pushed a commit to openstack/kayobe that referenced this pull request Jan 10, 2022
The jriguera.configdrive role does not add VLAN=yes to the ifcfg script
of a VLAN interface on the seed VM, unless type=vlan is passed in the
network device list. This change passes this field for VLAN interfaces.

Depends on jriguera/ansible-role-configdrive#11

Change-Id: I6946b578f23843dd3cbafcb185b8d8cfbb00c080
Story: 2008089
Task: 40790
(cherry picked from commit bc0885f)
openstack-mirroring pushed a commit to openstack/kayobe that referenced this pull request Jan 10, 2022
The jriguera.configdrive role does not add VLAN=yes to the ifcfg script
of a VLAN interface on the seed VM, unless type=vlan is passed in the
network device list. This change passes this field for VLAN interfaces.

Depends on jriguera/ansible-role-configdrive#11

Change-Id: I6946b578f23843dd3cbafcb185b8d8cfbb00c080
Story: 2008089
Task: 40790
(cherry picked from commit bc0885f)
openstack-mirroring pushed a commit to openstack/kayobe that referenced this pull request Jan 24, 2022
The jriguera.configdrive role does not add VLAN=yes to the ifcfg script
of a VLAN interface on the seed VM, unless type=vlan is passed in the
network device list. This change passes this field for VLAN interfaces.

Depends on jriguera/ansible-role-configdrive#11

Change-Id: I6946b578f23843dd3cbafcb185b8d8cfbb00c080
Story: 2008089
Task: 40790
(cherry picked from commit bc0885f)
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.

None yet

2 participants