-
Notifications
You must be signed in to change notification settings - Fork 248
Closed
Description
I've got a fresh install of DevStack up and running. I've confirmed that the identify service is working appropriately using curl. I'm attempting to connect to the compute service to get some basic info (images, flavors, etc).
<?php
require 'vendor/autoload.php';
use OpenCloud\OpenStack;
$client = new OpenStack('http://localhost:5000/v2.0', array(
'username' => 'admin',
'password' => 'openstack',
'tenantName' => 'demo',
));
$compute = $client->computeService('', 'RegionOne');
$client doesn't report any errors but here's the error that I'm getting from $compute:
PHP Fatal error: Uncaught exception 'OpenCloud\Common\Exceptions\EndpointError' with message 'No endpoints for service type [compute], name [cloudServersOpenStack], region [RegionOne] and urlType [publicURL]' in /vagrant/php-openstack/vendor/rackspace/php-opencloud/lib/OpenCloud/Common/Service/CatalogService.php:216
Stack trace:
#0 /vagrant/php-openstack/vendor/rackspace/php- opencloud/lib/OpenCloud/Common/Service/CatalogService.php(90): OpenCloud\Common\Service\CatalogService->findEndpoint()
#1 /vagrant/php-openstack/vendor/rackspace/php-opencloud/lib/OpenCloud/Compute/Service.php(62): OpenCloud\Common\Service\CatalogService->__construct(Object(OpenCloud\OpenStack), NULL, '', 'RegionOne', NULL)
#2 /vagrant/php-openstack/vendor/rackspace/php-opencloud/lib/OpenCloud/Common/Service/ServiceBuilder.php(50): OpenCloud\Compute\Service->__construct(Object(OpenCloud\OpenStack), NULL, '', 'RegionOne', NULL)
#3 /vagrant/php-openstack/vendor/rackspace/php-opencloud/lib/OpenCloud/OpenStack.php(484): OpenCloud\Common\Service\ServiceBuilder in /vagrant/php-openstack/vendor/rackspace/php-opencloud/lib/OpenCloud/Common/Service/CatalogService.php on line 216
What am I missing here?
Metadata
Metadata
Assignees
Labels
No labels