You might try setting the OS_TENANT_NAME environment variable (in addition to OS_PROJECT_NAME) and then try the glance image-create command again. Still investigating further.

On Thu, Apr 16, 2015 at 2:29 PM, Matt Kassawara <mkassawara@gmail.com> wrote:
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.

On Thu, Apr 16, 2015 at 11:35 AM, Lars Kellogg-Stedman <lars@redhat.com> wrote:
> ----------------------------------------------------------
> 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@redhat.com> | larsks @ {freenode,twitter,github}
Cloud Engineering / OpenStack          | http://blog.oddbit.com/


_______________________________________________
Rdo-list mailing list
Rdo-list@redhat.com
https://www.redhat.com/mailman/listinfo/rdo-list

To unsubscribe: rdo-list-unsubscribe@redhat.com