loth commented on issue #8901:
URL: https://github.com/apache/cloudstack/issues/8901#issuecomment-2083778098

   > @loth there are some PRs out for similar issues, #8952. Will you have the 
chance to test with that patch?
   
   Hello,
   
   I tried the mentioned patch and it diddnt affect the issue. Here is a 
rundown on what I did to reproduce it:
   
   setup new 4.18 env with patch
   upload iso (grml-small in my case)
   add 2nd secondary storage mount
   wait for templates to populate
   redownload/upload template if "secondary storage bypassed" shows
   create test VM
   attach uploaded iso
   attempt live migration
   
   Exception during migrate: org.libvirt.LibvirtException: Cannot access 
storage file 
'/mnt/7d79fb97-cdae-3a13-a0ac-29f3b1f37a1e/203-2-76328563-4e13-3db1-87be-e81f46e9394a.iso':
 No such file or directory
   
   ISO exists on both secondary storage mounts:
   ```
   root@mgt01-tyler-nfs-test:/data/secondary2# ls -laR  | grep 
203-2-76328563-4e13-3db1-87be-e81f46e9394a
   -rw-rw-rw- 1 root root 532938752 Apr 29 21:35 
203-2-76328563-4e13-3db1-87be-e81f46e9394a.iso
   root@mgt01-tyler-nfs-test:/data/secondary2# cd ..
   root@mgt01-tyler-nfs-test:/data# cd secondary1
   root@mgt01-tyler-nfs-test:/data/secondary1# ls -laR  | grep 
203-2-76328563-4e13-3db1-87be-e81f46e9394a
   -rw-rw-rw- 1 root root 532938752 Apr 29 21:29 
203-2-76328563-4e13-3db1-87be-e81f46e9394a.iso
   root@mgt01-tyler-nfs-test:/data/secondary1#
   ```
   
   On node01 (destination of live migration) mount for secondary storage was 
created as '/mnt/1919082e-71af-3ce0-b6d7-df2bf6249f3b'
   ```
   root@node01-tyler-nfs-test:~# mount | grep secondary
   10.1.2.2:/data/secondary1/template/tmpl/2/203 on 
/mnt/1919082e-71af-3ce0-b6d7-df2bf6249f3b type nfs 
(rw,nosuid,nodev,noexec,relatime,vers=3,rsize=524288,wsize=524288,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,mountaddr=10.1.2.2,mountvers=3,mountport=37418,mountproto=udp,local_lock=none,addr=10.1.2.2)
   ```
   
   however libvirt is looking for the ISO at 
'/mnt/7d79fb97-cdae-3a13-a0ac-29f3b1f37a1e' thus we get an error on migration
   
   
   Can confirm the ISO does exist at the new directory created on node01, just 
with the wrong mount UUID string:
   
   ```
   root@mgt01-tyler-nfs-test:/data/secondary1# ls -la 
/data/secondary1/template/tmpl/2/203
   total 520464
   drwxrwxrwx 2 root root      4096 Apr 29 21:29 .
   drwxrwxrwx 4 root root      4096 Apr 29 21:42 ..
   -rw-rw-rw- 1 root root 532938752 Apr 29 21:29 
203-2-76328563-4e13-3db1-87be-e81f46e9394a.iso
   -rw-rw-rw- 1 root root       344 Apr 29 21:29 template.properties
   ```
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to