tacker.vnfm.infra_drivers.kubernetes.kubernetes_driver module

tacker.vnfm.infra_drivers.kubernetes.kubernetes_driver module

class tacker.vnfm.infra_drivers.kubernetes.kubernetes_driver.Kubernetes

Bases: tacker.vnfm.infra_drivers.abstract_driver.VnfAbstractDriver, tacker.vnfm.infra_drivers.scale_driver.VnfScaleAbstractDriver

Kubernetes infra driver for hosting containerized vnfs

clean_authenticate_vim(vim_auth, file_descriptor)
create(**kwargs)
create_wait(plugin, context, vnf_dict, vnf_id, auth_attr)

Create wait function

Create wait function will marked VNF is ACTIVE when all status state from Pod objects is RUNNING.

delete(plugin, context, vnf_id, auth_attr, region_name=None)

Delete function

delete_vnf_instance_resource(context, vnf_instance, vim_connection_info, vnf_resource)
delete_wait(plugin, context, vnf_id, auth_attr, region_name=None)

Delete wait function

This function is used to checking a containerized VNF is deleted completely or not. We do it by get information of Kubernetes objects. When Tacker can not get any information about service, the VNF will be marked as deleted.

get_description()
get_name()

Return a symbolic name for the service VM plugin.

get_resource_info(**kwargs)
get_type()

Return one of predefined type of the hosting vnf drivers.

heal_vdu(plugin, context, vnf_dict, heal_request_data)
heal_vnf(context, vnf_instance, vim_connection_info, heal_vnf_request)

Heal vnf

Parameters
  • context – A RequestContext

  • vnf_instance – tacker.objects.VnfInstance to be healed

Vim_info

Credentials to initialize Vim connection

Heal_vnf_request

tacker.objects.HealVnfRequest object containing parameters passed in the heal request

heal_vnf_wait(context, vnf_instance, vim_connection_info)

Check vnf is healed successfully

instantiate_vnf(context, vnf_instance, vnfd_dict, vim_connection_info, instantiate_vnf_req, grant_response)
post_heal_vnf(context, vnf_instance, vim_connection_info, heal_vnf_request)

Update resource_id for each vnfc resources

Parameters
  • context – A RequestContext

  • vnf_instance – tacker.objects.VnfInstance to be healed

Vim_info

Credentials to initialize Vim connection

Heal_vnf_request

tacker.objects.HealVnfRequest object containing parameters passed in the heal request

post_vnf_instantiation(context, vnf_instance, vim_connection_info)
pre_instantiation_vnf(context, vnf_instance, vim_connection_info, image_data)

Create resources required for instantiating Vnf.

Parameters
  • context – A RequestContext

  • vnf_instance – Object tacker.objects.VnfInstance

Vim_info

Credentials to initialize Vim connection

Vnf_software_images

Dict of key:value pair, <VDU/Storage node name>:tacker.objects.VnfSoftwareImage.

scale(**kwargs)
scale_wait(context, plugin, auth_attr, policy, region_name, last_event_id)

Scale wait function

Scale wait function will marked VNF is ACTIVE when all status state from Pod objects is RUNNING.

update(**kwargs)
update_wait(**kwargs)
tacker.vnfm.infra_drivers.kubernetes.kubernetes_driver.config_opts()
tacker.vnfm.infra_drivers.kubernetes.kubernetes_driver.get_scaling_policy_name(action, policy_name)
Creative Commons Attribution 3.0 License

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.