I hereby claim:
- I am sorrison on github.
- I am sorrison (https://keybase.io/sorrison) on keybase.
- I have a public key ASByJyeqgudSUNVO8fwoaSJ23Jgi6JkacwUZJ8a6tB7DlQo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
- resource_type: resource_provider | |
archive_policy: stats | |
metrics: | |
- 'resource_provider.usage.vcpu' | |
- 'resource_provider.usage.memory' | |
- 'resource_provider.usage.disk' | |
- 'resource_provider.capacity.vcpu' | |
- 'resource_provider.capacity.memory' | |
- 'resource_provider.capacity.disk' |
I hereby claim:
To claim this, I am signing this object:
{
FAULTS = { | |
'general': [ | |
"%Unexpected task state%", | |
"%Unexpected error while running command.%", | |
"Compute service of % is unavailable at this time.", | |
"Instance % is not running.", | |
"Instance % is not ready", | |
"%Unauthorized (HTTP 401)%", | |
"%Flavor % could not be found.%", | |
"Instance % could not be found.", |
FAULTS = { | |
'general': [ | |
"%Unexpected task state%", | |
"%Unexpected error while running command.%", | |
"Compute service of % is unavailable at this time.", | |
"Instance % is not running.", | |
"%DBDeadlock%", | |
"%Deadlock found when trying to get lock%", | |
"Instance % is not ready", | |
"%Unauthorized (HTTP 401)%", |
AWSTemplateFormatVersion: '2010-09-09' | |
Description: 'Built in HAProxy server' | |
Outputs: | |
PublicIp: | |
Description: 'instance IP' | |
Value: | |
Fn::GetAtt: | |
- 'LB_instance' | |
- 'PublicIp' | |
Parameters: |
2015-03-24 10:15:15.974 27650 DEBUG nova.cells.messaging [req-dd22b160-2448-420e-bf7b-9ffe7256a4a8 25 2f6f7e75fc0f453d9c127b490b02e9e3] [instance: 85bb8347-1c0e-42d0-9bbd-f211dd34d611] Got update for instance: {u'vm_state': u'building', u'availability_zone': None, u'terminated_at': None, u'ephemeral_gb': 30, u'instance_type_id': 7, u'user_data': None, u'cleaned': False, u'vm_mode': None, u'deleted_at': None, u'reservation_id': u'r-o4n6gcr4', u'disable_terminate': False, u'display_name': u'monashtest', u'uuid': u'85bb8347-1c0e-42d0-9bbd-f211dd34d611', u'default_swap_device': None, u'hostname': u'monashtest', u'launched_on': None, u'display_description': u'monashtest', u'key_data': None, u'kernel_id': u'', u'power_state': 0, u'default_ephemeral_device': None, u'progress': 0, u'project_id': u'2f6f7e75fc0f453d9c127b490b02e9e3', u'launched_at': None, u'scheduled_at': None, u'node': None, u'ramdisk_id': u'', u'access_ip_v6': None, u'access_ip_v4': None, u'deleted': False, u'key_name': None, u'updated_at': None, u'h |
from nova import context | |
from nova.openstack.common import timeutils | |
from nova.db.sqlalchemy import api | |
from nova.openstack.common.db.sqlalchemy import session as db_session | |
from nova.db.sqlalchemy.api import ( | |
PER_PROJECT_QUOTAS, | |
_get_project_user_quota_usages, | |
_quota_usage_create, | |
require_context, | |
_retry_on_deadlock, |
AWSTemplateFormatVersion: '2010-09-09' | |
Description: 'Built in HAProxy server' | |
Outputs: | |
PublicIp: | |
Description: 'instance IP' | |
Value: | |
Fn::GetAtt: | |
- 'LB_instance' | |
- 'PublicIp' | |
Parameters: |
diff --git a/nova/scheduler/rpcapi.py b/nova/scheduler/rpcapi.py | |
index e0a3190..e761449 100644 | |
--- a/nova/scheduler/rpcapi.py | |
+++ b/nova/scheduler/rpcapi.py | |
@@ -97,6 +97,11 @@ class SchedulerAPI(object): | |
self.client = rpc.get_client(target, version_cap=version_cap, | |
serializer=serializer) | |
+ def _get_compat_version(self, current, havana_compat): | |
+ if not self.client.can_send_version(current): |