before we created the vlan100 and deployed the instance, today we will continue creating a second VLAN network "vlan101". The subnet IP address is 172.16.101.0/24.what has changed in the underlying networkNeutron automatically creates the vlan101 corresponding bridge Brq1d7040b8-01,vlan interface eth1.101, as well as the DHCP tap device tap5b1a2247-32. Eth1.101 and tap5b1a2247-32 are already connected to Brq1d7040b8-01,vlan 101 's two-layer network ready.Now, the network structure is as follows:
In the previous section, "First_local_net" was created through the Web GUI, and we need to figure out what changes have been made to the underlying network structure. Click on the "First_local_net" link to display the subnet and port information for the network.A port has been created in the Ports list named "(a5bd3746-3f89)", IP is 172.16.1.2, attached Device is network:dhcp. Here we just need to know that the port corresponds to the DHCP interface, as to how DHCP works is discussed in detail l
-1472912641925010744.jpg "style=" border:0px;white-space:normal;float:none; "/>In addition, VIF's MAC address is fa:16:3e:c1:66:a5, and this data is taken from Port "(fa7e090e-a29c)".Ifconfig is performed in Cirros-vm1, and the MAC address confirms that eth0 corresponds to TAPFA7E090E-A2.650) this.width=650; "Title=" http://7xo6kd.com1.z0.glb.clouddn.com/ Upload-ueditor-image-20160903-1472912048425081895.png "src=" http://7xo6kd.com1.z0.glb.clouddn.com/ Upload-ueditor-image-20160903-147291264203
TAPFA7E090E-A2 the name tapfa7e090e-a2 corresponds to Port "(fa7e090e-a29c)".The virtual machine instance-00000001 shown in the Virsh list is "Cirros-vm1" and is named differently and should be noted. Check CIRROS-VM1 configuration with Virsh Edit command to confirm that VIF is TAPFA7E090E-A2In addition, VIF's MAC address is fa:16:3e:c1:66:a5, and this data is taken from Port "(fa7e090e-a29c)".Ifconfig is performed in Cirros-vm1, and the MAC address confirms that eth0 corresponds to TAPFA7E090E
different local networks and are not connected, even if both are located on the same host.The network structure is as follows:650) this.width=650; "Title=" http://7xo6kd.com1.z0.glb.clouddn.com/ Upload-ueditor-image-20160911-1473554430663085390.png "src=" http://7xo6kd.com1.z0.glb.clouddn.com/ Upload-ueditor-image-20160911-1473554587647050874.jpg "style=" border:0px;white-space:normal;float:none; "/>SummaryHere the local network knowledge point has been discussed, make a summary of it.1. Instan
network with label "Default", node A may use Eth1, which is configured as:
Physical_interface_mappings = Default:eth1
Node B may use Eth2, which is configured as:
Physical_interface_mappings = Default:eth2
supports multiple flatIf you are creating multiple flat networks, you need to define multiple labels, separate them with commas, and, of course, use multiple physical network cards, as shown here:
[Ml2_type_flat]
Flat_networks = Flat1,flat2
[Linux_
.
Veth pair named Qvbxxxx, Qvoxxxx.
OVS Integration Bridge is named Br-int.
OVS patch ports is named Int-br-ethx and PHY-BR-ETHX (ordinal of Interface).
OVS provider Bridge is named Br-ethx (X is the ordinal of the interface).
The physical interface is named EthX (X is the ordinal of interface).
OVS Tunnel Bridge is named Br-tun.
OVS provider Bridge is used in flat and VLAN networks, and OVS Tunnel Bridge is used in Vxlan and GRE networks. These devices are discussed
=650; "Src=" http://7xo6kd.com1.z0.glb.clouddn.com/ Upload-ueditor-image-20161103-1478177737006004603.jpg "/>VXLAN is independent of the underlying network topology, and in turn, the underlying IP network between the two VTEP is independent of VXLAN. The VXLAN packet is routed based on the IP header of the outer layer, which takes the VTEP IP at both ends as the source and destination IP.In the next section we further understand the process of VXLAN encapsulation and forwarding packages through
interface qg-b8b32a88-03 of the router connection, a source NAT is made, and the packet's origin address is modified to router's interface address 10.10.10.2, so that the destination can send the reply packet back to router , and then forward back to the source-side instance.You can view SNAT's rules through the iptables command.When CIRROS-VM3 (172.16.101.3) pings 10.10.10.1, it is possible to verify router behavior by observing interface two SNAT ICMP packets by tcpdump respectively.vlan101 i
floating IP 10.10.10.3 and the external network communication.vlan101 interface qr-e17162c5-00 tcpdump output:When the data is forwarded to the Tenant network, the address has become CIRROS-VM3 tenant IP 172.16.101.3.Summary:1. Floating IP allows the extranet to directly access the instance in the tenant network. This is achieved by applying the iptalbes NAT rule on the router.2. Floating IP is configured on the router extranet interface rather than instance, which requires special attention.At
Pair "Cloud" was successfully imported.
Use the Key Pair "cloud". Launch instance, select Key Pair "Cloud" in the Access Security tab. OpenStack automatically adds the public key into the instance ~/.ssh/authorized_keys file.
SSH instance. Use the-I cloud.key to specify the private key and the Ubuntu user ssh "Web1" and "Web2".Login instance without a password directly.Note: For the sake of demonstration, here we execute SSH in router's namespace, the main purpose is to reach the network.
Storage Pool of LVM type-playing with OpenStack (8) every 5 minutes)
LVM Storage Pool
Not only can a file be allocated to the client as a virtual disk, but also the LV In the VG on the host can be allocated to the virtual machine as a virtual disk.However, because LV does not have an MBR Boot Record for the disk, it cannot be used as the boot disk of the Virtual Machine and can only be used as the data dis
The timeline development in php is displayed as "just", "5 minutes ago", and "Yesterday amp; quot ;. Time conversion function functiontranTime ($ time) {$ rtimedate (m-dH: I, $ time); $ htimedate (H: I, $ time); $ timetime () -$ time; if ($ time60) {$ str;} elseif ($ time60 * // time conversion function
Function tranTime ($ time ){
$ Rtime = date ("m-d H: I", $ time );
$ Htime = date ("H: I", $ time );
.glb.clouddn.com/ Upload-ueditor-image-20160802-1470133178578008641.png "src=" http://7xo6kd.com1.z0.glb.clouddn.com/ Upload-ueditor-image-20160802-1470133193345082901.jpg "style=" border:0px;white-space:normal;float:none; "/>These are the Neutron two typical deployment scenarios, and the next section we start to discuss the various service components of Neutron.You will first learn Neutron Server.650) this.width=650; "title=" "src=" http://7xo6kd.com1.z0.glb.clouddn.com/ Upload-ueditor-image-20
updating the XML configuration file for instance.We can also view the updated XML by Virsh edit.As you can see, instance adds a virtual disk of type block, source is the volume to be attach, the device name of the virtual disk is VDB.Manual Shut off and Start instance, through Fdisk-l to see volume has attach up, equipment for VDBThe GUI interface also updates relevant attach informationNow if we execute tgt-admin--show--mode target on the storage node, we will see the compute node as initiator
the contents of the container directoryThere are three files, according to the previous log we can know:
BACKUP-00001, compressed backup file.
Backup_metadata,metadata file.
Backup_sha256file, encrypt files.
You can view the current backup by Cinder Backup-list.In addition we can check the usage of cinder backup-create.Here is the--incremental option, which means you can perform an incremental backup. If you have done normal (full-volume) backups before, then you can signi
connection with the physical network card eth0, which ran 1 virtual machine VM1, now has a problem is: How to let VM1 access to the extranet?There are at least two scenarios
assign a virtual NIC to VM1 Vnet0, br0 by Linux Bridge eth0 and Vnet0 connected as shown in
Linux Bridge is used on Linux to do TCP/IP Layer Two protocol exchange device, its functions can be easily understood as a two-layer switch or Hub. Multiple network devices can connect to the same Linux
in the previous section we will NFS volume provider Configuration ready, this section will create volume. Create VolumeTo create an NFS volume action method as with LVM volume, the only difference is to select "NFS" in the drop-down list of volume type.Click "Create Volume", Cinder-api,cinder-scheduler and Cinder-volume work together to create Volume "Nfs-vol-1". This process is the same as LVM volume.Below we focus on analyzing Cinder-volume's logs to see how NFS Volume provider created volume.
Today's discussion cinder how to delete volume.A volume with a status of Available can be deleted. If volume is currently attach to instance, it needs to be detach before delete.The delete operation is relatively simple and the flowchart is as follows:
Send Delete request to Cinder-api
Cinder-api sending messages
Cinder-volume performing a delete operation
Let's discuss each step in detail below.Send Delete request to Cinder-apiThe customer (which can be an OpenStack end us
-image-20160707-1467841226540090315.jpg "style=" border:0px;float:none; "/>What's interesting here is thatCinder-volume performs a "safe" removal . The so-called "security" is actually erasing the data in volume, and LVM driver uses the DD operation to zero the LV's data. The logs are as follows:650) this.width=650; "Title=" http://7xo6kd.com1.z0.glb.clouddn.com/ Upload-ueditor-image-20160707-1467841051639046049.png "src=" http://7xo6kd.com1.z0.glb.clouddn.com/ Upload-ueditor-image-20160707-1467
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.