You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now, this is not possible to do. We should definitely add this ability though, since it's a fairly standard use case. I imagine you'd pass in options as a new constructor key to the OpenStack builder. What do you think @haphan?
@jamiehannaford
I agree that requestOptions need to pass to OpenStack since a HTTP client is also created here.
Regarding requestOption, I think it'd better to directly use array $options['requestOptions'] to OpenStack class. This options will also be fed into Builder.
@BorderCloud Looks like environment issue for me. Are you running Centos with SELINUX enabled? Reference: guzzle/guzzle#1001
When an invalid pem file is supplied, this is what I got: Fatal error: Uncaught InvalidArgumentException: SSL CA bundle not found: /not/valid/ca.pem in /app/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php:331
Client error: `POST https://keystone.....:5000/v3/auth/tokens` resulted in a `401 Unauthorized` response:
{"error": {"message": "The request you have made requires authentication.", "code": 401, "title": "Unauthorized"}}
Client error: POST https://keystone.....:5000/v3/auth/tokens resulted in a 401 Unauthorized response:
{"error": {"message": "The request you have made requires authentication.", "code": 401, "title": "Unauthorized"}}
Activity
jamiehannaford commentedon Jun 20, 2016
Right now, this is not possible to do. We should definitely add this ability though, since it's a fairly standard use case. I imagine you'd pass in options as a new constructor key to the
OpenStackbuilder. What do you think @haphan?haphan commentedon Jun 20, 2016
@jamiehannaford 👍 for having a new constructor key in
OpenCloud\Common\Service\Builder.Propose PR: php-opencloud/common#3
BorderCloud commentedon Jun 20, 2016
Hello
How to insert the option verify in this example ?
Thanks
haphan commentedon Jun 21, 2016
@BorderCloud Updated
Until @jamiehannaford is going tag
php-opencloud/common, you will have to manually specifyphp-opencloud/common: dev-masterin yourcomposer.jsonUpdate: correct sample code
jamiehannaford commentedon Jun 21, 2016
php-opencloud/common:v1.0.4is now releasedhaphan commentedon Jun 21, 2016
@jamiehannaford btw can you also tag
php-opencloud/openstack?BorderCloud commentedon Jun 21, 2016
Thanks, I suppose Builder waits a list of parameters in the array because I have now messages like:
Can you give a example with builder ? I am a newbie on openstack...
Thanks
Karima
jamiehannaford commentedon Jun 21, 2016
@haphan @BorderCloud I think we should add
requestOptionsto the OpenStack class. That could be fed into the service builder.haphan commentedon Jun 22, 2016
@jamiehannaford
I agree that
requestOptionsneed to pass toOpenStacksince a HTTP client is also created here.Regarding
requestOption, I think it'd better to directly usearray $options['requestOptions']to OpenStack class. This options will also be fed intoBuilder.haphan commentedon Jun 22, 2016
what do you think @jamiehannaford
#63
php-opencloud/common#4
haphan commentedon Jun 22, 2016
@BorderCloud See my updated sample code above. You may need to run
composer update php-opencloud/openstackto fetch latest version.BorderCloud commentedon Jun 23, 2016
Ok I have the version Installing php-opencloud/common (v1.0.5)
But I always the message
cURL error 7: Permission deniedIf I test with a bad file, the message is always the same... Strange...
An idea ?
haphan commentedon Jun 23, 2016
@BorderCloud Looks like environment issue for me. Are you running Centos with SELINUX enabled? Reference: guzzle/guzzle#1001
When an invalid pem file is supplied, this is what I got:
Fatal error: Uncaught InvalidArgumentException: SSL CA bundle not found: /not/valid/ca.pem in /app/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php:331BorderCloud commentedon Jun 23, 2016
Ok without SELinux I have now the message
A problem in the lib or in the config ?
haphan commentedon Jun 23, 2016
Check your openstack crendential.
On Thursday, 23 June 2016, Karima Rafes notifications@github.com wrote:
haphan commentedon Jun 24, 2016
Issued resolved.