Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The action ModifyVolume is not valid for this web service. #363

Closed
maheshb-cuelogic opened this issue May 3, 2017 · 6 comments
Closed

Comments

@maheshb-cuelogic
Copy link

I am using modify_volume method to update volume. But when I hit the method it throws an error Fog::Compute::AWS::Error: InvalidAction => The action ModifyVolume is not valid for this web service..

irb(main):006:0> connection.modify_volume('volumeId', {'Size'=> 9})

Fog::Compute::AWS::Error: InvalidAction => The action ModifyVolume is not valid for this web service.

from /home/.gem/ruby/2.1.0/gems/excon-0.55.0/lib/excon/middlewares/expects.rb:7:in `response_call'

from /home/.gem/ruby/2.1.0/gems/excon-0.55.0/lib/excon/middlewares/response_parser.rb:9:in `response_call'

from /home/.gem/ruby/2.1.0/gems/excon-0.55.0/lib/excon/connection.rb:388:in `response'

from /home/.gem/ruby/2.1.0/gems/excon-0.55.0/lib/excon/connection.rb:252:in `request'

from /home/.gem/ruby/2.1.0/gems/fog-xml-0.1.3/lib/fog/xml/sax_parser_connection.rb:35:in `request'

from /home/.gem/ruby/2.1.0/gems/fog-xml-0.1.3/lib/fog/xml/connection.rb:7:in `request'

from /api/lib/fog/aws/compute.rb:528:in `_request'

from /api/lib/fog/aws/compute.rb:523:in `request'

Doing through CLI(works fine):

$ aws ec2 modify-volume --region ap-south-1 --volume-id vol-xxxxxxxxxxxxxxxx --size 5

{
    "VolumeModification": {
        "TargetSize": 5, 
        "TargetVolumeType": "gp2", 
        "ModificationState": "modifying", 
        "VolumeId": "vol-xxxxxxxxxxxxxxxx", 
        "TargetIops": 100, 
        "StartTime": "2017-05-03T15:21:01.444Z", 
        "Progress": 0, 
        "OriginalVolumeType": "gp2", 
        "OriginalIops": 100, 
        "OriginalSize": 4
    }
}
@geemus
Copy link
Member

geemus commented May 4, 2017

@ehowe I believe you added this, any insights into what might be going wrong?

@ehowe
Copy link
Contributor

ehowe commented May 4, 2017

The required API version is 2016-11-15 which I did update at some point (seems that it was with a different commit than when I added this), but that is the error that you would get if you were using an old API version. @maheshb-cuelogic are you explicitly passing in an API version by chance?

@geemus
Copy link
Member

geemus commented May 4, 2017

@ehowe ah, yeah that makes sense. Thanks for the update.

@maheshb-cuelogic you may want to ensure you have the latest fog-aws also, as it may be you have a version with the new method, but not the new API version (since they didn't occur at the same time).

@chanakyacool
Copy link
Contributor

chanakyacool commented May 5, 2017

@ehowe , @geemus

  • I too believe that the api_version when triggered modify_volume could be older than 2016-11-15 , i;e it would be 2014-10-01
  • if the version has been explicitly changed or fog/aws/compute.rb has different version than 2016-11-15 , please update the files to latest version and try again
  • @maheshb-cuelogic , please confirm and close if it works

@maheshb-cuelogic
Copy link
Author

Thanks guys. It was version issue. I am closing it.

@geemus
Copy link
Member

geemus commented May 5, 2017

@maheshb-cuelogic thanks for the update, glad it's working for you.

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

No branches or pull requests

4 participants