Click here to load reader

CloudStack BirthDay Party nakaya 20141106

  • View
    653

  • Download
    3

Embed Size (px)

Text of CloudStack BirthDay Party nakaya 20141106

  1. 1. Apache CloudStackBirthday Party in JapanLT2014/11/6Satoru Nakaya(@giraffeforestg)____http://giraffeforestg.blog.fc2.com/
  2. 2. Happy Birthday !2
  3. 3. / Satoru Nakaya / @giraffeforestg , CloudStack VMware Certified Advanced Professional CCA for Citrix XenServer RHCSA OpenStack( ` )3
  4. 4. 4(Gifu)2.5 hours
  5. 5. 5
  6. 6. 6
  7. 7. 7 User Group Meeting Vol.19 () CloudStack 4.3 VirtualRouter Deep Drive Vol.20 () CloudStack 4.3 VirtualRouter Deep Drive V2 Vol.21 () Apache CloudStack 4.4 New features of VPC Bug Report CLOUDSTACK-7789 , 7630 , 7411 , 7410 , 5811 , 5190 , 5189 ,3457 , 2926 , 2908 , 2907 , 2905 Blog http://cloudstack.jp/ http://giraffeforestg.blog.fc2.com/ Event CloudStack Day Japan 2014 ML Support
  8. 8. 8User Group Meeting vol.19
  9. 9. 9
  10. 10. 10
  11. 11. 11 User Group Meeting 2015 () Bug Report (Patch) Blog http://cloudstack.jp/ ML Support
  12. 12. 12
  13. 13. 1310
  14. 14. 14
  15. 15. 15
  16. 16. 16CloudStack+OpenVNet
  17. 17. 17
  18. 18. SDN18OpenVNetNetworkVirtualizationVM Instance&Scaleout
  19. 19. 19OpenVNet
  20. 20. 20
  21. 21. 21!CloudStackOpenVNetIntegration
  22. 22. 22OpenVNet
  23. 23. () axshWakame-vdc 2013/3(LGPLv3)OpenFlow 1.3MAC2MAC / GRE Tunnnel/ 23
  24. 24. http://www.slideshare.net/yasuhiro_yamazaki/openvnet-updates-201311-in-tremaday0424
  25. 25. 25https://github.com/axsh/openvnet/
  26. 26. 26
  27. 27. 27
  28. 28. OpenVNetAgentCloudStack VM VMAgent28Open vSwitch 1.10CentOS 6.4 / KVM20141028112732ACS4.4.1
  29. 29. OpenVNetAgent29(isolation)Open vSwitch 1.10CloudStack VM VMAgentAVMOpen vSwitchvPort
  30. 30. 30VLAN(L2)Open vSwitchVMVNet1 VNet2VMVMVM VM VM
  31. 31. 31
  32. 32. 32Apache CloudStack 4.4.1Basic NetworkCloudStack-Agent Config/etc/cloudstack/agent/agent.properties:network.bridge.type=openvswitchlibvirt.vif.driver=com.cloud.hypervisor.kvm.resource.OvsVifDriver
  33. 33. VMMAC,IP,OVSOpenVNet33
  34. 34. mysql> SELECTinstance_name,private_mac_address,private_ip_addressFROM cloud.vm_instance WHERE instance_name LIKE 'i-%';+---------------+---------------------+--------------------+| instance_name | private_mac_address | private_ip_address|+---------------+---------------------+--------------------+| i-2-6-VM | 06:69:7a:00:00:35 | 10.0.5.52 || i-2-8-VM | 06:7f:5e:00:00:3f | 10.0.5.62 |+---------------+---------------------+--------------------+2 rows in set (0.00 sec)mysql>34VMMAC,IP (DB)
  35. 35. 35VMMAC,IP (API)listVirtualMachinesResponse Tagsinstancename:nic(*):ipaddressmacaddress:
  36. 36. OVS[[email protected] ~]# virsh listId Name State----------------------------------------------------1 v-4-VM running2 s-5-VM running3 r-7-VM running4 i-2-6-VM running5 i-2-8-VM running[[email protected] ~]# virsh dumpxml i-2-6-VM | grep"[[email protected] ~]#
  37. 37. OpenVNetvnctl networks add --uuid nw-ovnet1 --display-name ovnet1 --ipv4-network 10.0.5.0 --ipv4-prefix 24 --network-mode virtualvnctl datapaths add --uuid dp-node1 --display-name node1 --node-id node1 --dpid0x00004e6d2b508f4cvnctl interfaces add --uuid if-ovnet9 --mac-address 06:69:7a:00:00:35 --network-uuidnw-ovnet1 --ipv4-address 10.0.5.52 --port-name vnet9vnctl interfaces add --uuid if-ovnet10 --mac-address 06:7f:5e:00:00:3f --network-uuidnw-ovnet1 --ipv4-address 10.0.5.62 --port-name vnet10vnctl interfaces add --uuid if-ovnet1 --mac-address 52:54:00:74:00:00 --network-uuidnw-ovnet1 --ipv4-address 10.0.5.8 --port-name if-ovnet1vnctl interfaces add --uuid if-dhcp1 --mac-address 52:54:00:74:00:10 --network-uuidnw-ovnet1 --ipv4-address 10.0.5.9 --mode simulatedvnctl network-services add --interface-uuid if-dhcp1 --display-name 'our dhcp server' --type "dhcp"vnctl datapaths networks add dp-node1 nw-ovnet1 --broadcast-mac-address3708:00:27:10:01:01 --interface-uuid if-ovnet1
  38. 38. 38OpenVNetvnctl interfaces add--uuid if-ovnet9--mac-address 06:69:7a:00:00:35--network-uuid nw-ovnet1--ipv4-address 10.0.5.52--port-name vnet9
  39. 39. 39[[email protected] ~]# ovs-ofctl dump-flows br2NXST_FLOW reply (xid=0x4):cookie=0x900000000000000, duration=162.553s, table=0, n_packets=0, n_bytes=0, idle_age=162, priority=1,tun_id=0 actions=dropcookie=0x900000000000000, duration=162.553s, table=0, n_packets=0, n_bytes=0, idle_age=162, priority=2,in_port=CONTROLLER actions=write_metadata:0x4040000000000/0x40c0000000000cookie=0x500000000000005, duration=162.337s, table=0, n_packets=0, n_bytes=0, idle_age=162, priority=2,in_port=5 actions=write_metadata:0x700040000000002/0xff000c007fffffffcookie=0x5000000fffffffe, duration=162.373s, table=0, n_packets=0, n_bytes=0, idle_age=162, priority=2,in_port=LOCAL actions=write_metadata:0x40000000000/0xc0000000000cookie=0x500000000000004, duration=162.337s, table=0, n_packets=0, n_bytes=0, idle_age=162, priority=2,in_port=4 actions=write_metadata:0x700040000000001/0xff000c007fffffffcookie=0x900000000000000, duration=162.553s, table=0, n_packets=0, n_bytes=0, idle_age=162, priority=0 actions=write_metadata:0x80000000000/0xc0000000000cookie=0x900000000000000, duration=162.553s, table=3, n_packets=0, n_bytes=0, idle_age=162, priority=0 actions=dropcookie=0x400000000000002, duration=161.957s, table=4, n_packets=0, n_bytes=0, idle_age=161, priority=30,tun_id=0x80000002 actions=write_metadata:0x300000000000002/0xff0000007fffffffcookie=0x900000000000000, duration=162.553s, table=4, n_packets=0, n_bytes=0, idle_age=162, priority=0 actions=dropcookie=0x900000000000000, duration=162.553s, table=6, n_packets=0, n_bytes=0, idle_age=162, priority=0 actions=dropcookie=0xc00001300000004, duration=162.129s, table=7, n_packets=0, n_bytes=0, idle_age=162, priority=30,dl_src=52:54:00:74:00:10 actions=write_metadata:0x700000000000004/0xff0000007fffffffcookie=0x900000000000000, duration=162.553s, table=7, n_packets=0, n_bytes=0, idle_age=162, priority=0 actions=dropcookie=0x900000000000000, duration=162.553s, table=8, n_packets=0, n_bytes=0, idle_age=162, priority=0 actions=dropcookie=0x900000000000000, duration=162.553s, table=9, n_packets=0, n_bytes=0, idle_age=162, priority=0 actions=dropcookie=0x900000000000000, duration=162.553s, table=10, n_packets=0, n_bytes=0, idle_age=162, priority=0 actions=dropcookie=0x200000000000001, duration=162.422s, table=10, n_packets=0, n_bytes=0, idle_age=162, priority=30,metadata=0x700000000000003/0xff0000007fffffff,dl_dst=08:00:27:10:01:01 actions=load:0xffffffffffff->NXM_OF_ETH_DST[],write_metadata:0x8000000280000000/0xffffffff80000000cookie=0xc00001300000001, duration=162.129s, table=11, n_packets=0, n_bytes=0, idle_age=162, priority=50,arp,arp_sha=06:69:7a:00:00:35 actions=dropcookie=0xc00001300000002, duration=162.129s, table=11, n_packets=0, n_bytes=0, idle_age=162, priority=50,arp,arp_sha=06:7f:5e:00:00:3f actions=dropcookie=0xc00001300000004, duration=162.129s, table=11, n_packets=0, n_bytes=0, idle_age=162, priority=50,arp,arp_sha=52:54:00:74:00:10 actions=dropcookie=0xc00001200000002, duration=161.957s, table=11, n_packets=0, n_bytes=0, idle_age=161, priority=30,ip,dl_dst=06:7f:5e:00:00:3f,nw_dst=10.0.5.62 actions=write_metadata:0x8000000280000000/0xffffffff80000000cookie=0xc00001200000004, duration=161.957s, table=11, n_packets=0, n_bytes=0, idle_age=161, priority=30,ip,dl_dst=52:54:00:74:00:10,nw_dst=10.0.5.9 actions=write_metadata:0x8000000280000000/0xffffffff80000000cookie=0xc00001200000004, duration=161.957s, table=11, n_packets=0, n_bytes=0, idle_age=161, priority=30,arp,dl_dst=52:54:00:74:00:10,arp_tpa=10.0.5.9 actions=write_metadata:0x8000000280000000/0xffffffff80000000cookie=0xc00001200000001, duration=161.957s, table=11, n_packets=0, n_bytes=0, idle_age=161, priority=30,arp,dl_dst=06:69:7a:00:00:35,arp_tpa=10.0.5.52 actions=write_metadata:0x8000000280000000/0xffffffff80000000cookie=0xc00001200000001, duration=161.957s, table=11, n_packets=0, n_bytes=0, idle_age=161, priority=30,ip,dl_dst=06:69:7a:00:00:35,nw_dst=10.0.5.52 actions=write_metadata:0x8000000280000000/0xffffffff80000000cookie=0xc00001200000002, duration=161.957s, table=11, n_packets=0, n_bytes=0, idle_age=161, priority=30,arp,dl_dst=06:7f:5e:00:00:3f,arp_tpa=10.0.5.62 actions=write_metadata:0x8000000280000000/0xffffffff80000000cookie=0xc00001300000002, duration=162.129s, table=11, n_packets=0, n_bytes=0, idle_age=162, priority=50,dl_src=06:7f:5e:00:00:3f actions=dropcookie=0xc00001300000001, duration=162.129s, table=11, n_packets=0, n_bytes=0, idle_age=162, priority=50,dl_src=06:69:7a:00:00:35 actions=dropcookie=0xc00001300000004, duration=162.129s, table=11, n_packets=0, n_bytes=0, idle_age=162, priority=50,dl_src=52:54:00:74:00:10 actions=dropcookie=0x900000000000000, duration=162.553s, table=11, n_packets=0, n_bytes=0, idle_age=162, priority=0 actions=dropcookie=0xc00001200000001, duration=161.957s, table=12, n_packets=0, n_bytes=0, idle_age=161, priority=90,arp,metadata=0x8000000200000000/0xffffffff00000000,arp_spa=10.0.5.52 actions=dropcookie=0xc00001200000001, duration=161.957s, table=12, n_packets=0, n_bytes=0, idle_age=161, priority=90,ip,metadata=0x8000000200000000/0xffffffff00000000,nw_src=10.0.5.52 actions=dropcookie=0xc00001200000004, duration=161.957s, table=12, n_packets=0, n_bytes=0, idle_age=161, priority=90,ip,metadata=0x8000000200000000/0xffffffff00000000,nw_src=10.0.5.9 actions=dropcookie=0xc00001200000002, duration=161.957s, table=12, n_packets=0, n_bytes=0, idle_age=161, priority=90,ip,metadata=0x8000000200000000/0xffffffff00000000,nw_src=10.0.5.62 actions=dropcookie=0xc00001200000002, duration=161.957s, table=12, n_packets=0, n_bytes=0, idle_age=161, priority=90,arp,metadata=0x8000000200000000/0xffffffff00000000,arp_spa=10.0.5.62 actions=dropcookie=0xc00001200000004, duration=161.957s, table=12, n_packets=0, n_bytes=0, idle_age=161, priority=90,arp,metadata=0x8000000200000000/0xffffffff00000000,arp_spa=10.0.5.9