Commit Graph

902 Commits

Author SHA1 Message Date
Jenkins cab9a483e8 Merge "Decode nova-manage args into unicode." 2012-03-06 18:39:05 +00:00
Jenkins 700459891e Merge "sm volume driver: fix backend adding failure" 2012-03-06 18:16:46 +00:00
Renuka Apte 60afa733c1 sm volume driver: fix backend adding failure
Fixes bug 915085

Change-Id: I908d2090815a90bae479d5caf8516e52fd879c8e
2012-02-27 23:41:42 -08:00
Andrew Bogott 93cee6047f Decode nova-manage args into unicode.
This improves handling of non-ASCII args... it's not
exactly a comprehensive solution, though.

Partial (demonstration) fix for bug 931667.

Change-Id: Icc2aabe9c0c521732003f7013438630ebc8d2238
2012-02-26 15:39:11 -06:00
Vishvananda Ishaya 8da178d7f7 Fixes cloudpipe extension to work with keystone
* Removes deprecated auth from cloudpipe extension
 * Fixes pipelib to not use ec2_api
 * Changes vpn_image_id to be a uuid
 * Uses network api to retrieve information
 * Simplifies cloudpipe tests
 * Removes nova-manage cloudpipe launching
 * Removes related unused db methods
 * Fixes bug 940744

Change-Id: I5fd1fb49a9e11b89062aa754501fed29874cb6ee
2012-02-26 00:54:36 -08:00
Russell Bryant ab69635cc1 Print error if nova-manage should be run as root.
Fix bug 939531.

This patch makes nova-manage print out a more friendly error message if
it needs to be run as root instead of failing with an exception
traceback.  It catches an EACCES error when opening the config file or
opening log files and exits cleanly.

Change-Id: I2bd2bf3750c2bd3d672a037edb56f2b0b9bf1379
2012-02-23 15:03:11 -05:00
Jenkins 7427454d71 Merge "nova-manage: Fix 'fixed list'" 2012-02-22 20:58:47 +00:00
Jenkins 160e6b6eee Merge "Add 'nova-manage export auth'" 2012-02-22 20:21:47 +00:00
Adam Gandelman 74396d5881 nova-manage: Fix 'fixed list'
Fix  'nova-manage fixed list'

Fixes bug 938702

Change-Id: I65a0a57ac8e16b605eeee963146d4dba582dc077
2012-02-22 10:58:12 -08:00
Justin Santa Barbara 9c6bf7cf46 Support fixed_ip range that is a subnet of the network block
This enables flat deployments where the instances live on the
'general' network.  For example, a typical home router uses
192.168.0.0/16 for the private network.  Cloud machines can be
assigned 192.168.100.0/24.  An example network create command:

nova-manage network create private 192.168.0.0/16 1 65536 \
   --fixed_cidr=192.168.100.0/24 --gateway=192.168.1.1

Change-Id: I17edd81e9bc21ca3320233b606c99e03e25201bc
2012-02-21 17:09:29 -08:00
Brian Waldon 0f9326a1ad Add 'nova-manage export auth'
* Introduce ability to dump auth data to json blob for consumption by keystone
* Implements bp keystone-export-rewrite

Change-Id: Ic8c0ade8350daa449fb6df7ad3c55c3ae2b0c2c7
2012-02-21 13:21:21 -08:00
Joe Gordon c28e4b526a Exception cleanup
Do not write "except:", use "except Exception:" at the very least

Change-Id: I539c013132309791f18c46819232102e9232e917
2012-02-21 00:10:04 -08:00
Jenkins 638bc90785 Merge "bug 931356: nova-manage prints libvirt related warnings if libvirt isn't installed" 2012-02-17 19:54:36 +00:00
Russell Bryant b01933a2dc Print friendly message if no floating IPs exist.
Fix bug 932071.

Print out a friendly message from nova-manage when the "floating list"
command is issued but no floating IPs have been defined.  Prior to this
change, a generic error message would be printed, pointing to the log
for further details.

Change-Id: I0d11f93e9f51cf4e99e319bc9296f73380564257
2012-02-15 17:15:50 -05:00
Jenkins 99c2e02b44 Merge "Changing nova-manage error message" 2012-02-15 09:03:41 +00:00
Brian Waldon afd5b22368 Replace ApiError with new exceptions
* Convert ApiError to EC2APIError
* Add new exceptions to replace ApiError where it didn't belong
* Fixes bug 926250

Change-Id: Ia711440ee0313faf8ea8c87e2c0a2f5b39cc55a2
2012-02-14 12:20:20 -08:00
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
Armando Migliaccio d2452dae6e bug 931356: nova-manage prints libvirt related warnings if libvirt isn't installed
move flag declaration close to where it is used.

Change-Id: I88c3d1362a9de5ea559411e80c1e5bc79bd1a614
2012-02-13 15:59:44 +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
Jenkins 27ac9d5f0c Merge "Fix xvpvncproxy error in nova-all (lp#928489)" 2012-02-08 10:02:34 +00:00
Jenkins f04360b375 Merge "nova-rootwrap: wait() for return code before exit" 2012-02-08 09:54:45 +00:00
Adam Gandelman 40206cb80a nova-rootwrap: wait() for return code before exit
nova-rootwrap does not wait() for the subprocess it executes to complete before
returning its return code. This often ends up in 0 being returned regardless of
failure/success and causing unforeseen problems in Nova.

Fixes bug #928566

Change-Id: I9b6d85c747513086d0e774cb92ba403886b3283c
2012-02-07 16:15:25 -08:00
Mark McLoughlin 2a9271eab0 Fix xvpvncproxy error in nova-all (lp#928489)
Running nova-all, I see:

  (nova): TRACE: NoSuchOptError: no such option: xvpvncproxy_manager

xvp_proxy is a WSGIService, not a Service.

Change-Id: I073d6536134a4fc8d819c808a6c96b02390b556d
2012-02-07 21:32:56 +00:00
Thierry Carrez 71410724cd Remove ajaxterm from Nova
Removes copy of ajaxterm code, nova-ajax-console-proxy,
and support for get_ajax_console from Nova proper.

Implements blueprint remove-ajaxterm
Fixes bug 917963

Change-Id: I2c0ff427c53c0f63a18b10475d6b4cbe9a085d83
2012-02-07 21:14:31 +01: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
Mark McLoughlin 9871c5f963 Move cfg to nova.openstack.common
Move it here so that it can be kept in sync with openstack-common using
the new update.py script for code in openstack-common's incubation area.

See here for more details:

  http://wiki.openstack.org/CommonLibrary#Incubation

Note: this commit just moves the existing code in Nova with no other
changes. A subsequent commit will sync it with latest openstack-common
so that it is easier see the new changes.

Change-Id: If88d678b1b9bad3d37117de7f7159d7fea8ab4c8
2012-02-03 19:21:54 +00: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
Mark McLoughlin 82049af90e Refactor away the flags.DEFINE_* helpers
The next obvious step in porting to cfg is to define all options using
cfg schemas directly rather than using the flags.DEFINE_* helpers.

This is a large change, but it is almost entirely pure refactoring and
does not result in any functional changes.

The only change to note is that the default values for glance_host,
glance_api_servers and default_publisher_id options are now using opt
value interpolation i.e.

 -glance_host=_get_my_ip()
 +glance_host='$my_ip'

 -glance_api_servers=['%s:%d' % (FLAGS.glance_host, FLAGS.glance_port)]
 +glance_api_servers=['$glance_host:$glance_port']

 -default_publisher_id=FLAGS.host
 +default_publisher_id='$host'

Also note that the lower_bound check on the {report,periodic}_interval
options are no more, but this has been true since cfg was first added.

Change-Id: Ia58c8f0aaf61628bb55b1b8485118a2a9852ed17
2012-01-28 12:37:16 +00: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
Vishvananda Ishaya 0c5273c85e Create nova cert worker for x509 support
* Adds new worker for cert management
 * Makes decrypt use an rpc to the worker
 * Moves CA filesystem creation out of cloud.setup
 * Moves test for X509 into crypto
 * Adds test for encrypting and decrypting using cert
 * Cleans up extra code in cloudpipe
 * Fixes bug 918563
 * Prepares for a future patch that will fix bug 903345

Change-Id: I4693c50c8f432706f97395af39e736f49d60e719
2012-01-24 15:10:34 -08: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
Jenkins 28b7107c68 Merge "Fix environment passing in DnsmasqFilter" 2012-01-23 18:26:16 +00:00
Thierry Carrez bfdb9b1f5e Fix environment passing in DnsmasqFilter
Fix environment passing in DnsmasqFilter so that dnsmasq can
be run as root through nova-rootwrap. Fixes bug 919275.

Change-Id: I2e78d92b9af4ddea9c0f1c5ddbe2d55fb672310e
2012-01-23 13:59:42 +01: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 88090f212a More cleanup of Imports to match HACKING
Found using https://github.com/cloudscaling/nova-HACKING

Change-Id: Iaf95d7c65d4c6ff1fa4b045d83a4266cc8f27efe
2012-01-19 10:10:41 -08:00
Zhongyue Luo 3a9018e522 chmod nova-logspool
Fixes bug #918612

chmod 775 nova-logspool

Change-Id: I7b773b2058c7180229d2d7b893d3c6aa3b02e4bb
2012-01-19 05:28:32 -05: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
Anthony Young 8d010cacb5 Implements blueprint vnc-console-cleanup
* Creates a unified way to access vnc consoles for xenserver and libvirt
 * Now supports both java and websocket clients
 * Removes nova-vncproxy - a replacement version of this (nova-novncproxy) can be found as described in vncconsole.rst
 * Adds nova-xvpvncproxy, which supports a java vnc client
 * Adds api extension to access java and novnc access_urls
 * Fixes proxy server to close/shutdown sockets more cleanly
 * Address style feedback
 * Use new-style extension format
 * Fix setup.py
 * utils.gen_uuid must be wrapped like str(utils.gen_uuid()) or it can't be serialized

Change-Id: I5e42e2f160e8e3476269bd64b0e8aa77e66c918c
2012-01-17 14:18:31 -08:00
Anthony Young 60ff2e3b72 Implements blueprint separate-nova-volumeapi
* Moves openstack/v2 directory to compute and fixes tests accordingly
 * Moves some code from api/openstack/compute to shared location, for use by volume api
 * Implements basic volume functionality for types, volumes, and snapshots
 * Changes service name from osapi to osapi_compute (and adds osapi_volume)
 * Renames nova-api-os to nova-api-os-compute, adds nove-api-os-volume
 * Separate extension mechanism for compute and volume
 ** Removes flag osapi_extension and replaces with osapi_compute_extension and osapi_volume_extension
 * Updates the paste config
 * Fixes setup.py to include nova-os-api-compute and nova-os-api-volume
 * Fix bug in volume version code that occurred as result of trunk merge
 * Update integrated/test_volumes.py to use new endpoint

Change-Id: I4c2e57c3cafd4e1a9e2ff3ce201c8cf28326afcd
2012-01-13 09:06:55 -08:00