VNF OpenStack VIM creation error when enable K8S VIM

Bug #1750975 reported by Trinh Nguyen
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tacker
Invalid
Undecided
Unassigned

Bug Description

The VNF for OpenStack VIM creation is in CREATE_IN_PROCESS state forever and then ERROR when I enable K8S VIM. Also, I cannot delete the error VNF.

018-02-22 15:59:06.797 WARNING tacker.vnfm.infra_drivers.openstack.openstack [req-e825e073-7848-44d4-87e7-d66ed7c3a9f7 admin admin] VNF Creation failed: Resource creation is not completed within 600 seconds as creation of stack d5659655-017e-4175-9cf8-35639760dfe8 is not completed
2018-02-22 15:59:06.797 ERROR tacker.vnfm.plugin [req-e825e073-7848-44d4-87e7-d66ed7c3a9f7 admin admin] VNF Create failed for vnf_id 0a3ee7b5-c2cc-42cc-85e4-0e22eab91b1d: VNFCreateWaitFailed: Resource creation is not completed within 600 seconds as creation of stack d5659655-017e-4175-9cf8-35639760dfe8 is not completed
2018-02-22 15:59:06.901 DEBUG tacker.db.vnfm.vnfm_db [req-e825e073-7848-44d4-87e7-d66ed7c3a9f7 admin admin] vnf_dict {'status': 'ERROR', 'created_at': datetime.datetime(2018, 2, 22, 6, 48, 57, 192909), 'description': u'OpenWRT with QoS', 'vnfd': {'template_source': u'onboarded', 'service_types': [u'vnfd'], 'description': u'OpenWRT with QoS', 'tenant_id': u'cc64820d4fb947799d32519866419494', 'created_at': datetime.datetime(2018, 2, 22, 6, 48, 36), 'updated_at': None, 'mgmt_driver': u'openwrt', 'attributes': {u'vnfd': u"description: OpenWRT with QoS\nmetadata: {template_name: OpenWRT}\ntopology_template:\n node_templates:\n CP1:\n properties: {anti_spoofing_protection: false, management: true, order: 0}\n requirements:\n - virtualLink: {node: VL1}\n - virtualBinding: {node: VDU1}\n type: tosca.nodes.nfv.CP.Tacker\n CP2:\n properties: {anti_spoofing_protection: false, order: 1}\n requirements:\n - virtualLink: {node: VL2}\n - virtualBinding: {node: VDU1}\n type: tosca.nodes.nfv.CP.Tacker\n CP3:\n properties: {anti_spoofing_protection: false, order: 2}\n requirements:\n - virtualLink: {node: VL3}\n - virtualBinding: {node: VDU1}\n type: tosca.nodes.nfv.CP.Tacker\n VDU1:\n capabilities:\n nfv_compute:\n properties: {disk_size: 1 GB, mem_size: 512 MB, num_cpus: 1}\n properties:\n config: 'param0: key1\n\n param1: key2\n\n '\n image: OpenWRT\n mgmt_driver: openwrt\n monitoring_policy:\n actions: {failure: respawn}\n name: ping\n parameters: {count: 3, interval: 10}\n type: tosca.nodes.nfv.VDU.Tacker\n VL1:\n properties: {network_name: net_mgmt, vendor: Tacker}\n type: tosca.nodes.nfv.VL\n VL2:\n properties: {network_name: net0, vendor: Tacker}\n type: tosca.nodes.nfv.VL\n VL3:\n properties: {network_name: net1, vendor: Tacker}\n type: tosca.nodes.nfv.VL\ntosca_definitions_version: tosca_simple_profile_for_nfv_1_0_0\n"}, 'id': u'2377d553-c004-4549-8839-3700f11760f6', 'name': u'newvnfd'}, 'vnfd_id': u'2377d553-c004-4549-8839-3700f11760f6', 'tenant_id': u'cc64820d4fb947799d32519866419494', 'vim_id': u'ecc9cc6b-6d62-4094-8b1c-1faf16eeaeec', 'updated_at': None, 'instance_id': u'd5659655-017e-4175-9cf8-35639760dfe8', 'mgmt_url': None, 'error_reason': None, 'placement_attr': {'vim_name': u'vimos'}, 'attributes': {'heat_template': "heat_template_version: 2013-05-23\ndescription: 'OpenWRT with QoS\n\n '\nparameters: {}\nresources:\n CP1:\n type: OS::Neutron::Port\n properties: {port_security_enabled: false, network: net_mgmt}\n CP2:\n type: OS::Neutron::Port\n properties: {port_security_enabled: false, network: net0}\n CP3:\n type: OS::Neutron::Port\n properties: {port_security_enabled: false, network: net1}\n VDU1:\n type: OS::Nova::Server\n properties:\n flavor: {get_resource: VDU1_flavor}\n networks:\n - port: {get_resource: CP1}\n - port: {get_resource: CP2}\n - port: {get_resource: CP3}\n user_data_format: SOFTWARE_CONFIG\n image: OpenWRT\n config_drive: false\n VDU1_flavor:\n properties: {disk: 1, ram: 512, vcpus: 1}\n type: OS::Nova::Flavor\noutputs:\n mgmt_ip-VDU1:\n value:\n get_attr: [CP1, fixed_ips, 0, ip_address]\n", 'monitoring_policy': '{"vdus": {"VDU1": {"ping": {"actions": {"failure": "respawn"}, "name": "ping", "parameters": {"count": 3, "interval": 10}, "monitoring_params": {"count": 3, "interval": 10}}}}}'}, 'id': '0a3ee7b5-c2cc-42cc-85e4-0e22eab91b1d', 'name': u'newvnf'} from (pid=17715) _create_vnf_post /opt/stack/tacker/tacker/db/vnfm/vnfm_db.py:43

Here are the steps to reproduce the error:

1. Deploy devstack with Kubernetes VIM enable.

https://docs.openstack.org/tacker/latest/install/kubernetes_vim_installation.html

2. Register an OpenStack VIM and make it the default:

os_vim.yaml:

auth_url: 'http://<my-devstack-ip>/identity'
username: 'admin'
password: 'devstack'
project_name: 'admin'
project_domain_name: 'Default'
user_domain_name: 'Default'
type: "openstack"

tacker vim-register --config-file os_vim.yaml osvim --is-default True

3. Create a VNFD template:

wget https://raw.githubusercontent.com/openstack/tacker/master/samples/tosca-templates/vnfd/tosca-vnfd-openwrt.yaml

tacker vnfd-create --vnfd-file tosca-vnfd-openwrt.yaml osvnfd

4. Create the VNF:

tacker vnf-create --vnfd-name osvnfd osvnf

description: updated
Changed in tacker:
milestone: none → rocky-1
Revision history for this message
Trinh Nguyen (dangtrinhnt) wrote :

I just tried to reproduce the bug and I got this error:

http://paste.openstack.org/show/686132/

This time the PENDING time is short and it went to ERROR pretty fast.

Here is my test environment:

+ Fresh Ubuntu 16.04
+ Devstack: master
+ Python Tacker Client: master
+ Tacker: master
+ K8S VIM: enabled
+ OpenStack vim template: like above

Revision history for this message
Trinh Nguyen (dangtrinhnt) wrote :
Revision history for this message
Trinh Nguyen (dangtrinhnt) wrote :

Looks like it's a nova issue. After I restart nova, it works just fine.

Changed in tacker:
status: New → Invalid
milestone: rocky-1 → none
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.