<div dir="ltr">I forget which thread we're on now, but apparently the glance client/server (and associated workflow for images) changed between kilo-2 and kilo-3. We need to address this in the installation guide (and probably every other piece of documentation)... once I can figure out how it works now because people like to make significant changes without documenting them and the client help is useless.</div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Apr 16, 2015 at 11:35 AM, Lars Kellogg-Stedman <span dir="ltr"><<a href="mailto:lars@redhat.com" target="_blank">lars@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">> ----------------------------------------------------------<br>
> PROBLEM 1: I am unable to use memcached as token backend<br>
> ----------------------------------------------------------<br>
><br>
> In keystone.conf:<br>
><br>
>     [token]<br>
>     driver=keystone.token.persistence.backends.memcache.Token<br>
><br>
> An attempt to request a token hangs, either ``openstack token issue`` or<br>
> ``curl -i -X POST <a href="http://kilocontrol:35357/v2.0/tokens" target="_blank">http://kilocontrol:35357/v2.0/tokens</a> ...``. On the server<br>
> side, the hang is in the method() call inside<br>
<br>
</span>This appears to be an selinux issue:<br>
<br>
  # audit2allow -a<br>
  #============= keystone_t ==============<br>
  allow keystone_t memcache_port_t:tcp_socket name_connect;<br>
<br>
If I put selinux in permissive mode, I am able to successfully use the<br>
memcache driver.<br>
<span class=""><br>
> ----------------------------------------------<br>
> Problem 2: glance image-create doesn't work<br>
> ----------------------------------------------<br>
><br>
> Using API version 2:<br>
><br>
>     # glance image-create --name "cirros-0.3.3-x86_64" --file<br>
> /tmp/images/cirros-0.3.3-x86_64-disk.img --disk-format qcow2<br>
> --container-format bare --visibility public --progress<br>
>     usage: glance [--version] [-d] [-v] [--get-schema] [--timeout TIMEOUT]<br>
>     ...<br>
>     glance: error: unrecognized arguments: --name --disk-format qcow2<br>
> --container-format bare --visibility public<br>
<br>
</span>I am not able to reproduce your problem.  By default, the glance<br>
client operates with API version 1, so you would use the '--is-public'<br>
parameter:<br>
<br>
    glance image-create --name cirros-public \<br>
      --file cirros-0.3.3-x86_64-disk.img  --disk-format qcow2 \<br>
      --container-format bare --is-public True<br>
<br>
If you use version 2 of the API, '--is-public' is replaced with<br>
'--visibility':<br>
<br>
    glance --os-image-api-version=2 image-create --name cirros-public \<br>
      --file cirros-0.3.3-x86_64-disk.img  --disk-format qcow2 \<br>
      --container-format bare --visibility public<br>
<br>
Both of these commands worked successfully for me.<br>
<div class="HOEnZb"><div class="h5"><br>
--<br>
Lars Kellogg-Stedman <<a href="mailto:lars@redhat.com">lars@redhat.com</a>> | larsks @ {freenode,twitter,github}<br>
Cloud Engineering / OpenStack          | <a href="http://blog.oddbit.com/" target="_blank">http://blog.oddbit.com/</a><br>
<br>
</div></div><br>_______________________________________________<br>
Rdo-list mailing list<br>
<a href="mailto:Rdo-list@redhat.com">Rdo-list@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/rdo-list" target="_blank">https://www.redhat.com/mailman/listinfo/rdo-list</a><br>
<br>
To unsubscribe: <a href="mailto:rdo-list-unsubscribe@redhat.com">rdo-list-unsubscribe@redhat.com</a><br></blockquote></div><br></div>