1
0
-1

Hi,

I am trying to understand how public key gets installed on spawned VMs for a VNF. I see Robot resource "Add Openstack Keypair" in nova_interface.robot which invokes Nova API for this. But I am not able to find the place from where it is being invoked.

Also, integration_preload_parameters.py contains GLOBAL_PRELOAD_PARAMETERS→key_name / pub_key . But not able to understand how these are being used.

Can anyone explain on this please ? I was able to use private key from robot earlier but on a new vFW instance, I am not.

Also, my understanding is that, though Heat env file has public key (and other parameters as well), the one that Robot has gets used on the VMs.

    CommentAdd your comment...

    1 answer

    1.  
      1
      0
      -1

      each vnf generally provides the ability to set its key via parameters key_id and pub_key in here: https://gerrit.onap.org/r/gitweb?p=demo.git;a=blob;f=heat/vFW/base_vfw_openstack.env;h=7040f867153d6c9f899a29107d5c363df7b32eac;hb=refs/heads/master

      then the preload data will have those fields and you can access the vm with the private key for that public key. Robot uses this ability to load its test key to vms and uses its private key to login

        CommentAdd your comment...