<meta charset="utf-8"><div><br class="Apple-interchange-newline">Thanks, that cleared it up for me.</div><div><br></div><div>Staying on the topic of multi-nics, I have been trying to understand the direction in which Nova is going in regards to networking, and reading up on the multi-nics blueprint, it certainly seems like it's going in the right direction, but I do have one question:</div>
<div><br></div><div>What was the reasoning behind associating networks, and not NICs, to an instance?  I understand that each instance NIC would belong to a distinct network, but it just seems more intuitive to imagine that an instance has NICs, and these NICs are connected to networks(or even more intuitively, connected to virtual ports that belong to various networks - Assigning a port to a NIC is like allocating an IP address). </div>
<div><br></div><div>One problem I see from my suggestion above is that there is no association between NICs and networks, which means there is no way to select a network to grab an IP address from for each NIC at the time of VM launch.  I might be missing something completely here, but why not just let the user manage all this through the management  API before the VM launch?  Let the user create NICs, Networks(and Ports with IP addresses), and map the NICs to ports.  Then pass this list of 'connected' NICs as a parameter to launch a VM.  This parameter is optional, and if omitted, it should be treated as launching a single NIC instance, with a new NIC created and associated with the instance on the fly.  This prevents it from breaking the way it works now.</div>
<div><br></div><div>If the concept of NICs for instance makes sense to everyone, I would love to help out and look further into what work needs to be done to extend the current multi-nic model into this one.</div><div><br>
</div><div><div>I hope this made sense.  I apologize for the length.</div></div><div><br></div><div>Thanks,</div><div>Ryu</div><div><br></div><br><div class="gmail_quote">On Tue, Mar 29, 2011 at 12:47 AM, Trey Morris <span dir="ltr"><<a href="mailto:trey.morris@rackspace.com">trey.morris@rackspace.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">I've written a migration to handle moving the data in the current instances table mac_address column into the new mac_address table before the column is removed.<div>
<br></div><div>I agree with Jay, data should never be discarded when migrating forward. I don't think there has been a case yet where data is migrated in nova. This could be the first.<br>
<div><br></div><div>-trey<br><br><div class="gmail_quote"><div><div></div><div class="h5">On Mon, Mar 28, 2011 at 8:17 AM, Jay Pipes <span dir="ltr"><<a href="mailto:jaypipes@gmail.com" target="_blank">jaypipes@gmail.com</a>></span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div></div><div class="h5">
<div>On Mon, Mar 28, 2011 at 2:31 AM, Ishimoto, Ryu <<a href="mailto:ryu@midokura.jp" target="_blank">ryu@midokura.jp</a>> wrote:<br>
> Hi All,<br>
> I was looking at the multi-nic<br>
> blueprint(<a href="https://blueprints.launchpad.net/nova/+spec/nova-multi-nic" target="_blank">https://blueprints.launchpad.net/nova/+spec/nova-multi-nic</a>), and<br>
> in particular:<br>
> 1) removing mac_address column from the instances table and creating a<br>
> mac_addresses table. This is for storing which instances own which mac<br>
> addresses as well as which network each mac is for.<br>
> What happens(or should happen) to the MAC addresses that are already<br>
> associated with instances?  Will they be migrated to the new mac_addresses<br>
> table?  Or will they be discarded completely?<br>
<br>
</div>Data should never be discarded in situations like this where a column<br>
is moved to another table's schema (or to be records in another<br>
table).<br>
<div><br>
> I was curious to know how Nova usually handles data migration issues like<br>
> this.<br>
<br>
</div>No idea whether/if Nova's data migrations have previously needed to<br>
preserve data in this way. Glance does, however, and you can use the<br>
following Python changescript to get an idea how to perform this exact<br>
type of change:<br>
<br>
<a href="http://bazaar.launchpad.net/~glance-core/glance/cactus-trunk/view/head:/glance/registry/db/migrate_repo/versions/003_add_disk_format.py" target="_blank">http://bazaar.launchpad.net/~glance-core/glance/cactus-trunk/view/head:/glance/registry/db/migrate_repo/versions/003_add_disk_format.py</a><br>


<br>
Note that SQLite has issues if you try to add and drop columns in the<br>
same changescript and you also have an unrelated column that is<br>
indexed (see: <a href="http://code.google.com/p/sqlalchemy-migrate/issues/detail?id=117" target="_blank">http://code.google.com/p/sqlalchemy-migrate/issues/detail?id=117</a>).<br>
If this is the case, you will need to write SQL-based changescripts<br>
specfically for SQLite. You can see examples of how this is<br>
accomplished in Glance for the same DB version here:<br>
<br>
<a href="http://bazaar.launchpad.net/~glance-core/glance/cactus-trunk/view/head:/glance/registry/db/migrate_repo/versions/003_sqlite_upgrade.sql" target="_blank">http://bazaar.launchpad.net/~glance-core/glance/cactus-trunk/view/head:/glance/registry/db/migrate_repo/versions/003_sqlite_upgrade.sql</a><br>


<a href="http://bazaar.launchpad.net/~glance-core/glance/cactus-trunk/view/head:/glance/registry/db/migrate_repo/versions/003_sqlite_downgrade.sql" target="_blank">http://bazaar.launchpad.net/~glance-core/glance/cactus-trunk/view/head:/glance/registry/db/migrate_repo/versions/003_sqlite_downgrade.sql</a><br>


<br>
Cheers,<br>
jay<br>
<br></div></div>
_______________________________________________<br>
Mailing list: <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a><br>
Post to     : <a href="mailto:openstack@lists.launchpad.net" target="_blank">openstack@lists.launchpad.net</a><br>
Unsubscribe : <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a><br>
More help   : <a href="https://help.launchpad.net/ListHelp" target="_blank">https://help.launchpad.net/ListHelp</a><br>
</blockquote></div><br></div></div><pre>Confidentiality Notice: This e-mail message (including any attached or
embedded documents) is intended for the exclusive and confidential use of the
individual or entity to which this message is addressed, and unless otherwise
expressly indicated, is confidential and privileged information of Rackspace.
Any dissemination, distribution or copying of the enclosed material is prohibited.
If you receive this transmission in error, please notify us immediately by e-mail
at <a href="mailto:abuse@rackspace.com" target="_blank">abuse@rackspace.com</a>, and delete the original message.
Your cooperation is appreciated.
</pre>
</blockquote></div><br>