Skip to content
This repository has been archived by the owner on Aug 17, 2019. It is now read-only.

Version for scaleio api 1.3 #6

Closed
koboltmarky opened this issue Dec 29, 2015 · 7 comments
Closed

Version for scaleio api 1.3 #6

koboltmarky opened this issue Dec 29, 2015 · 7 comments

Comments

@koboltmarky
Copy link

Hi,

are there any plans in the near future for a version which is compatible with the scaleio API Version 1.3 ?

Greets
Marc

@clintkitson
Copy link
Contributor

Hello Marc,

I assume you are referring to the SIO 1.3 API? Today it does support this
version. The project is focused however on incremental additions based on
need versus exposing 100% of the API. If there is something specific
missing or I didn't interpret the question correctly let me know.

On Tuesday, December 29, 2015, Marc Zimmermann notifications@github.com
wrote:

Hi,

are there any plans in the near future for a version which is compatible
with the rexray API Version 1.3 ?

Greets
Marc


Reply to this email directly or view it on GitHub
#6.

@koboltmarky
Copy link
Author

Hi Cliton,

i tried to use Rexray 0.3 with the "EMC-ScaleIO-gateway.x86_64 2.0-764.0".
This produce the following error on the scaleio gateway:

"2015-12-29 13:58:54,730 [http-nio-443-exec-8] WARN c.e.s.s.w.c.SpecialImplController - unexpected error: 406 Requested REST API version is not supported. Supported version is 1.3"

With my really basic knowledge of go i thought this is because rexray use the goscaleio library, which not supported this version yet.

Maybe I'm wrong then sorry for the confusion.

Marc

@clintkitson
Copy link
Contributor

Interesting. I will take a look into this shortly.

On Tuesday, December 29, 2015, Marc Zimmermann notifications@github.com
wrote:

Hi Cliton,

i tried to use Rexray 0.3 with the "EMC-ScaleIO-gateway.x86_64 2.0-764.0".
This produce the following error on the scaleio gateway:

"2015-12-29 13:58:54,730 [http-nio-443-exec-8] WARN
c.e.s.s.w.c.SpecialImplController - unexpected error: 406 Requested REST
API version is not supported. Supported version is 1.3"

With my really basic knowledge of go i thought this is because rexray use
the goscaleio library, which not supported this version yet.

Maybe I'm wrong then sorry for the confusion.

Marc


Reply to this email directly or view it on GitHub
#6 (comment).

@clintkitson
Copy link
Contributor

Can you refer to the API documentation? Currently I believe the docs specified to solely issue the following header. If this has changed, then it would be a reason that the 2.0 API gateway complains. Replacing this statement in any occurence could then fix the problem if the API calls are backwards compatible.

req.Header.Add("Accept", "application/json;version=1.0")

@koboltmarky
Copy link
Author

Unfortunately i don't have a valid documentation for the rest api of the 2.0 gateway.
But it seems that the version string have changed:

http --verify no --auth admin:XXXXXXXXX GET https://xxxxxxxxxx/api/login Accept:"application/json;version=1.0"
HTTP/1.1 500 Internal Server Error
Cache-Control: no-cache
Cache-Control: no-store
Connection: close
Content-Encoding: gzip
Content-Type: application/json; version=1.0
Date: Tue, 29 Dec 2015 20:02:28 GMT
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Pragma: no-cache
Server: Apache-Coyote/1.1
Transfer-Encoding: chunked
Vary: Accept-Encoding
{
    "errorCode": 0, 
    "httpStatusCode": 500, 
    "message": "org.springframework.web.client.HttpClientErrorException: 406 Requested REST API version is not supported. Supported version is 1.3"
}

With 1.3:

http --verify no --auth admin:xxxxxxxxxx GET https://xxxxxxxxxxxx/api/login Accept:"application/json;version=1.3"
HTTP/1.1 200 OK
Cache-Control: no-cache
Cache-Control: no-store
Content-Encoding: gzip
Content-Type: application/json; version=1.3
Date: Tue, 29 Dec 2015 20:05:05 GMT
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Pragma: no-cache
Server: Apache-Coyote/1.1
Transfer-Encoding: chunked
Vary: Accept-Encoding
"YWRtaW46MTQ1MTQ0ODMwNTAwNTo5ZWQ3YWZmNGExMmU2NTU3MDM0YjYzODNlNWRhMTJKITZ"

No version header also works.

@clintkitson
Copy link
Contributor

Good info for now. Without seeing the docs myself it's tough to say
whether the rest of the functionality will work if they are now enforcing
API versions. Typically is done because there are breaking changes that
are present in the structure.

On Tuesday, December 29, 2015, Marc Zimmermann notifications@github.com
wrote:

Unfortunately i don't have a valid documentation for the rest api of the
2.0 gateway.
But it seems that the version string have changed:

http --verify no --auth admin:XXXXXXXXX GET https://xxxxxxxxxx/api/login Accept:"application/json;version=1.0"
HTTP/1.1 500 Internal Server Error
Cache-Control: no-cache
Cache-Control: no-store
Connection: close
Content-Encoding: gzip
Content-Type: application/json; version=1.0
Date: Tue, 29 Dec 2015 20:02:28 GMT
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Pragma: no-cache
Server: Apache-Coyote/1.1
Transfer-Encoding: chunked
Vary: Accept-Encoding

{
"errorCode": 0,
"httpStatusCode": 500,
"message": "org.springframework.web.client.HttpClientErrorException: 406 Requested REST API version is not supported. Supported version is 1.3"
}

With 1.3:

http --verify no --auth admin:xxxxxxxxxx GET https://xxxxxxxxxxxx/api/login Accept:"application/json;version=1.3"
HTTP/1.1 200 OK
Cache-Control: no-cache
Cache-Control: no-store
Content-Encoding: gzip
Content-Type: application/json; version=1.3
Date: Tue, 29 Dec 2015 20:05:05 GMT
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Pragma: no-cache
Server: Apache-Coyote/1.1
Transfer-Encoding: chunked
Vary: Accept-Encoding

"YWRtaW46MTQ1MTQ0ODMwNTAwNTo5ZWQ3YWZmNGExMmU2NTU3MDM0YjYzODNlNWRhMTJKITZ"

No version header also works.


Reply to this email directly or view it on GitHub
#6 (comment).

@koboltmarky koboltmarky changed the title Version for rexray api 1.3 Version for scaleio api 1.3 Jan 3, 2016
@clintkitson
Copy link
Contributor

1.3 and 2.0 are supported as of #10

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants