Unknown Filed "key_name" in VNFD tosca of tacker

asked 2016-12-11 22:34:01 -0500

Jace.L gravatar image

updated 2016-12-12 10:26:27 -0500

Dear all, I would like to add a key pair to my VDU so, I fallowed the instruction of http://webcache.googleusercontent.com/search?q=cache:QanSAagEFLQJ:lists.openstack.org/pipermail/openstack/2016-April/015874.html+&cd=1&hl=zh-TW&ct=clnk&gl=tw
and
http://docs.openstack.org/developer/tacker/devref/vnfd_template_description.html

Then I modified my vnfd file like this

topology_template:
 node_templates:
 VDU1:
  type: tosca.nodes.nfv.VDU.Tacker
  properties:
    image: Ubuntu 14 Cloud
    flavor: m1.small
    availability_zone: nova
    mgmt_driver: noop
    key_name: key

VDU2:
  type: tosca.nodes.nfv.VDU.Tacker
  properties:
    image: Ubuntu 14 Cloud
    flavor: m1.small
    availability_zone: nova
    mgmt_driver: noop
    key_name: key

CP1:
  type: tosca.nodes.nfv.CP.Tacker
  properties:
    management: true
    order: 0
    anti_spoofing_protection: false
  requirements:
    - virtualLink:
        node: VL1
    - virtualBinding:
        node: VDU1

But when I try to create vnfd, it failed. And the error message is

tosca-parser failed: - The pre-parsed input failed validation with the following error(s):

UnknownFieldError: "properties" of template "VDU1" contains unknown field "key_name". Refer to the definition to verify valid values.
    File /usr/local/lib/python2.7/dist-packages/eventlet/greenpool.py, line 82, in _spawn_n_impl
        func(*args, **kwargs)
    File /usr/local/lib/python2.7/dist-packages/eventlet/wsgi.py, line 719, in process_request
        proto.__init__(sock, address, self)
    File /usr/lib/python2.7/SocketServer.py, line 649, in __init__
        self.handle()
    File /usr/lib/python2.7/BaseHTTPServer.py, line 340, in handle
        self.handle_one_request()
    File /usr/local/lib/python2.7/dist-packages/eventlet/wsgi.py, line 384, in handle_one_request
        self.handle_one_response()
    File /usr/local/lib/python2.7/dist-packages/eventlet/wsgi.py, line 481, in handle_one_response
        result = self.application(self.environ, start_response)
    File /usr/local/lib/python2.7/dist-packages/paste/urlmap.py, line 216, in __call__
        return app(environ, start_response)
    File /usr/local/lib/python2.7/dist-packages/webob/dec.py, line 130, in __call__
        resp = self.call_func(req, *args, **self.kwargs)
    File /usr/local/lib/python2.7/dist-packages/webob/dec.py, line 195, in call_func
        return self.func(req, *args, **kwargs)
    File /usr/local/lib/python2.7/dist-packages/oslo_middleware/request_id.py, line 37, in __call__
        response = req.get_response(self.application)
    File /usr/local/lib/python2.7/dist-packages/webob/request.py, line 1317, in send
        application, catch_exc_info=False)
    File /usr/local/lib/python2.7/dist-packages/webob/request.py, line 1281, in call_application
        app_iter = application(self.environ, start_response)
    File /usr/local/lib/python2.7/dist-packages/webob/dec.py, line 130, in __call__
        resp = self.call_func(req, *args, **self.kwargs)
    File /usr/local/lib/python2.7/dist-packages/webob/dec.py, line 195, in call_func
        return self.func(req, *args, **kwargs)
    File /usr/local/lib/python2.7/dist-packages/oslo_middleware/catch_errors.py, line 38, in __call__
        response = req.get_response(self.application)
    File /usr/local/lib/python2.7/dist-packages/webob/request.py, line 1317, in send
        application, catch_exc_info=False)
    File /usr/local/lib/python2.7/dist-packages/webob/request.py, line 1281, in call_application
        app_iter = application(self.environ, start_response)
    File /usr/local/lib/python2.7/dist-packages/webob/dec.py, line 130, in __call__
        resp = self.call_func(req, *args, **self.kwargs)
    File /usr ...
(more)
edit retag flag offensive close merge delete