[Rdo-list] Fwd: [OpenStack-docs] [install-guide] (not that much) progress with Kilo install on RHEL/Centos 7

Lars Kellogg-Stedman lars at redhat.com
Thu Apr 16 16:35:18 UTC 2015


> ----------------------------------------------------------
> PROBLEM 1: I am unable to use memcached as token backend
> ----------------------------------------------------------
> 
> In keystone.conf:
> 
>     [token]
>     driver=keystone.token.persistence.backends.memcache.Token
> 
> An attempt to request a token hangs, either ``openstack token issue`` or
> ``curl -i -X POST http://kilocontrol:35357/v2.0/tokens ...``. On the server
> side, the hang is in the method() call inside

This appears to be an selinux issue:

  # audit2allow -a
  #============= keystone_t ==============
  allow keystone_t memcache_port_t:tcp_socket name_connect;

If I put selinux in permissive mode, I am able to successfully use the
memcache driver.

> ----------------------------------------------
> Problem 2: glance image-create doesn't work
> ----------------------------------------------
> 
> Using API version 2:
> 
>     # glance image-create --name "cirros-0.3.3-x86_64" --file
> /tmp/images/cirros-0.3.3-x86_64-disk.img --disk-format qcow2
> --container-format bare --visibility public --progress
>     usage: glance [--version] [-d] [-v] [--get-schema] [--timeout TIMEOUT] 
>     ...
>     glance: error: unrecognized arguments: --name --disk-format qcow2
> --container-format bare --visibility public

I am not able to reproduce your problem.  By default, the glance
client operates with API version 1, so you would use the '--is-public'
parameter:

    glance image-create --name cirros-public \
      --file cirros-0.3.3-x86_64-disk.img  --disk-format qcow2 \
      --container-format bare --is-public True

If you use version 2 of the API, '--is-public' is replaced with
'--visibility':

    glance --os-image-api-version=2 image-create --name cirros-public \
      --file cirros-0.3.3-x86_64-disk.img  --disk-format qcow2 \
      --container-format bare --visibility public

Both of these commands worked successfully for me.

-- 
Lars Kellogg-Stedman <lars at redhat.com> | larsks @ {freenode,twitter,github}
Cloud Engineering / OpenStack          | http://blog.oddbit.com/

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.rdoproject.org/pipermail/dev/attachments/20150416/3bd8601f/attachment.sig>


More information about the dev mailing list