xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* [PATCH OSSTEST] ts-debian-install: Stop nbd-server before creating the guest
@ 2015-07-24 12:55 Ian Campbell
  2015-07-24 13:39 ` Ian Jackson
  0 siblings, 1 reply; 3+ messages in thread
From: Ian Campbell @ 2015-07-24 12:55 UTC (permalink / raw)
  To: ian.jackson, xen-devel; +Cc: Ian Campbell

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

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
---
 ts-debian-install | 1 +
 1 file changed, 1 insertion(+)

diff --git a/ts-debian-install b/ts-debian-install
index 0dfe40c..7d02ec4 100755
--- a/ts-debian-install
+++ b/ts-debian-install
@@ -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 () {
-- 
2.1.4

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH OSSTEST] ts-debian-install: Stop nbd-server before creating the guest
  2015-07-24 12:55 [PATCH OSSTEST] ts-debian-install: Stop nbd-server before creating the guest Ian Campbell
@ 2015-07-24 13:39 ` Ian Jackson
  2015-07-24 13:47   ` Ian Campbell
  0 siblings, 1 reply; 3+ messages in thread
From: Ian Jackson @ 2015-07-24 13:39 UTC (permalink / raw)
  To: Ian Campbell; +Cc: xen-devel

Ian Campbell writes ("[PATCH OSSTEST] 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.

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.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH OSSTEST] ts-debian-install: Stop nbd-server before creating the guest
  2015-07-24 13:39 ` Ian Jackson
@ 2015-07-24 13:47   ` Ian Campbell
  0 siblings, 0 replies; 3+ messages in thread
From: Ian Campbell @ 2015-07-24 13:47 UTC (permalink / raw)
  To: Ian Jackson; +Cc: xen-devel

On Fri, 2015-07-24 at 14:39 +0100, Ian Jackson wrote:
> Ian Campbell writes ("[PATCH OSSTEST] 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.
> 
> 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.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-07-24 13:47 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-07-24 12:55 [PATCH OSSTEST] ts-debian-install: Stop nbd-server before creating the guest Ian Campbell
2015-07-24 13:39 ` Ian Jackson
2015-07-24 13:47   ` Ian Campbell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).