[xen-tools] Re: Multiple role scripts ..

C.J. Adams-Collier cjcollier at gmail.com
Sun Sep 23 17:06:06 CEST 2007


yeah.  there are no tests, and I haven't tried to run the code yet.
I'll try to address this on Mon or Tue.  My wife is studying for a
class she's giving next weekend, so kid care is more crucial than perl
care this weekend :)

I'll write a .t file to regress this when I fix.

On 9/22/07, Jeff Forcier <jeff at bitprophet.org> wrote:
> It was the following:
>
>     xen-create-image --hostname test --ip 10.0.0.248 --role rails
>
> where the 'rails' role is one I created. However it fails right off,
> I'm assuming when it first tries to write to the log file (which is
> created by the time the error hits, but is empty - not written to).
>
> Thanks,
> Jeff
>
> On 9/22/07, C.J. Adams-Collier <cjcollier at gmail.com> wrote:
> > hey Jeff,
> >
> > The Moose and TypeConstraints bits are mine.
> >
> > Can I see the command you issued when getting these errors?
> >
> > Cheers,
> >
> > C.J.
> >
> > On 9/22/07, Jeff Forcier <jeff at bitprophet.org> wrote:
> > > Thanks a lot for putting that in, Steve :)
> > >
> > > In trying to test it out, I found myself having to upgrade from the
> > > latest Debian (Ubuntu 'gutsy' actually) package which I'd been using
> > > (3.7-1). For reasons I won't go into unless you're interested, I ended
> > > up doing a CVS checkout and then used dpkg-buildpackage + dpkg -i on
> > > the checkout so it would play nice with apt (long story short, the
> > > Ubuntu xen metapackage depends on xen-tools). I only mention this in
> > > case it's relevant to the below.
> > >
> > > For one thing, after installing and trying to run xen-create-image, it
> > > turned out I was missing the Perl Moose library (libmoose-perl) - not
> > > sure if it needs to be added as a package dependency or if it is and
> > > messed up somewhere.
> > >
> > > More importantly, once that's taken care of I get a traceback
> > > (xen-create-image again, with ip/hostname/role arguments given):
> > >
> > > Attribute (log_fh) does not pass the type constraint (FileHandle) with
> > > '1' at (eval 19) line 1
> > >         Xen::Tools::Log::log_fh('Xen::Tools::Log=HASH(0x86b76f0)')
> > > called at /usr/share/perl5/Xen/Tools/Log.pm line 71
> > >         Xen::Tools::Log::print_log('Xen::Tools::Log=HASH(0x86b76f0)',
> > > '\x{a}General Information\x{a}') called at
> > > /usr/share/perl5/Xen/Tools/Log.pm line 47
> > >         Xen::Tools::Log::print('Xen::Tools::Log=HASH(0x86b76f0)',
> > > '\x{a}General Information\x{a}') called at
> > > /usr/share/perl5/Xen/Tools.pm line 65
> > >         Xen::Tools::log('Xen::Tools=HASH(0x86b169c)', '\x{a}General
> > > Information\x{a}') called at /usr/bin/xen-create-image line 2137
> > >         main::showSummary() called at /usr/bin/xen-create-image line 772
> > >
> > > Unfortunately, my Perl is nonexistent, so my attempts to debug on my
> > > own didn't go very far (i.e. the mentioned line 71 in Log.pm didn't
> > > appear obviously broken).
> > >
> > > Not sure if the above file is more in C.J's or Steve's domain, but
> > > hopefully one of you will know what's up.
> > >
> > > Thanks,
> > > Jeff
> > >
> > > On 9/22/07, Steve Kemp <steve at steve.org.uk> wrote:
> > > >
> > > >   As of last night it is now possible to specify
> > > >  multiple role scripts, via something like this:
> > >
> > >
> > >
> >
> >
> > --
> > moo.
> >
> >
> >
>
>
>


-- 
moo.





More information about the xen-tools-discuss mailing list