openstack: Endpoint URL could not be found in the catalog for this service
Hello,
I have a problem with that authentification code:
require ‘vendor/autoload.php’;
$openstack = new OpenStack\OpenStack([
'authUrl' => '{authUrl}',
'region' => '{region}',
'user' => [
'id' => '{userId}',
'password' => '{password}'
],
'scope' => ['project' => ['id' => '{projectId}']]
]);
I change all these settings to my configuration.
Return to me that errror : When authenticating with a username, you must also provide either the domain name or domain ID to which the user belongs to. Alternatively, if you provide a user ID instead, you do not need to provide domain information.
So i changed to that one code adding domain information at the user array :
$openstack = new OpenStack\OpenStack([
'authUrl' => '{authUrl}',
'region' => '{region}',
'user' => [
'id' => '{userId}',
'domain' => ['id' => 'default'],
'password' => '{password}'
],
'scope' => ['project' => ['id' => '{projectId}']]
]);
But i got that error now : Endpoint URL could not be found in the catalog for this service. Name: swift Type: object-store Region: GRA1 URL type: public
The old API worked well with username password and tenantID. What can i do ? Thanks in advance.
About this issue
- Original URL
- State: open
- Created 8 years ago
- Comments: 20
Hi, after investigating, I solved the problem with the following code: