<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif; ">
<div>This patch solved my problem.</div>
<div>Thanks again!</div>
<div><br>
</div>
<div>Hyunwoo</div>
<div><br>
</div>
<span id="OLK_SRC_BODY_SECTION">
<div style="font-family:Calibri; font-size:11pt; text-align:left; color:black; BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0in; PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
<span style="font-weight:bold">From: </span>Daniel Molina <<a href="mailto:dmolina@opennebula.org">dmolina@opennebula.org</a>><br>
<span style="font-weight:bold">Date: </span>Wednesday, February 5, 2014 12:14 PM<br>
<span style="font-weight:bold">To: </span>Hyunwoo Kim <<a href="mailto:hyunwoo@fnal.gov">hyunwoo@fnal.gov</a>><br>
<span style="font-weight:bold">Cc: </span>"<a href="mailto:users@lists.opennebula.org">users@lists.opennebula.org</a>" <<a href="mailto:users@lists.opennebula.org">users@lists.opennebula.org</a>><br>
<span style="font-weight:bold">Subject: </span>Re: [one-users] econe-describe-images command in ON 4.4<br>
</div>
<div><br>
</div>
<div>
<div>
<div dir="ltr"><br>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">On 5 February 2014 19:08, Hyun Woo Kim <span dir="ltr"><<a href="mailto:hyunwoo@fnal.gov" target="_blank">hyunwoo@fnal.gov</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div style="font-size:14px;font-family:Calibri,sans-serif;word-wrap:break-word">
<div>Let me ask further questions.</div>
<div><br>
</div>
<div>When I do the following command,</div>
<div>econe-register ami-00000008 -U <a href="http://fermicloud122.fnal.gov:4567/" target="_blank">
http://fermicloud122.fnal.gov:4567/</a> -K hwkim -S 5baa61e…</div>
<div><br>
</div>
<div>I am getting an error message</div>
<div>
<div>------------------------------------------------------------------</div>
<div>Command econe-register requires 2 parameters to run.</div>
<div>Command 'econe-register' not found</div>
<div>## SYNOPSIS</div>
<div>econe-register [OPTIONS] IMAGE-ID</div>
<div>## OPTIONS</div>
<div> -K, --access-key id The username of the user</div>
<div> -S, --secret-key key The sha1 hashed password of the user</div>
<div> -U, --url url Set url as the web service url to use</div>
<div><public_ip> <instance_id></div>
<div>--------------------------------------------------------------------------</div>
</div>
<div>The last line seems to suggest that I should give an IP address as well,</div>
<div>so I tried again</div>
<div><br>
</div>
<div>
<div>econe-register 192.168.1.1 ami-00000008 -U <a href="http://fermicloud122.fnal.gov:4567/" target="_blank">
http://fermicloud122.fnal.gov:4567/</a> -K hwkim -S 5baa61e…</div>
<div><br>
</div>
<div>And now I am getting a new error message;</div>
<div>econe-register: [ImageInfo] Error getting image [192].</div>
</div>
<div><br>
</div>
<div>I can not figure out what is wrong with my configuration.</div>
</div>
</blockquote>
<div><br>
</div>
<div>There is a bug in the econe-register command (that is already deprecated), to fix it apply the following patch</div>
<div><br>
</div>
<div>
<div>diff --git a/src/cloud/ec2/bin/econe-register b/src/cloud/ec2/bin/econe-register</div>
<div>index 8556e3d..871b21f 100755</div>
<div>--- a/src/cloud/ec2/bin/econe-register</div>
<div>+++ b/src/cloud/ec2/bin/econe-register</div>
<div>@@ -50,7 +50,7 @@ EOT"</div>
<div> EC2QueryClient::URL</div>
<div> ]</div>
<div><br>
</div>
<div>- main :public_ip, :instance_id do</div>
<div>+ main :instance_id do</div>
<div> begin</div>
<div> ec2_client = EC2QueryClient::Client.new(</div>
<div> options[:access_key],</div>
</div>
<div><span style="font-size: 14px; font-family: Calibri, sans-serif; "><br class="">
econe-register 8 -U </span><a href="http://fermicloud122.fnal.gov:4567/" target="_blank" style="font-family:Calibri,sans-serif;font-size:14px">http://fermicloud122.fnal.gov:4567/</a><span style="font-size: 14px; font-family: Calibri, sans-serif; "> -K hwkim
-S 5baa61e…</span><br>
</div>
<div><span style="font-size: 14px; font-family: Calibri, sans-serif; "><br>
</span></div>
<div>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</div>
<div><br>
</div>
<div><span style="font-size: 14px; font-family: Calibri, sans-serif; ">econe-register 8 whatever -U </span><a href="http://fermicloud122.fnal.gov:4567/" target="_blank" style="font-family:Calibri,sans-serif;font-size:14px">http://fermicloud122.fnal.gov:4567/</a><span style="font-size: 14px; font-family: Calibri, sans-serif; "> -K
hwkim -S 5baa61e…</span><br>
</div>
<div> </div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div style="font-size:14px;font-family:Calibri,sans-serif;word-wrap:break-word">
<div><br>
</div>
<div>Thanks,</div>
<div>Hyunwoo</div>
<div><br>
</div>
<div><br>
</div>
<span>
<div style="border-width:1pt medium medium;border-style:solid none none;padding:3pt 0in 0in;text-align:left;font-size:11pt;font-family:Calibri;border-top-color:rgb(181,196,223)">
<span style="font-weight:bold">From: </span>Daniel Molina <<a href="mailto:dmolina@opennebula.org" target="_blank">dmolina@opennebula.org</a>><br>
<span style="font-weight:bold">Date: </span>Wednesday, February 5, 2014 10:13 AM
<div>
<div class="h5"><br>
<span style="font-weight:bold">To: </span>Hyunwoo Kim <<a href="mailto:hyunwoo@fnal.gov" target="_blank">hyunwoo@fnal.gov</a>><br>
<span style="font-weight:bold">Cc: </span>"<a href="mailto:users@lists.opennebula.org" target="_blank">users@lists.opennebula.org</a>" <<a href="mailto:users@lists.opennebula.org" target="_blank">users@lists.opennebula.org</a>><br>
<span style="font-weight:bold">Subject: </span>Re: [one-users] econe-describe-images command in ON 4.4<br>
</div>
</div>
</div>
<div>
<div class="h5">
<div><br>
</div>
<div>
<div>
<div dir="ltr"><br>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">On 5 February 2014 16:37, Hyun Woo Kim <span dir="ltr"><<a href="mailto:hyunwoo@fnal.gov" target="_blank">hyunwoo@fnal.gov</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div style="font-size:14px;font-family:Calibri,sans-serif;word-wrap:break-word">
<div>Hi Daniel,</div>
<div>Thanks very much for a quick response, I appreciate it.</div>
<div><br>
</div>
<div>Yes, I was also looking for a similar solution in</div>
<div><a href="http://docs.opennebula.org/stable/advanced_administration/public_cloud/ec2qug.html" target="_blank">http://docs.opennebula.org/stable/advanced_administration/public_cloud/ec2qug.html</a> </div>
<div><br>
</div>
<div>I remember prior versions used to explicitly show how to use econe-register command.</div>
<div>(although I didn't have to use it).</div>
</div>
</blockquote>
<div><br>
</div>
<div>Yes, the command is missing in the docs and it shouldn't, we will fix it:</div>
<div><a href="http://dev.opennebula.org/issues/2711" target="_blank">http://dev.opennebula.org/issues/2711</a><br>
</div>
<div><br>
</div>
<div>Thank you for your feedback</div>
<div> </div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div style="font-size:14px;font-family:Calibri,sans-serif;word-wrap:break-word">
<div><br>
</div>
<div>Any way, thanks again!</div>
<div><br>
</div>
<div>Hyunwoo</div>
<div><br>
</div>
<span>
<div style="border-width:1pt medium medium;border-style:solid none none;padding:3pt 0in 0in;text-align:left;font-size:11pt;font-family:Calibri;border-top-color:rgb(181,196,223)">
<span style="font-weight:bold">From: </span>Daniel Molina <<a href="mailto:dmolina@opennebula.org" target="_blank">dmolina@opennebula.org</a>><br>
<span style="font-weight:bold">Date: </span>Wednesday, February 5, 2014 8:08 AM<br>
<span style="font-weight:bold">To: </span>Hyunwoo Kim <<a href="mailto:hyunwoo@fnal.gov" target="_blank">hyunwoo@fnal.gov</a>><br>
<span style="font-weight:bold">Cc: </span>"<a href="mailto:users@lists.opennebula.org" target="_blank">users@lists.opennebula.org</a>" <<a href="mailto:users@lists.opennebula.org" target="_blank">users@lists.opennebula.org</a>><br>
<span style="font-weight:bold">Subject: </span>Re: [one-users] econe-describe-images command in ON 4.4<br>
</div>
<div>
<div>
<div><br>
</div>
<div>
<div>
<div dir="ltr">Hi <span style="font-size: 14px; font-family: Calibri, sans-serif; ">Hyunwoo,</span>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">On 5 February 2014 13:20, Hyun Woo Kim <span dir="ltr"><<a href="mailto:hyunwoo@fnal.gov" target="_blank">hyunwoo@fnal.gov</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div style="font-size:14px;font-family:Calibri,sans-serif;word-wrap:break-word">
<div>Hi, </div>
<span>
<div>
<div style="font-size:14px;font-family:Calibri,sans-serif;word-wrap:break-word">
<div><br>
</div>
<div>I have recently deployed ON 4.4 and have been testing EC2 (econe-) commands.</div>
<div><br>
</div>
<div>First I could do econe-upload successfully.</div>
<div>The new image can be seen with oneimage list command,</div>
<div>but econe-describe-images just shows an empty list.</div>
<div>(This command is working in our ON 3.2 EC2 system).</div>
<div><br>
</div>
<div>What has changed? Or am I missing a configuration step?</div>
</div>
</div>
</span></div>
</blockquote>
<div><br>
</div>
<div>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.</div>
<div><br>
</div>
<div>More information on the one-4.4 changes can be found here:</div>
<div><a href="http://docs.opennebula.org/stable/release_notes44/compatibility.html#ec2-server" target="_blank">http://docs.opennebula.org/stable/release_notes44/compatibility.html#ec2-server</a><br>
</div>
<div><br>
</div>
<div>Cheers</div>
<div> </div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div style="font-size:14px;font-family:Calibri,sans-serif;word-wrap:break-word"><span>
<div>
<div style="font-size:14px;font-family:Calibri,sans-serif;word-wrap:break-word">
<div><br>
</div>
<div>Thanks very much</div>
<div>Hyunwoo </div>
<div>FermiCloud Project</div>
<div><br>
</div>
</div>
</div>
</span></div>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opennebula.org" target="_blank">Users@lists.opennebula.org</a><br>
<a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a><br>
<br>
</blockquote>
</div>
<br>
<br clear="all">
<div><br>
</div>
-- <br>
<div dir="ltr">
<div>--<br>
</div>
Daniel Molina<br>
Project Engineer<br>
OpenNebula - Flexible Enterprise Cloud Made Simple<br>
<a href="http://www.OpenNebula.org" target="_blank">www.OpenNebula.org</a> | <a href="mailto:dmolina@opennebula.org" target="_blank">
dmolina@opennebula.org</a> | @OpenNebula</div>
</div>
</div>
</div>
</div>
</div>
</div>
</span></div>
</blockquote>
</div>
<br>
<br clear="all">
<div><br>
</div>
-- <br>
<div dir="ltr">
<div>--<br>
</div>
Daniel Molina<br>
Project Engineer<br>
OpenNebula - Flexible Enterprise Cloud Made Simple<br>
<a href="http://www.OpenNebula.org" target="_blank">www.OpenNebula.org</a> | <a href="mailto:dmolina@opennebula.org" target="_blank">
dmolina@opennebula.org</a> | @OpenNebula</div>
</div>
</div>
</div>
</div>
</div>
</div>
</span></div>
</blockquote>
</div>
<br>
<br clear="all">
<div><br>
</div>
-- <br>
<div dir="ltr">
<div>--<br>
</div>
Daniel Molina<br>
Project Engineer<br>
OpenNebula - Flexible Enterprise Cloud Made Simple<br>
<a href="http://www.OpenNebula.org" target="_blank">www.OpenNebula.org</a> | <a href="mailto:dmolina@opennebula.org" target="_blank">
dmolina@opennebula.org</a> | @OpenNebula</div>
</div>
</div>
</div>
</div>
</span>
</body>
</html>