Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: OpenStack: Dev

public-interface ignored

 

 

OpenStack dev RSS feed   Index | Next | Previous | View Threaded


wolfgang.hennerbichler at risc-software

Jul 24, 2012, 3:58 AM

Post #1 of 3 (220 views)
Permalink
public-interface ignored

hi,

running openstack essex with vlan-networking:
--network_manager=nova.network.manager.VlanManager
--vlan_interface=bond0
--public_interface=bridge_130
--auto_assign_floating_ip=True

all works great except for floating ips. the problem is, that the
floating ips are assigned to eth0 instead of bridge_130. I can't get a
clue out of the logs:

2012-07-24 11:24:02 DEBUG nova.service [-] public_interface : bridge_130
from (pid=31192) wait /usr/lib/python2.7/dist-packages/nova/service.py:411

=> so during startup it realizes that bridge_130 is the
public-interface. great. But then the floating ip is assigned:

2012-07-24 11:24:26 DEBUG nova.utils [-] Running cmd (subprocess): sudo
nova-rootwrap ip addr add xx.xx.xx.129/32 dev eth0 from (pid=31192)
execute /usr/lib/python2.7/dist-packages/nova/utils.py:219

this process finishes without errors, the problem is that eth0 is just
not my public network interface. What's wrong? is there something in the
database that I should change?

mysql> select * from networks \G
*************************** 1. row ***************************
created_at: 2012-07-24 08:17:18
updated_at: 2012-07-24 08:18:48
deleted_at: NULL
deleted: 0
id: 1
injected: 0
cidr: 10.131.0.0/24
netmask: 255.255.255.0
bridge: novabr131
gateway: 10.131.0.1
broadcast: 10.131.0.255
dns1: 8.8.8.8
vlan: 131
vpn_public_address: xx.xx.xx.xx
vpn_public_port: NULL
vpn_private_address: 10.131.0.3
dhcp_start: 10.131.0.2
project_id: 7edc3284f53f4e02b92d498db41b842d
host: NULL
cidr_v6: NULL
gateway_v6: NULL
label: RISCSW
netmask_v6: NULL
bridge_interface: bond0
multi_host: 1
dns2: NULL
uuid: 96ad4088-b9bb-436f-b381-2edefa8d5567
priority: NULL
rxtx_base: NULL
1 row in set (0.00 sec)

help needed... thanks in advance.
Wolfgang

--
DI (FH) Wolfgang Hennerbichler
Software Development
Unit Advanced Computing Technologies
RISC Software GmbH
A company of the Johannes Kepler University Linz

IT-Center
Softwarepark 35
4232 Hagenberg
Austria

Phone: +43 7236 3343 245
Fax: +43 7236 3343 250
wolfgang.hennerbichler [at] risc-software
http://www.risc-software.at

_______________________________________________
Mailing list: https://launchpad.net/~openstack
Post to : openstack [at] lists
Unsubscribe : https://launchpad.net/~openstack
More help : https://help.launchpad.net/ListHelp


jaypipes at gmail

Jul 24, 2012, 5:51 AM

Post #2 of 3 (194 views)
Permalink
Re: public-interface ignored [In reply to]

On 07/24/2012 06:58 AM, Wolfgang Hennerbichler wrote:
> hi,
>
> running openstack essex with vlan-networking:
> --network_manager=nova.network.manager.VlanManager
> --vlan_interface=bond0
> --public_interface=bridge_130
> --auto_assign_floating_ip=True
>
> all works great except for floating ips. the problem is, that the
> floating ips are assigned to eth0 instead of bridge_130. I can't get a
> clue out of the logs:
>
> 2012-07-24 11:24:02 DEBUG nova.service [-] public_interface : bridge_130
> from (pid=31192) wait /usr/lib/python2.7/dist-packages/nova/service.py:411
>
> => so during startup it realizes that bridge_130 is the
> public-interface. great. But then the floating ip is assigned:
>
> 2012-07-24 11:24:26 DEBUG nova.utils [-] Running cmd (subprocess): sudo
> nova-rootwrap ip addr add xx.xx.xx.129/32 dev eth0 from (pid=31192)
> execute /usr/lib/python2.7/dist-packages/nova/utils.py:219

Looking through the code, in the
nova.network.manager.FloatingIP.associate_floating_ip() call, I see this:

interface = FLAGS.public_interface or floating_ip['interface']

on line 511 (in current HEAD of branch).

The only thing I could think of is that you created your floating IPs
before setting your FLAGS.public_interface?

Best,
-jay

_______________________________________________
Mailing list: https://launchpad.net/~openstack
Post to : openstack [at] lists
Unsubscribe : https://launchpad.net/~openstack
More help : https://help.launchpad.net/ListHelp


wolfgang.hennerbichler at risc-software

Jul 24, 2012, 6:00 AM

Post #3 of 3 (188 views)
Permalink
Re: public-interface ignored [In reply to]

On 07/24/2012 02:51 PM, Jay Pipes wrote:

> Looking through the code, in the
> nova.network.manager.FloatingIP.associate_floating_ip() call, I see this:
>
> interface = FLAGS.public_interface or floating_ip['interface']
>
> on line 511 (in current HEAD of branch).
>
> The only thing I could think of is that you created your floating IPs
> before setting your FLAGS.public_interface?

true. hahaaa. thanks a bunch for the hint.

*************************** 1. row ***************************
created_at: 2012-07-24 08:17:19
updated_at: 2012-07-24 10:55:45
deleted_at: NULL
deleted: 0
id: 1
address: 193.170.32.129
fixed_ip_id: 3
project_id: 7edc3284f53f4e02b92d498db41b842d
host: computeNode1
auto_assigned: 1
pool: nova
interface: eth0
1 row in set (0.00 sec)


> Best,
> -jay
>
> _______________________________________________
> Mailing list: https://launchpad.net/~openstack
> Post to : openstack [at] lists
> Unsubscribe : https://launchpad.net/~openstack
> More help : https://help.launchpad.net/ListHelp
>


--
DI (FH) Wolfgang Hennerbichler
Software Development
Unit Advanced Computing Technologies
RISC Software GmbH
A company of the Johannes Kepler University Linz

IT-Center
Softwarepark 35
4232 Hagenberg
Austria

Phone: +43 7236 3343 245
Fax: +43 7236 3343 250
wolfgang.hennerbichler [at] risc-software
http://www.risc-software.at

_______________________________________________
Mailing list: https://launchpad.net/~openstack
Post to : openstack [at] lists
Unsubscribe : https://launchpad.net/~openstack
More help : https://help.launchpad.net/ListHelp

OpenStack dev RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.