whirr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From John Highcock <truce...@gmail.com>
Subject Whirr with devstack
Date Thu, 26 Sep 2013 17:41:24 GMT
I have setup a devstack instance on an Ubuntu 12.04.3 desktop VM in
VirtualBox and am having difficulty using whirr to launch instances.

Using the cirros test image I am able to launch 1 noop instance, but
the public/private keys I specify are not being used.  I can ssh into
the machine using password authentication.

Using the ubuntu precise(as well as lucid) cloud image I am able to
launch 1 noop instance with the same problem as cirros, only password
authentication is disabled so I can't actually login to the instance.

I can nova boot both the cirros test image and the ubuntu precise
cloud image.  My key is copied over and added to authorized keys fine,
allowing me to do passwordless ssh.

I can complete the whirr in 5 minutes example from the Ubuntu desktop
VM with no problem.


#versions:
cirros-0.3.1-x86_64-uec
precise-server-cloudimg-amd64 (12.04.3)
lucid-server-cloudimg-amd64 (10.04)
whirr=master
devstack=master (tried grizzly as well no luck)

#vm properties
8192 meg ram
1 cpu
200 gig storage
1 NAT adapter

#ifconfig on the devstack vm
br100     Link encap:Ethernet  HWaddr 00:00:00:00:00:00
          inet addr:10.0.0.1  Bcast:10.0.0.255  Mask:255.255.255.0
          inet6 addr: fe80::6c6c:98ff:fe6c:a74b/64 Scope:Link
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:352564 errors:0 dropped:0 overruns:0 frame:0
          TX packets:343859 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:46481543 (46.4 MB)  TX bytes:44801819 (44.8 MB)

eth0      Link encap:Ethernet  HWaddr 08:00:27:d3:bc:99
          inet addr:10.0.2.15  Bcast:10.0.2.255  Mask:255.255.255.0
          inet6 addr: fe80::a00:27ff:fed3:bc99/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1135698 errors:0 dropped:0 overruns:0 frame:0
          TX packets:532395 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:1146934035 (1.1 GB)  TX bytes:36980191 (36.9 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:65536  Metric:1
          RX packets:2005699 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2005699 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:25363456261 (25.3 GB)  TX bytes:25363456261 (25.3 GB)

virbr0    Link encap:Ethernet  HWaddr 6a:0d:d3:74:aa:16
          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)



#devstack localrc:
FLAT_INTERFACE=br100
PUBLIC_INTERFACE=eth0
HOST_IP_IFACE=eth0
FLOATING_RANGE=10.0.2.224/27
HOST_IP=10.0.2.15


#whirr --config properties file:
whirr.provider=openstack-nova
whirr.cluster-name=devstack
whirr.endpoint=http://10.0.2.15:5000/v2.0
whirr.image-id=RegionOne/<image-id from nova image-list>
whirr.identity=admin
whirr.credential=<admin pw>
whirr.instance-templates=1 noop
jclouds.keystone.tenant-id=<admin tenant-id from keystone tenant-list>
#the following were eventually added since the defaults timing out too
quickly on the VM.
jclouds.compute.timeout.node-terminated=600000
jclouds.compute.timeout.node-running=600000
jclouds.compute.timeout.port-open=600000
jclouds.ssh.max-retries=500

#I have tried using :
whirr.cluster-user=<cirros or ubuntu depending on which image>
whirr.bootstrap-user=<same as above>
jclouds.image.login-user=<same as above + pw if cirros>

#I have tried manually setting:
whirr.private-key-file
whirr.public-key-file

#I have tried adding statements to NoopActionHandler beforeBootstrap
(then later afterBootstrap):
addStatement(event, exec("<touch a file>"));
addStatement(event, exec("<make a directory>"));
#None seem to be executed

Mime
View raw message