Not able to update the default_tls_container and sni_container attribute for the lbaas listener
root@a5d01e09-1:/opt/contrail-test# neutron --debug lbaas-listener-update --default-tls-container=http://10.87.143.105:9311/v1/containers/6e443e66-82da-4f31-8b80-43310d34b0d0 32c4416e-a2e9-4a96-ae50-94a4774fd23a
DEBUG: keystoneclient.session REQ: curl -g -i -X GET http://10.87.143.105:5000/v2.0/ -H "Accept: application/json" -H "User-Agent: python-keystoneclient"
DEBUG: keystoneclient.session RESP: [200] Content-Length: 339 Vary: X-Auth-Token X-Distribution: Ubuntu Connection: keep-alive Date: Fri, 08 Jul 2016 21:42:11 GMT Content-Type: application/json X-Openstack-Request-Id: req-435e5dcb-4d81-4142-a5c7-d0bb847e3977
RESP BODY: {"version": {"status": "stable", "updated": "2014-04-17T00:00:00Z", "media-types": [{"base": "application/json", "type": "application/vnd.openstack.identity-v2.0+json"}], "id": "v2.0", "links": [{"href": "http://10.87.143.105:5000/v2.0/", "rel": "self"}, {"href": "http://docs.openstack.org/", "type": "text/html", "rel": "describedby"}]}}
DEBUG: neutronclient.neutron.v2_0.lb.v2.listener.UpdateListener run(Namespace(id=u'32c4416e-a2e9-4a96-ae50-94a4774fd23a', request_format='json'))
DEBUG: keystoneclient.auth.identity.v2 Making authentication request to http://10.87.143.105:5000/v2.0/tokens
DEBUG: keystoneclient.session REQ: curl -g -i -X GET http://10.87.143.105:9696/v2.0/lbaas/listeners.json?fields=id&id=32c4416e-a2e9-4a96-ae50-94a4774fd23a -H "User-Agent: python-neutronclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}f239ece70bbf9d737091a6b7e7f3a7750a60627d"
DEBUG: keystoneclient.session RESP: [200] Date: Fri, 08 Jul 2016 21:42:11 GMT Content-Length: 63 Content-Type: application/json; charset=UTF-8 X-Openstack-Request-Id: req-737b923a-64d2-41c7-87d4-4fd589dee87b
RESP BODY: {"listeners": [{"id": "32c4416e-a2e9-4a96-ae50-94a4774fd23a"}]}
DEBUG: keystoneclient.session REQ: curl -g -i -X PUT http://10.87.143.105:9696/v2.0/lbaas/listeners/32c4416e-a2e9-4a96-ae50-94a4774fd23a.json -H "User-Agent: python-neutronclient" -H "Content-Type: application/json" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}f239ece70bbf9d737091a6b7e7f3a7750a60627d" -d '{"listener": {"default_tls_container": "http://10.87.143.105:9311/v1/containers/6e443e66-82da-4f31-8b80-43310d34b0d0"}}'
DEBUG: keystoneclient.session RESP: [400] Date: Fri, 08 Jul 2016 21:42:11 GMT Content-Length: 122 Content-Type: application/json; charset=UTF-8 X-Openstack-Request-Id: req-966d8e64-5f82-4c82-9271-41aa15028999
RESP BODY: {"NeutronError": {"message": "Unrecognized attribute(s) 'default_tls_container'", "type": "HTTPBadRequest", "detail": ""}}
DEBUG: neutronclient.v2_0.client Error message: {"NeutronError": {"message": "Unrecognized attribute(s) 'default_tls_container'", "type": "HTTPBadRequest", "detail": ""}}
ERROR: neutronclient.shell Unrecognized attribute(s) 'default_tls_container'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/neutronclient/shell.py", line 835, in run_subcommand
return run_command(cmd, cmd_parser, sub_argv)
File "/usr/lib/python2.7/dist-packages/neutronclient/shell.py", line 113, in run_command
return cmd.run(known_args)
File "/usr/lib/python2.7/dist-packages/neutronclient/neutron/v2_0/__init__.py", line 560, in run
obj_updater(_id, body)
File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 102, in with_params
ret = self.function(instance, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 1114, in update_listener
body=body)
File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 302, in put
headers=headers, params=params)
File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 270, in retry_request
headers=headers, params=params)
File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 211, in do_request
self._handle_fault_response(status_code, replybody)
File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 185, in _handle_fault_response
exception_handler_v20(status_code, des_error_body)
File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 70, in exception_handler_v20
status_code=status_code)
BadRequest: Unrecognized attribute(s) 'default_tls_container'
please try with the below changes.
use --default_ tls_container_ ref instead of --default- tls-container and use --sni_container _refs instead of --sni-container.
Thanks,
Yuvaraja