devstack unable to access vm via ssh

asked 2013-08-04 18:13:38 -0600

thrice801 gravatar image

updated 2013-08-04 19:53:57 -0600

Was hoping to get some help, I keep trying to set open stack up and giving up, not so good with the networking -- Anyways Ive got open stack running on a ubuntu server OS installed on my macpro (not through VM through bootloader) -- I THINK part of the troubles Im having is due to the two ethernet ports, I dont really know honestly.

Im having all sorts of issues with virtual machines. (Im running dev stack, reinstalled yesterday so should be running grizzly) http://devstack.org/

I can ping the virtual machine, but I cant seem to SSH to them. I already did

nova secgroup-add-rule default icmp -1 -1 0.0.0.0/0 nova secgroup-add-rule default tcp 22 22 0.0.0.0/0

And I can see that they were added in my gui e.g.

default

    ALLOW -1:-1 from 0.0.0.0/0
    ALLOW 22:22 from 0.0.0.0/0

Here is a copy of my localrc file:

    BLED_SERVICES=q-meta,q-lbaas,n-obj,n-cpu,n-sch,n-cauth,horizon,mysql,rabbit,sysstat,cinder,c-api,c-vol,c-sch,n-cond,quantum,q-svc,q-agt,q-dhcp,q-l3,n-novnc,n-xvnc,q-lbaas,g-api,g-reg,key,n-api,n-crt
    DATABASE_PASSWORD=password
    ADMIN_PASSWORD=password
    SERVICE_PASSWORD=password
    SERVICE_TOKEN=password
    RABBIT_PASSWORD=password
    # Compute Service
    NOVA_BRANCH=stable/grizzly
    # Volume Service
    CINDER_BRANCH=stable/grizzly
    # Image Service
    GLANCE_BRANCH=stable/grizzly
    # Web UI (Dashboard)
    HORIZON_BRANCH=stable/grizzly
    # Auth Services
    KEYSTONE_BRANCH=stable/grizzly
    # Quantum (Network) service
    QUANTUM_BRANCH=stable/grizzly
    #Enable Logging
    LOGFILE=/opt/stack/logs/stack.sh.log
    VERBOSE=True
    LOG_COLOR=False
    SCREEN_LOGDIR=/opt/stacko/logs

    FLAT_INTERFACE=eth1
    FIXED_IP=10.0.1.5

    SERVICE_HOST=$FIXED_IP
    OS_TENANT_NAME=demo
    OS_USERNAME=demo
    OS_PASSWORD=password
    OS_AUTH_URL=http://$FIXED_IP:5000/v2.0/
    SERVICE_ENDPOINT=http://$FIXED_IP:35357/v2.0/

Heres part of my ifconfig if it helps.

eth0      Link encap:Ethernet  HWaddr 00:1f:5b:32:c5:b0
          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:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
          Interrupt:18 Memory:90820000-90840000

eth1      Link encap:Ethernet  HWaddr 00:1f:5b:32:c5:b1
          inet addr:10.0.1.5  Bcast:10.0.1.255  Mask:255.255.255.0
          inet6 addr: fe80::21f:5bff:fe32:c5b1/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:51412 errors:0 dropped:0 overruns:0 frame:0
          TX packets:13094 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:16910058 (16.9 MB)  TX bytes:4535816 (4.5 MB)
          Interrupt:19 Memory:90800000-90820000

So ya, anyone have any idea what I could be doing wrong? Also when I access the VM via console, i cant ping other machines on my local network, from the VM. Not sure if thats normal behavior or not.

Any help would be much appreciated.

-- EDIT -- Heres the output from my iptables --list.(The ubuntu server install was setup just to run openstack, so ... (more)

edit retag flag offensive close merge delete

Comments

Hi, Can we get a copy of your iptables (eg iptables-save) ? and route -n

fifieldt gravatar imagefifieldt ( 2013-08-04 18:58:12 -0600 )edit

Just updated post thx!

thrice801 gravatar imagethrice801 ( 2013-08-04 19:56:02 -0600 )edit

Are you able to login from the VM host using ssh -l <user> IP_OF_VM -i <your_private_key>, try to connect locally from that point we could see a clearer picture.

dgonzalezh gravatar imagedgonzalezh ( 2015-07-29 09:29:18 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2015-08-12 07:05:01 -0600

it could be the reason of security group. ingress and egress should be defined in updating the rule for applying the icmp/tcp rule. Paste ifconfig and route output of VM and the machine from where you want to access.

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

2 followers

Stats

Asked: 2013-08-04 18:13:38 -0600

Seen: 1,939 times

Last updated: Aug 12 '15