
This change adds the container network MTU option within the container network LXC config file. This will allow a deployer to set the MTU within a provider networks entry in openstack_user_config.yml. Example: .... provider_networks: - network: container_bridge: "br-storage" container_type: "veth" container_interface: "eth2" ip_from_q: "storage" type: "raw" container_mtu: "9000" group_binds: - glance_api - cinder_api - cinder_volume - nova_compute - swift_proxy This changes gives the deployer the ability to selectively set the mtu as needed. The dynamic_inventory.py script has been updated to allow for the MTU entry. Example file documentation has been added to show how to use this new setting. BackportPotential DocImpact Closes-Bug: #1477346 Change-Id: If8c0ee042d2f1322f8322ea6c8ee33606070d880
OpenStack LXC container create
- tags
-
openstack, lxc, container, cloud, ansible
- category
-
*nix
Role for creating LXC containers. This role has been setup for use in OpenStack. This role will create several directories on the LXC host for use in bind mounted storage within the container.
- Example Play:
-
- name: Create container(s) hosts: all_containers gather_facts: false user: root roles: - { role: "lxc_container_create", tags: [ "lxc-container-create" ] }
- Example Inventory:
-
{ "all_containers": { "children": [ "group_of_containers" ], "hosts": [] }, "lxc_hosts": { "children": [], "hosts": [ "infra1" ] }, "group_of_containers": { "children": [], "hosts": [ "container1" ] }, "_meta": { "hostvars": { "infra1": { "ansible_ssh_host": "192.168.0.1", "container_address": "192.168.0.1", "container_name": "infra1", "container_networks": { "management_address": { "bridge": "br-mgmt", "interface": "eth1", "netmask": "255.255.252.0", "type": "veth" } }, "properties": { "container_release": "trusty", "is_metal": true } }, "container1": { "ansible_ssh_host": "10.0.0.1", "container_address": "10.0.0.1", "container_name": "container1", "container_networks": { "management_address": { "address": "10.0.0.1", "bridge": "br-mgmt", "interface": "eth1", "netmask": "255.255.252.0", "type": "veth" } }, "physical_host": "infra1", "physical_host_group": "lxc_hosts", "properties": { "container_release": "trusty", } } } } }