invirt-admin create-sysvm leaves files in /etc/xen/

Bug #326392 reported by Greg Price
2
Affects Status Importance Assigned to Milestone
Invirt Project
New
Low
Unassigned

Bug Description

invirt-admin create-sysvm uses invirt-create-image, which uses xen-create-image, which drops a config file in /etc/xen/.
We have our own idea of what that config file should look like and where it should be, so we generate one in /etc/xen/sysvms/.
The one in /etc/xen/ should go away, either used for our config or discarded.

Relatedly, xen-create-image generates a MAC address, which we might as well use.

Revision history for this message
Evan Broder (broder) wrote :

It's not that hard to generate a MAC address.

Here - have one in an almost one-liner :)

python -c 'import random; print "00:16:3e:%02x:%02x:%02x" % tuple(random.randrange(255) for i in range(3))'

Revision history for this message
Greg Price (gregprice) wrote : Re: [Bug 326392] Re: invirt-admin create-sysvm leaves files in /etc/xen/

On Fri, Feb 06, 2009 at 11:33:39PM -0000, Evan Broder wrote:
> It's not that hard to generate a MAC address.
>
> Here - have one in an almost one-liner :)
>
> python -c 'import random; print "00:16:3e:%02x:%02x:%02x" %
> tuple(random.randrange(255) for i in range(3))'

This differs from ecprice's longer and more-commented version in
invirt-web/code/xen-ips. I'm all for concise implementations, but
let's use the same correct one in all places. =)

Greg

Revision history for this message
Eric Price (ecprice) wrote : Re: [Bug 326392] Re: invirt-admin create-sysvm leaves files in /etc/xen/

On 2009-02-06 23:45 -0000, Greg Price wrote:
> On Fri, Feb 06, 2009 at 11:33:39PM -0000, Evan Broder wrote:
> > It's not that hard to generate a MAC address.
> >
> > Here - have one in an almost one-liner :)
> >
> > python -c 'import random; print "00:16:3e:%02x:%02x:%02x" %
> > tuple(random.randrange(255) for i in range(3))'
>
> This differs from ecprice's longer and more-commented version in
> invirt-web/code/xen-ips. I'm all for concise implementations, but
> let's use the same correct one in all places. =)

As the comment above that function states, it's not my version, it's
xend's.

Eric

>
> Greg
>
> --
> invirt-admin create-sysvm leaves files in /etc/xen/
> https://bugs.launchpad.net/bugs/326392
> You received this bug notification because you are a member of Invirt
> Developers, which is the registrant for Invirt Project.
>
> Status in Invirt Project: New
>
> Bug description:
> invirt-admin create-sysvm uses invirt-create-image, which uses xen-create-image, which drops a config file in /etc/xen/.
> We have our own idea of what that config file should look like and where it should be, so we generate one in /etc/xen/sysvms/.
> The one in /etc/xen/ should go away, either used for our config or discarded.
>
> Relatedly, xen-create-image generates a MAC address, which we might as well use.

Greg Price (gregprice)
Changed in invirt:
importance: Undecided → Low
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.