Skip to contentSkip to conversation

ts-debian-install: Stop nbd-server before creating the guest

PATCH In review Ian Campbell 2 participants 3 messages Jul 24, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ts-debian-install: Stop nbd-server before creating the guest

Like the umount this is useful when running the test/job repeatedly in development, since it allows the LV to be destroyed.

---
 ts-debian-install | 1 +
 1 file changed, 1 insertion(+)
ts-debian-install +1 -0
index 0dfe40c..7d02ec4 100755
@@ -42,6 +42,7 @@ sub prep () {
                        $swap_mb + $disk_mb + 2,
                        40);
     target_cmd_root($ho, "umount $gho->{Lvdev} ||:");
+    target_cmd_root($ho, "service nbd-server stop ||:");
 }
 
 sub ginstall () {
Signature · 1 line
2.1.4
#1 lore raw

Ian Campbell writes ("[PATCH OSSTEST] ts-debian-install: Stop nbd-server before creating the guest"):

Quoted 2 lines

Like the umount this is useful when running the test/job repeatedly in development, since it allows the LV to be destroyed.

This will cause trouble if the host is shared. This is not a bug right now because the nbd server only runs in a job which is already pretty heavy-handed.

But, also, it seems rather action-at-a-distance. ts-debian-install has no other knowledge of nbd.

Ian.

#2 lore raw
Quoted 11 lines · Ian Jackson

Ian Campbell writes ("[PATCH OSSTEST] ts-debian-install: Stop nbd-server before creating the guest"):

Quoted 2 lines

Like the umount this is useful when running the test/job repeatedly in development, since it allows the LV to be destroyed.

This will cause trouble if the host is shared. This is not a bug right now because the nbd server only runs in a job which is already pretty heavy-handed.

But, also, it seems rather action-at-a-distance. ts-debian-install has no other knowledge of nbd.

Yes, I wasn't sure where else it could go though.

TBH, this was annoying while I was writing the new migration testcase, but now I'm done I can live without this.

Ian.