2021年9月3日 星期五

[Infra, main] OpenStack, OpenShift, Heroku, Network Kb, Chef, Crowbar, Puppet FAQ

OpenStack, OpenShift, Heroku, Network Kb, Chef, Crowbar, Puppet FAQ

井民全, Jing, mqjing@gmail.com

The Public FAQ Index (view)

Table of contents

1. Public Cloud 2

1.1. EC2 2

1.2. Google Compute Engine 2

1.3. Azure 2

1.4. OpenShift 2

1.5. Heroku 4

2. Basic Network Knowledge 4

3. Deployment 7

3.1. Chef 8

3.2. Crowbar 8

3.3. Puppet 8

3.3.1. Puppet Reference 9

3.4. Fuel 9

4. OpenStack 10

4.1. Public Information 10

4.2. General 10

4.3. devStack 14

4.4. Horizon 14

4.5. Nova 15

4.6. CloudKitty 16

4.7. Network 16

4.7.1. Reference 17

4.7.2. Further Reading 17

4.7.3. Question 17

4.8. Ceilometer 17

4.9. References 19

4.10. Further Reading 19

4.11. Questions 19

5. Lab 20

6. Report 20




1. Public Cloud

1.1. EC2

  1. Amazon EC2 Main Page (ref)

  2. [access, aws vm] ssh -i "amazon_key.pem" ubuntu@ec2-54-149-136-23.us-west-2.compute.amazonaws.com

  3. [security, two-step] How to setup two-step authortication for Amazon account (view)


1.2. Google Compute Engine

  1. [vm, create] How to create a VM from Google Compute Engine Dashboard (view)


1.3. Azure

  1. https://portal.azure.com

  2. [vm, create] How to create a VM from MSFT Azure Dashboard (view)

  3. [security, two-step] How to setup two-step authortication for OneDrive account (view)


1.4. OpenShift

  1. [faq, opensift] The FAQ of the OpenShift (sheet)

  2. [oc, app, all] 最簡單的方式設定好可以運作的 Python service on OpenShfit (view)

  3. [cli, install] How to install cli tool (ref) (official)


Step 1: Download page

https://www.okd.io/download.html


Step 2: Extract and copy the exeucation

echo $PATH

cp oc


Login

  1. [oc, app, status] How to get app status (ref)


oc get all --selector app=lab-pos-server1 -o name



Output

pod/lab-pos-server1-3-cfkcq

replicationcontroller/lab-pos-server1-1

replicationcontroller/lab-pos-server1-2

replicationcontroller/lab-pos-server1-3

service/lab-pos-server1

deploymentconfig.apps.openshift.io/lab-pos-server1

imagestream.image.openshift.io/lab-pos-server1


  1. [oc, app, delete] How to delete all resources for an app (ref)


oc delete all --selector app=lab-pos-server1


Output

pod "lab-pos-server1-3-cfkcq" deleted

replicationcontroller "lab-pos-server1-1" deleted

replicationcontroller "lab-pos-server1-2" deleted

replicationcontroller "lab-pos-server1-3" deleted

service "lab-pos-server1" deleted

deploymentconfig.apps.openshift.io "lab-pos-server1" deleted

imagestream.image.openshift.io "lab-pos-server1" deleted




1.5. Heroku

  1. [heroku, sheet] The HeroKu sheet (view)

  2. [heroku, official] The official site (ref)

  3. [heroku, react] Deploy your React app on Heroku (view)

  4. [line, webhook + heroku] How to develop a Line WebHook service on Heroku server (draft)


2. Basic Network Knowledge

  1. [debug] Network Troubleshooting (view)

  2. [debug, traceroute] trace route with TCP -- sudo traceroute -w 1 -n -T www.yahoo.com.tw

  3. [debug, netstat] How to list the connection status -- netstat -atunp, 目前我的網路連線狀態中,有多少連線已建立或產生問題 (ref)

  4. [debug, tcpdump] How to use tcpdump? -- sudo tcpdump -i wlan0 -nn -X (ref)

  5. [debug, list connection] List all active Internet connections and port listen -- netstat -antl (view)

  6. [proxy, apt-get] How to use apt-get behind proxy? (view)

  7. [proxy, sudo] How to use sudo behind proxy? (view)

  8. [proxy, git] How to enable git/repo proxy (view) (old)

  9. [proxy, npm] How to setup npm proxy (view)

  10. [3G] How to setup your 3G USB modem to connect the Internet (view)

  11. [wifi, h/w] How to enable WI-Fi Connection Type in Ubuntu 14.04 (view)

  12. [samba] How to setup the samba (view)

  13. [restart] How to restart the network service or make the change effective  (view)

    1. sudo ifdown eth0 && sudo ifup eth0

    2. sudo invoke-rc.d networking restart [ref]

    3. [desktop 14.04 later] sudo service network-manager restart

    4. /etc/init.d/networking restart

  14. [nfs] How to setup the NFS server (view)

  15. [traceroute] How to trace the end point -- traceroute www.yahoo.com.tw

  16. [traffic, wireshark] How to analyze and log the traffic flow of your network -- wireshark (view)

  17. [traffic, tshark] How to track your traffic -- tshark (view): total package

  18. [ovs, install] How to install OpenvSwitch (view)

  19. [ovs, kvm] How to use openvswitch with KVM (view)

  20. [table] networking mode table between vagrant, KVM and VirtualBox (view)

  21. [list, ethernet adapter] How to list the Ethernet adapter in your system -- ip link (view)

  22. [namespace, ip] How to list all linux namespace -- ip netns (view)

  23. [ip, gateway, dns] How to setup the ip, gateway and dns for your machine (view)

  24. [ip, assign an ip] How to assign a static ip for your machine --- /etc/network/interfaces (view)

  25. [ip, assign an ip] How to add/assign a static ip for your machine on the fly -- ip addr add , ifconfig eth0 <addr> (view)

  26. [dhcp, reset] How to use dhcp for your host ip -- sudo dhclient -r eth0; sudo dhclient eth0   (down the nic at first) (view)

  27. [dhcp, client setup] How to setup your host by dhcp server -- auto eth0  <enter> iface eth0 inet dhcp (view)

  28. [dhcp, install] How to install a dhcp server -- iscs-dhcp-server  (view)

  29. [dhcp, dnsmasq] How to setup a dhcp server (view)

  30. [ip, scan] How to scan ip? -- sudo arp-scan -I eth0 192.168.1.0/24 

  31. [nic, enable/disable] How to disable/enable an interface -- ifconfig eth0 down/up 

  32. [nic, list] How to list nic on system -- ip a

  33. [centos, nic, enable] How to enable nic when system boot in CentOS (view)

  34. [gateway] How to get gateway and route table information -- route -n, route (view)

  35. [gateway] How to get my gateway ip address (view)

  36. [gateway, add] How to setup gateway -- sudo route add default gw <gateway ip> <network interface> (view)

  37. [dns] How to get the dns server information -- /etc/resolv.conf?

  38. [setup dns] How to setup dns server -- interfaces:: dns-nameservers <ip> or  vi /etc/resolv.conf => nameserver <addr>

  39. [bind, change dns A record] [bind] Dynamically update DNS A record by DHCP server (draft)

  40. [nat] How to setup your host machine as a NAT server (view)

  41. [nat, ovs, nat out, 1vm] How to connect 1 VM with a bridge using TUN/TAP model (view)

  42. [find host] How to find all live hosts on my network -- nmap -sP 192.168.0.1/24 (view)

  43. [nic, rename] How to rename the NIC -- eth2 -> eth0 (view)

  44. [nic, create] How to create a virtual nic (view) (ref)

    1. [AP] Connect to AP management dashboard without changing the original network setting

    2. Create virtual subnet for all host.

  45. [multicast, netstat] How to know your multicast group for your nic -- netstat -g (view)

  46. [router, setup] How to setup a linux router (view)

  47. [router, setup] 如何建立一個小型的私有網路, 然後透過你建立的 Router 當作它的 gateway 連到外面去 (view)

  48. [router, add-net] 如何讓 A 網段的封包從 eth0 出去, B網段的封包由 eth1出去(view)

  49. [router, add new nic] How to add a new virtual nic (view)

  50. [router, firewall] How to setup a linux firewall -- iptables (view)

  51. [router, nat] How to setup a linux nat server (view)

  52. [bridge, add] How to setup a Linux bridge -- brctl addbr br0 (view)

  53. [bridge, list] List all interfaces that attached to the bridge -- brctl show

  54. [bridge, subnet] How to create a subnet (draft)

  55. [bridge, ovs, setup] How to setup your openvswitch bridge (view)

  56. [nat, ovs, nat out, 1vm] How to connect 1 VM with a bridge using TUN/TAP model (view)

  57. [bridge, ovs, 1vm] How to connect 1 VM with a bridge using TUN/TAP mode -- How to create a bridge network for KVM with OVS (view)

  58. [bridge, ovs, 2vm] How to connect 2 VMs with a bridge using TUN/TAP model (view)

  59. [ref, VEB architecture] Virtual Bridge -- (go)****

  60. [vlan, linux] How to setup a VLAN in Ubuntu -- important (view) (openvswitch version)

  61. [cisco switch, nat] 如何設定 cisco switch NAT router 功能 (view)

  62. [cisco switch, simulator] cisco switch router simulator (view)

  63. [physical switch, connect] How to use serial port to connect your switch (view)

  64. [physical switch, supermicro, ip] How to get supermicro 10G Switch IP Information (view)

  65. [vlan, physical switch] 我們是否可以設定 public network VLAN (ex: VLAN ID= 6? 藉由指定聯外的那個 port 的 VID? YES (view)

  66. [vlan, physical switch] 如何讓有 tag 設有 VLAN 的 storage network 與 沒有 tag 的 public network 共用一個 physical switch 網孔 (view)

  67. [vlan, physical switch**] 如何讓有 tag 的 public network  與 沒有 tag 的 內部網路 admin network 共用一個 physical switch 網孔 (view)

  68. [vlan, physcia switch**] 一些設定 physical switch 的重要觀念 (view)

  69. [vlan, ovs, 1 vlan] How to create one VLAN with OpenvSwitch (view)

  70. [vlan, ovs, 2 vlan, full] How to create two VLANs using OpenvSwitch (view) (ref: cookbook) (ref: scott)

  71. [vlan, ovs, multi-vlan] How to create multi-VLANs with OpenvSwitch (view)

  72. [vmware, share] Where is the mounted share folder in guest os -- /mnt/

  73. [vmware, vlan setup] Understanding vmware vlan (summary) (slides)

    1. EST mode: vm: 不動, vswitch; 不用設定, Physical switch: VLAN 的設定全部在. [port -> vlan mode (should assign ID) =x + tag]

    2. VST mode: vm: 不動, vswitch: 設定 VLAN, Physical switch: trunk mode + tag

    3. VGT mode: vm: 用 802.1q driver 加 tag, vswitch: 設定 VLAN, Physical switch: :trunk mode + tag

  74. [vmware, vlan, white paper] VMware ESX Server 3 802.1Q VLAN Solution (white paper) (ref) -- 各種 vlan 方法的優缺點比較

  75. [bonding, ubuntu, ip bonding] How to setup ubuntu bonding (view)

  76. [bonding,ovs, ip bonding] How to setup ovs bonding (view)

  77. [bonding, openstack,flat] How to setup ovs bonding on Flat mode (view)

  78. [bonding, ovs, active-backup] ovs active-backup mode Link-Aggregation Setup (view)

  79. [ovs, gre] OpenvSwitch GRE Tunnel Configuration (ref) (draft)

  80. [CIDR, definition] What is the definition of CIDR (view)


3. Deployment

3.1. Chef

  1. [deploy, chef] https://github.com/stackforge/openstack-chef-repo

3.2. Crowbar

  1. [crowbar, install] How to install crowbar (view) -- draft

  2. [deploy, cobbler, ubuntu] How to use cobbler to rapid install ubuntu (ref) (draft)

    1. Ununtu cobbler

3.3. Puppet

  1. [deploy, puppet] Stackforge

  2. [puppet master/agent, install] How to install puppet (view) (ref),  infrastructure-as-code, away the pain of managing VMs

  3. [puppet master/agent, install, vagrant] Setup puppet environment by vagrant puppet provisioner (view)

  4. [puppet server/agent, install] How to install puppet server/agent** (view)

  5. [debug, syntax test] How to test the puppet code syntax (view)

  6. [puppet, add user] How to create a user and setup the password (view)

  7. [puppet, add user sudo ] Create a user with passwordless sudo privilege (view)

  8. [puppet, passwd-less] How to Enable Password-Less SSH (view)

  9. [puppet, variable] A simple example on puppet variable (view)

  10. [node, definition] How to define a node for assign configuration (view)

  11. [class, definition] How to define a class (view)

  12. [module, install/uninstall] How to install/uninstall puppet module (view)

  13. [module, use] How to use module (view)

  14. [module, erb, dynamic content] How to define a module, erb example (view)

  15. [custom type, define and declare] How to define and declare a resource type (view)

  16. [custom type, create] How to create a custom type (view) -- pure ruby

  17. [custom type, provider] How to implement your custom type using provider (view) -- pure ruby

  18. [datatype, declaration] How to use declare a datatype in puppet (view)

  19. [storeconfig, exported resource] What is <| |> -- collection of the resource (view)

  20. [resource, dependence] How to manage the resource dependence (view)

    1. [resource, relation, order] How to setup resource order (view)

  21. [debug, message] How debug message on puppet master/client (view)

  22. [puppet, create file] The experimental environment as code by vagrant + puppet (view)

  23. [puppet, file, symbolic link] How to create symbolic link file (view)

  24. [puppet, bash] How to run a bash script command from puppet (view)

  25. [puppet, ppa] How to setup ppa (view)

  26. [puppet, require] How to setup a task requiring a specified service ready (view)

  27. [puppet, dnsmasq] How to setup a DNS server, dnsmasq (view)

  28. [datatype, hash] How to use hash datatype in puppet (view)

  29. [exec, create] How to write an exec with create attribute (view)

  30. [puppet, adrien/network ip, exec] How to use automatic setup network interface  using adrien/network module with puppet (view)

  31. [puppet, gluster] Install gluster with a specified version (view)

  32. [puppet, storage] https://forge.puppetlabs.com/puppetlabs/lvm

  33. http://finninday.net/wiki/index.php/Zero_to_puppet_in_one_day

  34. [puppet, hostname] How to setup hostname (view)

  35. [puppet, zfs, installation] How to install zfs for Ubuntu (view)

  36. [playbooks, installation] How to use playbook (ref)


3.3.1. Puppet Reference

  1. [puppet, example] Puppet example list (ref1) (view)

3.4. Fuel

  1. [arch] Fuel Modular Architecture ** (ref)

  2. [install, fuel, fusion] How to install Mirantis openstack on vmware fusion hypervisor -- 3 NIC (view) (ref)

  3. [install, fuel, virtualbox] How to install openstack in virtualbox (view), (6.0)

  4. [env, list] How to list fuel environment -- fuel env

  5. [env, vip] How to check the vip setup configure in fuel (view)

  6. How to check fuel ctrl -- dockerctl list

  7. How to check all fuel related node -- fuel node

  8. [build, iso] How to build fuel image in Ubuntu 14, private (view)

  9. fuelmenu

  10. fuel node

  11. dockerctl check_all

  12. fuel-utils

  13. fuel-bootstrap list


4. OpenStack

4.1. Public Information

  1. 2015 summit (ref), video (view)

  2. OpenStack Planet (view)

  3. OpenStack faq (view) -- need to package.

4.2. General

  1. Mirantis Operation Guide (ref)

  2. OpenStack Release Schedule (ref)

  3. [doc] public user survey (ref) (2016) (pdf)

  4. OpenStack storage 的種類以及使用情境 (view)

  5. [troubleshooting] Openstack Troubleshooting (ref), private

  6. [book] OpenStack Operations Guide, setup and manage your openstack cloud, O'REILLY (view)

  7. [usage] the Openstack Project Usage (ref)

  8. [doc, why]  why openstack (view)

  9. [overview] Openstack overview (view), private

  10. [definition] OpenStack service definition (view)

  11. [openstack] openstack diagram (view), private

  12. [configuration] Configuration selection for OpenStack (view)

  13. [deploy] OpenStack deploy plan (ref)

  14. [deploy, tool] Cobbler (ref)

  15. [cookbook, sample] How to download the sample code of OpenStack Cloud Computer Cookbook (view)

  16. [cookbook, vagrant setup] Setup OpenStack environment (view) -- draft

  17. [Glance] Image 是誰在保管, 放在哪裡? -- /var/lib/glance/images/  

  18. [nova] Image instance  是誰在保管, 放在哪裡? -- /var/lib/nova/images/instances/

  19. [install, packstack, centos] All in one OpenStack (view)

  20. [install, private] How to install OpenStack (view)

  21. [install, private] How to install OpenStack --Grizzly (view)

  22. [install, private] How to transform gre to single flat network architecture (logan)

  23. [install, fuel, dailybuild] Fuel Daily Build (download)

  24. [install, fuel, esxi] How to install Mirantis openstack in esxi hypervisor (draft) (ref)

  25. [install, fuel, vSphere] How to deploy the Mirantis OpenStack in VSphere (draft)

    1. SIMPLIFYING CLOUD DEPLOYMENTS ON MIRANTIS OPENSTACK WITH VMWARE TECHNOLOGIES (slide, draft)

  26. [install, fuel, fusion] How to install Mirantis openstack on vmware fusion hypervisor -- 3 NIC (view) (ref)

  27. [install, fuel, virtualbox] How to install openstack on virtualbox (view), (new)

  28. [install, fuel, virtualbox, new compute node] How to add a new compute node  (view)

  29. [image, create] How to create image for OpenStack (view)

  30. [install, fuel, bare-metal ] How to install openstack on bare-metal hardware (draft)(private arch)

  31. [install, fuel, cli] How to write a cli command to fuel for automatic provisioning (ref)

  32. [fuel, plug-in] How to write a mirants plug-in (evan)

  33. [fuel, re-install os] How to reinstall os (view)

  34. [network, verify] How to verify the network architecture (gre or vlan) -- ovs_neutron_plugin.ini (view)

  35. [install, jedipunkz] How to install OpenStack -- Jedipunkz (view)

  36. [install, office grizzly] How to install OpenStack -- grizzly official (draft)

  37. [install, official icehouse] How to install OpenStack -- icehouse official (draft)

  38. [install, add compute] How to add a havana compute node (view) (epd)

  39. [install, management Internet] How to setup controller as a router for management subnet installation (view)

  40. [neutron, install, gre -> flat] How to transfer gre mode -> flat mode (view),(epd) (logan)(ref)

  41. [security, port] How to enable a certain port on openstack (go)

  42. [openstackrc, download] How to download the openstackrc file for CLI (view)

  43. [key, create] Setup Key-Pair for all of your Operations (view)

  44. [keystone, create user/role] How to create role and assign to a user (view)

  45. [keystone, token] How to get token from username and password (view)

  46. [glance, cli, upload image] How to upload image (view)

  47. [cloud-init, create vm] How to create VM with cloud-init script (view), cloud-config version

  48. [cloud-init, create vm] How to create VM with cloud-init script (view), Bash version

  49. [cloud-init, passwd] How to get password of the Windows instance with cloud-init (view)

  50. [cloud-init, bash function] How to use bash function in cloud-init (view)

  51. [nova, issue, service state down] How to resolve state down (view)

  52. [cloud-init, question] The question list of cloud init (view)

  53. [cloud-init, hello] Automatic setup the initial packages when the first boot time (view)

  54. [cloud-init, quick] Quick

ssh -i cloud.key ubuntu@192.168.1.176   # access to the main host


or

ssh-agent bash

ssh-add <your-private-key>


virtualenv env

. ./venv/bin/activate

source ./openstack.rc      # downlad from [access & security] -> [api access]

nova list # check

neutron net-list   # get the network id

nova image-list # check the image


nova boot --image "ubuntu_cloud"  --key-name jing-key --flavor "m1.small" --availability-zone "node10" --user-data user_data.file "jing-cloud-init-test" --nic net-id=fc48a1d5-62e9-459f-89ab-86f4c0bf6486



  1. [cloud-init, hostname] How to auto-setup hostname (view), cloud-config version

  2. [cloud-init, hostname] How to auto-setup hostname (view), bash version

  3. [cloud-init, complete] How to know cloud-init was finished (view)

  4. [cloud-init, apt, deb] How to install specific deb file by apt-get install (view), cloud config version

  5. [cloud-init, apt, install] How to install software by apt-get install (view), bash version

  6. [clout-init, puppet-master ready] (github)

  7. [security, enable RDP] How to enable RDP in havana (view)

  8. [security, Windows Network sharing] How to enable Windows Network sharing (view)

  9. [neutron, create subnet] How to create subnet from Horizon (view)

  10. [neutron, restart service] How to restart all neutron services (view)

  11. [neutron, l3 agent] dvr_snap is used for non-float IP

  12. [cinder, storage, knowledge] nfs provide a shared folder -> cinder -> instance volume, (private), private

  13. [cinder, nfs backend] How to setup NFS backend to cinder (ref)

  14. [cinder, volume] How to check the cinder volume mount status (view), private

  15. [cinder, volume -> image] How to convert the volume to image (draft)

    1. cinder upload-to-image 

  16. [cinder, list volume] How to list all volumes (view)

  17. [cinder, list volume] How to list all volumes in a tenant (view)

  18. [cinder, cli, create and attach volume] How to create and attach volume in a tenant (view) (script)

  19. [cinder, remove volume] How to remove a volume (view)

  20. [cinder, provision] How to make sure your block storage type -- thin provision or thick provision (view)

  21. [rdp, tips] Remote Desktop Tips (Windows and Ubuntu)  (view), (private)

  22. [benchmark] How work well for your OpenStack -- Rally (go)

  23. http://www.stackinsider.org/index.html

  24. [question] Can we limit vm the IOPs bound (like vSphere)? -- yes (ref: qemu)

  25. [vnc, vnc console] How to get VNC console (view)

  26. [vmware integrate, structure] VMware integrated Openstack (view) (slide)

    1. lab (go)

    2. deploy video (view), private

  27. [vmware, openstack] OpenStack integrates vSphere Environment (slides)

  28. [lbaas, introduction] How VM LBaaS works (slides)

  29. [vpnaas, introduction] VPN as a service in openstack (view)

  30. [cli, client] Run OpenStack CLI Client tool in your host (view)

  31. [vm] Extend HDD size (view)


4.3. devStack

  1. [devstack, install] How to install DevStack -- ./stack.sh (view)

    1. [devstac, stack.sh] Understanding stack.sh (ref)

  2. [devstack, stop service] How to stop devstack? -- ./unstack.sh

  3. [devstack, clean] How to clean devstack? -- ./clean.sh

  4. [devstack, repo layout] Script File in DevStack (view)

  5. [devstack, openstackrc] ERROR: You must provide a username via either --os_username or env[OS_USERNAME] (sol)

  6. [devstac, restart service] How to restart services in devstack (view)

  7. [devstack, ceilometer] How to enable ceilometer in devstack (view)

  8. [devstack, installation] 如何安裝 gnocci 在 devstack (ref


4.4. Horizon

  1. [horizon, customized] How to customize the horizon (ref) (view)

  2. [horizon, show instances] How to show all instances in one pages (view)

  3. [horizon, create vm, boot from image] How to create a VM from openstack, boot from image (private)(win10 private)

    1. Create VM os: 50G, data: 50G (view)

  4. [horizon, create vm, boot from volume] How to create a VM that boot from volume (view)

  5. [horizon, create member] How to create a project member (view)

  6. [horizon, quota] How to setup the project resource quota (view), mem: 1.5 

  7. [horizon, iops quota] How to get IOPS quota information (view)

  8. [horizon, volume, create] How to create a volume (view)

  9. [horizon, volume, attach] How to attach a new volume to your Windows VM (view)

  10. [horizon, add user to project] How to add a user to project (view)

  11. [horizon, create flavor] How to create a flavor for team (view), private

  12. [horizon, vm, resize] How to resize a VM by change to a new flavor, private (view)

  13. [horizon, snapshot, jenkins] How to snapshot a specified VM by Jenkins (view), private

  14. [horizon, snapshot, create] How to Create a Snapshot (view), private

  15. [horizon, clone] How to clone a VM from a Golden VM (view)

  16. [horizon, ip] horizon ip is VIP

  17. [horizon, instance] Unable to retrieve instance size information (view)

  18. [horizon, application] How to write a horizon application (ref)

4.5. Nova

  1. [nova, conf]  nova.conf - configuration options (ref)

  2. [nova, traffic] How the traffic flow from glance to nova when launching a vm instance (view)

  3. [nova, delete vm] How to delete a VM from openstack (view)

  4. [nova, extend disk size] How to extend disk size when image has less disk size than openstack allocated size by LVM (view) (private2) -- by Logan

  5. [nova, image, set to public] How to set the image as public (view)

  6. [nova, bandwidth limit] How to limit the network traffic for an instance (view)

  7. [nova, favor, socket & core] How to setup socket and core for your VM CPU favor (view)

  8. [nova, flavor, aggregate] How to assign a favor to a special host (view)

  9. [nova, flavor, list] How to get a flavor list from datacenter -- nova flavor-list (view)

  10. [nova, flavor, list vm] How to list vm by flavor (view)

  11. [nova, cli, list all service] How to show the service list (view)

  12. [nova, cli, list vm] How to list all vm in the datacenter (view)

  13. [nova, cli, list vm] How to list all vm on a node (view)

  14. [nova, cli, list vm] How to list all vm in a tenant (view)

  15. [nova, cli, list vm] VM Name -> Host Name (view)

  16. [nova, cli, list all vm name] How to list all vm name on a node (view)

  17. [nova, cli, list all vm iid] How to list iid for vm on a node (view)

  18. [nova, cli, list all vm image name] How to list image name for a vm (view)

  19. [nova, cli, get vm ip] How to get vm ip (view)

  20. [nova, cli, status] How to check VM status (view)

  21. [nova, gui, create vm] How to launch / create a VM (view), 

  22. [nova, cli, create vm] How to create a VM (command line)

  23. [nova, gui, create vm] How to create a VM with an associated ssh key (view)

  24. [floating ip, associate] How to associate a float ip to VM (view)

  25. [security group] How to enable ssh and ping 

4.6. CloudKitty

  1. 計費資訊 (ref)



4.7. Network

  1. [openstack, nova-network] A brief introduction of nova-network (slide)

  2. [openstack, gre] OpenStack GRE Network Architecture (view) (slide)

  3. [openstack, vlan] OpenStack VLAN network Architecture (slide)(odp)

  4. [openstack, vxlan] OpenStack VXLAN network (view)

  5. [openstack, flat] OpenStack Flat network architecture (view)(slides)

  6. [openstack, dvr]  Introduce to Distribution Virtual Router (DVR) (draft)

  7. [neutron, gre, dvr] The OpenStack Network (view)

    1. [nova-network, openstack] VxLAN/GRE Network with DVR Mode

    2. [dvr, gre] VxLAN/GRE Network with DVR Mode (view)

    3. [dvr, vlan] VLAN Network with DVR Mode (draft)


  1. [neutron, EVAN] The OpenStack Cluster for Hyper-convergence (view), private only

  2. [network, EVAN2] The OpenStack Network , private only (view)

  3. [neutron, br-int] OpenvSwitch br-int 封包轉送原理用 Physical Switch 設定來解釋 (view)

  4. [neutron, network number] How to check the number of network (view)

  5. [bonding, traffic analysis, ovs, gre] The traffic analysis in ovs scenarios, ip-bond in GRE mode (view) (ref)

  6. [network device] List the network device -- lspci | grep Network


4.7.1. Reference

  1. OpenFlow and Open vSwitch GRE Tunnel Configuration Tutorial.

  2. Configuring VXLan and GRE Tunnels on OpenvSwitch

  3. [ovs, bonding] Link Aggregation and LACP with Open vSwitch (ref) (draft)

  4. [ovs, gre] Using GRE Tunnels with Open vSwitch (go)

    1. How a OpenvSwitch gets two guests communication between hypervisor? 

    2. Open vSwitch GRE Tunnel Configuration (go)

    3. OpenStack OVS official document (go)

    4. Configuring VXLAN and GRE Tunnels on OpenvSwitch (go)

    5. [kvm, bridge] How to setup the kvm bridge (go)

    6. Ubuntu Official KVM Network Document (go)

      1. Booting Over the Network Using PXE

    7. OpenStack GRE (ref)

  5. Openvswitch advanced tutorial (ref)

  6. vmware and openvswitch (ref)

  7. [neutron, traffic] Understanding Network Packet Flow (ref)


4.7.2. Further Reading

  1. Network Virtualization (NV) vs. SDN vs. Network Functions Virtualization (NFV) (ref)


4.7.3. Question

  1. [vlan] 我們是否可以設定 public network VLAN (ex: VLAN ID= 6? 藉由指定聯外的那個 port 的 VID? YES (view)


4.8. Ceilometer

  1. [tutorial] RDO ceilometer quick guide (official_site)

  2. [Gnocchi, pronunciation] ñokki (ref)Screenshot from 2016-08-10 09:29:59

  3. [gnocchi, service name] gnocchi-statsd 

  4. [config file, example] mitaka (view)

  5. [config file, ceilometer.conf] option (official_site)

  6. [devstack, ceilometer] How to enable ceilometer in devstack (view)

  7. [devstack, gnocchi, installation] 如何安裝 gnocci 在 devstack (view) (ref)

  8. [storage, arch, gnocchi] 如何規劃 Gnocci 的儲存空間 (view) (ref)

  9. [storage, arch, classical ceilometer] 如何規劃 classical ceilometer 儲存空間 (view) (ref)

  10. [storage, mongodb] where is the mongodb database -- /etc/mongodb.conf::dbPath (view)

    1. /var/lib/mongo/mongodb

  11. [database, name] What i+s the database name for the original ceilometer -- ceiloxxx (ref)

  12. [database, record number] How to know the sample number in Ceilometer database? (ref)

    1. use ceiloxxx

    2. nosql>db.meter.count()

  13. [database, export] How to export the mongodb (ref)

  14. [resource, measure]  The measure items (official_site)

  15. [resource, measure] How to list ceilometer resource -- 列出目前你的系統中, 有哪些資源正在被收集資料 (view)

  16. [meter, list] How to list meter items  -- 列出目前你的系統中, 收集的指標項目有哪些 (view)

  17. [meter, list] How to list meter items for a your instance -- 列出目前你的 instance 被收集的項目 (view)

  18. [sample, list] 列出目前取到的 sample (view)

  19. [sample, cpu] How to list cpu time for an instance -- 列出某個 instance 當前 CPU Time 使用量列表 (view)

  20. [sample, cpu_util] How to list cpu util for an instance -- 列出某個 instance 當前 CPU 使用率列表 (view)

  21. [sample, cpu] How ceilometer get the CPU sample -- python source (view)

  22. [polling, interval] 如何更改 Ceilometer polling 的間隔 (view)

  23. [capabilities] How to list ceilometer capabilities (view)

  24. [restart] How to restart ceilometer services (view)

  25. [services, status] Check the ceilometer services status (view)

  26. [perf] Ceilometer polling 效能提升的方法  performance 200 VM (blog)g

  27. [perf] 新版 ceilometer 架構: gnocchi 效能評比 (ref)

  28. [devstack, grafana] 美麗的統計繪圖工具 -- grafana (ref)

  29. Q: What is ceilometer-polling --pollster-list image image.size

  30. Q: How to change sampling rate -- /etc/ceilometer/pipeline.yaml and restart service?

  31. Q: 每分鐘 ceilometer 到底收集了多少資料在裡面?

4.9. References

  1. 超棒的 OpenStack 介紹書 88 頁 (view)

  2. [ref, official doc] OpenStack Official Document (go)

  3. [ref, planing] OpenStack Planning Guide -- fuel on vSphere (ref)

  4. [ref, concept] OpenStack Concept 

  5. [ref, official, install] Installation Guide for Ubuntu 12.04 (view)

  6. [ref, blog] CloudStack Taiwan (go)

  7. [ref, dev] devStack (go)

  8. [ref, deploy] puppet-vs-chef-vs-ansible-vs-salt (view

  9. Redhad 安裝 OpenStack 的方式 (ref)


4.10. Further Reading

  1. [tutorial, concept] OpenStack Cloud Administrator Guide (ref)

  2. [tutorial, concept] Openstack tutorial (go)

  3. [tutorial, concept] Understand OpenStack (go)

  4. [component, architecture] What is the OpenStack components architecture (view)

  5. [network, architecture] Network architecture (view)

  6. [neutron, overview] 深入理解 Neutron -- OpenStack 网络实现 (ref)

4.11. Questions

  1. [fuel, plugin] Why fuel plugin installation procedure requiring  re-deploy whole OpenStack?

  2. [install, fuel, vmware] How to integrate with vmware (ref)

  3. [openstack, performance, create volume] cinder and glance should located at the same host to minimal the network traffic when create the volume. glance --- image ---> cinder

  4. [storage, performance] nfs file copy performance issue


5. Lab

  1. [lab, 2-node]  os: ubuntu/trusty64, ip: 192.168.50.10/11 by vagrant   (download)

  2. [lab, 2-node] os: ubuntu/trusty64, ip: 192.168.50.10/11 by vagrant + puppet (download)

  3. [lab, 2-node + dns] os: ubuntu/trusty64, ip: 192.168.50.10/11 by vagrant + puppet (github)

  4. [lab, vagrant, 2-node with 500G] os: ubuntu/trusty64, hd: 500G, ip: 192.168.50.10/11 (download)

  5. [zfs, installation] How to install zfs for Ubuntu (view)

  6. [puppet, installation] Setup puppet by vagrant (view), githublab

  7. [bash, proxy] Bash Proxy Utility (clone) (code)

  8. [openstack, packstack, centos] All in one OpenStack (view)

6. Report

  • Cloud Computing Introduction-v1.pptx (view), private

  • Current OpenStack Operation Report-20160616-v5.pptx (view), private