Thank you Ricardo. I'll submit the issue. I'm now trying to specify a custom image using the "image_id" key in the cluster section. e.g.: image_id=robert-image
I receive an error saying that the image cannot be located due to an incorrect image project name, which in the case below defaults to "robert-cloud": ERROR Could not start node `compute001`: Error creating instance > `<HttpError 400 when requesting > https://www.googleapis.com/compute/v1/projects/<my-project>/zones/us-west1-a/instances?alt=json > > returned "Invalid value for field > 'resource.disks[0].initializeParams.sourceImage': > 'https://www.googleapis.com/compute/v1/projects/robert-cloud/global/images/robert-image'. > > The referenced image resource cannot be found.">` -- <class > 'elasticluster.exceptions.InstanceError'> I'm not sure how to associate my custom image with an image project or if that's even the problem here. Any ideas? Robert On Friday, July 14, 2017 at 1:52:47 PM UTC-7, Riccardo Murri wrote: > > Dear Robert, > > > I would like a shell script to run automatically upon node creation. I > have > > tried passing commands via the "image_userdata" configuration key > located > > within the cluster section of the elasticluster config file. But I have > not > > seen any indication of it working so far. > > This seems to be a bug in ElastiCluster's GCE backend: the > `image_userdata` parameter is ignored and not passed on to the cloud. > (Conversely, with OpenStack the trick would work.) Can you please > report it on ElastiCluster's isse tracker? > > As a workaround, I can only suggest that you create your own VM > image/snapshot, which includes the startup script and calls it from > `/etc/rc.local` or a similar boot-level script. > > Ciao, > R > > -- > Riccardo Murri / Email: [email protected] <javascript:> / Tel.: +41 77 > 458 98 32 > -- You received this message because you are subscribed to the Google Groups "elasticluster" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
