Hi Victor, I’ve got some following-up questions
1. SSH key pairs for VM When saying to use inject file to handle this, do you mean to inject ssh public key to ~/.ssh/authorized_keys file within in the VM? 2. cloudinit user scripts I’ve looked at the inject file definition in IM. Here I’ve several questions about inject file: - According to IM, the inject file property “Describes the information (e.g. URL) about the scripts, config drive metadata, etc. which can be used during Vdu booting process.” Do we need to specify the destination pathname within the VM image for the injected scripts? Openstack needs this kind of information. - vCPE usecase’s cloudinit scripts needs to get some run-time dynamic properties & attributes of other VDUs, do we have a mechanism to pass those property/attribute values to the inject files? - Why can’t we leverage the existing tosca.interfaces.node.lifecycle.Standard interface, just like https://github.com/openstack/tosca-parser/blob/master/toscaparser/tests/data/CSAR/tosca_elk/Definitions/tosca_elk.yaml#L79 . This could solve the above run-time properties issue. BR -Lianhao From: Gaoweitao (Victor, MANO) [mailto:[email protected]] Sent: Tuesday, March 20, 2018 9:48 AM To: Lu, Lianhao <[email protected]>; [email protected] Cc: [email protected]; Vul, Alex <[email protected]>; Huang, Haibin <[email protected]> Subject: 答复: [model][vCPE] Things missing in Onap Tosca DM? Hi Lianhao, Please see my comments inline. BR Victor 发件人: Lu, Lianhao [mailto:[email protected]] 发送时间: 2018年3月19日 19:25 收件人: [email protected]<mailto:[email protected]> 抄送: [email protected]<mailto:[email protected]>; Vul, Alex <[email protected]<mailto:[email protected]>>; Gaoweitao (Victor, MANO) <[email protected]<mailto:[email protected]>>; Huang, Haibin <[email protected]<mailto:[email protected]>> 主题: [model][vCPE] Things missing in Onap Tosca DM? Hi Guys, I’m now looking at the vCPE usecase (https://wiki.onap.org/pages/viewpage.action?pageId=3246168#UseCase:ResidentialBroadbandvCPE(Approved)-Description), and try to convert its heat template(https://git.onap.org/demo/tree/heat/vCPE) into latest onap Tosca DM (https://wiki.onap.org/display/DW/Data+Model+align+with+TOSCA+NFV+Profile ). I found the following things in heat and can NOT find the corresponding mapping in the Tosca DM. 1. SSH key pairs for VM Heat supports creating ssh keypair for VM to enable login with ssh public/private keys. However I could not find corresponding in latest onap tosca DM. Should we support this in tosca DM? Victor: I think inject file could handle this. 2. cloudinit user scripts In heat, vCPE uses cloudinit user script to executed within the VM after VM has been launched to configure the VNF softwares within the VM. However, in tosca DM, there is no direct mapping to such things in VDU. Should I use tosca.interfaces.node.lifecycle.Standard interface instead or should we add new properties in VDU (see openstack tacker’s VDU as an example https://github.com/openstack/tacker/blob/master/tacker/tosca/lib/tacker_nfv_defs.yaml#L239 )? The new userdata should also support inputs like tosca.interfaces.node.lifecycle.Standard interface. Victor: In general, we will use inject file handle this. You can refer here: https://wiki.onap.org/display/DW/Node+Type tosca.nodes.nfv.Vdu.Compute and IM inject file definition for more info : https://wiki.onap.org/display/DW/Design+Time+Model+Clean+Version#DesignTimeModelCleanVersion-Class:VDU/VDUDesc<https://wiki.onap.org/display/DW/Design+Time+Model+Clean+Version%23DesignTimeModelCleanVersion-Class:VDU/VDUDesc>. 3. pre-created networks: vCPE will use 2 pre-created networks which are created when ONAP itself is being deployed: onap_public_net is used to make VM be able to connect to internet, onap_private_net is the oam network which is used to make some of the vCPE vnf talk to some onap component(e.g. dcae_collector). So this requires the VNF VM to be connected to a pre-created network. However in tosca DM, it seems that there is no way to specify a VDU created by tosca DM connecting to a pre-created network which is already created during ONAP deployment using heat. Should we add an property in tosca.nodes.nfv.VnfVirtualLink to indicate whether the network is pre-created or not? Victor:Pre-created network is no difference with new-create network, just use vnfvirtualLink describe the pre-created network, orchestrator could handle this(if network already created, vm could re-use it.) 4. VM metadata vCPE also uses VM metadata which is missing in Tosca DM’s VDU. Should we add this?( see openstack tacker’s VDU as an example https://github.com/openstack/tacker/blob/master/tacker/tosca/lib/tacker_nfv_defs.yaml#L198 )? Victor: Lianhao, could u give more usage/info about the VDU/VM metadata, maybe we could use other properties or attributes instead. Best Regards, -Lianhao
_______________________________________________ onap-discuss mailing list [email protected] https://lists.onap.org/mailman/listinfo/onap-discuss
