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

Add_rack_resource method returns NOMATCHING_ETAG_MESSAGE #226

Closed
fgbulsoni opened this issue Apr 4, 2017 · 1 comment
Closed

Add_rack_resource method returns NOMATCHING_ETAG_MESSAGE #226

fgbulsoni opened this issue Apr 4, 2017 · 1 comment

Comments

@fgbulsoni
Copy link
Contributor

Scenario/Intent

Run the OneviewSDK::Rack's method add_rack_resource to add a new resource to the rack.

Environment Details

  • OneView Appliance Version: 300/C7000

Steps to Reproduce

I've used the example and added the add_rack_resource method expecting it to work, but got issues.
Follows the updated example:

item = OneviewSDK::API300::C7000::Rack.new(@client, options)
item.add
puts "Rack #{item['name']} was added with uri='#{item['uri']}'"

enc = OneviewSDK::API300::C7000::Enclosure.find_by(@client, {}).first
item.add_rack_resource(enc)
item.update #fails at this point with the NOMATCHING_ETAG_MESSAGE message
puts "Rack #{item['name']} was updated with new enclosure '#{enc['name']}'" ## We don't really get here

Expected Result

The enclosure would've been added to the rack

Actual Result

NOMATCHING_ETAG_MESSAGE raised

@fgbulsoni
Copy link
Contributor Author

Adding info: Tried the same with an unmanaged device and had no issues. This might be specific to handling enclosures.

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

No branches or pull requests

2 participants