Modify instances name

Asked by Sebastien Larouche on 2018-11-28

Is there a way to customize how instances are named by Tacker?

Question information

Language:
English Edit question
Status:
Solved
For:
tacker Edit question
Assignee:
No assignee Edit question
Solved by:
Sebastien Larouche
Solved:
2018-12-06
Last query:
2018-12-06
Last reply:
Cong Phuoc Hoang (hoangphuoc) said : #1

As I know, instance's name in Nova will be create by:

        stack_name + VDU_name + heat_uuid

Where:
stack_name = vnf['name'].replace(' ', '_') + '_' + vnf['id'] as (https://github.com/openstack/tacker/blob/master/tacker/vnfm/infra_drivers/openstack/openstack.py#L111)

for example: instance name can be: VN-cd97-a2b2-40c8-8b90-c85d12455a65-VDU1-2klc6ryzzmzu

Sebastien Larouche (infosebas) said : #2

Hi,

Thank you for your quick answer I will try this out this week.

Sebastien Larouche (infosebas) said : #3

I changed the stack_name value in the openstack.py file for just vnf['name'] and it worked.

Thank you so much.