Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

keystone api project problem need your help

Hi ALL :)

I'm using PHPOpenCloud API in order to create a new Project. My OpenStack installation is empty, there are no projects only its Default domain.

In order I can issue an API command, I need to create an identityV3 instance, so I issue:

$openstack = new OpenStack([ 'authUrl' => 'http://192.168.4.6:5000/v3', 'region' => 'RegionOne', 'user' => [ 'id' => $user_id, 'password' => $password, ], 'scope' => [ 'domain' => [ 'id' => $domain->openstack_id ] ]; ]);

$project = $api->createProject([ 'enabled' => True, 'name' => $name, 'description' => $description, 'domainId' => $domain->openstack_id, ]);

But it throws me: Call to a member function getServiceUrl() on null in ../php-opencloud/openstack/src/Identity/v3/Service.php

This never happens if I instance identityV3 with:

$this->openstack = new OpenStack([ 'authUrl' => 'http://192.168.4.6:5000/v3', 'region' => 'RegionOne', 'user' => [ 'id' => $user_id, 'password' => $password, ], 'scope' => [ 'project' => [ 'id' => $project->openstack_id ] ]; ]);

... but, of course, I don't have any project yet!