[Rdo-list] Fwd: [OpenStack-docs] [install-guide] (not that much) progress with Kilo install on RHEL/Centos 7
Bernd Bausch
berndbausch at gmail.com
Fri Apr 17 06:40:48 UTC 2015
It works!
My repos needed fixing, after which I have:
- a Centos 7 base installation
- epel 7.5
- openstack-kilo
- delorean
With that, my second problem (glance client refusing to cooperate) is gone.
And permissive mode is indeed a workaround for problem 2.
On the way to success, I noticed that openstack-glance doesn't have the
right set of dependencies in the delorean repo. I installed
openstack-glance-api, ...-registry, ...-doc and ...-common manually. Is this
considered a bug or are such wrinkles normal at this stage?
Thanks! I will be back with further problems. Perhaps.
Bernd
-----Original Message-----
From: Lars Kellogg-Stedman [mailto:lars at redhat.com]
Sent: Friday, April 17, 2015 1:35 AM
To: Bernd Bausch
Cc: 'rdo-list'
Subject: Re: [Rdo-list] Fwd: [OpenStack-docs] [install-guide] (not that
much) progress with Kilo install on RHEL/Centos 7
> ----------------------------------------------------------
> 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/
More information about the dev
mailing list