nii-cloud / dodai-deploy

Deployment Tool for OpenStack(Nova, Glance and Swift) and Hadoop using Puppet
https://github.com/nii-cloud/dodai-deploy/wiki
68 stars 25 forks source link

Cannot SSH or Ping instances on Folsom Nova #35

Open jravetch opened 11 years ago

jravetch commented 11 years ago

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?

guanxiaohua2k6 commented 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
jravetch commented 11 years ago

@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.

guanxiaohua2k6 commented 11 years ago

Could you provide the console log of the instance?

jravetch commented 11 years ago

[ 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 at 0 [ 0.508495] ACPI: Interpreter enabled [ 0.508714] ACPI: (supports S0 S3 S4 S5) [ 0.509650] ACPI: Using IOAPIC for interrupt routing [ 0.565063] ACPI: No dock devices found. [ 0.565318] PCI: Ignoring host bridge windows from ACPI; if necessary, use "pci=use_crs" and report a bug [ 0.567343] ACPI: PCI Root Bridge [PCI0](domain 0000 [bus 00-ff]) [ 0.571782] pci 0000:00:01.3: quirk: [io 0xb000-0xb03f] claimed by PIIX4 ACPI [ 0.572125] pci 0000:00:01.3: quirk: [io 0xb100-0xb10f] claimed by PIIX4 SMB [ 0.648629] ACPI: PCI Interrupt Link [LNKA](IRQs 5 10 11) [ 0.649905] ACPI: PCI Interrupt Link [LNKB](IRQs 5 10 11) [ 0.650905] ACPI: PCI Interrupt Link [LNKC](IRQs 5 10 11) [ 0.651942] ACPI: PCI Interrupt Link [LNKD](IRQs 5 10 11) [ 0.653007] ACPI: PCI Interrupt Link [LNKS](IRQs 9) 0 [ 0.653621] HEST: Table is not found! [ 0.656613] vgaarb: device added: PCI:0000:00:02.0,decodes=io+mem,owns=io+mem,locks=none [ 0.656998] vgaarb: loaded [ 0.659415] SCSI subsystem initialized [ 0.661257] usbcore: registered new interface driver usbfs [ 0.661781] usbcore: registered new interface driver hub [ 0.662365] usbcore: registered new device driver usb [ 0.664695] ACPI: WMI: Mapper loaded [ 0.664894] PCI: Using ACPI for IRQ routing [ 0.670600] NetLabel: Initializing [ 0.670773] NetLabel: domain hash size = 128 [ 0.670966] NetLabel: protocols = UNLABELED CIPSOv4 [ 0.672127] NetLabel: unlabeled traffic allowed by default [ 0.673297] Switching to clocksource tsc [ 0.769626] AppArmor: AppArmor Filesystem Enabled [ 0.770281] pnp: PnP ACPI init [ 0.770575] ACPI: bus type pnp registered [ 0.781622] pnp: PnP ACPI: found 8 devices [ 0.781854] ACPI: ACPI bus type pnp unregistered [ 0.806940] NET: Registered protocol family 2 [ 0.809275] IP route cache hash table entries: 4096 (order: 3, 32768 bytes) [ 0.813368] TCP established hash table entries: 16384 (order: 6, 262144 bytes) [ 0.814472] TCP bind hash table entries: 16384 (order: 6, 262144 bytes) [ 0.815613] TCP: Hash tables configured (established 16384 bind 16384) [ 0.816237] TCP reno registered [ 0.816701] UDP hash table entries: 256 (order: 1, 8192 bytes) [ 0.817161] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes) [ 0.818649] NET: Registered protocol family 1 [ 0.819116] pci 0000:00:00.0: Limiting direct PCI/PCI transfers [ 0.819466] pci 0000:00:01.0: PIIX3: Enabling Passive Release [ 0.819942] pci 0000:00:01.0: Activating ISA DMA hang workarounds [ 0.823419] Scanning for low memory corruption every 60 seconds [ 0.827419] audit: initializing netlink socket (disabled) [ 0.828198] type=2000 audit(1353910516.820:1): initialized [ 0.888280] Trying to unpack rootfs image as initramfs... [ 0.892553] rootfs image is not initramfs (junk in compressed archive); looks like an initrd [ 0.896445] Freeing initrd memory: 96k freed [ 0.899075] HugeTLB registered 2 MB page size, pre-allocated 0 pages [ 0.913888] VFS: Disk quotas dquot_6.5.2 [ 0.914576] Dquot-cache hash table entries: 512 (order 0, 4096 bytes) [ 0.922335] fuse init (API version 7.14) [ 0.923629] msgmni has been set to 980 [ 0.931702] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 253) [ 0.932125] io scheduler noop registered [ 0.932349] io scheduler deadline registered (default) [ 0.932973] io scheduler cfq registered [ 0.934507] pci_hotplug: PCI Hot Plug PCI Core version: 0.5 [ 0.935530] pciehp: PCI Express Hot Plug Controller Driver version: 0.4 [ 0.940111] input: Power Button as /devices/LNXSYSTM:00/LNXPWRBN:00/input/input0 [ 0.940917] ACPI: Power Button [PWRF] [ 0.965016] ERST: Table is not found! [ 0.968067] ACPI: PCI Interrupt Link [LNKC] enabled at IRQ 11 [ 0.968494] virtio-pci 0000:00:03.0: PCI INT A -> Link[LNKC] -> GSI 11 (level, high) -> IRQ 11 [ 0.970826] ACPI: PCI Interrupt Link [LNKD] enabled at IRQ 10 [ 0.971109] virtio-pci 0000:00:04.0: PCI INT A -> Link[LNKD] -> GSI 10 (level, high) -> IRQ 10 [ 0.972707] ACPI: PCI Interrupt Link [LNKA] enabled at IRQ 10 [ 0.972980] virtio-pci 0000:00:05.0: PCI INT A -> Link[LNKA] -> GSI 10 (level, high) -> IRQ 10 [ 0.975101] hpet_acpi_add: no address or irqs in _CRS [ 0.975452] Linux agpgart interface v0.103 [ 0.975998] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled [ 0.978571] serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A [ 0.979446] serial8250: ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A [ 0.982428] 00:05: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A [ 0.983271] 00:06: ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A [ 0.995312] brd: module loaded [ 1.001003] loop: module loaded [ 1.007480] vda: unknown partition table [ 1.023685] scsi0 : ata_piix [ 1.025156] scsi1 : ata_piix [ 1.025774] ata1: PATA max MWDMA2 cmd 0x1f0 ctl 0x3f6 bmdma 0xc0a0 irq 14 [ 1.026244] ata2: PATA max MWDMA2 cmd 0x170 ctl 0x376 bmdma 0xc0a8 irq 15 [ 1.030778] Fixed MDIO Bus: probed [ 1.031533] PPP generic driver version 2.4.2 [ 1.032269] tun: Universal TUN/TAP device driver, 1.6 [ 1.032503] tun: (C) 1999-2004 Max Krasnyansky maxk@qualcomm.com [ 1.038506] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver [ 1.038990] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver [ 1.039402] uhci_hcd: USB Universal Host Controller Interface driver [ 1.040146] uhci_hcd 0000:00:01.2: PCI INT D -> Link[LNKD] -> GSI 10 (level, high) -> IRQ 10 [ 1.040731] uhci_hcd 0000:00:01.2: UHCI Host Controller [ 1.041745] uhci_hcd 0000:00:01.2: new USB bus registered, assigned bus number 1 [ 1.042543] uhci_hcd 0000:00:01.2: irq 10, io base 0x0000c040 [ 1.048887] hub 1-0:1.0: USB hub found [ 1.049433] hub 1-0:1.0: 2 ports detected [ 1.052401] PNP: PS/2 Controller [PNP0303:KBD,PNP0f13:MOU] at 0x60,0x64 irq 1,12 [ 1.054946] serio: i8042 KBD port at 0x60,0x64 irq 1 [ 1.055341] serio: i8042 AUX port at 0x60,0x64 irq 12 [ 1.056620] mice: PS/2 mouse device common for all mice [ 1.058002] rtc_cmos 00:01: RTC can wake from S4 [ 1.059000] rtc_cmos 00:01: rtc core: registered rtc_cmos as rtc0 [ 1.059633] rtc0: alarms up to one day, 114 bytes nvram [ 1.060919] device-mapper: uevent: version 1.0.3 [ 1.064207] input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input1 [ 1.069738] device-mapper: ioctl: 4.17.0-ioctl (2010-03-05) initialised: dm-devel@redhat.com [ 1.070696] device-mapper: multipath: version 1.1.1 loaded [ 1.071100] device-mapper: multipath round-robin: version 1.0.0 loaded [ 1.073396] cpuidle: using governor ladder [ 1.073694] cpuidle: using governor menu [ 1.076699] TCP cubic registered [ 1.078343] NET: Registered protocol family 10 [ 1.084972] lo: Disabled Privacy Extensions [ 1.089813] NET: Registered protocol family 17 [ 1.093297] registered taskstats version 1 [ 1.094957] Magic number: 4:339:267 [ 1.095993] rtc_cmos 00:01: setting system clock to 2012-11-26 06:15:17 UTC (1353910517) [ 1.096526] BIOS EDD facility v0.16 2004-Jun-25, 0 devices found [ 1.096864] EDD information not available. [ 1.230167] md: Waiting for all devices to be available before autodetect [ 1.230466] md: If you don't use raid, use raid=noautodetect [ 1.232778] md: Autodetecting RAID arrays. [ 1.233042] md: Scanned 0 and added 0 devices. [ 1.233255] md: autorun ... [ 1.233394] md: ... autorun DONE. [ 1.235391] RAMDISK: Couldn't find valid RAM disk image starting at 0. [ 1.257205] VFS: Mounted root (ext2 filesystem) readonly on device 252:0. [ 1.273660] devtmpfs: mounted [ 1.274410] Freeing unused kernel memory: 828k freed [ 1.310875] Write protecting the kernel read-only data: 10240k [ 1.316134] Freeing unused kernel memory: 308k freed [ 1.320481] Freeing unused kernel memory: 1620k freed [ 1.386737] usb 1-1: new full speed USB device using uhci_hcd and address 2

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 ##############

/etc/rc.d/init.d/sshd start

stty: /dev/console startup dropbear [ [1;32mOK[0;39m ]

ifconfig -a

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)

route -n

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

cat /etc/resolv.conf

search openstacklocal nameserver 10.0.0.2

ping -c 5 10.0.0.1

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

pinging nameservers

ping -c 5 10.0.0.2

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

uname -a

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

lsmod

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

dmesg | tail

<6>[ 2.951073] acpiphp: Slot [29] registered <6>[ 2.951458] acpiphp: Slot [30] registered <6>[ 2.951788] acpiphp: Slot [31] registered <6>[ 3.110008] e1000: Intel(R) PRO/1000 Network Driver - version 7.3.21-k6-NAPI <6>[ 3.110068] e1000: Copyright (c) 1999-2006 Intel Corporation. <6>[ 3.251389] ne2k-pci.c:v1.03 9/22/2003 D. Becker/P. Gortmaker <6>[ 3.394533] 8139cp: 8139cp: 10/100 PCI Ethernet driver v1.3 (Mar 22, 2004) <6>[ 3.464733] pcnet32: pcnet32.c:v1.35 21.Apr.2008 tsbogend@alpha.franken.de <6>[ 3.654189] ip_tables: (C) 2000-2006 Netfilter Core Team <6>[ 8.855725] eth0: IPv6 duplicate address fe80::f816:3eff:fe73:df45 detected! ### tail -n 25 /var/log/messages Nov 26 06:15:22 10-0-0-3 user.info kernel: [ 2.945577] acpiphp: Slot [15] registered Nov 26 06:15:22 10-0-0-3 user.info kernel: [ 2.945909] acpiphp: Slot [16] registered Nov 26 06:15:22 10-0-0-3 user.info kernel: [ 2.946333] acpiphp: Slot [17] registered Nov 26 06:15:22 10-0-0-3 user.info kernel: [ 2.946704] acpiphp: Slot [18] registered Nov 26 06:15:22 10-0-0-3 user.info kernel: [ 2.947098] acpiphp: Slot [19] registered Nov 26 06:15:22 10-0-0-3 user.info kernel: [ 2.947489] acpiphp: Slot [20] registered Nov 26 06:15:22 10-0-0-3 user.info kernel: [ 2.947821] acpiphp: Slot [21] registered Nov 26 06:15:22 10-0-0-3 user.info kernel: [ 2.948250] acpiphp: Slot [22] registered Nov 26 06:15:22 10-0-0-3 user.info kernel: [ 2.948583] acpiphp: Slot [23] registered Nov 26 06:15:22 10-0-0-3 user.info kernel: [ 2.948971] acpiphp: Slot [24] registered Nov 26 06:15:22 10-0-0-3 user.info kernel: [ 2.949398] acpiphp: Slot [25] registered Nov 26 06:15:22 10-0-0-3 user.info kernel: [ 2.949731] acpiphp: Slot [26] registered Nov 26 06:15:22 10-0-0-3 user.info kernel: [ 2.950177] acpiphp: Slot [27] registered Nov 26 06:15:22 10-0-0-3 user.info kernel: [ 2.950678] acpiphp: Slot [28] registered Nov 26 06:15:22 10-0-0-3 user.info kernel: [ 2.951073] acpiphp: Slot [29] registered Nov 26 06:15:22 10-0-0-3 user.info kernel: [ 2.951458] acpiphp: Slot [30] registered Nov 26 06:15:22 10-0-0-3 user.info kernel: [ 2.951788] acpiphp: Slot [31] registered Nov 26 06:15:22 10-0-0-3 user.info kernel: [ 3.110008] e1000: Intel(R) PRO/1000 Network Driver - version 7.3.21-k6-NAPI Nov 26 06:15:22 10-0-0-3 user.info kernel: [ 3.110068] e1000: Copyright (c) 1999-2006 Intel Corporation. Nov 26 06:15:22 10-0-0-3 user.info kernel: [ 3.251389] ne2k-pci.c:v1.03 9/22/2003 D. Becker/P. Gortmaker Nov 26 06:15:22 10-0-0-3 user.info kernel: [ 3.394533] 8139cp: 8139cp: 10/100 PCI Ethernet driver v1.3 (Mar 22, 2004) Nov 26 06:15:22 10-0-0-3 user.info kernel: [ 3.464733] pcnet32: pcnet32.c:v1.35 21.Apr.2008 tsbogend@alpha.franken.de Nov 26 06:15:22 10-0-0-3 user.info kernel: [ 3.654189] ip_tables: (C) 2000-2006 Netfilter Core Team Nov 26 06:15:24 10-0-0-3 user.info kernel: [ 8.855725] eth0: IPv6 duplicate address fe80::f816:3eff:fe73:df45 detected! Nov 26 06:17:12 10-0-0-3 authpriv.info dropbear[264]: Running in background ############ debug end ############## cloud-setup: failed to read iid from metadata. tried 30 stty: /dev/console [1;33msshd is already running.[0;39m stty: /dev/console startup inetd [ [1;32mOK[0;39m ] stty: /dev/console startup crond [ [1;32mOK[0;39m ] wget: can't connect to remote host (169.254.169.254): No route to host cloud-userdata: failed to read instance id ===== cloud-final: system completely up in 140.52 seconds ==== wget: can't connect to remote host (169.254.169.254): No route to host wget: can't connect to remote host (169.254.169.254): No route to host wget: can't connect to remote host (169.254.169.254): No route to host instance-id: public-ipv4: local-ipv4 :
guanxiaohua2k6 commented 11 years ago

Can you show me the full console log of the instance? I want to know whether ip address was allocated.

jravetch commented 11 years ago

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 at 0 [ 0.417183] ACPI: Added _OSI(Module Device) [ 0.417337] ACPI: Added _OSI(Processor Device) [ 0.417481] ACPI: Added _OSI(3.0 _SCP Extensions) [ 0.417632] ACPI: Added _OSI(Processor Aggregator Device) [ 0.460848] ACPI: Interpreter enabled [ 0.461003] ACPI: (supports S0 S3 S4 S5) [ 0.461891] ACPI: Using IOAPIC for interrupt routing [ 0.518848] ACPI: No dock devices found. [ 0.519038] HEST: Table not found. [ 0.519219] PCI: Ignoring host bridge windows from ACPI; if necessary, use "pci=use_crs" and report a bug [ 0.521899] ACPI: PCI Root Bridge [PCI0](domain 0000 [bus 00-ff]) [ 0.530798] pci 0000:00:01.3: quirk: [io 0xb000-0xb03f] claimed by PIIX4 ACPI [ 0.531216] pci 0000:00:01.3: quirk: [io 0xb100-0xb10f] claimed by PIIX4 SMB [ 0.544438] pci0000:00: Unable to request _OSC control (_OSC support mask: 0x1e) [ 0.614558] ACPI: PCI Interrupt Link [LNKA](IRQs 5 10 11) [ 0.615669] ACPI: PCI Interrupt Link [LNKB](IRQs 5 10 11) [ 0.616686] ACPI: PCI Interrupt Link [LNKC](IRQs 5 10 11) [ 0.617571] ACPI: PCI Interrupt Link [LNKD](IRQs 5 10 11) [ 0.618484] ACPI: PCI Interrupt Link [LNKS](IRQs 9) *0 [ 0.622259] vgaarb: device added: PCI:0000:00:02.0,decodes=io+mem,owns=io+mem,locks=none [ 0.622534] vgaarb: loaded [ 0.622644] vgaarb: bridge control possible 0000:00:02.0 [ 0.624943] i2c-core: driver [aat2870] using legacy suspend method [ 0.625119] i2c-core: driver [aat2870] using legacy resume method [ 0.626435] SCSI subsystem initialized [ 0.628445] usbcore: registered new interface driver usbfs [ 0.628900] usbcore: registered new interface driver hub [ 0.629440] usbcore: registered new device driver usb [ 0.631402] PCI: Using ACPI for IRQ routing [ 0.637646] NetLabel: Initializing [ 0.637770] NetLabel: domain hash size = 128 [ 0.637895] NetLabel: protocols = UNLABELED CIPSOv4 [ 0.638843] NetLabel: unlabeled traffic allowed by default [ 0.753943] AppArmor: AppArmor Filesystem Enabled [ 0.754638] pnp: PnP ACPI init [ 0.754936] ACPI: bus type pnp registered [ 0.766558] pnp: PnP ACPI: found 8 devices [ 0.766722] ACPI: ACPI bus type pnp unregistered [ 0.805631] Switching to clocksource acpi_pm [ 0.807321] NET: Registered protocol family 2 [ 0.810960] IP route cache hash table entries: 65536 (order: 7, 524288 bytes) [ 0.823747] TCP established hash table entries: 262144 (order: 10, 4194304 bytes) [ 0.835189] TCP bind hash table entries: 65536 (order: 8, 1048576 bytes) [ 0.837553] TCP: Hash tables configured (established 262144 bind 65536) [ 0.837807] TCP reno registered [ 0.838042] UDP hash table entries: 1024 (order: 3, 32768 bytes) [ 0.838431] UDP-Lite hash table entries: 1024 (order: 3, 32768 bytes) [ 0.839960] NET: Registered protocol family 1 [ 0.840797] pci 0000:00:00.0: Limiting direct PCI/PCI transfers [ 0.841037] pci 0000:00:01.0: PIIX3: Enabling Passive Release [ 0.841380] pci 0000:00:01.0: Activating ISA DMA hang workarounds [ 0.843899] ACPI: PCI Interrupt Link [LNKD] enabled at IRQ 11 [ 0.844519] pci 0000:00:01.2: PCI INT D -> Link[LNKD] -> GSI 11 (level, high) -> IRQ 11 [ 0.845117] pci 0000:00:01.2: PCI INT D disabled [ 0.859791] audit: initializing netlink socket (disabled) [ 0.860656] type=2000 audit(1354018172.860:1): initialized [ 0.968667] HugeTLB registered 2 MB page size, pre-allocated 0 pages [ 0.994869] VFS: Disk quotas dquot_6.5.2 [ 0.995632] Dquot-cache hash table entries: 512 (order 0, 4096 bytes) [ 1.005101] fuse init (API version 7.17) [ 1.006587] msgmni has been set to 4000 [ 1.014293] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 253) [ 1.014913] io scheduler noop registered [ 1.015082] io scheduler deadline registered (default) [ 1.015630] io scheduler cfq registered [ 1.018250] pci_hotplug: PCI Hot Plug PCI Core version: 0.5 [ 1.019323] pciehp: PCI Express Hot Plug Controller Driver version: 0.4 [ 1.022609] input: Power Button as /devices/LNXSYSTM:00/LNXPWRBN:00/input/input0 [ 1.023304] ACPI: Power Button [PWRF] [ 1.038391] ERST: Table is not found! [ 1.038536] GHES: HEST is not enabled! [ 1.040336] ACPI: PCI Interrupt Link [LNKC] enabled at IRQ 10 [ 1.040580] virtio-pci 0000:00:03.0: PCI INT A -> Link[LNKC] -> GSI 10 (level, high) -> IRQ 10 [ 1.041765] virtio-pci 0000:00:04.0: PCI INT A -> Link[LNKD] -> GSI 11 (level, high) -> IRQ 11 [ 1.043186] ACPI: PCI Interrupt Link [LNKA] enabled at IRQ 10 [ 1.043360] virtio-pci 0000:00:05.0: PCI INT A -> Link[LNKA] -> GSI 10 (level, high) -> IRQ 10 [ 1.045171] ACPI: PCI Interrupt Link [LNKB] enabled at IRQ 11 [ 1.045348] virtio-pci 0000:00:06.0: PCI INT A -> Link[LNKB] -> GSI 11 (level, high) -> IRQ 11 [ 1.046830] Serial: 8250/16550 driver, 32 ports, IRQ sharing enabled [ 1.069015] serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A [ 1.090560] serial8250: ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A [ 1.127638] 00:05: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A [ 1.149052] 00:06: ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A [ 1.152661] hpet_acpi_add: no address or irqs in _CRS [ 1.153000] Linux agpgart interface v0.103 [ 1.171448] brd: module loaded [ 1.180502] loop: module loaded [ 1.196617] vda: unknown partition table [ 1.204751] vdb: unknown partition table [ 1.214981] scsi0 : ata_piix [ 1.216477] scsi1 : ata_piix [ 1.217222] ata1: PATA max MWDMA2 cmd 0x1f0 ctl 0x3f6 bmdma 0xc0e0 irq 14 [ 1.217443] ata2: PATA max MWDMA2 cmd 0x170 ctl 0x376 bmdma 0xc0e8 irq 15 [ 1.223370] Fixed MDIO Bus: probed [ 1.223809] tun: Universal TUN/TAP device driver, 1.6 [ 1.223956] tun: (C) 1999-2004 Max Krasnyansky maxk@qualcomm.com [ 1.233448] PPP generic driver version 2.4.2 [ 1.235736] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver [ 1.236451] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver [ 1.236786] uhci_hcd: USB Universal Host Controller Interface driver [ 1.237147] uhci_hcd 0000:00:01.2: PCI INT D -> Link[LNKD] -> GSI 11 (level, high) -> IRQ 11 [ 1.237619] uhci_hcd 0000:00:01.2: UHCI Host Controller [ 1.238655] uhci_hcd 0000:00:01.2: new USB bus registered, assigned bus number 1 [ 1.239431] uhci_hcd 0000:00:01.2: irq 11, io base 0x0000c080 [ 1.246415] hub 1-0:1.0: USB hub found [ 1.246943] hub 1-0:1.0: 2 ports detected [ 1.250757] usbcore: registered new interface driver libusual [ 1.252020] i8042: PNP: PS/2 Controller [PNP0303:KBD,PNP0f13:MOU] at 0x60,0x64 irq 1,12 [ 1.255896] serio: i8042 KBD port at 0x60,0x64 irq 1 [ 1.256372] serio: i8042 AUX port at 0x60,0x64 irq 12 [ 1.259309] mousedev: PS/2 mouse device common for all mice [ 1.263824] input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input1 [ 1.265584] rtc_cmos 00:01: RTC can wake from S4 [ 1.270936] rtc_cmos 00:01: rtc core: registered rtc_cmos as rtc0 [ 1.272094] rtc0: alarms up to one day, 114 bytes nvram [ 1.274467] device-mapper: uevent: version 1.0.3 [ 1.276778] device-mapper: ioctl: 4.22.0-ioctl (2011-10-19) initialised: dm-devel@redhat.com [ 1.278337] cpuidle: using governor ladder [ 1.278777] cpuidle: using governor menu [ 1.279122] EFI Variables Facility v0.08 2004-May-17 [ 1.286219] TCP cubic registered [ 1.289479] NET: Registered protocol family 10 [ 1.307560] NET: Registered protocol family 17 [ 1.308065] Registering the dns_resolver key type [ 1.313164] registered taskstats version 1 [ 1.336632] Magic number: 4:947:178 [ 1.337208] acpi device:0e: hash matches [ 1.337421] platform: hash matches [ 1.338323] rtc_cmos 00:01: setting system clock to 2012-11-27 12:09:34 UTC (1354018174) [ 1.340967] BIOS EDD facility v0.16 2004-Jun-25, 0 devices found [ 1.341270] EDD information not available. [ 1.389273] md: Waiting for all devices to be available before autodetect [ 1.389587] md: If you don't use raid, use raid=noautodetect [ 1.394541] md: Autodetecting RAID arrays. [ 1.394828] md: Scanned 0 and added 0 devices. [ 1.395113] md: autorun ... [ 1.395272] md: ... autorun DONE. [ 1.402566] EXT3-fs (vda): error: couldn't mount because of unsupported optional features (240) [ 1.410825] EXT4-fs (vda): INFO: recovery required on readonly filesystem [ 1.411221] EXT4-fs (vda): write access will be enabled during recovery [ 1.564855] usb 1-1: new full-speed USB device number 2 using uhci_hcd [ 1.861765] Refined TSC clocksource calibration: 2666.762 MHz. [ 1.862200] Switching to clocksource tsc [ 2.410126] EXT4-fs (vda): recovery complete [ 2.412265] EXT4-fs (vda): mounted filesystem with ordered data mode. Opts: (null) [ 2.413038] VFS: Mounted root (ext4 filesystem) readonly on device 253:0. [ 2.416027] devtmpfs: mounted [ 2.450573] Freeing unused kernel memory: 924k freed [ 2.486636] Write protecting the kernel read-only data: 12288k [ 2.580570] Freeing unused kernel memory: 1640k freed [ 2.649377] Freeing unused kernel memory: 1200k freed [ 3.377674] init: Failed to create pty - disabling logging for job [ 3.381314] init: Temporary process spawn error: No such file or directory [ 3.475880] init: Failed to create pty - disabling logging for job [ 3.488637] init: Temporary process spawn error: No such file or directory [ 3.513686] init: Failed to create pty - disabling logging for job [ 3.514718] init: Temporary process spawn error: No such file or directory [ 4.324751] init: Failed to create pty - disabling logging for job [ 4.325741] init: Temporary process spawn error: No such file or directory [ 4.484449] init: Failed to create pty - disabling logging for job [ 4.485402] init: Temporary process spawn error: No such file or directory [ 4.843712] init: Failed to create pty - disabling logging for job [ 4.845015] init: Temporary process spawn error: No such file or directory [ 5.239473] init: Failed to create pty - disabling logging for job [ 5.242943] init: Temporary process spawn error: No such file or directory [ 5.264933] init: Failed to create pty - disabling logging for job [ 5.265832] init: Temporary process spawn error: No such file or directory [ 5.305476] init: Failed to create pty - disabling logging for job [ 5.306454] init: Temporary process spawn error: No such file or directory [ 8.943546] init: Failed to create pty - disabling logging for job [ 8.944939] init: Temporary process spawn error: No such file or directory [ 8.990460] init: Failed to create pty - disabling logging for job [ 8.991627] init: Temporary process spawn error: No such file or directory [ 9.041561] init: Failed to create pty - disabling logging for job [ 9.042663] init: Temporary process spawn error: No such file or directory [ 9.661066] init: Failed to create pty - disabling logging for job [ 9.661780] init: Temporary process spawn error: No such file or directory [ 10.171833] init: Failed to create pty - disabling logging for job [ 10.278321] init: Failed to create pty - disabling logging for job [ 10.373316] init: Failed to create pty - disabling logging for job [ 18.539952] init: Failed to create pty - disabling logging for job [ 19.160978] init: Failed to create pty - disabling logging for job [ 28.572995] init: Failed to create pty - disabling logging for job [ 28.645640] init: Failed to create pty - disabling logging for job cloud-init start-local running: Tue, 27 Nov 2012 12:10:05 +0000. up 31.98 seconds no instance data found in start-local [ 39.729922] init: Failed to create pty - disabling logging for job [ 42.722182] init: Failed to create pty - disabling logging for job [ 43.330676] init: Failed to create pty - disabling logging for job [ 43.393062] init: Failed to create pty - disabling logging for job cloud-init-nonet waiting 120 seconds for a network device. cloud-init-nonet gave up waiting for a network device. ci-info: lo : 1 127.0.0.1 255.0.0.0 . ci-info: eth0 : 1 . . fa:16:3e:61:b1:89 route_info failed mountall: Plymouth command failed mountall: Plymouth command failed mountall: Plymouth command failed mountall: Plymouth command failed mountall: Disconnected from Plymouth [ 176.163235] init: Failed to create pty - disabling logging for job [ 177.055038] init: Failed to create pty - disabling logging for job [ 177.203161] init: Failed to create pty - disabling logging for job [ 177.241929] init: Failed to create pty - disabling logging for job [ 177.287850] init: Failed to create pty - disabling logging for job [ 177.353590] init: Failed to create pty - disabling logging for job [ 177.633008] init: Failed to create pty - disabling logging for job [ 177.749453] init: Failed to create pty - disabling logging for job

[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

guanxiaohua2k6 commented 11 years ago

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?

jravetch commented 11 years ago

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)

guanxiaohua2k6 commented 11 years ago

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?

jravetch commented 11 years ago

@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?

guanxiaohua2k6 commented 11 years ago

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"
jravetch commented 11 years ago

@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?

guanxiaohua2k6 commented 11 years ago

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.