Hi Tomaž  

Sorry for the delay - Easter stuff :-)
It looks to be working now. Thanks so much for your help. It's much appreciated.


Regards,

Lars G. Petersen


On Saturday, April 7, 2012 at 6:03 , Tomaž Muraus wrote:

> I've submitted a patch from LIBCLOUD-176 into trunk. Please try running
> your script again with the trunk version of libcloud.
>  
> 2012/4/4 Tomaž Muraus <to...@apache.org (mailto:to...@apache.org)>
>  
> > Hi, it looks like this is related to LIBCLOUD-176 and recent changes in
> > the openstack / rackspace driver.
> >  
> > I will have a look later today.
> >  
> > Sent from my Android
> > On Apr 4, 2012 6:39 AM, "Lars Golovitcher Petersen" <l...@greenwire.co.uk 
> > (mailto:l...@greenwire.co.uk)>
> > wrote:
> >  
> > > Hi guys,
> > >  
> > > Sorry if you are receiving this email twice. I wasn't sure it would go to
> > > the list when I subscribed.
> > >  
> > > Anyway. My problem is that recently something seems to have happened on
> > > Rackspace.
> > > My scripts have been running without error for a long time, but I think
> > > last week they started acting up.
> > >  
> > > I spawn a server and configure it roughly like this:
> > >  
> > > from libcloud.compute.types import Provider from
> > > libcloud.compute.providers import get_driver import sys import
> > > libcloud.security libcloud.security.VERIFY_SSL_CERT = False from
> > > libcloud.compute.deployment import MultiStepDeployment, SSHKeyDeployment,
> > > ScriptDeployment import os RACK_USER = 'MY_RACKSPACE_USERNAME_HERE'
> > > RACK_API_KEY = 'MY_API_KEY_HERE' NAME='INSTANCE_NAME_HERE' Driver =
> > > get_driver(Provider.RACKSPACE_UK) conn = Driver(RACK_USER, RACK_API_KEY)
> > > images = conn.list_images() sizes = conn.list_sizes() IMAGE = [i for i in
> > > images if i.name.find("Ubuntu 10.04") != -1] SIZE = [i for i in sizes if
> > > i.name.find("512 server") != -1] adduser1 = ScriptDeployment("useradd -m 
> > > -s
> > > /bin/bash myuserabcdef") adduser2 = ScriptDeployment("passwd -d
> > > myuserabcdef") nullpasswd1 = ScriptDeployment("sed -i
> > > 's/nullok_secure/nullok/' /etc/pam.d/common-auth") nullpasswd2 =
> > > ScriptDeployment("sed -i 's/PermitEmptyPasswords no/PermitEmptyPasswords
> > > yes/' /etc/ssh/sshd_config") msd = MultiStepDeploym
> > > ent([add
> > > user1,adduser2,nullpasswd1,nullpasswd2]) node =
> > > conn.deploy_node(name=NAME, image=IMAGE[0], size=SIZE[0], deploy=msd)
> > >  
> > > The cloud server is created, but script dies very quickly with a
> > > DeploymentError and not much other info. None of the deployment scripts 
> > > run.
> > > I tried running it with LIBCLOUD_DEBUG=/dev/stderr but not much other
> > > info was shown. Last call was a complete server list, which didn't have 
> > > the
> > > newly created server.
> > >  
> > > I actually think that the puppet-example wont even run, since it's
> > > roughly the same:
> > >  
> > > http://libcloud.apache.org/getting-started.html#example-bootstrapping-puppet-on-a-node
> > >  
> > > Thanks in advance for your help.
> > >  
> > >  
> > > Regards,
> > >  
> > > Lars G. Petersen  

Reply via email to