-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support installation of Neutron ZVM Driver
Allow deploying with the ZVM L2 driver.
- Loading branch information
1 parent
bebb2af
commit a994df7
Showing
9 changed files
with
169 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
109 changes: 109 additions & 0 deletions
109
chef/cookbooks/neutron/templates/default/neutron_zvm_plugin.ini.erb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,109 @@ | ||
[AGENT] | ||
# (StrOpt) xCat REST API username, default value is admin. | ||
# zvm_xcat_username = admin | ||
# Example: zvm_xcat_username = guest | ||
zvm_xcat_username = <%= @zvm[:zvm_xcat_username] %> | ||
|
||
# (StrOpt) Password of the xCat REST API user, default value is admin | ||
# zvm_xcat_password = admin | ||
zvm_xcat_password = <%= @zvm[:zvm_xcat_password] %> | ||
|
||
# (StrOpt) xCat MN server address, IP address or host name | ||
# zvm_xcat_server = YourxCATMNServerAddress | ||
zvm_xcat_server = <%= @zvm[:zvm_xcat_server] %> | ||
|
||
# (StrOpt) xCat zHCP nodename in xCAT, default value is zhcp | ||
# xcat_zhcp_nodename = zhcp | ||
# Example: xcat_zhcp_nodename = myzhcp1 | ||
|
||
# (StrOpt) The compute node name neutron-zvm-agent work on, same as 'host'in nova.conf | ||
# This property is optional. If it is not specified, 'host' in neutron.conf will be | ||
# used. Moreover, 'host' in neutron.conf is recommended and this property is deprecated. | ||
# zvm_host = opnstk1 | ||
# Example: zvm_host = opnstk1 | ||
|
||
# (IntOpt) Agent's polling interval in seconds, default value is 2 seconds | ||
# polling_interval = 2 | ||
# Example: polling_interval = 5 | ||
|
||
# (IntOpt) The number of seconds the agent will wait for | ||
# xCAT MN response, default value is 300 seconds | ||
# zvm_xcat_timeout = 300 | ||
# Example: zvm_xcat_timeout = 600 | ||
|
||
# (StrOpt ) xcat management NIC IP. | ||
# xcat_mgt_ip = 10.1.0.1 | ||
# Example: xcat_mgt_ip=10.1.0.1 | ||
|
||
# (StrOpt ) xcat management NIC mask. | ||
# xcat_mgt_mask=255.255.0.0 | ||
# Example: xcat_mgt_mask=255.255.0.0 | ||
|
||
# (StrOpt ) rdev_list for each vswitch's uplink real device(s), seperated by ','. | ||
# If a vswitch does not connect an OSA, which means it does not connect to | ||
# external network, rdev_list can be ignored. | ||
# A new section is required for each vswitch which has a uplink port. | ||
# rdev_list = 6000 | ||
# Example: | ||
# [xcatvsw3] | ||
# rdev_list = 6000,6003,6005 | ||
|
||
#----------------------------------------------------------------------------- | ||
# Sample Configurations. | ||
#----------------------------------------------------------------------------- | ||
|
||
# 1. Single FLAT Mode | ||
# Physical network names should be identical to z/VM vswitch names. In | ||
# this sample, xcatvsw2 is used for xCAT Management Network, it should be a | ||
# Layer 2, VLAN UNAWARE vswitch in z/VM. When create neutron network, set | ||
# xcatvsw2 provider network_type to flat | ||
|
||
# Neutron server: | ||
# | ||
# [database] | ||
# connection = mysql://root:[email protected]:3306/neutron | ||
# [ml2_type_flat] | ||
# flat_networks = xcatvsw2 | ||
|
||
# Neutron z/VM Agent: | ||
# | ||
# [AGENT] | ||
# zvm_xcat_username = admin | ||
# zvm_xcat_password = admin | ||
# zvm_xcat_server = 10.0.0.1 | ||
# xcat_zhcp_nodename = zhcp | ||
# polling_interval = 2 | ||
# zvm_xcat_timeout = 300 | ||
# xcat_mgt_ip = 10.1.0.1 | ||
# xcat_mgt_mask=255.255.0.0 | ||
|
||
# 2. FLAT, VLAN mixed Mode | ||
# Physical network names should be identical to z/VM vswitch names. In | ||
# this sample, xcatvsw2 is used for xCAT Management Network, it should be a | ||
# Layer 2, VLAN UNAWARE vswitch in z/VM, xcatvsw3 is used for OpenStack | ||
# Compute/Data Network, it is a Layer 2, VLAN AWARE vswitch in z/VM. xCAT | ||
# Management Network MUST be the first created network. This configuration | ||
# also can used for single FLAT network mode if you only create only one | ||
# FLAT network with xcatvsw2 | ||
|
||
# Neutron server: | ||
# | ||
# [database] | ||
# connection = mysql://root:[email protected]:3306/neutron | ||
# [ml2_type_vlan] | ||
# network_vlan_ranges = xcatvsw3:10:100 | ||
# | ||
# Neutron z/VM Agent: | ||
# | ||
# [AGENT] | ||
# zvm_xcat_username = admin | ||
# zvm_xcat_password = admin | ||
# zvm_xcat_server = 10.0.0.1 | ||
# xcat_zhcp_nodename = zhcp | ||
# polling_interval = 2 | ||
# zvm_xcat_timeout = 300 | ||
# xcat_mgt_ip = 10.1.0.1 | ||
# xcat_mgt_mask=255.255.0.0 | ||
# | ||
# [xcatvsw3] | ||
# rdev_list=6243 |
9 changes: 9 additions & 0 deletions
9
chef/data_bags/crowbar/migrate/neutron/045_add_zvm_attributes.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
def upgrade(ta, td, a, d) | ||
a["zvm"] = ta["zvm"] | ||
return a, d | ||
end | ||
|
||
def downgrade(ta, td, a, d) | ||
a.delete("zvm") | ||
return a, d | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters