Open jravetch opened 11 years ago
We use quantum to create network and ip addresses, and the default setting of quantum dhcp agent's use_namespaces is true, which means use network namespace. Therefore, you have to ping or ssh instance with the command like the followings.
ip netns exec NS_NAME ping 10.0.0.3
ip netns exec NS_NAME ssh -i mykey.priv 10.0.0.3
where the NS_NAME is the name of the network namespace, you can confirm it with the following command.
ip netns
@guanxiaohua2k6 Thanks for this. I tried the above commands with the correct NS_NAME but neither ping nor ssh work. I get
ip netns exec qdhcp-5033db70-760c-4dee-99eb-100f72c98122 ping 10.0.0.3 PING 10.0.0.3 (10.0.0.3) 56(84) bytes of data. From 10.0.0.2 icmp_seq=1 Destination Host Unreachable
ip netns exec qdhcp-5033db70-760c-4dee-99eb-100f72c98122 ssh -i mykey.priv 10.0.0.3 ssh: connect to host 10.0.0.3 port 22: No route to host
I confirmed the instance is active and in the running state.
Could you provide the console log of the instance?
[ 0.000000] Initializing cgroup subsys cpuset
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Linux version 2.6.35-22-virtual (buildd@yellow) (gcc version 4.4.5 (Ubuntu/Linaro 4.4.4-14ubuntu5) ) #35-Ubuntu SMP Sat Oct 16 23:19:29 UTC 2010 (Ubuntu 2.6.35-22.35-virtual 2.6.35.4)
[ 0.000000] Command line: root=/dev/vda console=ttyS0
[ 0.000000] BIOS-provided physical RAM map:
[ 0.000000] BIOS-e820: 0000000000000000 - 000000000009dc00 (usable)
[ 0.000000] BIOS-e820: 000000000009dc00 - 00000000000a0000 (reserved)
[ 0.000000] BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
[ 0.000000] BIOS-e820: 0000000000100000 - 000000001fffd000 (usable)
[ 0.000000] BIOS-e820: 000000001fffd000 - 0000000020000000 (reserved)
[ 0.000000] BIOS-e820: 00000000fffc0000 - 0000000100000000 (reserved)
[ 0.000000] NX (Execute Disable) protection: active
[ 0.000000] DMI 2.4 present.
[ 0.000000] No AGP bridge found
[ 0.000000] last_pfn = 0x1fffd max_arch_pfn = 0x400000000
[ 0.000000] x86 PAT enabled: cpu 0, old 0x7040600070406, new 0x7010600070106
[ 0.000000] Scanning 1 areas for low memory corruption
[ 0.000000] modified physical RAM map:
[ 0.000000] modified: 0000000000000000 - 0000000000010000 (reserved)
[ 0.000000] modified: 0000000000010000 - 000000000009dc00 (usable)
[ 0.000000] modified: 000000000009dc00 - 00000000000a0000 (reserved)
[ 0.000000] modified: 00000000000f0000 - 0000000000100000 (reserved)
[ 0.000000] modified: 0000000000100000 - 000000001fffd000 (usable)
[ 0.000000] modified: 000000001fffd000 - 0000000020000000 (reserved)
[ 0.000000] modified: 00000000fffc0000 - 0000000100000000 (reserved)
[ 0.000000] found SMP MP-table at [ffff8800000fdaf0] fdaf0
[ 0.000000] init_memory_mapping: 0000000000000000-000000001fffd000
[ 0.000000] RAMDISK: 1ffd8000 - 1fff0000
[ 0.000000] ACPI: RSDP 00000000000fd990 00014 (v00 BOCHS )
[ 0.000000] ACPI: RSDT 000000001fffd7b0 00034 (v01 BOCHS BXPCRSDT 00000001 BXPC 00000001)
[ 0.000000] ACPI: FACP 000000001fffff80 00074 (v01 BOCHS BXPCFACP 00000001 BXPC 00000001)
[ 0.000000] ACPI: DSDT 000000001fffd9b0 02589 (v01 BXPC BXDSDT 00000001 INTL 20100528)
[ 0.000000] ACPI: FACS 000000001fffff40 00040
[ 0.000000] ACPI: SSDT 000000001fffd910 0009E (v01 BOCHS BXPCSSDT 00000001 BXPC 00000001)
[ 0.000000] ACPI: APIC 000000001fffd830 00072 (v01 BOCHS BXPCAPIC 00000001 BXPC 00000001)
[ 0.000000] ACPI: HPET 000000001fffd7f0 00038 (v01 BOCHS BXPCHPET 00000001 BXPC 00000001)
[ 0.000000] No NUMA configuration found
[ 0.000000] Faking a node at 0000000000000000-000000001fffd000
[ 0.000000] Initmem setup node 0 0000000000000000-000000001fffd000
[ 0.000000] NODE_DATA [0000000001d1b080 - 0000000001d2007f]
[ 0.000000] Zone PFN ranges:
[ 0.000000] DMA 0x00000010 -> 0x00001000
[ 0.000000] DMA32 0x00001000 -> 0x00100000
[ 0.000000] Normal empty
[ 0.000000] Movable zone start PFN for each node
[ 0.000000] early_node_map[2] active PFN ranges
[ 0.000000] 0: 0x00000010 -> 0x0000009d
[ 0.000000] 0: 0x00000100 -> 0x0001fffd
[ 0.000000] ACPI: PM-Timer IO Port: 0xb008
[ 0.000000] ACPI: LAPIC (acpi_id[0x00] lapic_id[0x00] enabled)
[ 0.000000] ACPI: IOAPIC (id[0x01] address[0xfec00000] gsi_base[0])
[ 0.000000] IOAPIC[0]: apic_id 1, version 17, address 0xfec00000, GSI 0-23
[ 0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl dfl)
[ 0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 5 global_irq 5 high level)
[ 0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 high level)
[ 0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 10 global_irq 10 high level)
[ 0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 11 global_irq 11 high level)
[ 0.000000] Using ACPI (MADT) for SMP configuration information
[ 0.000000] ACPI: HPET id: 0x8086a201 base: 0xfed00000
[ 0.000000] SMP: Allowing 1 CPUs, 0 hotplug CPUs
[ 0.000000] PM: Registered nosave memory: 000000000009d000 - 000000000009e000
[ 0.000000] PM: Registered nosave memory: 000000000009e000 - 00000000000a0000
[ 0.000000] PM: Registered nosave memory: 00000000000a0000 - 00000000000f0000
[ 0.000000] PM: Registered nosave memory: 00000000000f0000 - 0000000000100000
[ 0.000000] Allocating PCI resources starting at 20000000 (gap: 20000000:dffc0000)
[ 0.000000] Booting paravirtualized kernel on bare hardware
[ 0.000000] setup_percpu: NR_CPUS:64 nr_cpumask_bits:64 nr_cpu_ids:1 nr_node_ids:1
[ 0.000000] PERCPU: Embedded 30 pages/cpu @ffff880001e00000 s91520 r8192 d23168 u2097152
[ 0.000000] pcpu-alloc: s91520 r8192 d23168 u2097152 alloc=12097152
[ 0.000000] pcpu-alloc: [0] 0
[ 0.000000] Built 1 zonelists in Node order, mobility grouping on. Total pages: 129162
[ 0.000000] Policy zone: DMA32
[ 0.000000] Kernel command line: root=/dev/vda console=ttyS0
[ 0.000000] PID hash table entries: 2048 (order: 2, 16384 bytes)
[ 0.000000] Checking aperture...
[ 0.000000] No AGP bridge found
[ 0.000000] Subtract (41 early reservations)
[ 0.000000] #1 [0001000000 - 0001d1a954] TEXT DATA BSS
[ 0.000000] #2 [001ffd8000 - 001fff0000] RAMDISK
[ 0.000000] #3 [0001d1b000 - 0001d1b071] BRK
[ 0.000000] #4 [000009dc00 - 00000fdaf0] BIOS reserved
[ 0.000000] #5 [00000fdaf0 - 00000fdb00] MP-table mpf
[ 0.000000] #6 [00000fdbf0 - 0000100000] BIOS reserved
[ 0.000000] #7 [00000fdb00 - 00000fdbf0] MP-table mpc
[ 0.000000] #8 [0000010000 - 0000012000] TRAMPOLINE
[ 0.000000] #9 [0000012000 - 0000016000] ACPI WAKEUP
[ 0.000000] #10 [0000016000 - 0000017000] PGTABLE
[ 0.000000] #11 [0001d1b080 - 0001d20080] NODE_DATA
[ 0.000000] #12 [0001d20080 - 0001d21080] BOOTMEM
[ 0.000000] #13 [0000017000 - 0000017060] BOOTMEM
[ 0.000000] #14 [0002522000 - 0002523000] BOOTMEM
[ 0.000000] #15 [0002523000 - 0002524000] BOOTMEM
[ 0.000000] #16 [0002600000 - 0002e00000] MEMMAP 0
[ 0.000000] #17 [0001d21080 - 0001d39080] BOOTMEM
[ 0.000000] #18 [0001d39080 - 0001d51080] BOOTMEM
[ 0.000000] #19 [0001d52000 - 0001d53000] BOOTMEM
[ 0.000000] #20 [0001d1a980 - 0001d1a9c1] BOOTMEM
[ 0.000000] #21 [0001d1aa00 - 0001d1aa43] BOOTMEM
[ 0.000000] #22 [0001d1aa80 - 0001d1ac08] BOOTMEM
[ 0.000000] #23 [0001d1ac40 - 0001d1aca8] BOOTMEM
[ 0.000000] #24 [0001d1acc0 - 0001d1ad28] BOOTMEM
[ 0.000000] #25 [0001d1ad40 - 0001d1ada8] BOOTMEM
[ 0.000000] #26 [0001d1adc0 - 0001d1ae28] BOOTMEM
[ 0.000000] #27 [0001d1ae40 - 0001d1aea8] BOOTMEM
[ 0.000000] #28 [0001d1aec0 - 0001d1af28] BOOTMEM
[ 0.000000] #29 [0001d1af40 - 0001d1af60] BOOTMEM
[ 0.000000] #30 [0001d1af80 - 0001d1af9c] BOOTMEM
[ 0.000000] #31 [0001d1afc0 - 0001d1afdc] BOOTMEM
[ 0.000000] #32 [0001e00000 - 0001e1e000] BOOTMEM
[ 0.000000] #33 [0001d51080 - 0001d51088] BOOTMEM
[ 0.000000] #34 [0001d510c0 - 0001d510c8] BOOTMEM
[ 0.000000] #35 [0001d51100 - 0001d51104] BOOTMEM
[ 0.000000] #36 [0001d51140 - 0001d51148] BOOTMEM
[ 0.000000] #37 [0001d51180 - 0001d512d0] BOOTMEM
[ 0.000000] #38 [0001d51300 - 0001d51380] BOOTMEM
[ 0.000000] #39 [0001d51380 - 0001d51400] BOOTMEM
[ 0.000000] #40 [0001d53000 - 0001d57000] BOOTMEM
[ 0.000000] Memory: 501708k/524276k available (5816k kernel code, 460k absent, 22108k reserved, 5366k data, 828k init)
[ 0.000000] SLUB: Genslabs=14, HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] Hierarchical RCU implementation.
[ 0.000000] RCU dyntick-idle grace-period acceleration is enabled.
[ 0.000000] RCU-based detection of stalled CPUs is disabled.
[ 0.000000] Verbose stalled-CPUs detection is disabled.
[ 0.000000] NR_IRQS:4352 nr_irqs:256
[ 0.000000] Console: colour VGA+ 80x25
[ 0.000000] console [ttyS0] enabled
[ 0.000000] allocated 5242880 bytes of page_cgroup
[ 0.000000] please try 'cgroup_disable=memory' option if you don't want memory cgroups
[ 0.000000] Fast TSC calibration using PIT
[ 0.000000] Detected 2666.200 MHz processor.
[ 0.000562] Calibrating delay loop (skipped), value calculated using timer frequency.. 5332.40 BogoMIPS (lpj=26662000)
[ 0.001197] pid_max: default: 32768 minimum: 301
[ 0.016439] Security Framework initialized
[ 0.024570] AppArmor: AppArmor initialized
[ 0.024755] Yama: becoming mindful.
[ 0.031482] Dentry cache hash table entries: 65536 (order: 7, 524288 bytes)
[ 0.033243] Inode-cache hash table entries: 32768 (order: 6, 262144 bytes)
[ 0.034216] Mount-cache hash table entries: 256
[ 0.041595] Initializing cgroup subsys ns
[ 0.041999] Initializing cgroup subsys cpuacct
[ 0.042249] Initializing cgroup subsys memory
[ 0.042952] Initializing cgroup subsys devices
[ 0.043219] Initializing cgroup subsys freezer
[ 0.043455] Initializing cgroup subsys net_cls
[ 0.045354] mce: CPU supports 10 MCE banks
[ 0.046531] Performance Events: unsupported p6 CPU model 15 no PMU driver, software events only.
[ 0.047688] SMP alternatives: switching to UP code
[ 0.231027] Freeing SMP alternatives: 24k freed
[ 0.232063] ACPI: Core revision 20100428
[ 0.274056] ftrace: converting mcount calls to 0f 1f 44 00 00
[ 0.274397] ftrace: allocating 23035 entries in 91 pages
[ 0.296178] Setting APIC routing to flat
[ 0.299131] ..TIMER: vector=0x30 apic1=0 pin1=2 apic2=-1 pin2=-1
[ 0.399589] CPU0: Intel(R) Core(TM)2 Duo CPU T7700 @ 2.40GHz stepping 0b
[ 0.410000] Brought up 1 CPUs
[ 0.410000] Total of 1 processors activated (5332.40 BogoMIPS).
[ 0.411248] devtmpfs: initialized
[ 0.446125] regulator: core version 0.5
[ 0.446635] Time: 6:15:16 Date: 11/26/12
[ 0.447811] NET: Registered protocol family 16
[ 0.453387] ACPI: bus type pci registered
[ 0.455384] PCI: Using configuration type 1 for base access
[ 0.467231] bio: create slab
init started: BusyBox v1.17.2 (2010-10-17 16:10:18 MST) stty: /dev/console
[1;31mttylinux 12.1[0;39m [1;34m > [1;36mhttp://ttylinux.org/[0;39m [1;34m > [1;37mhostname: 10-0-0-3[0;39m
load Kernel Module: acpiphp [ [1;32mOK[0;39m ] load Kernel Module: e1000 [ [1;32mOK[0;39m ] load Kernel Module: ne2k-pci [ [1;32mOK[0;39m ] load Kernel Module: 8139cp [ [1;32mOK[0;39m ] load Kernel Module: pcnet32 [ [1;32mOK[0;39m ] load Kernel Module: mii [ [1;32mOK[0;39m ] load Kernel Module: ip_tables [ [1;32mOK[0;39m ] file systems checked [ [1;32mOK[0;39m ] mounting local file systems [ [1;32mOK[0;39m ] setting up system clock [utc] Mon Nov 26 06:15:20 UTC 2012 [ [1;32mOK[0;39m ] stty: /dev/console stty: /dev/console initializing random number generator [[1;33mWATING[0;39m][-11G[1;34m..[0;39m [ [1;32mOK[0;39m ] stty: /dev/console startup klogd [ [1;32mOK[0;39m ] startup syslogd [ [1;32mOK[0;39m ] stty: /dev/console stty: /dev/console bringing up loopback interface lo [ [1;32mOK[0;39m ] stty: /dev/console udhcpc (v1.17.2) started Sending discover... Sending select for 10.0.0.3... Lease of 10.0.0.3 obtained, lease time 120 starting DHCP forEthernet interface eth0 [ [1;32mOK[0;39m ] cloud-setup: checking http://169.254.169.254/2009-04-04/meta-data/instance-id wget: can't connect to remote host (169.254.169.254): No route to host cloud-setup: failed 1/30: up 8.94. request failed wget: can't connect to remote host (169.254.169.254): No route to host cloud-setup: failed 2/30: up 13.15. request failed wget: can't connect to remote host (169.254.169.254): No route to host cloud-setup: failed 3/30: up 16.16. request failed wget: can't connect to remote host (169.254.169.254): No route to host cloud-setup: failed 4/30: up 20.34. request failed wget: can't connect to remote host (169.254.169.254): No route to host cloud-setup: failed 5/30: up 23.32. request failed wget: can't connect to remote host (169.254.169.254): No route to host cloud-setup: failed 6/30: up 27.50. request failed wget: can't connect to remote host (169.254.169.254): No route to host cloud-setup: failed 7/30: up 30.52. request failed wget: can't connect to remote host (169.254.169.254): No route to host cloud-setup: failed 8/30: up 34.69. request failed wget: can't connect to remote host (169.254.169.254): No route to host cloud-setup: failed 9/30: up 37.69. request failed wget: can't connect to remote host (169.254.169.254): No route to host cloud-setup: failed 10/30: up 41.85. request failed wget: can't connect to remote host (169.254.169.254): No route to host cloud-setup: failed 11/30: up 44.85. request failed wget: can't connect to remote host (169.254.169.254): No route to host cloud-setup: failed 12/30: up 49.00. request failed wget: can't connect to remote host (169.254.169.254): No route to host cloud-setup: failed 13/30: up 52.04. request failed wget: can't connect to remote host (169.254.169.254): No route to host cloud-setup: failed 14/30: up 56.25. request failed wget: can't connect to remote host (169.254.169.254): No route to host cloud-setup: failed 15/30: up 59.34. request failed wget: can't connect to remote host (169.254.169.254): No route to host cloud-setup: failed 16/30: up 63.50. request failed wget: can't connect to remote host (169.254.169.254): No route to host cloud-setup: failed 17/30: up 66.47. request failed wget: can't connect to remote host (169.254.169.254): No route to host cloud-setup: failed 18/30: up 70.60. request failed wget: can't connect to remote host (169.254.169.254): No route to host cloud-setup: failed 19/30: up 73.60. request failed wget: can't connect to remote host (169.254.169.254): No route to host cloud-setup: failed 20/30: up 77.73. request failed wget: can't connect to remote host (169.254.169.254): No route to host cloud-setup: failed 21/30: up 80.73. request failed wget: can't connect to remote host (169.254.169.254): No route to host cloud-setup: failed 22/30: up 84.85. request failed wget: can't connect to remote host (169.254.169.254): No route to host cloud-setup: failed 23/30: up 87.87. request failed wget: can't connect to remote host (169.254.169.254): No route to host cloud-setup: failed 24/30: up 92.00. request failed wget: can't connect to remote host (169.254.169.254): No route to host cloud-setup: failed 25/30: up 95.01. request failed wget: can't connect to remote host (169.254.169.254): No route to host cloud-setup: failed 26/30: up 99.12. request failed wget: can't connect to remote host (169.254.169.254): No route to host cloud-setup: failed 27/30: up 102.15. request failed wget: can't connect to remote host (169.254.169.254): No route to host cloud-setup: failed 28/30: up 106.28. request failed wget: can't connect to remote host (169.254.169.254): No route to host cloud-setup: failed 29/30: up 109.28. request failed wget: can't connect to remote host (169.254.169.254): No route to host cloud-setup: failed 30/30: up 113.42. request failed cloud-setup: after 30 fails, debugging cloud-setup: running debug (30 tries reached) ############ debug start ##############
stty: /dev/console startup dropbear [ [1;32mOK[0;39m ]
eth0 Link encap:Ethernet HWaddr FA:16:3E:73:DF:45
inet addr:10.0.0.3 Bcast:10.0.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:162 errors:0 dropped:0 overruns:0 frame:0
TX packets:98 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:9550 (9.3 KiB) TX bytes:5482 (5.3 KiB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:60 errors:0 dropped:0 overruns:0 frame:0
TX packets:60 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:5280 (5.1 KiB) TX bytes:5280 (5.1 KiB)
Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 10.0.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 0.0.0.0 10.0.0.1 0.0.0.0 UG 0 0 0 eth0
search openstacklocal nameserver 10.0.0.2
PING 10.0.0.1 (10.0.0.1): 56 data bytes
--- 10.0.0.1 ping statistics --- 5 packets transmitted, 0 packets received, 100% packet loss
PING 10.0.0.2 (10.0.0.2): 56 data bytes 64 bytes from 10.0.0.2: seq=0 ttl=64 time=6.369 ms 64 bytes from 10.0.0.2: seq=1 ttl=64 time=4.254 ms 64 bytes from 10.0.0.2: seq=2 ttl=64 time=0.737 ms 64 bytes from 10.0.0.2: seq=3 ttl=64 time=2.421 ms 64 bytes from 10.0.0.2: seq=4 ttl=64 time=0.747 ms
--- 10.0.0.2 ping statistics --- 5 packets transmitted, 5 packets received, 0% packet loss round-trip min/avg/max = 0.737/2.905/6.369 ms
Linux 10-0-0-3 2.6.35-22-virtual #35-Ubuntu SMP Sat Oct 16 23:19:29 UTC 2010 x86_64 GNU/Linux
Module Size Used by ip_tables 18737 0 x_tables 24391 1 ip_tables pcnet32 36585 0 8139cp 20333 0 mii 5261 2 pcnet32,8139cp ne2k_pci 7802 0 8390 9897 1 ne2k_pci e1000 110274 0 acpiphp 18752 0
Can you show me the full console log of the instance? I want to know whether ip address was allocated.
Here's another instance console log I created using UEC image:
[ 0.000000] Initializing cgroup subsys cpuset
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Linux version 3.2.0-32-virtual (buildd@batsu) (gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5) ) #51-Ubuntu SMP Wed Sep 26 21:53:42 UTC 2012 (Ubuntu 3.2.0-32.51-virtual 3.2.30)
[ 0.000000] Command line: root=/dev/vda console=ttyS0
[ 0.000000] KERNEL supported cpus:
[ 0.000000] Intel GenuineIntel
[ 0.000000] AMD AuthenticAMD
[ 0.000000] Centaur CentaurHauls
[ 0.000000] BIOS-provided physical RAM map:
[ 0.000000] BIOS-e820: 0000000000000000 - 000000000009bc00 (usable)
[ 0.000000] BIOS-e820: 000000000009bc00 - 00000000000a0000 (reserved)
[ 0.000000] BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
[ 0.000000] BIOS-e820: 0000000000100000 - 000000007fffd000 (usable)
[ 0.000000] BIOS-e820: 000000007fffd000 - 0000000080000000 (reserved)
[ 0.000000] BIOS-e820: 00000000fffc0000 - 0000000100000000 (reserved)
[ 0.000000] NX (Execute Disable) protection: active
[ 0.000000] DMI 2.4 present.
[ 0.000000] No AGP bridge found
[ 0.000000] last_pfn = 0x7fffd max_arch_pfn = 0x400000000
[ 0.000000] x86 PAT enabled: cpu 0, old 0x7040600070406, new 0x7010600070106
[ 0.000000] found SMP MP-table at [ffff8800000fdae0] fdae0
[ 0.000000] init_memory_mapping: 0000000000000000-000000007fffd000
[ 0.000000] ACPI: RSDP 00000000000fd980 00014 (v00 BOCHS )
[ 0.000000] ACPI: RSDT 000000007fffd7b0 00034 (v01 BOCHS BXPCRSDT 00000001 BXPC 00000001)
[ 0.000000] ACPI: FACP 000000007fffff80 00074 (v01 BOCHS BXPCFACP 00000001 BXPC 00000001)
[ 0.000000] ACPI: DSDT 000000007fffd9b0 02589 (v01 BXPC BXDSDT 00000001 INTL 20100528)
[ 0.000000] ACPI: FACS 000000007fffff40 00040
[ 0.000000] ACPI: SSDT 000000007fffd910 0009E (v01 BOCHS BXPCSSDT 00000001 BXPC 00000001)
[ 0.000000] ACPI: APIC 000000007fffd830 00072 (v01 BOCHS BXPCAPIC 00000001 BXPC 00000001)
[ 0.000000] ACPI: HPET 000000007fffd7f0 00038 (v01 BOCHS BXPCHPET 00000001 BXPC 00000001)
[ 0.000000] No NUMA configuration found
[ 0.000000] Faking a node at 0000000000000000-000000007fffd000
[ 0.000000] Initmem setup node 0 0000000000000000-000000007fffd000
[ 0.000000] NODE_DATA [000000007fff8000 - 000000007fffcfff]
[ 0.000000] Zone PFN ranges:
[ 0.000000] DMA 0x00000010 -> 0x00001000
[ 0.000000] DMA32 0x00001000 -> 0x00100000
[ 0.000000] Normal empty
[ 0.000000] Movable zone start PFN for each node
[ 0.000000] early_node_map[2] active PFN ranges
[ 0.000000] 0: 0x00000010 -> 0x0000009b
[ 0.000000] 0: 0x00000100 -> 0x0007fffd
[ 0.000000] ACPI: PM-Timer IO Port: 0xb008
[ 0.000000] ACPI: LAPIC (acpi_id[0x00] lapic_id[0x00] enabled)
[ 0.000000] ACPI: IOAPIC (id[0x01] address[0xfec00000] gsi_base[0])
[ 0.000000] IOAPIC[0]: apic_id 1, version 17, address 0xfec00000, GSI 0-23
[ 0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl dfl)
[ 0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 5 global_irq 5 high level)
[ 0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 high level)
[ 0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 10 global_irq 10 high level)
[ 0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 11 global_irq 11 high level)
[ 0.000000] Using ACPI (MADT) for SMP configuration information
[ 0.000000] ACPI: HPET id: 0x8086a201 base: 0xfed00000
[ 0.000000] SMP: Allowing 1 CPUs, 0 hotplug CPUs
[ 0.000000] PM: Registered nosave memory: 000000000009b000 - 000000000009c000
[ 0.000000] PM: Registered nosave memory: 000000000009c000 - 00000000000a0000
[ 0.000000] PM: Registered nosave memory: 00000000000a0000 - 00000000000f0000
[ 0.000000] PM: Registered nosave memory: 00000000000f0000 - 0000000000100000
[ 0.000000] Allocating PCI resources starting at 80000000 (gap: 80000000:7ffc0000)
[ 0.000000] Booting paravirtualized kernel on bare hardware
[ 0.000000] setup_percpu: NR_CPUS:64 nr_cpumask_bits:64 nr_cpu_ids:1 nr_node_ids:1
[ 0.000000] PERCPU: Embedded 28 pages/cpu @ffff88007fc00000 s82880 r8192 d23616 u2097152
[ 0.000000] Built 1 zonelists in Node order, mobility grouping on. Total pages: 515971
[ 0.000000] Policy zone: DMA32
[ 0.000000] Kernel command line: root=/dev/vda console=ttyS0
[ 0.000000] PID hash table entries: 4096 (order: 3, 32768 bytes)
[ 0.000000] Checking aperture...
[ 0.000000] No AGP bridge found
[ 0.000000] Memory: 2047992k/2097140k available (6532k kernel code, 468k absent, 48680k reserved, 6657k data, 924k init)
[ 0.000000] SLUB: Genslabs=15, HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] Hierarchical RCU implementation.
[ 0.000000] RCU dyntick-idle grace-period acceleration is enabled.
[ 0.000000] NR_IRQS:4352 nr_irqs:256 16
[ 0.000000] Console: colour VGA+ 80x25
[ 0.000000] console [ttyS0] enabled
[ 0.000000] allocated 16777216 bytes of page_cgroup
[ 0.000000] please try 'cgroup_disable=memory' option if you don't want memory cgroups
[ 0.000000] Fast TSC calibration using PIT
[ 0.000000] Detected 2666.798 MHz processor.
[ 0.012575] Calibrating delay loop (skipped), value calculated using timer frequency.. 5333.59 BogoMIPS (lpj=10667192)
[ 0.013218] pid_max: default: 32768 minimum: 301
[ 0.016622] Security Framework initialized
[ 0.019789] AppArmor: AppArmor initialized
[ 0.020068] Yama: becoming mindful.
[ 0.026691] Dentry cache hash table entries: 262144 (order: 9, 2097152 bytes)
[ 0.034168] Inode-cache hash table entries: 131072 (order: 8, 1048576 bytes)
[ 0.037436] Mount-cache hash table entries: 256
[ 0.046091] Initializing cgroup subsys cpuacct
[ 0.046448] Initializing cgroup subsys memory
[ 0.047106] Initializing cgroup subsys devices
[ 0.047341] Initializing cgroup subsys freezer
[ 0.047565] Initializing cgroup subsys blkio
[ 0.047806] Initializing cgroup subsys perf_event
[ 0.050409] mce: CPU supports 10 MCE banks
[ 0.053165] SMP alternatives: switching to UP code
[ 0.245693] Freeing SMP alternatives: 24k freed
[ 0.246339] ACPI: Core revision 20110623
[ 0.279754] ftrace: allocating 27008 entries in 106 pages
[ 0.298794] ..TIMER: vector=0x30 apic1=0 pin1=2 apic2=-1 pin2=-1
[ 0.339088] CPU0: Intel(R) Core(TM)2 Duo CPU T7700 @ 2.40GHz stepping 0b
[ 0.340020] Performance Events: unsupported p6 CPU model 15 no PMU driver, software events only.
[ 0.342844] NMI watchdog disabled (cpu0): hardware events not enabled
[ 0.343539] Brought up 1 CPUs
[ 0.343728] Total of 1 processors activated (5333.59 BogoMIPS).
[ 0.365192] devtmpfs: initialized
[ 0.376234] EVM: security.selinux
[ 0.376383] EVM: security.SMACK64
[ 0.376490] EVM: security.capability
[ 0.388118] print_constraints: dummy:
[ 0.388996] RTC time: 12:09:33, date: 11/27/12
[ 0.390351] NET: Registered protocol family 16
[ 0.394739] ACPI: bus type pci registered
[ 0.396743] PCI: Using configuration type 1 for base access
[ 0.414670] bio: create slab
[74G[ OK ] [ 309.282635] init: Failed to create pty - disabling logging for job [ 309.326905] init: Failed to create pty - disabling logging for job [ 309.367331] init: Failed to create pty - disabling logging for job [ 309.422451] init: Failed to create pty - disabling logging for job [ 309.481138] init: Failed to create pty - disabling logging for job [ 309.554467] init: Failed to create pty - disabling logging for job [ 309.621850] init: Failed to create pty - disabling logging for job [ 309.690725] init: Failed to create pty - disabling logging for job [ 309.770250] init: Failed to create pty - disabling logging for job [ 309.866616] init: Failed to create pty - disabling logging for job [ 309.972473] init: Failed to create pty - disabling logging for job [ 310.089194] init: Failed to create pty - disabling logging for job landscape-client is not configured, please run landscape-config. [ 321.132696] init: Failed to create pty - disabling logging for job [ 321.209415] init: Failed to create pty - disabling logging for job
I want more info. Could you show the result of command "ifconfig -a" on host machine? By the way, are you install folsom in all-in-one environment?
Yes I installed folsom using the all in one setup script. Here is the output of ifconfig -a on the host:
sysope@cn01040804:~$ ifconfig -a
bond0 Link encap:Ethernet HWaddr 00:8c:fa:01:12:5c
inet addr:136.187.33.85 Bcast:136.187.33.95 Mask:255.255.255.240
inet6 addr: fe80::28c:faff:fe01:125c/64 Scope:Link
UP BROADCAST RUNNING MASTER MULTICAST MTU:1500 Metric:1
RX packets:68288 errors:0 dropped:0 overruns:0 frame:0
TX packets:45314 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:54626284 (54.6 MB) TX bytes:8084835 (8.0 MB)
brq5033db70-76 Link encap:Ethernet HWaddr 00:8c:fa:03:5f:d0
inet6 addr: fe80::9420:bff:fee3:2880/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:11729 errors:0 dropped:0 overruns:0 frame:0
TX packets:907 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:3577004 (3.5 MB) TX bytes:77954 (77.9 KB)
eth0 Link encap:Ethernet HWaddr 00:8c:fa:03:5f:d0
inet addr:10.11.0.32 Bcast:10.11.255.255 Mask:255.255.0.0
inet6 addr: fe80::28c:faff:fe03:5fd0/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:51125 errors:0 dropped:3767 overruns:0 frame:0
TX packets:53559 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:3948312 (3.9 MB) TX bytes:9865463 (9.8 MB)
eth1 Link encap:Ethernet HWaddr 00:8c:fa:03:5f:d1
inet addr:10.10.0.32 Bcast:10.10.255.255 Mask:255.255.0.0
inet6 addr: fe80::28c:faff:fe03:5fd1/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:264 errors:0 dropped:0 overruns:0 frame:0
TX packets:22616 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:15840 (15.8 KB) TX bytes:1040544 (1.0 MB)
eth2 Link encap:Ethernet HWaddr 00:8c:fa:01:12:5c
BROADCAST SLAVE MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:1 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:90 (90.0 B)
Memory:fbbe0000-fbc00000
eth3 Link encap:Ethernet HWaddr 00:8c:fa:01:12:5c
UP BROADCAST RUNNING SLAVE MULTICAST MTU:1500 Metric:1
RX packets:68288 errors:0 dropped:0 overruns:0 frame:0
TX packets:45313 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:54626284 (54.6 MB) TX bytes:8084745 (8.0 MB)
Memory:fbb20000-fbb40000
eth0.1 Link encap:Ethernet HWaddr 00:8c:fa:03:5f:d0
inet6 addr: fe80::28c:faff:fe03:5fd0/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:13543 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:3861034 (3.8 MB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:4765699 errors:0 dropped:0 overruns:0 frame:0
TX packets:4765699 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1555544656 (1.5 GB) TX bytes:1555544656 (1.5 GB)
tap4081558b-bb Link encap:Ethernet HWaddr 3a:d6:dc:5e:94:64
inet6 addr: fe80::38d6:dcff:fe5e:9464/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:12299 errors:0 dropped:0 overruns:0 frame:0
TX packets:13499 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:500
RX bytes:3788494 (3.7 MB) TX bytes:3859358 (3.8 MB)
tapbc2302b4-7f Link encap:Ethernet HWaddr 0e:47:6c:15:fb:01
inet6 addr: fe80::c47:6cff:fe15:fb01/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1075 errors:0 dropped:0 overruns:0 frame:0
TX packets:13520 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:500
RX bytes:103078 (103.0 KB) TX bytes:3863002 (3.8 MB)
tapdc1c676b-a1 Link encap:Ethernet HWaddr fa:16:3e:2b:62:b3
inet6 addr: fe80::f816:3eff:fe2b:62b3/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1107 errors:0 dropped:0 overruns:0 frame:0
TX packets:13436 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:92172 (92.1 KB) TX bytes:3860724 (3.8 MB)
virbr0 Link encap:Ethernet HWaddr 62:14:b9:a3:4f:25
inet addr:192.168.122.1 Bcast:192.168.122.255 Mask:255.255.255.0
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
I constructed a dodai-deploy environment on EC2, and install all-in-one folsom in EC2. I can ping and ssh to the instance started.
I checked the contents from you, but couldn't find anything wrong. Can you uninstall folsom, change the value of the setting "use_namespaces" to False in the config file "/etc/quantum/dhcp_agent.ini", then reinstall folsom and try again?
@guanxiaohua2k6 I did as you suggested, uninstalled folsom, modified /etc/quantum/dhcp_agent.ini and set use_namespaces = False, then reinstalled folsom. I used the test feature and dodai-deploy and tests passed. I was able to ping and ssh to the test instance. I also used cloud-publish-ubuntu to upload a UEC precise image, which succeeded. I started the instance and was able to ping to it, but am not able to ssh. I keep getting the same error:
$: ssh -i mykey.priv 10.0.0.4 Read from socket failed: Connection reset by peer
Do you have an idea why?
I tried in my environment, failed too. I checked the console log of the instance, and found meta data couldn't be downloaded, then keypair which should be downloaded from meta data service couldn't be injected into the instance. Therefore it failed to ssh to the instance.
It tried start instance not using quantum but nova-network, and succeeded.
In order to use nova-network, you should do the following modifications.
1.Comment out the following lines in /etc/nova/nova.conf
network_api_class=nova.network.quantumv2.api.API
quantum_url=....
quantum_auth_strategy=keystone
quantum_admin_tenant_name=admin
quantum_admin_username=admin
quantum_admin_password=admin
quantum_admin_auth_url=http://localhost:35357/v2.0
2.Comment out the following lines in /etc/nova/nova-compute.conf
libvirt_vif_type=ethernet
libvirt_vif_driver=nova.virt.libvirt.vif.QuantumLinuxBridgeVIFDriver
linuxnet_interface_driver=nova.network.linux_net.QuantumLinuxBridgeInterfaceDriver
3.Remove network created by quantum
quantum net-delete NET_ID
4.Restart the following services.
restart nova-api
restart nova-compute
restart nova-network
5.Create network.
nova-manage network create --label=private --fixed_range_v4=10.0.0.0/24 --num_networks=1 --network_size=255 --vlan=100
6.Create keypair
nova keypair-add ssh_key > ssh_key.pem
chmod 0600 ssh_key.pem
7.Run instance
nova boot --flavor 1 --image IMAGE_ID --key_name ssh_key test
#IMAGE_ID should be confirmed by cmd "nova image-list"
@guanxiaohua2k6 Thanks for this. I believe there is a way to use quantum and get the metadata service working.
http://docs.openstack.org/trunk/openstack-network/admin/content/adv_cfg_l3_agent_metadata.html
Here is the thread I was reading:
https://lists.launchpad.net/openstack/msg18380.html
It seems that we need to create a quantum router then create a route from 10.0.0.0/24 to the ROUTER_GW_IP.
What do you think?
I tried many times, but it failed. And I tried to find some samples using linuxbridge plugin in all-in-one environment, there is nothing at all. Therefore, I think that maybe it isn't possible to use meta service in all-in-one environment. If you want to try furtherly, I think it's better to contruct a environment like http://docs.openstack.org/trunk/openstack-network/admin/content/connectivity.html.
I installed folsom compute on Ubuntu 12.04 without issue. When I launched an instance with ip 10.0.0.3 I am unable to ping or SSH to the instance.
When I installed essex on a previous setup, I could ssh and ping to the instances without issue (although network performance was very slow ~1MB/s)
I noticed the virbr0 adapter has address of 192.168.122.1
Could there be an issue with the setup?