From e7e9d5d5c8372645a52e34a44f0286ce99a55551 Mon Sep 17 00:00:00 2001 From: Guohan Lu Date: Mon, 16 Aug 2021 12:35:12 -0700 Subject: [PATCH] [veos]: correct veos disk location (#4048) disk_image_dir and cdrom_image should not contain home_path as the root_path can be absolute path. the issue is seem only when configure root_path as absolute path. bug was introduced in #3036 Signed-off-by: Guohan Lu --- ansible/roles/vm_set/tasks/start.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ansible/roles/vm_set/tasks/start.yml b/ansible/roles/vm_set/tasks/start.yml index a03fa3aeef8..644870e55d1 100644 --- a/ansible/roles/vm_set/tasks/start.yml +++ b/ansible/roles/vm_set/tasks/start.yml @@ -94,8 +94,8 @@ mgmt_ip_address: "{{ hostvars[vm_name]['ansible_host'] }}" serial_port: "{{ vm_console_base|int + vm_name[4:]|int }}" src_disk_image: "{{ root_path }}/images/{{ src_image_name }}" - disk_image_dir: "{{ home_path }}/{{ root_path }}/disks" - cdrom_image: "{{ home_path }}/{{ root_path }}/images/{{ cd_image_filename }}" + disk_image_dir: "{{ root_path }}/disks" + cdrom_image: "{{ root_path }}/images/{{ cd_image_filename }}" mgmt_tap: "{{ vm_name }}-m" backplane_tap: "{{ vm_name }}-back" with_items: "{{ VM_hosts }}"