Skip to content

Commit

Permalink
[veos]: correct veos disk location
Browse files Browse the repository at this point in the history
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 sonic-net#3036

Signed-off-by: Guohan Lu <[email protected]>
  • Loading branch information
lguohan committed Aug 16, 2021
1 parent 88c6b37 commit 94b784c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ansible/roles/vm_set/tasks/start.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}"
Expand Down

0 comments on commit 94b784c

Please sign in to comment.