Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
Fedora 16
Deltacloud git commit; 61ac9fef965dd7d1af7c213357ea7d66630d88d7 R clone: from https://git-wip-us.apache.org/repos/asf/deltacloud.git
Description
Using deltacloud ruby client, create an instance with a name longer than 50 chars:
DeltaCloud.new( API_NAME, API_PASSWORD, API_URL ) do |client|
instance = client.create_instance( '359123e1-d343-40be-ae1d-df180cdf65ef',
:hardware_profile=>'SERVER',
:name=>"rlandyLaunchClientWithNameLongerThanSixtyCharactersTotestJiraOut")
Client throws:
1) launch test should allow creation of new instances
Failure/Error: instance = client.create_instance( '359123e1-d343-40be-ae1d-df180cdf65ef',
DeltaCloud::HTTPError::BadRequest:
400
DeltaCloud::HTTPError::ClientError: The request could not be understood by the server due to malformed syntax.
- ./lib/errors.rb:77:in `on'
- ./lib/errors.rb:105:in `client_error'
- ./lib/errors.rb:72:in `instance_eval'
- ./lib/errors.rb:72:in `initialize'
- ./lib/errors.rb:103:in `new'
- ./lib/errors.rb:103:in `client_error'
- ./lib/deltacloud.rb:359:in `response_error'
- ./lib/deltacloud.rb:391:in `request'
- ./lib/deltacloud.rb:390:in `send'
- ./lib/deltacloud.rb:390:in `request'
- ./lib/deltacloud.rb:316:in `method_missing'
- ./specs/launchclient_spec.rb:27
- ./lib/deltacloud.rb:82:in `initialize'
- ./lib/deltacloud.rb:41:in `new'
- ./lib/deltacloud.rb:41:in `new'
- ./specs/launchclient_spec.rb:26
Finished in 0.07303 seconds
1 example, 1 failure
Failed examples:
rspec ./specs/launchclient_spec.rb:25 # launch test should allow creation of new instances
rake aborted!
Looking at the server logs, "RuntimeError:Parameter name must be 50 characters or less" ... however this message is not passed to the client