[one-users] How to change a bridge in a already created vnet

Valentin Bud valentin at hackaserver.com
Thu Oct 18 10:57:47 PDT 2012


On Thu, Oct 18, 2012 at 06:16:22PM +0200, Alvaro Simon wrote:
> Dear OpenNebula developers
> 
> We have crated a fixed virtual network some time ago with a specific
> bridge (virbrA).
> 
> Now we did some changes in our network, we are using a new IP rank but
> for practical reasons we want to still use the same vnetid. We have
> updated our vnet to change its bridge (by virbrB) but when we
> instantiate new machines, the IP is assigned correctly but it still uses
> the old bridge name (virbrA). How we can change the bridge name without
> create a new vnet?

I suppose you mean the name of the bridge from virtual network with ID,
for example 7. 

If you use MySQL as a database the following steps work.

$ onevnet list | grep 7
   7 wiz          oneadmin     test            -               R test 0

$ mysql -u root -p
use opennebula;
update network_pool set body='<VNET><ID>7</ID><UID>2</UID><GID>0</GID><UNAME>wiz</UNAME><GNAME>oneadmin</GNAME><NAME>test</NAME><PERMISSIONS><OWNER_U>1</OWNER_U><OWNER_M>1</OWNER_M><OWNER_A>0</OWNER_A><GROUP_U>0</GROUP_U><GROUP_M>0</GROUP_M><GROUP_A>0</GROUP_A><OTHER_U>0</OTHER_U><OTHER_M>0</OTHER_M><OTHER_A>0</OTHER_A></PERMISSIONS><CLUSTER_ID>-1</CLUSTER_ID><CLUSTER></CLUSTER><TYPE>0</TYPE><BRIDGE>*virbrB*</BRIDGE><VLAN>1</VLAN><PHYDEV/><VLAN_ID>3</VLAN_ID><RANGE><IP_START>192.168.18.50</IP_START><IP_END>192.168.18.254</IP_END></RANGE><TOTAL_LEASES>0</TOTAL_LEASES><TEMPLATE><NETWORK_MASK><![CDATA[255.255.255.0]]></NETWORK_MASK></TEMPLATE></VNET>' where oid=7;
quit

And the next step would be to check if that really changed things:
$ onevnet list | grep 7
   7 wiz          oneadmin     test            -               R virbrB 0

I didn't come up with the `body` data. I just copied it using the
following MySQL query:

use opennebula;
select body from network_pool where oid=7 \G

If something is not right I kindly ask the OpenNebula developers to post
further guidance. Thanks.

Enjoy,
v

PS: It seems like you've hijacked another thread. Please don't do so in
the future. We all want to find structured quality information on any
mailing list we lurk. Thanks :).

> 
> Thanks in advance!
> Alvaro
> 
> > Dear OpenNebula developers
> > 
> > 
> > We are testing new rOCCI version with OpenNebula using x509 auth.
> > For the first tests we have created several users for different
> > certificate DNs (included into passwd without spaces).
> > 
> > #oneuser create testinguser "/DC=xx/DC=xxx/O=xxxx/CN=xxxxx" --driver x509
> > 
> > Our tests are working fine but now we have a doubt.
> > 
> > It's also possible to map different DNs to a single user? As example we
> > want to use the same testing user for
> > 
> > /DC=xx/DC=xxx/O=xxxx/CN=xxxxx
> > 
> > but also for:
> > 
> > /DC=yyyy/DC=yyyy/O=yyyy/CN=yyyyy
> > 
> > x509 certificates, is this possible?
> > 
> > Thanks in advance!
> > Alvaro
> > _______________________________________________
> > Users mailing list
> > Users at lists.opennebula.org
> > http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
> > 
> 
> _______________________________________________
> Users mailing list
> Users at lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org



More information about the Users mailing list