Modify instances name

Asked by Sebastien Larouche

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:
Last query:
Last reply:
Revision history for this message
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

Revision history for this message
Sebastien Larouche (infosebas) said :
#2

Hi,

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

Revision history for this message
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.