When I have created a virtual template and attempted to start the virtual service from it I get an error about Insufficient resources, but I have plenty. So I have configured it wrong in some way but I do not know where I've gone wrong. I want to be able to launch without any errors.
I have used a few guides online including the Openstack docs for configuring it using the tosca template: https://docs.openstack.org/tacker/ocata/devref/vnfd_template_description.html
Even using the given example, but I still get the same error.
Openstack returns: Internal Server Error Code: 500 Resource CREATE failed:.... But when I examined further in the logs nova.scheduler.utils gave me the error: "Insufficient compute resources: Requested instance NUMA topology cannot fit the given host NUMA topology"
My current configuration for the template:
description: Demo example with auto image creation
metadata: {template_name: sample-tosca-vnfd-image}
topology_template:
inputs:
availabilityzone: {description: The controller availability zone., type: string}
node_templates:
CP1:
requirements:
- virtualLink: {node: VL1}
- virtualBinding: {node: VDU1}
type: tosca.nodes.nfv.CP.Tacker
VDU1:
capabilities:
nfv_compute:
properties:
disk_size: 1 GB
mem_size: 512 MB
mem_page_size: 2
num_cpus: 1
properties:
availability_zone: {get_input: availabilityzone}
image: Cirros_Name
type: tosca.nodes.nfv.VDU.Tacker
VL1:
properties: {cidr: 10.5.0.0/16, dhcp_enabled: false, ip_version: 4, network_name: net1test,
network_type: vlan, physical_network: physnet1, segmentation_id: 100, vendor: Tacker}
type: tosca.nodes.nfv.VL
tosca_definitions_version: tosca_simple_profile_for_nfv_1_0_0
I have changed the sizes of the VDU from 64 MB to 2048, num of cpus from 1 to 3 and a few mem_page_sizes
Just to be clear, I can create the template and use it, but after that when creating a VS it goes from Pending Create to:
ERROR: Resource CREATE failed: ResourceInError: resources.VDU1: Went to status ERROR due to "Message: Exceeded maximum number of retries. Exhausted all hosts available for retrying build failures for instance 02ec79d2-5f15-4d28-9b2e-01dbef29bbeb., Code: 500"