Make FLAGS a ConfigOpts instance and fix up all the places where we
expected FlagValues behaviour.
Change-Id: I8f96f42e0d8d30ba6b362d29861e717cf0fa9e89
* 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
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
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
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
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
Change nova-manage network modify --network to --fixed_range, to match
nova-manage network delete.
Also document both.
Change-Id: I3c03a33e9e3576393252d771eb4ce3353a7f2eaa
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
Fixes nova-manage config list to work with the latest flags
implementation in nova Essex. Fixes LP bug #920157.
Change-Id: I3321dc68e4a571354d62836b39f887b0fc2e9877
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
* 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
* 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
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
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
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>
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
This indicates the failure to the user through the exit status.
Original author: Renuka Apte <renuka.apte@citrix.com>
Change-Id: I73fc2cc35530e7ee7f113f5aaec7b577663e4dc1
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
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
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
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
* 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