** Changed in: nova
       Status: Confirmed => Won't Fix

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1092714

Title:
  unit test state leaks

Status in OpenStack Compute (Nova):
  Won't Fix

Bug description:
  If you run testr with --concurrency=255 (make sure to have a machine
  with at lest 24 GB memory) we still have a few state leaks between
  tests. The following are those fails.

  ======================================================================
  ERROR: 
nova.tests.integrated.test_api_samples.SimpleTenantUsageSampleJsonTest.test_get_tenant_usage_details
  tags: worker-198
  ----------------------------------------------------------------------
  Empty attachments:
    stderr
    stdout

  pythonlogging:'nova': {{{
  Loading compute driver 'nova.virt.fake.FakeDriver'
  Loading network driver 'nova.network.linux_net'
  Starting compute node (version 2013.1)
  Updating host status
  Auditing locally available compute resources
  Free ram (MB): 7680
  Free disk (GB): 1028
  Free VCPUS: 1
  Compute_service record created for 257bd93648c9434cb4b598471b920e9c 
  Starting cert node (version 2013.1)
  Loading network driver 'nova.network.linux_net'
  Starting network node (version 2013.1)
  Starting scheduler node (version 2013.1)
  Starting conductor node (version 2013.1)
  Initializing extension manager.
  Loaded extension: os-simple-tenant-usage
  Initializing extension manager.
  Loaded extension: os-simple-tenant-usage
  osapi_compute listening on 127.0.0.1:38209
  http://127.0.0.1:38209/v2
  Doing GET on /v2
  (12170) wsgi starting up on http://127.0.0.1:38209/

  127.0.0.1 "GET /v2 HTTP/1.1" status: 204 len: 216 time: 0.0005970

  Doing POST on /v2/openstack/servers
  Body: {
      "server" : {
          "name" : "new-server-test",
          "imageRef" : 
"http://openstack.example.com/openstack/images/70a599e0-31e7-49b7-b260-868f441e862b";,
          "flavorRef" : "http://openstack.example.com/openstack/flavors/1";,
          "metadata" : {
              "My Server Name" : "Apache1"
          },
          "personality" : [
              {
                  "path" : "/etc/banner.txt",
                  "contents" : 
"ICAgICAgDQoiQSBjbG91ZCBkb2VzIG5vdCBrbm93IHdoeSBpdCBtb3ZlcyBpbiBqdXN0IHN1Y2ggYSBkaXJlY3Rpb24gYW5kIGF0IHN1Y2ggYSBzcGVlZC4uLkl0IGZlZWxzIGFuIGltcHVsc2lvbi4uLnRoaXMgaXMgdGhlIHBsYWNlIHRvIGdvIG5vdy4gQnV0IHRoZSBza3kga25vd3MgdGhlIHJlYXNvbnMgYW5kIHRoZSBwYXR0ZXJucyBiZWhpbmQgYWxsIGNsb3VkcywgYW5kIHlvdSB3aWxsIGtub3csIHRvbywgd2hlbiB5b3UgbGlmdCB5b3Vyc2VsZiBoaWdoIGVub3VnaCB0byBzZWUgYmV5b25kIGhvcml6b25zLiINCg0KLVJpY2hhcmQgQmFjaA=="
              }
          ]
      }
  }
  POST http://127.0.0.1:38209/v2/openstack/servers
  Starting instance...
  Attempting claim: memory 512 MB, disk 0 GB, VCPUs 1
  Total Memory: 8192 MB, used: 512 MB
  Memory limit not specified, defaulting to unlimited
  Total Disk: 1028 GB, used: 0 GB
  Disk limit not specified, defaulting to unlimited
  Total CPU: 1 VCPUs, used: 0 VCPUs
  CPU limit not specified, defaulting to unlimited
  Claim successful
  http://127.0.0.1:38209/v2/openstack/servers returned with HTTP 202
  127.0.0.1 "POST /v2/openstack/servers HTTP/1.1" status: 202 len: 606 time: 
20.4780099

  Doing GET on 
/v2/openstack/os-simple-tenant-usage/openstack?start=2012-12-20+21%3A47%3A12.784353&end=2012-12-20+22%3A47%3A12.784353
  GET 
http://127.0.0.1:38209/v2/openstack/os-simple-tenant-usage/openstack?start=2012-12-20+21%3A47%3A12.784353&end=2012-12-20+22%3A47%3A12.784353
  
http://127.0.0.1:38209/v2/openstack/os-simple-tenant-usage/openstack?start=2012-12-20+21%3A47%3A12.784353&end=2012-12-20+22%3A47%3A12.784353
 returned with HTTP 200
  127.0.0.1 "GET 
/v2/openstack/os-simple-tenant-usage/openstack?start=2012-12-20+21%3A47%3A12.784353&end=2012-12-20+22%3A47%3A12.784353
 HTTP/1.1" status: 200 len: 707 time: 0.8514791

  Stopping WSGI server.
  This shouldn't be getting called except during testing.
  This shouldn't be getting called except during testing.
  This shouldn't be getting called except during testing.
  This shouldn't be getting called except during testing.
  }}}

  Traceback (most recent call last):
    File "/home/stack/code/nova/nova/tests/integrated/test_api_samples.py", 
line 1667, in test_get_tenant_usage_details
      response)
    File "/home/stack/code/nova/nova/tests/integrated/test_api_samples.py", 
line 240, in _verify_response
      response_data)
    File "/home/stack/code/nova/nova/tests/integrated/test_api_samples.py", 
line 215, in _verify_something
      return self._compare_result(subs, expected, result)
    File "/home/stack/code/nova/nova/tests/integrated/test_api_samples.py", 
line 158, in _compare_result
      res = self._compare_result(subs, expected[key], result[key])
    File "/home/stack/code/nova/nova/tests/integrated/test_api_samples.py", 
line 158, in _compare_result
      res = self._compare_result(subs, expected[key], result[key])
    File "/home/stack/code/nova/nova/tests/integrated/test_api_samples.py", 
line 178, in _compare_result
      % locals())
  NoMatch: Result: {u'instance_id': u'7b7b605a-44c1-4cb1-9ae8-4edfd1bde7aa', 
u'uptime': 3602, u'started_at': u'2012-12-20T21:47:10.570956', u'ended_at': 
None, u'memory_mb': 512, u'tenant_id': u'openstack', u'vcpus': 1, u'hours': 
1.0, u'state': u'active', u'flavor': u'm1.tiny', u'local_gb': 0, u'name': 
u'new-server-test'} not in [{u'instance_id': u'%(uuid)s', u'uptime': 3600, 
u'started_at': u'%(timestamp)s', u'ended_at': None, u'memory_mb': 512, 
u'tenant_id': u'openstack', u'vcpus': 1, u'hours': 1.0, u'state': u'active', 
u'flavor': u'm1.tiny', u'local_gb': 0, u'name': u'new-server-test'}].
  ======================================================================
  ERROR: 
nova.tests.integrated.test_api_samples.SimpleTenantUsageSampleXmlTest.test_get_tenant_usage_details
  tags: worker-59
  ----------------------------------------------------------------------
  Empty attachments:
    stderr
    stdout

  pythonlogging:'nova': {{{
  Loading compute driver 'nova.virt.fake.FakeDriver'
  Loading network driver 'nova.network.linux_net'
  Starting compute node (version 2013.1)
  Updating host status
  Auditing locally available compute resources
  Free ram (MB): 7680
  Free disk (GB): 1028
  Free VCPUS: 1
  Compute_service record created for e3607563c45b409caaabce52946a2831 
  Starting cert node (version 2013.1)
  Loading network driver 'nova.network.linux_net'
  Starting network node (version 2013.1)
  Starting scheduler node (version 2013.1)
  Starting conductor node (version 2013.1)
  Initializing extension manager.
  Loaded extension: os-simple-tenant-usage
  Initializing extension manager.
  Loaded extension: os-simple-tenant-usage
  osapi_compute listening on 127.0.0.1:37709
  http://127.0.0.1:37709/v2
  Doing GET on /v2
  (11088) wsgi starting up on http://127.0.0.1:37709/

  127.0.0.1 "GET /v2 HTTP/1.1" status: 204 len: 216 time: 0.0527420

  Doing POST on /v2/openstack/servers
  Body: <?xml version="1.0" encoding="UTF-8"?>
  <server xmlns="http://docs.openstack.org/compute/api/v1.1"; 
imageRef="http://openstack.example.com/openstack/images/70a599e0-31e7-49b7-b260-868f441e862b";
 flavorRef="http://openstack.example.com/openstack/flavors/1"; 
name="new-server-test">
    <metadata>
      <meta key="My Server Name">Apache1</meta>
    </metadata>
    <personality>
      <file path="/etc/banner.txt">
          ICAgICAgDQoiQSBjbG91ZCBkb2VzIG5vdCBrbm93IHdoeSBp
          dCBtb3ZlcyBpbiBqdXN0IHN1Y2ggYSBkaXJlY3Rpb24gYW5k
          IGF0IHN1Y2ggYSBzcGVlZC4uLkl0IGZlZWxzIGFuIGltcHVs
          c2lvbi4uLnRoaXMgaXMgdGhlIHBsYWNlIHRvIGdvIG5vdy4g
          QnV0IHRoZSBza3kga25vd3MgdGhlIHJlYXNvbnMgYW5kIHRo
          ZSBwYXR0ZXJucyBiZWhpbmQgYWxsIGNsb3VkcywgYW5kIHlv
          dSB3aWxsIGtub3csIHRvbywgd2hlbiB5b3UgbGlmdCB5b3Vy
          c2VsZiBoaWdoIGVub3VnaCB0byBzZWUgYmV5b25kIGhvcml6
          b25zLiINCg0KLVJpY2hhcmQgQmFjaA==
      </file>
    </personality>
  </server>
  POST http://127.0.0.1:37709/v2/openstack/servers
  Starting instance...
  Attempting claim: memory 512 MB, disk 0 GB, VCPUs 1
  Total Memory: 8192 MB, used: 512 MB
  Memory limit not specified, defaulting to unlimited
  Total Disk: 1028 GB, used: 0 GB
  Disk limit not specified, defaulting to unlimited
  Total CPU: 1 VCPUs, used: 0 VCPUs
  CPU limit not specified, defaulting to unlimited
  Claim successful
  http://127.0.0.1:37709/v2/openstack/servers returned with HTTP 202
  127.0.0.1 "POST /v2/openstack/servers HTTP/1.1" status: 202 len: 737 time: 
14.7233322

  Doing GET on 
/v2/openstack/os-simple-tenant-usage/openstack?start=2012-12-20+21%3A47%3A19.626234&end=2012-12-20+22%3A47%3A19.626234
  GET 
http://127.0.0.1:37709/v2/openstack/os-simple-tenant-usage/openstack?start=2012-12-20+21%3A47%3A19.626234&end=2012-12-20+22%3A47%3A19.626234
  
http://127.0.0.1:37709/v2/openstack/os-simple-tenant-usage/openstack?start=2012-12-20+21%3A47%3A19.626234&end=2012-12-20+22%3A47%3A19.626234
 returned with HTTP 200
  127.0.0.1 "GET 
/v2/openstack/os-simple-tenant-usage/openstack?start=2012-12-20+21%3A47%3A19.626234&end=2012-12-20+22%3A47%3A19.626234
 HTTP/1.1" status: 200 len: 931 time: 0.2148159

  Stopping WSGI server.
  This shouldn't be getting called except during testing.
  This shouldn't be getting called except during testing.
  This shouldn't be getting called except during testing.
  This shouldn't be getting called except during testing.
  }}}

  Traceback (most recent call last):
    File "/home/stack/code/nova/nova/tests/integrated/test_api_samples.py", 
line 1667, in test_get_tenant_usage_details
      response)
    File "/home/stack/code/nova/nova/tests/integrated/test_api_samples.py", 
line 240, in _verify_response
      response_data)
    File "/home/stack/code/nova/nova/tests/integrated/test_api_samples.py", 
line 215, in _verify_something
      return self._compare_result(subs, expected, result)
    File "/home/stack/code/nova/nova/tests/integrated/test_api_samples.py", 
line 158, in _compare_result
      res = self._compare_result(subs, expected[key], result[key])
    File "/home/stack/code/nova/nova/tests/integrated/test_api_samples.py", 
line 178, in _compare_result
      % locals())
  NoMatch: Result: {'__tag__': 'server_usages', '__content__': '\n    ', 
'server_usages': [{'__tag__': 'server_usage', '__content__': '\n      ', 
'server_usage': [{'__tag__': 'instance_id', '__content__': 
'ab5e8bd0-833c-4728-8076-f81478159f6f'}, {'__tag__': 'name', '__content__': 
'new-server-test'}, {'__tag__': 'hours', '__content__': '1.0'}, {'__tag__': 
'memory_mb', '__content__': '512'}, {'__tag__': 'local_gb', '__content__': 
'0'}, {'__tag__': 'vcpus', '__content__': '1'}, {'__tag__': 'tenant_id', 
'__content__': 'openstack'}, {'__tag__': 'flavor', '__content__': 'm1.tiny'}, 
{'__tag__': 'started_at', '__content__': '2012-12-20 21:47:18.040827'}, 
{'__tag__': 'ended_at', '__content__': 'None'}, {'__tag__': 'state', 
'__content__': 'active'}, {'__tag__': 'uptime', '__content__': '3601'}]}]} not 
in [{'__tag__': 'tenant_id', '__content__': 'openstack'}, {'__tag__': 
'total_local_gb_usage', '__content__': '0.0'}, {'__tag__': 'total_vcpus_usage', 
'__content__': '1.0'}, {'__tag__': 'total_mem
 ory_mb_usage', '__content__': '512.0'}, {'__tag__': 'total_hours', 
'__content__': '1.0'}, {'__tag__': 'start', '__content__': '%(timestamp)s'}, 
{'__tag__': 'stop', '__content__': '%(timestamp)s'}, {'__tag__': 
'server_usages', '__content__': '\n    ', 'server_usages': [{'__tag__': 
'server_usage', '__content__': '\n      ', 'server_usage': [{'__tag__': 
'instance_id', '__content__': '%(uuid)s'}, {'__tag__': 'name', '__content__': 
'new-server-test'}, {'__tag__': 'hours', '__content__': '1.0'}, {'__tag__': 
'memory_mb', '__content__': '512'}, {'__tag__': 'local_gb', '__content__': 
'0'}, {'__tag__': 'vcpus', '__content__': '1'}, {'__tag__': 'tenant_id', 
'__content__': 'openstack'}, {'__tag__': 'flavor', '__content__': 'm1.tiny'}, 
{'__tag__': 'started_at', '__content__': '%(timestamp)s'}, {'__tag__': 
'ended_at', '__content__': 'None'}, {'__tag__': 'state', '__content__': 
'active'}, {'__tag__': 'uptime', '__content__': '3600'}]}]}].
  Ran 3970 (+2288) tests in 76.905s (+14.903s)
  FAILED (id=298, failures=2 (-3), skips=2)

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1092714/+subscriptions

-- 
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to     : yahoo-eng-team@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help   : https://help.launchpad.net/ListHelp

Reply via email to