Sunday, November 3, 2013

Using GRE based Neutron Networking with Rackspace Private Cloud

If you have used the environment file that was given in the previous post, then we are setting up Neutron/Quantum Networking. By default Rackspace Private Cloud cookbooks setup VLAN based networks. To setup a GRE network, you must also add a network_type attribute in your environment file.

"override_attributes": {
    "nova": {
        "network": {
            "provider": "quantum"
        }
    },
    "quantum": {
        "ovs": {
            "network_type": "gre"
        }
    }

}

The environment file will now look as below:

root@chef-workstation:~/chef-cookbooks/environments# cat grizzly-quantum-1.json 
{
  "name": "grizzly-quantum-1",
  "description": "Chef-server Grizzly Quantum Multinode environment",
  "json_class": "Chef::Environment",
  "chef_type": "environment",
  "override_attributes": {
    "nova": {
      "libvirt": { "virt_type": "qemu" },
      "network": {
        "provider": "quantum"
      }
    },
    "quantum": {
         "ovs": {
              "network_type": "gre"
         }
    },
 

    "mysql": {
      "allow_remote_root": true,
      "root_network_acl": "%",
      "server_root_password": "fr3sca",
      "server_debian_password": "fr3sca"
    },
    "osops_networks": {
      "nova": "10.112.252.0/24",
      "public": "10.112.252.0/24",
      "management": "10.112.252.0/24"
    }
  }
}


After making this change to the environment file, upload the environment file to the Chef-Server:

# knife environment from file grizzly-quantum-1.json

Now run the chef-client on the nodes: Controller, Network and Compute. Once the chef-client runs on the nodes, the Neutron Networking will be setup to use GRE instead of VLAN for Networking.

No comments:

Post a Comment