Brad Hall
38172d5587
Add DHCP support to the QuantumManager and break apart dhcp/gateway
...
This introduces a new flag "quantum_use_dhcp=<boolean>" which indicates whether
or not to enable dhcp for all of the networks. If it is set then we start
dnsmasq (and provide it with the IP/MACs from Melange) similar to how this was
done in linux_net before.
Prior to this if you enabled dhcp then you would also get a gateway device..
some people may not want that so we now require that you specify the gateway
when creating the network in order to end up with a device that will act as a
gateway. If you're using Melange IPAM and you don't specify the gateway you
still end up with one because it doesn't allow you to not have one. This lays
the groundwork for the option of not having one in the future, at least :)
Also, fix quantum/melange ipam interaction
We now query for the subnets by net_id/vif_id instead of searching through all
the blocks to find the right one. Both of the allocate and deallocate for
instance calls are now using the vif_id -> network_id mapping instead of
searching the quantum networks. get_port_by_attachment was also changed to
take a net_id so that we don't have to search through all of the quantum
networks to find the corresponding port.
Change-Id: I6a84da35237b6c5f5cdee91ada92642103439a97
2011-11-04 20:11:53 -07:00
Dan Wendlandt
1ef677a2ea
dhcpbridge: add better error if NETWORK_ID is not set, convert locals() to static dict
2011-08-18 09:50:24 -07:00
Dan Wendlandt
b7019a57c4
in dhcpbridge, only grab network id from env if needed
2011-08-17 22:29:04 -07:00
Dan Wendlandt
635306fd00
bug #828429 : remove references to interface in nova-dhcpbridge
2011-08-17 22:00:38 -07:00
Dan Wendlandt
bfee9bd461
merge trunk, fix conflict frim dprince's branch to remove hostname from bin/nova-dhcpbridge
2011-08-12 17:43:19 -07:00
Dan Prince
346454c7fb
Nuke hostname. We don't use it.
2011-08-04 16:02:28 -04:00
Dan Wendlandt
873aad9294
initial commit of vif-plugging for network-service interfaces
2011-08-01 18:11:15 -07:00
Vishvananda Ishaya
8e1a74e560
filter the dhcp to only respond to requests from this host
2011-07-05 16:06:20 -07:00
Trey Morris
b699b9abd2
removed unneded mac parameter to lease and release fixed ip functions
2011-06-27 17:07:21 -05:00
termie
6be49381fc
make fake_flags set defaults instead of runtime values
2011-05-24 13:19:09 -07:00
Josh Kearney
07076b1b9c
Make Dnsmasq_interface configurable
2011-03-29 15:32:44 -05:00
Soren Hansen
81fe66bb19
Make "dhcpbridge init" output correctly formatted leases information.
2011-03-07 15:12:26 +01:00
Vishvananda Ishaya
3c09d486f8
use flags for sqlite db names and fix flags in dhcpbridge
2011-02-23 11:20:52 -08:00
Vishvananda Ishaya
90007cd908
pretty colors for logs and a few optimizations
2011-02-21 15:55:50 -08:00
Vishvananda Ishaya
29644fe5a9
switch to explicit call to logging.setup()
2011-02-21 13:46:41 -08:00
Vishvananda Ishaya
eaddb9ea52
remove extra references to logging.basicConfig
2011-02-20 23:36:36 -08:00
Ed Leafe
6de7cb36e9
Removed tabs form source. Merged trunk changes
2011-01-24 09:19:51 -06:00
Ed Leafe
68c9c89300
Completed first pass at converting all localized strings with multiple format substitutions.
2011-01-18 21:00:28 -05:00
Todd Willey
b9576a9f73
Final few log tweaks, i18n, levels, including contexts, etc.
2011-01-04 00:26:41 -05:00
Todd Willey
c7305af780
Apply logging changes as a giant patch to work around the cloudpipe delete + add issue in the original patch.
2011-01-04 00:23:35 -05:00
Eric Day
b1d4579404
Fixed network test (thanks Vish!) and fixed run_tests.sh.
2010-12-16 17:29:26 -08:00
jaypipes@gmail.com
a6645d8a43
Initial i18n commit for endpoints. All endpoints must install
...
gettext, which injects the _ function into the builtins.
2010-12-11 15:10:24 -05:00
Vishvananda Ishaya
8e10a0ee1b
update leases on old leases as well
2010-10-18 12:46:32 -07:00
Soren Hansen
d4d8a53003
Fix some unit tests:
...
* One is a race due to the polling nature of rpc in eventlet based unit tests.
* The other is a more real problem. It was caused by datastore.py being removed. It wasn't caught earlier because the .pyc file was still around on the tarmac box.
2010-10-15 20:23:59 +00:00
Soren Hansen
203628e74a
Perform a redisectomy on bin/nova-dhcpbridge.
2010-10-15 21:46:29 +02:00
Vishvananda Ishaya
af9910d935
fix context in bin files
2010-10-13 23:44:04 -07:00
Vishvananda Ishaya
5e3da58648
Fix the deprecation warnings for passing no context.
...
Moved RequestContext out of nova.api, because it is used by everything
Context is passed through the queue.
Added some helper methods for converting to admin context.
Added a few more fields to request context.
2010-10-01 05:57:17 -07:00
Vishvananda Ishaya
fe78b3651c
typo fixes, add flag to nova-dhcpbridge
2010-09-11 04:06:22 -07:00
Vishvananda Ishaya
9003fe35cf
improved network error case handling for fixed ips
2010-09-11 00:16:12 -07:00
Vishvananda Ishaya
214f15b5ea
dhcpbridge needed host instead of node name
2010-09-10 12:25:45 -07:00
Vishvananda Ishaya
f9c060d137
merged trunk
2010-09-07 21:19:46 -07:00
Soren Hansen
f2a3f9a622
Make the scripts in bin/ detect if they're being run from a bzr checkout
...
or an extracted release tarball or whatever and adjust PYTHONPATH
accordingly.
2010-09-08 10:45:39 +02:00
Vishvananda Ishaya
96682df90f
dhcpbridge fixes from review
2010-09-07 19:48:38 -07:00
Vishvananda Ishaya
b4c5c97160
more pep8
2010-08-30 17:58:02 -07:00
Vishvananda Ishaya
4089925920
ip addresses work now
2010-08-30 09:03:43 -07:00
Vishvananda Ishaya
fab0bbaca8
tests pass
2010-08-29 18:53:47 -07:00
Vishvananda Ishaya
a6784ba138
network tests pass again
2010-08-25 16:44:10 -07:00
Vishvananda Ishaya
d832003f17
typo in release_ip
2010-08-24 01:30:48 -07:00
Vishvananda Ishaya
5860a54bff
run instances works
2010-08-24 01:14:10 -07:00
Vishvananda Ishaya
157ef10b30
merged trunk and fixed merge errors
2010-08-23 14:36:14 -07:00
Vishvananda Ishaya
78c2175898
Refactored network model access into data abstraction layer.
...
Also changed the name to floating_ip.
2010-08-23 13:55:16 -07:00
Vishvananda Ishaya
9ab034f8b0
last few test fixes
2010-08-18 18:03:58 -07:00
Eric Day
b8747fb38e
More bin/ pep8/pylint cleanup.
2010-08-18 17:39:12 -07:00
Vishvananda Ishaya
f7c556324d
fixing more network issues
2010-08-18 17:38:51 -07:00
Vishvananda Ishaya
62e3bab39f
network tests pass
2010-08-18 02:07:04 -07:00
Vishvananda Ishaya
8eb531becb
almost there
2010-08-17 20:33:37 -07:00
Vishvananda Ishaya
6664c960e0
fix dhcpbridge issues
2010-08-11 15:29:14 -07:00
Vishvananda Ishaya
24f8cb89f8
Actually pass in hostname and create a proper model for data in network code
2010-08-11 01:20:21 -07:00
Vishvananda Ishaya
0ccd10283b
support a hostname that can be looked up
2010-08-10 21:51:18 -07:00
Vishvananda Ishaya
c4f6500a4c
pylint cleanup
2010-08-10 12:27:06 -07:00