← Back to team overview

cssoss team mailing list archive

[Bug 1012701] Re: glance index fails after following os compute starter guide

 

Hello,

Since last time, I restarted the configuration from the very beginning
and posted some shell commands I used to automate the most error-prone
parts on the documentation website.

I think I made a mistake when creating endpoints but don't know where. This time I've created endpoints with this code and it works:
keystone service-list \
	| perl -aF'\s*\|\s*' -ne '
		my $hd = "http://192.168.1.25";;
		# service -> [ public, admin, internal ] url tails
		my %tl = (
			nova => [ ":8774/v2/\$(tenant_id)s", ":8774/v2/\$(tenant_id)s", ":8774/v2/\$(tenant_id)s" ],
			volume => [ ":8776/v1/\$(tenant_id)s", ":8776/v1/\$(tenant_id)s", ":8776/v1/\$(tenant_id)s" ],
			glance => [ ":9292/v1", ":9292/v1", ":9292/v1" ],
			swift => [ ":8080/v1/AUTH_\$(tenant_id)s", ":8080/v1", ":8080/v1/AUTH_\$(tenant_id)s" ],
			keystone => [ ":5000/v2.0", ":35357/v2.0", ":5000/v2.0" ],
			ec2 => [ ":8773/services/Cloud", ":8773/services/Admin", ":8773/services/Cloud" ],
		);
		next if scalar @F < 4 or $. < 3 or not $tl{$F[2]};
		system "keystone", "endpoint-create", "--region", "myregion", "--service_id", $F[1], "--publicurl", "$hd$tl{$F[2]}[0]", "--adminurl", "$hd$tl{$F[2]}[1]", "--internalurl", "$hd$tl{$F[2]}[2]";

The problem is fixed for me :)

Maybe an extra package "openstack-starterguide-toolkit" with few scripts
would be usefull to ease configuration?

Regards,

-- 
You received this bug notification because you are a member of CSS OSS
Team, which is subscribed to OpenStack Book.
Matching subscriptions: OpenStackBook
https://bugs.launchpad.net/bugs/1012701

Title:
  glance index fails after following os compute starter guide

Status in OpenStack Book for Ubuntu:
  New

Bug description:
  Hello,

  I've been following the attached documentation "OpenStack Compute
  Starter Guide - May 4, 2012 - essex" to setup an openstack demo, up to
  page 17 when endpoinds have been configured.

  * The error message printed by 'glance index' is:
  $ glance index
  Failed to show index. Got error:
  An object with the specified identifier was not found.
  Details: 404 Not Found

  The resource could not be found.

  
  * Open ports on the server are:
  Active Internet connections (only servers)
  Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
  tcp        0      0 0.0.0.0:3306            0.0.0.0:*               LISTEN      -               
  tcp        0      0 0.0.0.0:9292            0.0.0.0:*               LISTEN      -               
  tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      -               
  tcp        0      0 0.0.0.0:35357           0.0.0.0:*               LISTEN      -               
  tcp        0      0 0.0.0.0:9191            0.0.0.0:*               LISTEN      -               
  tcp        0      0 0.0.0.0:5000            0.0.0.0:*               LISTEN      -               
  tcp6       0      0 :::22                   :::*                    LISTEN      -    

  
  I suspect a wrong url or port number when configuring endpoints with admin and internal urls, but didn't found anything wrong yet. The error message didn't tell which identifier it was looking for.

To manage notifications about this bug go to:
https://bugs.launchpad.net/openstackbook/+bug/1012701/+subscriptions