Hi Marty, Thanks for the reply. It doesn’t really get to the management server since it’s failing before that.
2014-04-23 10:38:19,017 INFO [cloud.api.ApiServer] (catalina-exec-18:null) (userId=10 accountId=10 sessionId=null) 127.0.0.1 -- GET command=registerTemplate&response=json&zoneid=596ee614-0917-496c-bce3-129254c3e110&hypervisor=VMWare&name=CentosFromSnapshot&displaytext=test&format=ova&url=null&ostypeid=1f3da26c-c553-11e3-b989-005056b0541d&apikey=ZmpaQ2xwNDVSbDh3SnRnNnE0dG9Kc2xLWW5GZFdr&signature=n41Wzfb%2FV9WvTxo4UGgam9bNZgU%3D 431 Please specify a valid URL. URL:null is invalid I’ve since gone through the code and figured out that the current implementation requires that the [manifest] parameter (according to the ec2 spec) is set and is used as the URL. So I’ll be changing that for us to make this possible (i.e. to create register a snapshot without having a URL to it). I’ve also added the ability to register an ISO image with ec2-register. I can commit these changes, when done, to the master branch if anyone is interested. Cheers, -- Páll Helgason Core Team Tel: (+354) 415 0202 pa...@greenqloud.com www.greenqloud.com On 25.4.2014, at 18:33, Marty Sweet <msweet....@gmail.com> wrote: > Hi Pall, > > I have CC'ed in the users mailing list as they might have more suggestions > there. > > In the meantime, please can you provide the management-server.log around the > time when you run this API command. It might provide a useful insight to the > problem. > Also, how you do mean 'fails on the url'? What does it return? an error code? > JSON array? > > Marty > > > > > On 23 April 2014 15:37, Páll Helgason <pa...@greenqloud.com> wrote: > Hi, > > Maybe someone here can help me with this. I’m trying to create a template > from a snapshot (CS 4.2.1 + VMWare 5.0) created with the ec2 tools. Creating > the snapshot works just fine (and so does ec2-create-image). But when I try > to register the snapshot as a template it’s just not working. > > The command I use is ec2-register -d test -n CentosFromSnapshot -s > c651d9b9-fd17-4002-b32f-c46ad27c93ac -a ova:VUmc:Other:VMWare (figured out > the -a stuff from the code). According to the awsapi logs this calls > > http://127.0.0.1:8080/client/api?command=registerTemplate&response=json&zoneid=596ee614-0917-496c-bce3-129254c3e110&hypervisor=VMWare&name=CentosFromSnapshot&displaytext=test&format=ova&url=null&ostypeid=1f3da26c-c553-11e3-b989-005056b0541d&apikey=xxx&signature=xxxx > > which of course fails on the url. Going through the code I can’t find > anything that is handling the -s parameter. Am I missing something or is this > not implemented? > > Cheers, > > -- > Páll Helgason > Core Team > > Tel: (+354) 415 0202 > pa...@greenqloud.com > www.greenqloud.com > > > > >