Commit Graph

491 Commits

Author SHA1 Message Date
Derek Higgins 649e32b0dc Changing nova-manage error message
CA filesystem now created by nova-cert
Also changing Author details

Change-Id: I456d985810d6f0312a7ef94b21637f347e933303
2012-02-14 17:23:41 +00:00
Jenkins d808ce1166 Merge "Removes constraints from instance and volume types" 2012-02-10 22:10:54 +00:00
Mark McLoughlin d1888a3359 Remove the last of the gflags shim layer
Make FLAGS a ConfigOpts instance and fix up all the places where we
expected FlagValues behaviour.

Change-Id: I8f96f42e0d8d30ba6b362d29861e717cf0fa9e89
2012-02-10 06:31:56 +00:00
Vishvananda Ishaya faa938c165 Removes constraints from instance and volume types
* Gets rid of annoying purge semantics
 * removes unique constraints from the db
 * deletes extra specs when a volume is deleted
 * adds exceptions for when the type already exists
 * fixes bug 854930
 * fixes bug 925823

Change-Id: I4618759e31501b2e85325f4e9b9895f04dc151d0
2012-02-08 11:27:39 -08:00
Soren Hansen e9fd01e58b Re-run nova-manage under sudo if unable to read conffile
Having to manually sudo to the nova user to make things work is
tedious. Make it so that if we can't read the conffile, we just
re-exec under sudo.

Fixes bug 805695

Change-Id: I322cece80ca757c69147fb3f8474ad137d9bff82
2012-02-04 00:26:26 +01:00
Jenkins a5e8f131c0 Merge "Clear out RPC connection pool before exit." 2012-02-01 21:00:54 +00:00
Jenkins fced0f58bc Merge "remove unsupported ec2 extensions" 2012-02-01 19:08:03 +00:00
Jesse Andrews 62d5fae8d1 remove unsupported ec2 extensions
implements blueprint remove-ec2-extensions

* remove deprecated unofficial ec2 admin api
* remove admin api from wsgi/paste
* remove unofficial ec2 call for ajaxterm / update calls
* remove displayName/displayDescription from volumes/instances

Change-Id: If5a5ae26ebb9456a3c7376ff4ff0aa9589be1f5b
2012-01-31 22:07:46 -06:00
Russell Bryant 25325f4767 Use "display_name" in "nova-manage vm list".
Fixes bug 894807.

This patch changes the output of "nova-manage vm list" to use the
display_name for an instance instead of the hostname in the output.
This makes the output consistent with what you get with "nova list".

Change-Id: I3131c5aad8770481bac7731c06110a98b4cc2966
2012-01-31 16:56:35 -05:00
Russell Bryant bd32abf9bc Clear out RPC connection pool before exit.
Fixes bug 767984.

This patch ensures that pooled connections to a messaging system get
cleaned up before a process that has used the RPC API exits.

Change-Id: I56eca54334075378534a7a5d3434c420319672b4
2012-01-31 13:00:28 -05:00
Pádraig Brady ed6e3efcf6 fix nova-manage image convert exception
* bin/nova-manage (_convert_images): Don't convert
the image id to a number as it's now a uuid.

Change-Id: I4dfe5693d8f394fb9ee3f2c18c7e0b3f2524e931
2012-01-27 20:34:30 +00:00
Jenkins 01a9d86e87 Merge "Fixes bug 921265 - i'nova-manage flavor create|list'" 2012-01-25 22:10:29 +00:00
Dean Troyer 4cdcf1dbff Fixes bug 921265 - i'nova-manage flavor create|list'
These problems were introduced in https://review.openstack.org/2918
* nova-manage needs the change from local_gb to root_gb/ephemeral_gb.
* fixes 'nova-manage flavor ...'
* fixes 'nova-manage service describe_resource ...'

Change-Id: I63040359a425aac3ef7a0a84e6834b1dfe3a8790
2012-01-25 10:36:38 -06:00
Mark McLoughlin dd29f420ab Remove unused flags.Help*Flag
These don't do anything anymore since we just rely on optparse's
--help behaviour.

Change-Id: I7c74456a06fe924503dcfbcfa4da9fc5c26b8ab0
2012-01-25 13:14:42 +00:00
Ewan Mellor 4cbf0984f9 Bug #916312: nova-manage network modify --network flag is inconsistent.
Change nova-manage network modify --network to --fixed_range, to match
nova-manage network delete.

Also document both.

Change-Id: I3c03a33e9e3576393252d771eb4ce3353a7f2eaa
2012-01-24 13:41:42 -08:00
Dan Prince 151632ed3a Fixes nova-manage fixed list.
Updates the nova-manage to use db.instance_get_all for instance
information instead of relying on Sqlalchemy model relationships
(which no longer exist due to network refactorings).

This commit fixes 'nova-manage fixed list' so that it correctly
displays hostname, and host. I dropped the MAC address column
which would have required an extra VIF's table lookup and
wasn't used as much.

Fixes LP Bug #920159.

Change-Id: I3cec690c5e40631e0f10b2a914f46863601a1734
2012-01-23 14:54:39 -05:00
Dan Prince b3a41b7229 Fix 'nova-manage config list'
Fixes nova-manage config list to work with the latest flags
implementation in nova Essex. Fixes LP bug #920157.

Change-Id: I3321dc68e4a571354d62836b39f887b0fc2e9877
2012-01-22 15:48:10 -05:00
Dean Troyer 8333a1533c Fix nova-manage floating list (fixes bug 918804)
https://review.openstack.org/2922 broke nova-manage floating list
* Restore db.floating_ip_get_all
* Update instance display in nova-manage

Change-Id: I526237401371a21eafbd9b571f9b4a17a534c1c6
2012-01-20 13:42:12 -06:00
Joe Gordon 236190c452 Cleanup Imports to match HACKING guidelines
found using https://github.com/cloudscaling/nova-HACKING

Change-Id: Ic010f0407e7a139f0f6436af2e72e817c140a4c3
2012-01-18 11:30:22 -08:00
masumotok 8e57055cec First implementation of bp/live-migration-resource-calc
Fix based on revewer's comment

upgraded the migration version
nova/db/sqlalchemy/migrate_repo/versions/069_block_migration.py

rebase on master

Change-Id: Ia762f8dec761c3d595bc6fcd39f127f6d92306d2
2012-01-13 15:24:28 +09:00
Dean Troyer 9e21a2228c nova-manage floating ip fixes
* Add pool, interface to 'floating list' output
  These columns were added to the floating_ips table in
  https://review.openstack.org/2892 and are not visible elsewhere
* Fix 'floating delete' to skip network/broadcast addresses
  Makes the delete command match the create command behaviour
  introduced in https://review.openstack.org/2663
* Address changes listed in bug 817281
  Change host column in output to project ID, change hostname
  column to uuid

Change-Id: Ibbfbe9ed5543927a6b2a1e676f5617901a32f897
2012-01-10 16:51:06 -06:00
Vishvananda Ishaya 26b24b7e23 Adds support for floating ip pools
* Implements blueprint multiple-floating-ip-ranges
 * Adds pool and interface fields to floating ip tables
 * Adds extension to get a list of available pools
 * Optionally allows a pool to be specified when allocating
 * Changes nova-manage command to allow pool and interface
 * Ip binding uses the interface from table instead of flag
 * Adds default pool flag to use when pool is not specified
 * updates test to work with new fields
 * adds tests for extension

Change-Id: Ieb4cbbf07b211697d08178b1cf2252caf75049a2
2012-01-09 13:18:02 -08:00
lzyeval 88ccade9d5 PEP8 type comparison cleanup
Fixes bug #910295

The None, True, and False values are singletons.

All variable *comparisons* to singletons should use 'is' or 'is not'.
All variable *evaluations* to boolean should use 'if' or 'if not'.

"== None", "== True", "== False", and "!= None" comparisons in sqlalchemy's
where(), or_(), filter(), and_(), and select() functions should not be changed.

Incorrect comparisons or evaluations in comments were not changed.

Change-Id: I087f0883bf115b5fe714ccfda86a794b9b2a87f7
2012-01-04 07:32:13 +08:00
lzyeval ae1654bc59 PEP8 remove direct type comparisons
Fixes bug #910763

According to PEP8,
- Object type comparisons should always use isinstance() instead
      of comparing types directly.

        Yes: if isinstance(obj, int):

        No: if type(obj) is type(1):

      When checking if an object is a string, keep in mind that it might be a
      unicode string too! In Python 2.3, str and unicode have a common base
      class, basestring, so you can do:

        if isinstance(obj, basestring):

Change-Id: I7c0fdecf99872f5b8f72b2c2ed4f5c539c33def1
2012-01-03 11:12:42 +08:00
Jenkins b9500ff068 Merge "Bug 820059: bin/nova-manage.py VpnCommands.spawn calls non-existant method VpnCommands._vpn_for - fixed" 2011-12-29 18:44:19 +00:00
Jenkins fee0b1e53d Merge "Bug 751229: Floating address range fixed" 2011-12-29 18:16:42 +00:00
Ivan Kolodyazhny c9393f76a3 Bug 820059: bin/nova-manage.py VpnCommands.spawn calls non-existant method VpnCommands._vpn_for - fixed
Change-Id: I86c509d98fac685a5d658f397d0672f71b4bc175
2011-12-29 11:24:52 +02:00
Ivan Kolodyazhny 135fd91916 Bug 751229: Floating address range fixed
Change-Id: I4c7ab8512fe3a00dd555d3a183b2c2348cef9e21
2011-12-29 09:20:58 +02:00
Joe Gordon 4ea63c4021 Brings some more files up to HACKING standards
Change-Id: I738fb70d49dade90d31e8c848fa841497083e9b4
2011-12-28 18:11:59 -08:00
Julien Danjou 605dfa9dee Fix nova-manage flags declaration
Some flags seem not used anymore, whereas some are not correctly declared
and would fail.

Change-Id: I8fd0ad949fd9a4b932e8e31d28e6e9dc5426bb28
Signed-off-by: Julien Danjou <julien.danjou@enovance.com>
2011-12-15 17:31:51 +01:00
Dean Troyer bfee1661f6 Follow-on to I665f402f to convert rxtx_quota to rxtx_factor in
nova-manage and a couple of tests.

Change-Id: I1c72dbef6173e4c08006e36fa90565a724528b7c
2011-12-13 15:23:31 -06:00
Rick Harris c40ee5cfe7 Add ability to see deleted and active records.
Fixes bug #900564

Changes `Context`.`read_deleted` from a bool to an enum string with values
"yes" (can read deleted records), "no" (cannot read deleted records), and
"only" (can only see deleted records, for backwards compatibility).

Change-Id: Ic81db3664c33f23f751b73973782efb06fce90d9
2011-12-07 16:06:31 -06:00
Ghe Rivero 2c438f55be Updated nova-manage to work with uuid images
Fixes bug 899299

Change-Id: Ib0be692503b8761a5600902a1e0d7a4dc371a680
2011-12-05 16:59:31 +01: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
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
Jason Kölker a032825eb4 Set nova-manage to executable
Fixes LP885778

Change-Id: I0d78d91e4e93183848aa287007caa7027a751e65
2011-11-03 12:07:43 -05: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
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
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 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