Commit Graph

834 Commits

Author SHA1 Message Date
Vishvananda Ishaya e6073532e5 Separate metadata api into its own service
part 1 of blueprint separate-nova-metadata

 * adds api/metadata/ and moves code from ec2
 * moves metadata into separate binary
 * changes metadata forward to use metadata host and port
 * moves the metadata accept rule to the metadata api
 * adds nova-api-* to setup.py

Change-Id: I7f5d8e6cafc55b5c383cd88991f29c6059fb8d82
2011-11-15 13:27:58 -08:00
Jenkins 31b5f88a18 Merge "Stop nova-ajax-console-proxy configuring its own logging." 2011-11-12 17:30:16 +00:00
Ewan Mellor d7e5a79150 nova-manage: exit with status 1 if an image registration fails
This indicates the failure to the user through the exit status.

Original author: Renuka Apte <renuka.apte@citrix.com>

Change-Id: I73fc2cc35530e7ee7f113f5aaec7b577663e4dc1
2011-11-10 12:13:04 -08:00
Jenkins 67c559a3f5 Merge "Bug #884018: "stack help" prints stacktrace if it cannot connect to the server" 2011-11-09 15:06:09 +00:00
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
Brad Hall c32258c77d Change network delete to delete by uuid or cidr
With melange it will be possible to have overlapping cidrs so it would be
better to specify the uuid of the network to delete.

Change-Id: I6781225d587952cbab3387cd40164d8ac77c58d6
2011-11-04 15:00:21 -07:00
garyk 813794ed46 Blueprint lasterror
Add in a log report to nova-manage

Usages:

Get the last errors in the nova logs
    nova-manage logs errors

Get the last x nova messages in the syslog. The default is 10
    nova-manage logs syslog <x>

Change-Id: Id5d3a546051e25175b6523711f437618d07c3f19
2011-11-08 16:50:46 +02:00
Jenkins 67a1c257f9 Merge "Set nova-manage to executable Fixes LP885778" 2011-11-04 14:31:14 +00:00
Jenkins c978bcab84 Merge "Log the exception when we get one." 2011-11-04 14:21:56 +00:00
Jason Kölker a032825eb4 Set nova-manage to executable
Fixes LP885778

Change-Id: I0d78d91e4e93183848aa287007caa7027a751e65
2011-11-03 12:07:43 -05:00
Jenkins ee515c588c Merge "Bug #884534: nova-ajax-console-proxy crashes on shutdown" 2011-11-03 15:26:13 +00:00
renukaapte 931a0e2068 Xen Storage Manager Volume Driver
For details, please read the full specification here:
http://wiki.openstack.org/xenapi-sm-volume-driver

Change-Id: I17028a491d8ddee465bfa920907fe3bcaa911869
2011-11-01 16:16:09 -07:00
Ewan Mellor 6fa7fa4025 Stop nova-ajax-console-proxy configuring its own logging.
nova-ajax-console-proxy is overriding the logging configuration carefully
set up by nova.log.  There's no reason for it to do this, and it's the only
script in nova/bin that does.  I've removed that code.

Change-Id: I5b2d5026d529a20d26ba3bb721b15f235f6fdda8
2011-11-01 12:29:23 -07:00
Ewan Mellor 46152102a0 Log the exception when we get one.
Change-Id: Iee478c8f300b608dd153e3400bd17866f52543c5
2011-11-01 11:33:44 -07:00
Ewan Mellor 826888de03 Bug #884534: nova-ajax-console-proxy crashes on shutdown
Close the correct connection, when shutting down.  self is not defined in
this context.

Change-Id: I0dc84a1c7de468a381f5765ccba589acbc8173dd
2011-10-31 17:33:47 -07:00
Ewan Mellor 0f7f91c2e5 Bug #884018: "stack help" prints stacktrace if it cannot connect to the server
Add a handler for URLError, so that we print a nicer error message if stack
cannot connect to the server.

Change-Id: I24f977dcb12bee3bb21057fe9b19823d98581141
2011-10-30 15:58:31 -07:00
David Subiros ad74424768 Improve the liveness checking for services
With this modification both nova-manage and scheduler use the flag
service_down_time and check positive and negative values in a
correct way.
Fixes bug: 867674.

Change-Id: I15c48d80cafa2089cd228c09c61b0a1e513730e8
2011-10-21 13:32:01 +01:00
Monsyne Dragon 5aa5229082 Adds more usage data to Nova's usage notifications.
Adds in bandwidth, state and IP data on standard notifications,
and new notifications on add/remove IP.

These were missing before, and are needed to meet spec.
This fixes bug 849117

Change-Id: Ie586ff3a91a56e5f5eff8abc6905ba6a0b624451
2011-10-12 19:11:14 +00:00
Jenkins 5ac67d89eb Merge "Add nova-all to run all services" 2011-10-12 01:09:43 +00:00
Vishvananda Ishaya eb03d47fec Remove AoE, Clean up volume code
* Removes Ata Over Ethernet
 * Adds drivers to libvirt for volumes
 * Adds initialize_connection and terminate_connection to volume api
 * Passes connection info back through volume api

Change-Id: I1b1626f40bebe8466ab410fb174683293c7c474f
2011-10-11 14:25:04 -07:00
Vishvananda Ishaya a870dfae7d Add nova-all to run all services
* Cleans up service for objectstore and vncproxy
 * Fixes virt.fake to be runnable via a flag

Change-Id: I18e05a4d727bbbd3481063623dc3b6ad52e233d4
2011-09-28 11:36:19 -07:00
Vishvananda Ishaya 51c8ca90cc show swap in Mb in nova manage 2011-09-20 02:55:56 -07:00
Brad McConnell bmcconne@rackspace.com dcd646e661 Fixed --uuid network command in nova-manage to desc to "uuid" instead of "net_uuid" 2011-09-20 06:50:27 +00:00
Trey Morris 7a64d31b44 removes warning set forth in d3 for deprecated setting of bridge automagically 2011-09-20 06:38:04 +00:00
Brad McConnell bmcconne@rackspace.com 5a9c4ef378 Fixed --uuid network command in nova-manage to desc to "uuid" instead of "net_uuid" 2011-09-19 21:35:47 -05:00
Trey Morris eee411b90f now raising instead of setting bridge to br100 and warning as was noted 2011-09-19 15:56:42 -05:00
paul@openstack.org 358dffe941 fixed grant user, added stdout support 2011-09-16 21:12:50 -05:00
paul@openstack.org 94e23a3def minor changes to credentials for the correct format 2011-09-14 13:20:16 -05:00
paul@openstack.org 5b436ffc2a exporting auth to keystone (users, projects/tenants, roles, credentials) 2011-09-14 12:10:33 -05:00
Mark McLoughlin e587fc0954 Do not require --bridge_interface for FlatDHCPManager (lp:844944)
Unlike VlanManager, FlatDHCPManager actually works fine without a bridge
interface on single host deployments.
2011-09-11 12:57:05 +00:00
Vishvananda Ishaya 1a5a93d40a Makes nova-vncproxy listen for requests on the queue like it did before the bin files were refactored. 2011-09-10 18:41:23 +00:00
Vishvananda Ishaya 98a5e14939 fixes vncproxy service listening on rabbit 2011-09-08 04:45:04 -07:00
Dan Wendlandt 0f5eb3f888 merge trunk 2011-09-07 14:27:06 -07:00
Dan Wendlandt 752b6c9e26 feedback from jk0's review, including removing a lot of spaces from docstrings 2011-09-02 13:05:24 -07:00
Vishvananda Ishaya 59be9be68c remove extra references to state_description 2011-09-01 12:22:32 -07:00
Vishvananda Ishaya 4b8e3dd48e merged trunk 2011-08-31 16:07:29 -07:00
Vishvananda Ishaya dcf5970dd9 make two functions instead of fast flag and add compute api commands instead of hitting db directly 2011-08-30 12:01:18 -07:00
Chris Behrens 468ed47520 fix ajax console proxy for new create_consumer method 2011-08-29 15:15:58 -07:00
Chris Behrens c0775bfd7d merged trunk 2011-08-29 08:07:34 -07:00
Chris Behrens e5310d666f fix nova-ajax-console-proxy 2011-08-28 18:18:40 -07:00
vladimir.p 209334e474 changed format string in nova-manage 2011-08-26 15:07:34 -07:00
vladimir.p 8b4d46285b merged with rev.1499 2011-08-25 19:18:46 -07:00
vladimir.p 4834b920e3 VSA code redesign. Drive types completely replaced by Volume types 2011-08-25 18:38:35 -07:00
vladimir.p 08af6ab632 merged with volume_types. no code refactoring yet 2011-08-24 16:48:04 -07:00
vladimir.p 48cd9689de added virtio flag; associate address for VSA; cosmetic changes. Prior to volume_types merge 2011-08-24 15:51:29 -07:00
Hisaharu Ishii 88a2dfb582 Add comments for associate/dissociate logic 2011-08-24 14:01:33 -07:00
Mark McLoughlin c173b6bef1 Do not require --bridge_interface for FlatDHCPManager
Unlike VlanManager, FlatDHCPManager actually works fine without a bridge
interface on single host deployments.
2011-08-24 15:53:23 +01:00
Brad Hall c96a9ae1b8 Address code review feedback from Rick and Matt 2011-08-23 21:18:47 -07:00
Dan Wendlandt 6d8663a887 remove 'uuid' param for nova-manage network delete that I had add previously 2011-08-29 09:04:43 -07:00
danwent@gmail.com a4bd14f86f merge trunk 2011-08-28 20:06:55 -07:00