After Deprec

openstack_cloud_computing_cookbook

Issue link: https://read.uberflip.com/i/1334488

Contents of this Issue

Navigation

Page 213 of 317

Chapter 10 203 7. We now create a private network that OpenStack can use, which we are assigning to a project, as follows: sudo nova-manage network create --fixed_range_v4=10.0.3.0/24 --label cookbook --vlan=100 --project 950534b6b9d740ad887cce62011de77a 8. Once created, we can configure our public network address space, which we will use to connect to our instances: sudo nova-manage floating create --ip_range=172.16.1.0/24 9. When we launch an instance now, the private address is assigned to the VLAN interface. We can assign floating IP addresses to this instance, and they get forwarded to the instance's internal private IP address. How it works... VLAN Manager networking is the default and, for a private cloud environment in networks accustomed to VLANs, this option is the most flexible. It allows for per-project and secure networking by using VLANs. If you do not have a --network_manager flag in your /etc/ nova/nova.conf file, OpenStack Compute will default to VlanManager. Creating the network is no different in any of the managers; in this instance, with VlanManager, the private network is assigned to a VLAN that is specified in the --vlan=100 option. We then associate this network and VLAN with our cookbook project, by specifying the ID of that tenant, using the --project option. On our OpenStack Compute host, this creates an interface named vlan100, which is the tagged interface to eth2, as specified in --vlan_interface from /etc/nova/nova.conf. Configuring per-project (tenant) IP ranges Projects in Nova are a way of keeping user's cloud resources separate. In a project, there are a number of images, instances, and its own network resources assigned to it. When we create a project, we assign it its own VLAN with its own private and public ranges. For example, we may wish to create a development tenancy that is separate from the performance testing tenancy and live tenancies. Getting ready To begin with, ensure you're logged in to the OpenStack API server (our OpenStack VirtualBox Virtual Machine, openstack1, created in Chapter 1, Starting OpenStack Compute). www.it-ebooks.info

Articles in this issue

Links on this page

Archives of this issue

view archives of After Deprec - openstack_cloud_computing_cookbook