Re: [one-users] econe-describe-images command in ON 4.4

2014-02-06 Thread Daniel Molina
On 5 February 2014 21:05, Hyun Woo Kim hyun...@fnal.gov wrote:

  Hi Daniel,

  Let me ask another question.

  Looks like we have to use one template create command now,
 i.e. /etc/one/ec2query_templates/m1.small.erb is not enough.


Yes, this is the new way of specifying instance type, it allows you to use
restricted attributes that the user couldn't use otherwise and share
different instance types among different user using the opennebula
permissions. You can still use the old file based templates changing the
use_file_templates var in econe.conf. But I recommend using the new system.

http://docs.opennebula.org/stable/advanced_administration/public_cloud/ec2qcg.html#configuration



  So, I did
  vi /tmp/m1.small with the following contents
 NAME  = m1.small
 EC2_INSTANCE_TYPE = m1.small
 CPU= 1
 MEMORY = 1024
 DISK = [ IMAGE_ID   = %= erb_vm_info[:img_id] % ]
 NIC=[ NETWORK_ID=0,  MODEL = virtio]


  And then
 onetemplate create /tmp/m1.small

  but I am getting
 [TemplateAllocate] Error allocating a new virtual machine template. Parse
 error: syntax error, unexpected EQUAL, expecting COMMA or CBRACKET at line
 6, columns 114:116

  Looks like
 DISK = [ IMAGE_ID   = %= erb_vm_info[:img_id] % ]
 is not understood.

  When I create a template without DISK = [ IMAGE_ID   = %=
 erb_vm_info[:img_id] % ] line,
 I can create a template, but without DISK attribute, how is the ami that a
 user is using in econe-run-instances
 passed to the template??


The template should not contain the DISK since it will be generated by the
econe-server using the information provided by the user, same for the user
data and keypairs. You can check the code here:
https://github.com/OpenNebula/one/blob/master/src/cloud/ec2/lib/instance.rb#L151



  Now, even with this incomplete template, I am getting the following
 error message when I do

  econe-run-instances -U http://fermicloud122.fnal.gov:4567/ -K hwkim -S
 5baa6 ami-0008

  econe-run-instances: Unexpected server error. response.body is:
 ResponseRequestId/ErrorsErrorCodeInvalidInstanceAttributeValue.NotFound/CodeMessageInvalidInstanceAttributeValue.NotFound
 m1.small/Message/Error/Errors/Response


Could you check that the template is available for the hwkim user and that
it contains the EC2_INSTANCE_TYPE = m1.small tag?



  I am following the following links to configure and use EC2 in ON4.4


 http://docs.opennebula.org/stable/advanced_administration/public_cloud/ec2qug.html

 http://docs.opennebula.org/stable/advanced_administration/public_cloud/ec2qcg.html

  My impression is that these guides are a bit not complete to follow.
 Could you guide me to a right direction?

  Thank you!
 HyunWoo




-- 
--
Daniel Molina
Project Engineer
OpenNebula - Flexible Enterprise Cloud Made Simple
www.OpenNebula.org | dmol...@opennebula.org | @OpenNebula
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] econe-describe-images command in ON 4.4

2014-02-05 Thread Daniel Molina
Hi Hyunwoo,


On 5 February 2014 13:20, Hyun Woo Kim hyun...@fnal.gov wrote:

  Hi,

  I have recently deployed ON 4.4 and have been testing EC2 (econe-)
 commands.

  First I could do econe-upload successfully.
 The new image can be seen with oneimage list command,
 but econe-describe-images just shows an empty list.
 (This command is working in our ON 3.2 EC2 system).

  What has changed? Or am I missing a configuration step?


In one 4.4, after using econe-upload or just to make an OpenNebula image
available through econe, the econe-register is necessary. This command will
include the EC2_AMI=YES tag in the template and then it will be listed in
the describe-images command and you will be able to use it through the ec2
api.

More information on the one-4.4 changes can be found here:
http://docs.opennebula.org/stable/release_notes44/compatibility.html#ec2-server

Cheers



  Thanks very much
 Hyunwoo
 FermiCloud Project


 ___
 Users mailing list
 Users@lists.opennebula.org
 http://lists.opennebula.org/listinfo.cgi/users-opennebula.org




-- 
--
Daniel Molina
Project Engineer
OpenNebula - Flexible Enterprise Cloud Made Simple
www.OpenNebula.org | dmol...@opennebula.org | @OpenNebula
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] econe-describe-images command in ON 4.4

2014-02-05 Thread Mark Gergely
Dear All,

i suggest that there should be a configuration variable in the 
econe-server.conf file which influences this behavior. We really got used to 
the way it worked previously, that every image could be listed or started 
through the EC2 server regardless of the image upload method or tags.
i propose that if the describe_only_ec2_images variable is true, then it should 
work like in 4.4.1, if it is false, then it should list every image which is 
not a snapshot or an ebs volume.
Tell me what you think, if it looks fine for you, then i can prepare a patch.

All the best,
Mark Gergely
MTA SZTAKI LPDS

On 05 Feb 2014, at 15:08, Daniel Molina dmol...@opennebula.org wrote:

 Hi Hyunwoo,
 
 
 On 5 February 2014 13:20, Hyun Woo Kim hyun...@fnal.gov wrote:
 Hi, 
 
 I have recently deployed ON 4.4 and have been testing EC2 (econe-) commands.
 
 First I could do econe-upload successfully.
 The new image can be seen with oneimage list command,
 but econe-describe-images just shows an empty list.
 (This command is working in our ON 3.2 EC2 system).
 
 What has changed? Or am I missing a configuration step?
 
 In one 4.4, after using econe-upload or just to make an OpenNebula image 
 available through econe, the econe-register is necessary. This command will 
 include the EC2_AMI=YES tag in the template and then it will be listed in the 
 describe-images command and you will be able to use it through the ec2 api.
 
 More information on the one-4.4 changes can be found here:
 http://docs.opennebula.org/stable/release_notes44/compatibility.html#ec2-server
 
 Cheers
  
 
 Thanks very much
 Hyunwoo 
 FermiCloud Project
 
 
 ___
 Users mailing list
 Users@lists.opennebula.org
 http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
 
 
 
 
 -- 
 --
 Daniel Molina
 Project Engineer
 OpenNebula - Flexible Enterprise Cloud Made Simple
 www.OpenNebula.org | dmol...@opennebula.org | @OpenNebula
 ___
 Users mailing list
 Users@lists.opennebula.org
 http://lists.opennebula.org/listinfo.cgi/users-opennebula.org

___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] econe-describe-images command in ON 4.4

2014-02-05 Thread Hyun Woo Kim
Hi Daniel,
Thanks very much for a quick response, I appreciate it.

Yes, I was also looking for a similar solution in
http://docs.opennebula.org/stable/advanced_administration/public_cloud/ec2qug.html

I remember prior versions used to explicitly show how to use econe-register 
command.
(although I didn't have to use it).

Any way, thanks again!

Hyunwoo

From: Daniel Molina dmol...@opennebula.orgmailto:dmol...@opennebula.org
Date: Wednesday, February 5, 2014 8:08 AM
To: Hyunwoo Kim hyun...@fnal.govmailto:hyun...@fnal.gov
Cc: users@lists.opennebula.orgmailto:users@lists.opennebula.org 
users@lists.opennebula.orgmailto:users@lists.opennebula.org
Subject: Re: [one-users] econe-describe-images command in ON 4.4

Hi Hyunwoo,


On 5 February 2014 13:20, Hyun Woo Kim 
hyun...@fnal.govmailto:hyun...@fnal.gov wrote:
Hi,

I have recently deployed ON 4.4 and have been testing EC2 (econe-) commands.

First I could do econe-upload successfully.
The new image can be seen with oneimage list command,
but econe-describe-images just shows an empty list.
(This command is working in our ON 3.2 EC2 system).

What has changed? Or am I missing a configuration step?

In one 4.4, after using econe-upload or just to make an OpenNebula image 
available through econe, the econe-register is necessary. This command will 
include the EC2_AMI=YES tag in the template and then it will be listed in the 
describe-images command and you will be able to use it through the ec2 api.

More information on the one-4.4 changes can be found here:
http://docs.opennebula.org/stable/release_notes44/compatibility.html#ec2-server

Cheers


Thanks very much
Hyunwoo
FermiCloud Project


___
Users mailing list
Users@lists.opennebula.orgmailto:Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org




--
--
Daniel Molina
Project Engineer
OpenNebula - Flexible Enterprise Cloud Made Simple
www.OpenNebula.orghttp://www.OpenNebula.org | 
dmol...@opennebula.orgmailto:dmol...@opennebula.org | @OpenNebula
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] econe-describe-images command in ON 4.4

2014-02-05 Thread Daniel Molina
On 5 February 2014 16:13, Mark Gergely gergely.m...@sztaki.mta.hu wrote:

 Dear All,

 i suggest that there should be a configuration variable in the
 econe-server.conf file which influences this behavior. We really got used
 to the way it worked previously, that every image could be listed or
 started through the EC2 server regardless of the image upload method or
 tags.
 i propose that if the describe_only_ec2_images variable is true, then it
 should work like in 4.4.1, if it is false, then it should list every image
 which is not a snapshot or an ebs volume.
 Tell me what you think, if it looks fine for you, then i can prepare a
 patch.


I have created a ticket to add this option in future releases:
http://dev.opennebula.org/issues/2710

Thank you for your feedback


 All the best,
 Mark Gergely
 MTA SZTAKI LPDS

 On 05 Feb 2014, at 15:08, Daniel Molina dmol...@opennebula.org wrote:

 Hi Hyunwoo,


 On 5 February 2014 13:20, Hyun Woo Kim hyun...@fnal.gov wrote:

  Hi,

  I have recently deployed ON 4.4 and have been testing EC2 (econe-)
 commands.

  First I could do econe-upload successfully.
 The new image can be seen with oneimage list command,
 but econe-describe-images just shows an empty list.
 (This command is working in our ON 3.2 EC2 system).

  What has changed? Or am I missing a configuration step?


 In one 4.4, after using econe-upload or just to make an OpenNebula image
 available through econe, the econe-register is necessary. This command will
 include the EC2_AMI=YES tag in the template and then it will be listed in
 the describe-images command and you will be able to use it through the ec2
 api.

 More information on the one-4.4 changes can be found here:

 http://docs.opennebula.org/stable/release_notes44/compatibility.html#ec2-server

 Cheers



  Thanks very much
 Hyunwoo
 FermiCloud Project


 ___
 Users mailing list
 Users@lists.opennebula.org
 http://lists.opennebula.org/listinfo.cgi/users-opennebula.org




 --
 --
 Daniel Molina
 Project Engineer
 OpenNebula - Flexible Enterprise Cloud Made Simple
 www.OpenNebula.org http://www.opennebula.org/ | dmol...@opennebula.org| 
 @OpenNebula
  ___
 Users mailing list
 Users@lists.opennebula.org
 http://lists.opennebula.org/listinfo.cgi/users-opennebula.org





-- 
--
Daniel Molina
Project Engineer
OpenNebula - Flexible Enterprise Cloud Made Simple
www.OpenNebula.org | dmol...@opennebula.org | @OpenNebula
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] econe-describe-images command in ON 4.4

2014-02-05 Thread Daniel Molina
On 5 February 2014 16:37, Hyun Woo Kim hyun...@fnal.gov wrote:

  Hi Daniel,
 Thanks very much for a quick response, I appreciate it.

  Yes, I was also looking for a similar solution in

 http://docs.opennebula.org/stable/advanced_administration/public_cloud/ec2qug.html


  I remember prior versions used to explicitly show how to use
 econe-register command.
 (although I didn't have to use it).


Yes, the command is missing in the docs and it shouldn't, we will fix it:
http://dev.opennebula.org/issues/2711

Thank you for your feedback



  Any way, thanks again!

  Hyunwoo

   From: Daniel Molina dmol...@opennebula.org
 Date: Wednesday, February 5, 2014 8:08 AM
 To: Hyunwoo Kim hyun...@fnal.gov
 Cc: users@lists.opennebula.org users@lists.opennebula.org
 Subject: Re: [one-users] econe-describe-images command in ON 4.4

   Hi Hyunwoo,


 On 5 February 2014 13:20, Hyun Woo Kim hyun...@fnal.gov wrote:

  Hi,

  I have recently deployed ON 4.4 and have been testing EC2 (econe-)
 commands.

  First I could do econe-upload successfully.
 The new image can be seen with oneimage list command,
 but econe-describe-images just shows an empty list.
 (This command is working in our ON 3.2 EC2 system).

  What has changed? Or am I missing a configuration step?


  In one 4.4, after using econe-upload or just to make an OpenNebula image
 available through econe, the econe-register is necessary. This command will
 include the EC2_AMI=YES tag in the template and then it will be listed in
 the describe-images command and you will be able to use it through the ec2
 api.

  More information on the one-4.4 changes can be found here:

 http://docs.opennebula.org/stable/release_notes44/compatibility.html#ec2-server

  Cheers



  Thanks very much
 Hyunwoo
 FermiCloud Project


 ___
 Users mailing list
 Users@lists.opennebula.org
 http://lists.opennebula.org/listinfo.cgi/users-opennebula.org




  --
  --
  Daniel Molina
 Project Engineer
 OpenNebula - Flexible Enterprise Cloud Made Simple
 www.OpenNebula.org | dmol...@opennebula.org | @OpenNebula




-- 
--
Daniel Molina
Project Engineer
OpenNebula - Flexible Enterprise Cloud Made Simple
www.OpenNebula.org | dmol...@opennebula.org | @OpenNebula
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] econe-describe-images command in ON 4.4

2014-02-05 Thread Hyun Woo Kim
Let me ask further questions.

When I do the following command,
econe-register  ami-0008   -U http://fermicloud122.fnal.gov:4567/ 
-K hwkim -S 5baa61e…

I am getting an error message
--
Command econe-register requires 2 parameters to run.
Command 'econe-register' not found
## SYNOPSIS
econe-register [OPTIONS] IMAGE-ID
## OPTIONS
 -K, --access-key id   The username of the user
 -S, --secret-key key  The sha1 hashed password of the user
 -U, --url url Set url as the web service url to use
public_ip instance_id
--
The last line seems to suggest that I should give an IP address as well,
so I tried again

econe-register 192.168.1.1   ami-0008   -U 
http://fermicloud122.fnal.gov:4567/ -K hwkim -S 5baa61e…

And now I am getting a new error message;
econe-register: [ImageInfo] Error getting image [192].

I can not figure out what is wrong with my configuration.

Thanks,
Hyunwoo


From: Daniel Molina dmol...@opennebula.orgmailto:dmol...@opennebula.org
Date: Wednesday, February 5, 2014 10:13 AM
To: Hyunwoo Kim hyun...@fnal.govmailto:hyun...@fnal.gov
Cc: users@lists.opennebula.orgmailto:users@lists.opennebula.org 
users@lists.opennebula.orgmailto:users@lists.opennebula.org
Subject: Re: [one-users] econe-describe-images command in ON 4.4




On 5 February 2014 16:37, Hyun Woo Kim 
hyun...@fnal.govmailto:hyun...@fnal.gov wrote:
Hi Daniel,
Thanks very much for a quick response, I appreciate it.

Yes, I was also looking for a similar solution in
http://docs.opennebula.org/stable/advanced_administration/public_cloud/ec2qug.html

I remember prior versions used to explicitly show how to use econe-register 
command.
(although I didn't have to use it).

Yes, the command is missing in the docs and it shouldn't, we will fix it:
http://dev.opennebula.org/issues/2711

Thank you for your feedback


Any way, thanks again!

Hyunwoo

From: Daniel Molina dmol...@opennebula.orgmailto:dmol...@opennebula.org
Date: Wednesday, February 5, 2014 8:08 AM
To: Hyunwoo Kim hyun...@fnal.govmailto:hyun...@fnal.gov
Cc: users@lists.opennebula.orgmailto:users@lists.opennebula.org 
users@lists.opennebula.orgmailto:users@lists.opennebula.org
Subject: Re: [one-users] econe-describe-images command in ON 4.4

Hi Hyunwoo,


On 5 February 2014 13:20, Hyun Woo Kim 
hyun...@fnal.govmailto:hyun...@fnal.gov wrote:
Hi,

I have recently deployed ON 4.4 and have been testing EC2 (econe-) commands.

First I could do econe-upload successfully.
The new image can be seen with oneimage list command,
but econe-describe-images just shows an empty list.
(This command is working in our ON 3.2 EC2 system).

What has changed? Or am I missing a configuration step?

In one 4.4, after using econe-upload or just to make an OpenNebula image 
available through econe, the econe-register is necessary. This command will 
include the EC2_AMI=YES tag in the template and then it will be listed in the 
describe-images command and you will be able to use it through the ec2 api.

More information on the one-4.4 changes can be found here:
http://docs.opennebula.org/stable/release_notes44/compatibility.html#ec2-server

Cheers


Thanks very much
Hyunwoo
FermiCloud Project


___
Users mailing list
Users@lists.opennebula.orgmailto:Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org




--
--
Daniel Molina
Project Engineer
OpenNebula - Flexible Enterprise Cloud Made Simple
www.OpenNebula.orghttp://www.OpenNebula.org | 
dmol...@opennebula.orgmailto:dmol...@opennebula.org | @OpenNebula



--
--
Daniel Molina
Project Engineer
OpenNebula - Flexible Enterprise Cloud Made Simple
www.OpenNebula.orghttp://www.OpenNebula.org | 
dmol...@opennebula.orgmailto:dmol...@opennebula.org | @OpenNebula
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] econe-describe-images command in ON 4.4

2014-02-05 Thread Daniel Molina
On 5 February 2014 19:08, Hyun Woo Kim hyun...@fnal.gov wrote:

  Let me ask further questions.

  When I do the following command,
 econe-register  ami-0008   -U
 http://fermicloud122.fnal.gov:4567/ -K hwkim -S 5baa61e...

  I am getting an error message
  --
 Command econe-register requires 2 parameters to run.
 Command 'econe-register' not found
 ## SYNOPSIS
 econe-register [OPTIONS] IMAGE-ID
 ## OPTIONS
  -K, --access-key id   The username of the user
  -S, --secret-key key  The sha1 hashed password of the user
  -U, --url url Set url as the web service url to use
 public_ip instance_id
 --
  The last line seems to suggest that I should give an IP address as well,
 so I tried again

  econe-register 192.168.1.1   ami-0008   -U
 http://fermicloud122.fnal.gov:4567/ -K hwkim -S 5baa61e...

  And now I am getting a new error message;
 econe-register: [ImageInfo] Error getting image [192].

  I can not figure out what is wrong with my configuration.


There is a bug in the econe-register command (that is already deprecated),
to fix it apply the following patch

diff --git a/src/cloud/ec2/bin/econe-register
b/src/cloud/ec2/bin/econe-register
index 8556e3d..871b21f 100755
--- a/src/cloud/ec2/bin/econe-register
+++ b/src/cloud/ec2/bin/econe-register
@@ -50,7 +50,7 @@ EOT
 EC2QueryClient::URL
 ]

-main :public_ip, :instance_id do
+main :instance_id do
 begin
 ec2_client = EC2QueryClient::Client.new(
 options[:access_key],

econe-register 8   -U http://fermicloud122.fnal.gov:4567/ -K hwkim -S
5baa61e...

or just provide the ID the image as first parameter. Note that you have to
provide just the ID, since it's not an ami yet

econe-register 8  whatever   -U http://fermicloud122.fnal.gov:4567/ -K
hwkim -S 5baa61e...



  Thanks,
 Hyunwoo


   From: Daniel Molina dmol...@opennebula.org
 Date: Wednesday, February 5, 2014 10:13 AM

 To: Hyunwoo Kim hyun...@fnal.gov
 Cc: users@lists.opennebula.org users@lists.opennebula.org
 Subject: Re: [one-users] econe-describe-images command in ON 4.4




 On 5 February 2014 16:37, Hyun Woo Kim hyun...@fnal.gov wrote:

  Hi Daniel,
 Thanks very much for a quick response, I appreciate it.

  Yes, I was also looking for a similar solution in

 http://docs.opennebula.org/stable/advanced_administration/public_cloud/ec2qug.html


  I remember prior versions used to explicitly show how to use
 econe-register command.
 (although I didn't have to use it).


  Yes, the command is missing in the docs and it shouldn't, we will fix it:
 http://dev.opennebula.org/issues/2711

  Thank you for your feedback



  Any way, thanks again!

  Hyunwoo

   From: Daniel Molina dmol...@opennebula.org
 Date: Wednesday, February 5, 2014 8:08 AM
 To: Hyunwoo Kim hyun...@fnal.gov
 Cc: users@lists.opennebula.org users@lists.opennebula.org
 Subject: Re: [one-users] econe-describe-images command in ON 4.4

   Hi Hyunwoo,


 On 5 February 2014 13:20, Hyun Woo Kim hyun...@fnal.gov wrote:

  Hi,

  I have recently deployed ON 4.4 and have been testing EC2 (econe-)
 commands.

  First I could do econe-upload successfully.
 The new image can be seen with oneimage list command,
 but econe-describe-images just shows an empty list.
 (This command is working in our ON 3.2 EC2 system).

  What has changed? Or am I missing a configuration step?


  In one 4.4, after using econe-upload or just to make an OpenNebula
 image available through econe, the econe-register is necessary. This
 command will include the EC2_AMI=YES tag in the template and then it will
 be listed in the describe-images command and you will be able to use it
 through the ec2 api.

  More information on the one-4.4 changes can be found here:

 http://docs.opennebula.org/stable/release_notes44/compatibility.html#ec2-server

  Cheers



  Thanks very much
 Hyunwoo
 FermiCloud Project


 ___
 Users mailing list
 Users@lists.opennebula.org
 http://lists.opennebula.org/listinfo.cgi/users-opennebula.org




  --
  --
  Daniel Molina
 Project Engineer
 OpenNebula - Flexible Enterprise Cloud Made Simple
 www.OpenNebula.org | dmol...@opennebula.org | @OpenNebula




  --
  --
  Daniel Molina
 Project Engineer
 OpenNebula - Flexible Enterprise Cloud Made Simple
 www.OpenNebula.org | dmol...@opennebula.org | @OpenNebula




-- 
--
Daniel Molina
Project Engineer
OpenNebula - Flexible Enterprise Cloud Made Simple
www.OpenNebula.org | dmol...@opennebula.org | @OpenNebula
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] econe-describe-images command in ON 4.4

2014-02-05 Thread Hyun Woo Kim
This patch solved my problem.
Thanks again!

Hyunwoo

From: Daniel Molina dmol...@opennebula.orgmailto:dmol...@opennebula.org
Date: Wednesday, February 5, 2014 12:14 PM
To: Hyunwoo Kim hyun...@fnal.govmailto:hyun...@fnal.gov
Cc: users@lists.opennebula.orgmailto:users@lists.opennebula.org 
users@lists.opennebula.orgmailto:users@lists.opennebula.org
Subject: Re: [one-users] econe-describe-images command in ON 4.4




On 5 February 2014 19:08, Hyun Woo Kim 
hyun...@fnal.govmailto:hyun...@fnal.gov wrote:
Let me ask further questions.

When I do the following command,
econe-register  ami-0008   -U http://fermicloud122.fnal.gov:4567/ 
-K hwkim -S 5baa61e…

I am getting an error message
--
Command econe-register requires 2 parameters to run.
Command 'econe-register' not found
## SYNOPSIS
econe-register [OPTIONS] IMAGE-ID
## OPTIONS
 -K, --access-key id   The username of the user
 -S, --secret-key key  The sha1 hashed password of the user
 -U, --url url Set url as the web service url to use
public_ip instance_id
--
The last line seems to suggest that I should give an IP address as well,
so I tried again

econe-register 192.168.1.1   ami-0008   -U 
http://fermicloud122.fnal.gov:4567/ -K hwkim -S 5baa61e…

And now I am getting a new error message;
econe-register: [ImageInfo] Error getting image [192].

I can not figure out what is wrong with my configuration.

There is a bug in the econe-register command (that is already deprecated), to 
fix it apply the following patch

diff --git a/src/cloud/ec2/bin/econe-register b/src/cloud/ec2/bin/econe-register
index 8556e3d..871b21f 100755
--- a/src/cloud/ec2/bin/econe-register
+++ b/src/cloud/ec2/bin/econe-register
@@ -50,7 +50,7 @@ EOT
 EC2QueryClient::URL
 ]

-main :public_ip, :instance_id do
+main :instance_id do
 begin
 ec2_client = EC2QueryClient::Client.new(
 options[:access_key],

econe-register 8   -U http://fermicloud122.fnal.gov:4567/ -K hwkim -S 5baa61e…

or just provide the ID the image as first parameter. Note that you have to 
provide just the ID, since it's not an ami yet

econe-register 8  whatever   -U http://fermicloud122.fnal.gov:4567/ -K hwkim -S 
5baa61e…


Thanks,
Hyunwoo


From: Daniel Molina dmol...@opennebula.orgmailto:dmol...@opennebula.org
Date: Wednesday, February 5, 2014 10:13 AM

To: Hyunwoo Kim hyun...@fnal.govmailto:hyun...@fnal.gov
Cc: users@lists.opennebula.orgmailto:users@lists.opennebula.org 
users@lists.opennebula.orgmailto:users@lists.opennebula.org
Subject: Re: [one-users] econe-describe-images command in ON 4.4




On 5 February 2014 16:37, Hyun Woo Kim 
hyun...@fnal.govmailto:hyun...@fnal.gov wrote:
Hi Daniel,
Thanks very much for a quick response, I appreciate it.

Yes, I was also looking for a similar solution in
http://docs.opennebula.org/stable/advanced_administration/public_cloud/ec2qug.html

I remember prior versions used to explicitly show how to use econe-register 
command.
(although I didn't have to use it).

Yes, the command is missing in the docs and it shouldn't, we will fix it:
http://dev.opennebula.org/issues/2711

Thank you for your feedback


Any way, thanks again!

Hyunwoo

From: Daniel Molina dmol...@opennebula.orgmailto:dmol...@opennebula.org
Date: Wednesday, February 5, 2014 8:08 AM
To: Hyunwoo Kim hyun...@fnal.govmailto:hyun...@fnal.gov
Cc: users@lists.opennebula.orgmailto:users@lists.opennebula.org 
users@lists.opennebula.orgmailto:users@lists.opennebula.org
Subject: Re: [one-users] econe-describe-images command in ON 4.4

Hi Hyunwoo,


On 5 February 2014 13:20, Hyun Woo Kim 
hyun...@fnal.govmailto:hyun...@fnal.gov wrote:
Hi,

I have recently deployed ON 4.4 and have been testing EC2 (econe-) commands.

First I could do econe-upload successfully.
The new image can be seen with oneimage list command,
but econe-describe-images just shows an empty list.
(This command is working in our ON 3.2 EC2 system).

What has changed? Or am I missing a configuration step?

In one 4.4, after using econe-upload or just to make an OpenNebula image 
available through econe, the econe-register is necessary. This command will 
include the EC2_AMI=YES tag in the template and then it will be listed in the 
describe-images command and you will be able to use it through the ec2 api.

More information on the one-4.4 changes can be found here:
http://docs.opennebula.org/stable/release_notes44/compatibility.html#ec2-server

Cheers


Thanks very much
Hyunwoo
FermiCloud Project


___
Users mailing list
Users@lists.opennebula.orgmailto:Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org




--
--
Daniel Molina
Project Engineer
OpenNebula - Flexible Enterprise Cloud Made Simple
www.OpenNebula.orghttp://www.OpenNebula.org | 
dmol