Ask Your Question
0

Error using PHPOpenCloud - OpenStack

asked 2014-05-05 08:04:36 -0500

mani619cash gravatar image

updated 2014-05-05 08:50:57 -0500

I have installed OpenStack using DevStack script on single machine.

I want to make use of Swift services via OpenCloud SDK.

<?php
require_once 'vendor/autoload.php';
use OpenCloud\OpenStack;

$client = new OpenStack('http://192.168.171.131:8080/v1/AUTH_93c5fe7a60b64f2f81560999d5f63861', array(
      'username' => 'admin',
        'password' => 'devstack',
        'tenant' => 'admin'));
   try{
     $objectStoreService = 
     $client->objectStoreService('swift','RegionOne','publicURL'); 
     } 
     catch (Guzzle\Http\Exception\ClientErrorResponseException $e) {
     echo $e->getResponse(); 
     }
?>

And getting error as shown in below image.

http://i.stack.imgur.com/UKLOm.jpg

Some one said it is only for RackSpace cloud. True? Or I can use PHPOpenCloud for my locally deployed OpenStack cloud?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2016-08-12 03:09:34 -0500

Hamzoz gravatar image

Hi ! You can use php opencloud for your Openstack cloud. the official documentation is here : http://php-opencloudopenstack.readthedocs.io/en/latest/services/block-storage/v2/index.html (http://php-opencloudopenstack.readthe...)

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

Stats

Asked: 2014-05-05 08:04:36 -0500

Seen: 147 times

Last updated: Aug 12 '16