Commit Graph

61 Commits

Author SHA1 Message Date
Matt Riedemann 25dadb94db Remove the CachingScheduler
The CachingScheduler has been deprecated since Pike [1].
It does not use the placement service and as more of nova
relies on placement for managing resource allocations,
maintaining compabitility for the CachingScheduler is
exorbitant.

The release note in this change goes into much more detail
about why the FilterScheduler + Placement should be a
sufficient replacement for the original justification
for the CachingScheduler along with details on how to migrate
from the CachingScheduler to the FilterScheduler.

Since the [scheduler]/driver configuration option does allow
loading out-of-tree drivers and the scheduler driver interface
does have the USES_ALLOCATION_CANDIDATES variable, it is
possible that there are drivers being used which are also not
using the placement service. The release note also explains this
but warns against it. However, as a result some existing
functional tests, which were using the CachingScheduler, are
updated to still test scheduling without allocations being
created in the placement service.

Over time we will likely remove the USES_ALLOCATION_CANDIDATES
variable in the scheduler driver interface along with the
compatibility code associated with it, but that is left for
a later change.

[1] Ia7ff98ff28b7265058845e46b277317a2bfc96d2

Change-Id: I1832da2190be5ef2b04953938860a56a43e8cddf
2018-10-18 17:55:36 -04:00
Stephen Finucane 63a5c29308 trivial: Remove "vif" script
'xen/vif-openstack' is a script for configuring a Xen VIF in bridge
mode. This script duplicates functionality now provided in Xen itself
and does not need to remain in the nova codebase.

[1] https://xenbits.xen.org/gitweb/?p=xen.git;f=tools/hotplug/Linux/vif-bridge;h=3d72ca4

Change-Id: Iafacfdfb96f78c3f1682139892fdcca3616b6cab
TrivialFix
2017-08-07 16:00:10 +01:00
Jenkins 47594f76d4 Merge "changed quantum to neutron in vif-openstack" 2014-03-05 10:45:05 +00:00
John Garbutt 1b24bfbd73 Add a caching scheduler driver
This adds a new scheduler driver, CachingScheduler

It currently subclasses the filter scheduler and only adds caching of
calls to host_manager.get_all_host_states.

It relies on there being a small number of schedulers, ideally one,
calls to consume_from_instance within the filter scheduler to update the
current cached list of hosts, and a low rate of deletes.

It introduces the new config value:
scheduler_driver_task_period

The periodic task it controls is used by the caching scheduler to fetch
an updated copy of host_manager.get_all_host_states.

If your value for service_down_time is much smaller than
scheduler_driver_task_period, there will be issues with hosts appearing
to be dead, just because the list of hosts is being cached. Correct
configuration of those two values can avoid this issue.

DocImpact
Part of blueprint caching-scheduler
Change-Id: I2eb873ce8024a576e597205e2d52b5d5e8aee97a
2014-02-26 13:53:07 +00:00
Christian Berendt bc554b9fa8 changed quantum to neutron in vif-openstack
Change-Id: I50c14066584527a6fbc25c59b0bf03a321a5f1f5
2014-02-13 15:23:45 +01:00
liu-sheng 74f953a1d7 Remove vi modelines
We don't need to have the vi modelines in each source file,
it can be set in a user's vimrc if required.

Also a check is added to hacking to detect if they are re-added.

Change-Id: I347307a5145b2760c69085b6ca850d6a9137ffc6
Closes-Bug: #1229324
2014-02-03 14:19:44 +00:00
Joe Gordon 242ad6477c Remove smoketests
We don't use them anymore. Also remove boto_v6 since only smoketests
have was using it.

Change-Id: Iee206fd4ba6cd502ded794f2de302062604d4186
2013-12-16 12:03:32 -08:00
Mark McLoughlin fd3328511d Remove obsolete redhat-eventlet.patch
See I62ce43a330d7ae94eda4c7498782a655e63747fa for the gorey details on
why this exists.

As of this fix:

https://github.com/eventlet/eventlet/pull/34

which was released in eventlet 0.13, we no longer need the patch.

This has now been removed from oslo-incubator, so this is really just
syncing that removal.

Change-Id: I84267f3c6726cb2e750f615e107c48b12c6ed353
2013-10-09 21:34:58 +01:00
Joe Gordon 8f394ee716 Enable N302: Import modules only
Fix all N302 issues, and re-enable.

Change-Id: Ic94d144c915b228b7ff2fd9c5951875e159ffcdd
2013-01-25 12:11:54 -05:00
Joe Gordon 4845fc2720 Fix hacking N302 import only modules
* Includes some general tools/hacking cleanup
* Fix several N302 cases
* Disable N302 until all cases are fixed

Change-Id: Iddba07ff13e10dc41a6930749044bb8c0572d279
2013-01-24 09:52:58 -05:00
Jenkins dac10bad5f Merge "script for configuring a vif in Xen in non-bridged mode" 2013-01-15 21:39:34 +00:00
Lorin Hochstein 5ca75b747f Remove obsolete config drive init.d example
Delete the example init.d script that uses the config drive. This
script is not compatible with the current implementation of
config drive.

Change-Id: I9cf5542ef84a206b9ac5dc05637b3f6ecaaba548
2012-11-20 21:07:15 -05:00
Christian Berendt 500e5be3a8 script for configuring a vif in Xen in non-bridged mode
Creates a new vif device without attaching it to a
bridge. Quantum Linux Bridge Agent will attach the
created device to the belonging bridge.

Change-Id: I1818a92a47882d98e384b57e0fa84a0fa09d40ea
2012-11-12 16:52:32 +01:00
Monty Taylor 8d8d3b4296 Run hacking tests as part of the gate.
Nova has additional pep8 "plugins" that they expect to run as part of the
gate. This patch will run tools/hacking.py instead of pep8 directly. Also,
it fixes the hacking violaions in contrib, plugins and smoketests.

Fixes bug 1010136

Change-Id: I86d8789218c197d5d4a43d1201465d340646a395
2012-07-02 08:50:41 -04:00
Monty Taylor cf34a60157 Finalize tox config.
Shrink tox.ini to the new short version.
Fix the test cases to be able to be run in nosetets plus the
openstack.nose_plugin, which finally removes the need for
nova/testing/runner.py
Also, now we'll just output directly to stdout, which will
make nose collect the trace logging directly and either output
it at the end of the run, or inject it into the xunit output
appropriately.

Change-Id: I1456e18a11a840145492038108bdfe812c8230d1
2012-06-07 12:15:42 -04:00
Justin Santa Barbara f4bf828775 Example config_drive init script, label the config drive
Configuration with DHCP & cloud-init can be painful.  The config_drive is great,
and it avoids disk injection, but there's no example of how to use it.

So here's a little example init.d script for contrib, and a code patch to make
sure the config drive gets a nice volume label.

Change-Id: I22a1d6a824856ca9651b435d0fe54e348ab107fe
2012-02-24 02:57:09 -08:00
Vishvananda Ishaya 20b4d89512 Remove a whole bunch of unused imports
Change-Id: I6759e5b6250c48cc0deb4b198b44c948c64c47d1
2012-01-13 13:55:38 -08:00
Lorin Hochstein dfcb237904 Remove contrib/nova.sh and other stale docs.
Removed contrib/nova.sh and any references to it in the RST docs.

removed refernece to old livecd that has nova circa 2010 on it.

.gitignore'ing some additional autogenerated doc files.

Change-Id: I7a07a58a9a6f1112fc7e486367a06f6916207784
2011-11-15 16:32:37 -05:00
Lorin Hochstein 9175822ffe Workaround for eventlet bug with unit tests in RHEL6.1.
This adds a patch to fix the broken eventlet code that's installed in the
virtualenv.

Fixes bug 884915

Change-Id: I6dbf755abbc5a52208de3dd892257ce39686d396
2011-11-09 14:54:16 -05:00
Chris Behrens b6c306b1a2 add kombu to pip-requires and contrib/nova.sh 2011-08-30 13:55:06 -07:00
Brian Waldon 07646e8584 removing compute monitor 2011-08-02 10:09:58 -04:00
Vishvananda Ishaya 9513dba163 update nova.sh 2011-06-27 09:07:49 -07:00
Vishvananda Ishaya 5120ad458f fix typos 2011-03-25 09:40:59 -07:00
Vishvananda Ishaya e6192a67bd updated nova.sh 2011-03-25 09:23:10 -07:00
Tushar Patil d6589138bd Fixed netadmin smoketests for ipv6 2011-03-18 14:34:37 -07:00
Tushar Patil 59d2a315b8 Fix for LP Bug #737240 2011-03-17 18:26:20 -07:00
Kei Masumoto 0dcd680771 merged to trunk rev781 2011-03-10 15:23:13 +09:00
Vishvananda Ishaya ecc6bce311 add a delay before grabbing zipfile 2011-03-07 16:01:43 -08:00
Vishvananda Ishaya ac681cddda zipfile needs to be extracted after nova is running 2011-03-06 19:21:14 -08:00
Kei Masumoto 1f0df07baa Fixed based on reviewer's comment. Main changes are below.
1. get_vcpu_total()/get_memory_mb()/get_memory_mb_used() is changed for users who used non-linux environment.
2. test code added to test_virt.
2011-03-05 00:57:08 +09:00
Vishvananda Ishaya f066b83f89 Fixes existing smoketests and splits out sysadmin tests from netadmin tests.
* sets use_ipv6 = False by default
* switches to ami-tty for tests
* generally improves error handling
2011-02-23 20:10:17 +00:00
Vishvananda Ishaya 2fd33bdd50 separate out smoketests and add updated nova.sh 2011-02-22 18:04:08 -08:00
Christian Berendt a7eed42c57 puppet scripts only there as an example, should be moved to some other place if they are still necessary 2011-02-20 20:56:14 +01:00
Vishvananda Ishaya 9bdcc71733 wrap sqlalchemy exceptions in a generic error 2011-01-21 15:48:10 -08:00
Vishvananda Ishaya ffe08ea0c5 fix ipv6 conditional 2011-01-20 00:40:57 -08:00
Vishvananda Ishaya 72f08004f3 add helpful error messages to nova-manage and update nova.sh 2011-01-19 10:26:55 -08:00
Hisaharu Ishii f5f0819e1c Merged with r562 2011-01-14 11:40:50 +09:00
Nachi Ueno bc0c5ba502 Moved commands which needs sudo to nova.sh 2011-01-14 06:25:41 +09:00
Vishvananda Ishaya 0e307db62b merged trunk 2011-01-13 01:57:53 -08:00
Nachi Ueno 0a33f1ed87 Merged with 549 2011-01-12 18:46:01 +09:00
Nachi Ueno d368d182d7 Add DescribeInstanceV6 for backward compatibility 2011-01-12 12:05:27 +09:00
Vishvananda Ishaya b5f8ab0e91 fix injection and xml 2011-01-05 19:16:17 +00:00
Nachi Ueno b14a8975de The _update method in base Instance class overides dns_name_v6,so fixed it. 2011-01-05 09:52:45 -05:00
Nachi Ueno 4267c1f204 Merged and fiexed conflicts with r515 2011-01-04 04:18:26 -05:00
Anthony Young eb0ba37ff9 apt-get install socat, which is used to connect to the console 2010-12-29 16:07:41 -08:00
Anthony Young aa71b29518 add ajax console proxy to nova.sh 2010-12-28 18:11:28 -08:00
Anthony Young 4b5bd4b4a8 merge trunk 2010-12-28 18:11:02 -08:00
NTT PF Lab. c5c58cb20d Support IPv6 2010-12-24 20:38:49 +09:00
David Pravec 8060b526e1 Make nova work even when user has LANG or LC_ALL configured
Some commands are having different results when used in another language environment.
  For example ifconfig output parsing fails in my language.
  Also unittest using cat failed, as it didnt expect czech language in the error message.
  
  This small patch makes it work.
  Also adding myself to 'Authors' file.
2010-12-16 12:35:46 +01:00
Vishvananda Ishaya 0a93a9298d The ppa was moved. This updates nova.sh to reflect that. 2010-12-15 07:48:51 +00:00