$FAIL not always set → --keep does not always work
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
xen-tools (Ubuntu) |
In Progress
|
Undecided
|
Axel Beckert |
Bug Description
On 64-bit Ubuntu 12.04 PrecisePangolin, the
/usr/lib/
from the 4.2.1-1 xen-tools package does not prevent the
`sshd` from starting up when the openssh-server package
gets installed.
I don't know why it doesn't, I just see it running.
[ Aside: if the dom0 machine happens to have
sshd running, then no additional `sshd` process will start
to run during the installation of the openssh-server package
on the domU machine. Then the entire run of xen-create-image
will be successful.
]
[Aside: I did have to do the following to begin to use
xen-create-image.
cd /usr/share/
sudo ln -s karmic.d precise.d
sudo vi /etc/default/xen
Change:
TOOLSTACK=
to:
]
The short story on how to fix my dilemna was to edit:
/usr/lib/
And to add code to shut down the sshd process that was just started
after installing the openssh-server package:
chroot ${prefix} /usr/sbin/service ssh stop
Longer story:
The xen-create-image perl script has the intention of preventing the sshd
process from starting up, but it's not working. I don't really know why.
Because this sshd binary starts up upon the installation of the
openssh-server package and loads up other libraries, the
clean up "END" subroutine in xen-create-image fails while unmounting
the /tmp/<tempname> directory.
That failed unmounting is not fatal.
The new machine is still intact at that moment.
But when the perl script, xen-create-image, exits, any temporary
directory location as created by the File::Temp Perl class gets
removed automajically.
The /tmp/<tempname> directory was created via this File::Temp Perl class
and will get removed. Unfortunately it's not the empty directory
as it should be after successful unmounting, it's the entire new machine
file heararchy since the unmounting failed.
Thus after xen-create-image, when one tries to list out the contents
of the root of the new machine, for me it would be at the top of my
volume, I see no directories, no files. Nothing.
Hi,
thanks for the bug report!
gmoore777 wrote:
> The xen-create-image perl script has the intention of preventing the sshd
> process from starting up, but it's not working. I don't really know why.
Hrm, could be upstart related. Have to investigate.
> Because this sshd binary starts up upon the installation of the
> openssh-server package and loads up other libraries, the
> clean up "END" subroutine in xen-create-image fails while unmounting
> the /tmp/<tempname> directory.
[...]
> But when the perl script, xen-create-image, exits, any temporary
> directory location as created by the File::Temp Perl class gets
> removed automajically.
Does adding --keep as option to xen-create-image help here?
A new xen-tools is due soon and I'll try to include a fix for this.
Regards, Axel people. debian. org/~abe/
--
,''`. | Axel Beckert <email address hidden>, http://
: :' : | Debian Developer, ftp.ch.debian.org Admin
`. `' | 1024D: F067 EA27 26B9 C3FC 1486 202E C09E 1D89 9593 0EDE
`- | 4096R: 2517 B724 C5F6 CA99 5329 6E61 2FF9 CD59 6126 16B5