<div dir="ltr">Hi Olivier,<div><br></div><div>I found out the problem, and indeed is a bug. You can fix it applying the following patch:</div><div><br></div><div><div>diff --git a/src/cloud/ec2/lib/instance.rb b/src/cloud/ec2/lib/instance.rb</div><div>index 1d069a8..34203df 100644</div><div>--- a/src/cloud/ec2/lib/instance.rb</div><div>+++ b/src/cloud/ec2/lib/instance.rb</div><div>@@ -128,7 +128,8 @@ module Instance</div><div>                 end</div><div>             }</div><div>         else</div><div>-            template_pool = TemplatePool.new(@client)</div><div>+            user_flag = OpenNebula::Pool::INFO_ALL</div><div>+            template_pool = TemplatePool.new(@client, user_flag)</div><div>             rc = <a href="http://template_pool.info">template_pool.info</a></div><div>             if OpenNebula::is_error?(rc)</div><div>                 return rc</div></div><div><br></div><div>Thank you for your feedback</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On 30 September 2014 14:48, Olivier Sallou <span dir="ltr"><<a href="mailto:olivier.sallou@irisa.fr" target="_blank">olivier.sallou@irisa.fr</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF" text="#000000"><span class="">
    <br>
    <div>On 09/30/2014 11:06 AM, Daniel Molina
      wrote:<br>
    </div>
    </span><blockquote type="cite">
      <div dir="ltr">Hi Olivier,
        <div><br>
        </div><span class="">
        <div>Did you fix this issue? I cannot reproduce it</div>
      </span></div>
    </blockquote>
    Setting ownership of the template group , plus setting "use" access
    to "group" and "others" fixes the issue. So I do not have the
    problem anymore with this modification, but I wonder why, as
    "others" have a "use" permission. And I do not see such requirement
    in documentation (or missed it).<span class="HOEnZb"><font color="#888888"><br>
    <br>
    Olivier</font></span><div><div class="h5"><br>
    <blockquote type="cite">
      <div dir="ltr">
        <div><br>
        </div>
        <div>Cheers</div>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">On 24 September 2014 15:45, Olivier
          Sallou <span dir="ltr"><<a href="mailto:olivier.sallou@irisa.fr" target="_blank">olivier.sallou@irisa.fr</a>></span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div bgcolor="#FFFFFF" text="#000000"> All users have use
              permissions on image. And as I said, template group
              ownership modification fix the issue...
              <div>
                <div><br>
                  <br>
                  <br>
                  <br>
                  <br>
                  <br>
                  <div>On 09/24/2014 01:06 PM, Daniel Molina wrote:<br>
                  </div>
                  <blockquote type="cite">
                    <div dir="ltr">Hi Olivier,
                      <div><br>
                      </div>
                      <div>What about the image (280) permissions?</div>
                      <div><br>
                      </div>
                      <div>Cheers</div>
                    </div>
                    <div class="gmail_extra"><br>
                      <div class="gmail_quote">On 24 September 2014
                        10:18, Olivier Sallou <span dir="ltr"><<a href="mailto:olivier.sallou@irisa.fr" target="_blank">olivier.sallou@irisa.fr</a>></span>
                        wrote:<br>
                        <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">As more info,<br>
                          if  I change the group ownership of the
                          template to users instead of<br>
                          oneadmin it works.<br>
                          <br>
                          However, as Permissions to Use on Other are
                          set, it should work.<br>
                          <br>
                          Olivier<br>
                          <div>
                            <div><br>
                              On 09/24/2014 10:16 AM, Olivier Sallou
                              wrote:<br>
                              > I have updated my config to use the
                              EC2 templates in one instead of old<br>
                              > template files.<br>
                              > It works fine when I am the oneadmin
                              user.<br>
                              ><br>
                              > However, when I am using an other
                              user I have this error when I create a<br>
                              > new VM:<br>
                              ><br>
                              > Unexpected server error.
                              response.body is:<br>
                              >
<Response><RequestId/><Errors><Error><Code>InvalidInstanceAttributeValue.NotFound</Code><Message>InvalidInstanceAttributeValue.NotFound<br>
                              >
                              m1.small</Message></Error></Errors></Response><br>
                              ><br>
                              ><br>
                              > The code is:<br>
                              ><br>
                              >     response = ec2.run_instances(<br>
                              >               :image_id       =>
                              'ami-00000280',<br>
                              >               :min_count      =>
                              1,<br>
                              >               :max_count      =>
                              1,<br>
                              >               :instance_type  =>
                              'm1.small',<br>
                              >               :user_data      =>
                              user_data,<br>
                              >               :base64_encoded =>
                              true<br>
                              >               )<br>
                              ><br>
                              > It works fine if I use the oneadmin
                              credentials, but not for other users.<br>
                              ><br>
                              > m1.small is a template in one:<br>
                              ><br>
                              > TEMPLATE 143<br>
                              > INFORMATION<br>
                              > ID             : 143<br>
                              > NAME           : m1.small<br>
                              > USER           : oneadmin<br>
                              > GROUP          : oneadmin<br>
                              > REGISTER TIME  : 09/23 10:26:52<br>
                              ><br>
                              > PERMISSIONS<br>
                              ><br>
                              > OWNER          : um-<br>
                              > GROUP          : u--<br>
                              > OTHER          : u--<br>
                              ><br>
                              > All users have USE right access.<br>
                              ><br>
                              > Any idea?<br>
                              ><br>
                              > Thanks<br>
                              ><br>
                              > Olviier<br>
                              ><br>
                              <br>
                              --<br>
                            </div>
                          </div>
                          <span><font color="#888888">Olivier Sallou<br>
                              IRISA / University of Rennes 1<br>
                              Campus de Beaulieu, 35000 RENNES - FRANCE<br>
                              Tel: 02.99.84.71.95<br>
                            </font></span>
                          <div>
                            <div><br>
                              gpg key id: 4096R/326D8438  (<a href="http://keyring.debian.org" target="_blank">keyring.debian.org</a>)<br>
                              Key fingerprint = 5FB4 6F83 D3B9 5204
                              6335  D26D 78DC 68DB 326D 8438<br>
                              <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>
                            </div>
                          </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>
                  </blockquote>
                  <br>
                  <pre cols="72">-- 
Olivier Sallou
IRISA / University of Rennes 1
Campus de Beaulieu, 35000 RENNES - FRANCE
Tel: 02.99.84.71.95

gpg key id: 4096R/326D8438  (<a href="http://keyring.debian.org" target="_blank">keyring.debian.org</a>)
Key fingerprint = 5FB4 6F83 D3B9 5204 6335  D26D 78DC 68DB 326D 8438

</pre>
                </div>
              </div>
            </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>
    </blockquote>
    <br>
    <pre cols="72">-- 
Olivier Sallou
IRISA / University of Rennes 1
Campus de Beaulieu, 35000 RENNES - FRANCE
Tel: 02.99.84.71.95

gpg key id: 4096R/326D8438  (<a href="http://keyring.debian.org" target="_blank">keyring.debian.org</a>)
Key fingerprint = 5FB4 6F83 D3B9 5204 6335  D26D 78DC 68DB 326D 8438

</pre>
  </div></div></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>