Ask Your Question
0

can't ssh an instance

asked 2013-03-01 09:00:08 -0500

787590563-o gravatar image

I can ping 10.0.0.2 PING 10.0.0.2 (10.0.0.2) 56(84) bytes of data. 64 bytes from 10.0.0.2: icmp_req=1 ttl=64 time=5.06 ms 64 bytes from 10.0.0.2: icmp_req=2 ttl=64 time=0.567 ms 64 bytes from 10.0.0.2: icmp_req=3 ttl=64 time=0.761 ms

but I can neither login an instance on the dashboard nor ssh an instance,likessh cirros@10.0.0.2,it will show ssh: connect to host 10.0.0.2 port 22: Connection refused

my nova-secgoup is :nova secgroup-list-rules default,show | IP Protocol | From Port | To Port | IP Range | Source Group | +-------------+-----------+---------+-----------+--------------+ | icmp | -1 | -1 | 0.0.0.0/0 | | | tcp | 22 | 22 | 0.0.0.0/0 | | | udp | 22 | 22 | 0.0.0.0/0 | | +-------------+-----------+---------+-----------+--------------+

so what's the problem ??????thank you

edit retag flag offensive close merge delete

Comments

Give a try by launching instances with different image and flavors combinations..!!

Praveen N gravatar imagePraveen N ( 2015-02-17 15:25:28 -0500 )edit

Try by ensuring within the nova.conf vncserver_proxyclient_address has the Controller IP

Praveen N gravatar imagePraveen N ( 2015-03-04 03:40:48 -0500 )edit

6 answers

Sort by » oldest newest most voted
0

answered 2013-03-02 05:06:14 -0500

787590563-o gravatar image

my Instance Console Log:

/ /__ / // __// __// /_/ /\ \ ___//_//_/ /_/ ____/___/ http://launchpad.net/cirros

login as 'cirros' user. default password: 'cubswin:)'. use 'sudo' for root.

cirros login: [75308.741486] Restarting system. [75308.743475] machine restart [75308.744391] general protection fault: fffa [#1] SMP [75308.744391] Modules linked in: vfat fat isofs ip_tables x_tables pcnet32 8139cp ne2k_pci 8390 e1000 acpiphp [75308.744391] [75308.744391] Pid: 6505, comm: init Not tainted 3.0.0-12-virtual #20-Ubuntu Bochs Bochs [75308.744391] EIP: 0060:[<c0122ac3>] EFLAGS: 00000246 CPU: 0 [75308.744391] EIP is at native_stop_other_cpus.part.3+0x73/0x80 [75308.744391] EAX: 00000246 EBX: 00000246 ECX: fffff000 EDX: 000000ff [75308.744391] ESI: c08f7238 EDI: 00000001 EBP: debd5e5c ESP: debd5e50 [75308.744391] DS: 007b ES: 007b FS: 00d8 GS: 00e0 SS: 0068 [75308.744391] Process init (pid: 6505, ti=debd4000 task=de993300 task.ti=debd4000) [75308.744391] Stack: [75308.744391] 00000000 01234567 28121969 debd5e64 c0122ae7 debd5e6c c012227c debd5e78 [75308.744391] c0122207 c07d29b9 debd5e80 c01224ce debd5e94 c0165778 c07e0493 fee1dead [75308.744391] 00000000 debd5fac c01658f1 00000000 00000000 00000000 00000000 00000000 [75308.744391] Call Trace: [75308.744391] [<c0122ae7>] native_stop_other_cpus+0x17/0x20 [75308.744391] [<c012227c>] native_machine_shutdown+0x5c/0x90 [75308.744391] [<c0122207>] native_machine_restart+0x27/0x40 [75308.744391] [<c01224ce>] machine_restart+0xe/0x10 [75308.744391] [<c0165778>] kernel_restart+0x38/0x50 [75308.744391] [<c01658f1>] sys_reboot+0x141/0x1d0 [75308.744391] [<c0140730>] ? finish_task_switch+0x40/0xc0 [75308.744391] [<c065aa94>] syscall_call+0x7/0xb [75308.744391] Code: 00 00 e8 c1 f9 26 00 0f b6 06 f3 0f b8 c0 90 83 f8 01 77 dc 9c 58 8d 74 26 00 89 c3 fa 90 8d 74 26 00 e8 f1 10 00 00 89 d8 50 9d <8d> 74 26 00 5b 5e 5f 5d c3 8d 74 26 00 55 89 e5 3e 8d 74 26 00 [75308.744391] EIP: [<c0122ac3>] native_stop_other_cpus.part.3+0x73/0x80 SS:ESP 0068:debd5e50 [75308.744391] ---[ end trace 7d517b9e34687b49 ]---

thank you

edit flag offensive delete link more
0

answered 2013-03-02 21:56:49 -0500

zzs gravatar image

It looks like you VM booted and restarted, no sure what was happening. can you post the output of nova console-log <your server="" name="" or="" id="">

edit flag offensive delete link more
0

answered 2013-03-01 20:51:19 -0500

zzs gravatar image

Can you post the log of the instance booting which you can get from dashboard, what did happen when you try to log in from dashboard.

edit flag offensive delete link more
0

answered 2013-03-01 15:53:06 -0500

I'm converting this bug into a question. Hopefully someone can help you debug your setup there. Thanks!

edit flag offensive delete link more
0

answered 2013-03-03 02:11:40 -0500

787590563-o gravatar image

my nova console-log cloud01: [ 0.000000] Initializing cgroup subsys cpuset [ 0.000000] Initializing cgroup subsys cpu [ 0.000000] Linux version 3.0.0-12-virtual (buildd@vernadsky) (gcc version 4.6.1 (Ubuntu/Linaro 4.6.1-9ubuntu3) ) #20-Ubuntu SMP Fri Oct 7 18:25:20 UTC 2011 (Ubuntu 3.0.0-12.20-virtual 3.0.4) [ 0.000000] KERNEL supported cpus: [ 0.000000] Intel GenuineIntel [ 0.000000] AMD AuthenticAMD [ 0.000000] NSC Geode by NSC [ 0.000000] Cyrix CyrixInstead [ 0.000000] Centaur CentaurHauls [ 0.000000] Transmeta GenuineTMx86 [ 0.000000] Transmeta TransmetaCPU [ 0.000000] UMC UMC UMC UMC [ 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] Notice: NX (Execute Disable) protection missing in CPU! [ 0.000000] NX (Execute Disable) protection: approximated by x86 segment limits [ 0.000000] DMI 2.4 present. [ 0.000000] last_pfn = 0x1fffd max_arch_pfn = 0x1000000 [ 0.000000] found SMP MP-table at [c00fdaf0] fdaf0 [ 0.000000] init_memory_mapping: 0000000000000000-000000001fffd000 [ 0.000000] RAMDISK: 1fe37000 - 1ffed000 [ 0.000000] ACPI: RSDP 000fd990 00014 (v00 BOCHS ) [ 0.000000] ACPI: RSDT 1fffd7b0 00034 (v01 BOCHS BXPCRSDT 00000001 BXPC 00000001) [ 0.000000] ACPI: FACP 1fffff80 00074 (v01 BOCHS BXPCFACP 00000001 BXPC 00000001) [ 0.000000] ACPI: DSDT 1fffd9b0 02589 (v01 BXPC BXDSDT 00000001 INTL 20100528) [ 0.000000] ACPI: FACS 1fffff40 00040 [ 0.000000] ACPI: SSDT 1fffd910 0009E (v01 BOCHS BXPCSSDT 00000001 BXPC 00000001) [ 0.000000] ACPI: APIC 1fffd830 00072 (v01 BOCHS BXPCAPIC 00000001 BXPC 00000001) [ 0.000000] ACPI: HPET 1fffd7f0 00038 (v01 BOCHS BXPCHPET 00000001 BXPC 00000001) [ 0.000000] 0MB HIGHMEM available. [ 0.000000] 511MB LOWMEM available. [ 0.000000] mapped low ram: 0 - 1fffd000 [ 0.000000] low ram: 0 - 1fffd000 [ 0.000000] Zone PFN ranges: [ 0.000000] DMA 0x00000010 -> 0x00001000 [ 0.000000] Normal 0x00001000 -> 0x0001fffd [ 0.000000] HighMem 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] Using APIC driver default [ 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] 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 ... (more)

edit flag offensive delete link more
0

answered 2013-03-06 08:57:45 -0500

From your ouput , I see that vm couldn't connect to metadata service to retrieve instance-specific data.

To allow instances to reach the metadata service, the nova-network service will configure iptables to NAT port 80 of the 169.254.169.254 address to the IP address specified in metadata_host (default $my_ip, which is the IP address of the nova-network service) and port specified in metadata_port (default 8775) in /etc/nova/nova.conf.

check with iptables -t nat -S and make sure the presence of the line below

-A nova-network-PREROUTING -d 169.254.169.254/32 -p tcp -m tcp --dport 80 -j DNAT --to-destination <metadata_host_ip>:8775

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2013-03-01 09:00:08 -0500

Seen: 1,277 times

Last updated: Mar 06 '13