Closed DungKHoang closed 4 years ago
@DungKHoang , Can you please post the error here?
Here is the error:
TASK [Create network set ecm_oam_NS] ***
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: HPOneViewException: (u'Unrecognized JSON field.', {u'errorSource': None, u'recommendedActions': [u'Check the valid fields for this JSON object and remove or correct the unrecognized field.'], u'data': {}, u'errorCode': u'UNRECOGNIZED_JSON_FIELD', u'details': u'The field named bandwidth near line 1, column 173 is not a valid field in this JSON object.', u'message': u'Unrecognized JSON field.', u'nestedErrors': []})
fatal: [localhost]: FAILED! => {"changed": false, "module_stderr": "Traceback (most recent call last):\n File \"/home/dung/.ansible/tmp/ansible-tmp-1567530578.49-239095104213204/AnsiballZ_oneview_network_set.py\", line 114, in
BTW, the oneview_network_set_facts does not return bandwidth here is the result: TASK [debug] *** ok: [localhost] => { "network_sets": [ { "category": "network-sets", "connectionTemplateUri": "/rest/connection-templates/f75b922a-6dbc-4aa7-a2c8-6a3cf8273156", "created": "2019-09-04T00:07:34.567Z", "description": null, "eTag": "c1aa9e0e-f40d-47a8-8cc1-73f36e3ced63", "modified": "2019-09-04T00:07:34.570Z", "name": "test", "nativeNetworkUri": null, "networkSetType": "Regular", "networkUris": [], "scopesUri": "/rest/scopes/resources/rest/network-sets/4230c169-237b-4e70-a0d3-ffe47314c5a6", "state": "Active", "status": "OK", "type": "network-setV4", "uri": "/rest/network-sets/4230c169-237b-4e70-a0d3-ffe47314c5a6" } ] }
@DungKHoang Bandwidth feature is not supported in Network_set resource as of now. We are working on this, we will update you once it is available.
Closing it because this is the duplicate issue of #380.
Scenario/Intent
Configure NetworkSet with TypicalBandwidth and MaximumBandwidth
Environment Details
Steps to Reproduce
Set Bandwidth list with typical and maximumbandwidth in playbook ( follow example of network)
Expected Result
Should set bandwidth on network set
Actual Result
Error when running playbook