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

Hyun Woo Kim hyunwoo at fnal.gov
Wed Feb 5 11:12:06 PST 2014


This patch solved my problem.
Thanks again!

Hyunwoo

From: Daniel Molina <dmolina at opennebula.org<mailto:dmolina at opennebula.org>>
Date: Wednesday, February 5, 2014 12:14 PM
To: Hyunwoo Kim <hyunwoo at fnal.gov<mailto:hyunwoo at fnal.gov>>
Cc: "users at lists.opennebula.org<mailto:users at lists.opennebula.org>" <users at lists.opennebula.org<mailto:users at lists.opennebula.org>>
Subject: Re: [one-users] econe-describe-images command in ON 4.4




On 5 February 2014 19:08, Hyun Woo Kim <hyunwoo at fnal.gov<mailto:hyunwoo at fnal.gov>> wrote:
Let me ask further questions.

When I do the following command,
econe-register      ami-00000008       -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-00000008   -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 <dmolina at opennebula.org<mailto:dmolina at opennebula.org>>
Date: Wednesday, February 5, 2014 10:13 AM

To: Hyunwoo Kim <hyunwoo at fnal.gov<mailto:hyunwoo at fnal.gov>>
Cc: "users at lists.opennebula.org<mailto:users at lists.opennebula.org>" <users at lists.opennebula.org<mailto:users at lists.opennebula.org>>
Subject: Re: [one-users] econe-describe-images command in ON 4.4




On 5 February 2014 16:37, Hyun Woo Kim <hyunwoo at fnal.gov<mailto:hyunwoo at 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 <dmolina at opennebula.org<mailto:dmolina at opennebula.org>>
Date: Wednesday, February 5, 2014 8:08 AM
To: Hyunwoo Kim <hyunwoo at fnal.gov<mailto:hyunwoo at fnal.gov>>
Cc: "users at lists.opennebula.org<mailto:users at lists.opennebula.org>" <users at lists.opennebula.org<mailto:users at 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 <hyunwoo at fnal.gov<mailto:hyunwoo at 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 at lists.opennebula.org<mailto:Users at 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> | dmolina at opennebula.org<mailto:dmolina at opennebula.org> | @OpenNebula



--
--
Daniel Molina
Project Engineer
OpenNebula - Flexible Enterprise Cloud Made Simple
www.OpenNebula.org<http://www.OpenNebula.org> | dmolina at opennebula.org<mailto:dmolina at opennebula.org> | @OpenNebula



--
--
Daniel Molina
Project Engineer
OpenNebula - Flexible Enterprise Cloud Made Simple
www.OpenNebula.org<http://www.OpenNebula.org> | dmolina at opennebula.org<mailto:dmolina at opennebula.org> | @OpenNebula
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20140205/e4564aa8/attachment-0002.htm>


More information about the Users mailing list