Bug 947749 - nova availability-zone-list 'unicode' object has no attribute 'strftime'
Summary: nova availability-zone-list 'unicode' object has no attribute 'strftime'
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: python-novaclient
Version: 18
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
Assignee: Jakub Ruzicka
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-04-03 07:29 UTC by Attila Fazekas
Modified: 2014-02-05 20:26 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-02-05 20:26:18 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Attila Fazekas 2013-04-03 07:29:08 UTC
Description of problem:
[afazekas@localhost tempest(keystone_admin)]$ nova  availability-zone-list
ERROR: 'unicode' object has no attribute 'strftime'
[afazekas@localhost tempest(keystone_admin)]$ nova  --debug availability-zone-list

REQ: curl -i http://192.168.84.103:35357/v2.0/tokens -X POST -H "Content-Type: application/json" -H "Accept: application/json" -H "User-Agent: python-novaclient" -d '{"auth": {"tenantName": "admin", "passwordCredentials": {"username": "admin", "password": "278189b23c424e88"}}}'

RESP: [200] {'date': 'Wed, 03 Apr 2013 07:20:46 GMT', 'content-type': 'application/json', 'content-length': '2772', 'vary': 'X-Auth-Token'}
RESP BODY: {"access": {"token": {"issued_at": "2013-04-03T07:20:46.729142", "expires": "2013-04-04T07:20:46Z", "id": "c7e7a3916e614c15ac1d7e3cf8222fc7", "tenant": {"description": "admin tenant", "enabled": true, "id": "4251d38a5827440299d71e3b3d78350b", "name": "admin"}}, "serviceCatalog": [{"endpoints": [{"adminURL": "http://192.168.84.103:8774/v2/4251d38a5827440299d71e3b3d78350b", "region": "RegionOne", "internalURL": "http://192.168.84.103:8774/v2/4251d38a5827440299d71e3b3d78350b", "id": "2db2aaf09f6b40d08e30a1db9c32aa01", "publicURL": "http://192.168.84.103:8774/v2/4251d38a5827440299d71e3b3d78350b"}], "endpoints_links": [], "type": "compute", "name": "nova"}, {"endpoints": [{"adminURL": "http://192.168.84.103:8080", "region": "RegionOne", "internalURL": "http://192.168.84.103:8080", "id": "40f8b665f42b4e41b328e047413d0759", "publicURL": "http://192.168.84.103:8080"}], "endpoints_links": [], "type": "s3", "name": "swift_s3"}, {"endpoints": [{"adminURL": "http://192.168.84.103:9292", "region": "RegionOne", "internalURL": "http://192.168.84.103:9292", "id": "3d22f91cf34c4a04b7fb8e61eb1f6d21", "publicURL": "http://192.168.84.103:9292"}], "endpoints_links": [], "type": "image", "name": "glance"}, {"endpoints": [{"adminURL": "http://192.168.84.103:8776/v1/4251d38a5827440299d71e3b3d78350b", "region": "RegionOne", "internalURL": "http://192.168.84.103:8776/v1/4251d38a5827440299d71e3b3d78350b", "id": "a26fa46bb579476e92e53daa1cbfeaf2", "publicURL": "http://192.168.84.103:8776/v1/4251d38a5827440299d71e3b3d78350b"}], "endpoints_links": [], "type": "volume", "name": "cinder"}, {"endpoints": [{"adminURL": "http://192.168.84.103:8773/services/Admin", "region": "RegionOne", "internalURL": "http://192.168.84.103:8773/services/Cloud", "id": "4f6a0b29a19b459a9259960dc322bb4a", "publicURL": "http://192.168.84.103:8773/services/Cloud"}], "endpoints_links": [], "type": "ec2", "name": "nova_ec2"}, {"endpoints": [{"adminURL": "http://192.168.84.103:8080/", "region": "RegionOne", "internalURL": "http://192.168.84.103:8080/v1/AUTH_4251d38a5827440299d71e3b3d78350b", "id": "bf4a326a281f48da891df48443500c24", "publicURL": "http://192.168.84.103:8080/v1/AUTH_4251d38a5827440299d71e3b3d78350b"}], "endpoints_links": [], "type": "object-store", "name": "swift"}, {"endpoints": [{"adminURL": "http://192.168.84.103:35357/v2.0", "region": "RegionOne", "internalURL": "http://192.168.84.103:5000/v2.0", "id": "65dee14989da481bb2b6ae7885f5ad4e", "publicURL": "http://192.168.84.103:5000/v2.0"}], "endpoints_links": [], "type": "identity", "name": "keystone"}], "user": {"username": "admin", "roles_links": [], "id": "6787bedca8804cd7b204748d0240235c", "roles": [{"name": "admin"}], "name": "admin"}, "metadata": {"is_admin": 0, "roles": ["0883e0b9278e44b28100e33b01e7313a"]}}}


REQ: curl -i http://192.168.84.103:8774/v2/4251d38a5827440299d71e3b3d78350b/os-availability-zone/detail -X GET -H "X-Auth-Project-Id: admin" -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: c7e7a3916e614c15ac1d7e3cf8222fc7"

RESP: [200] {'date': 'Wed, 03 Apr 2013 07:20:46 GMT', 'x-compute-request-id': 'req-703d5ff6-59ee-4d4c-8853-006e871b15bd', 'content-type': 'application/json', 'content-length': '805'}
RESP BODY: {"availabilityZoneInfo": [{"zoneState": {"available": true}, "hosts": {"localhost.localdomain": {"nova-conductor": {"available": true, "active": true, "updated_at": "2013-04-03T07:20:38.000000"}, "nova-scheduler": {"available": true, "active": true, "updated_at": "2013-04-03T07:20:38.000000"}, "nova-consoleauth": {"available": true, "active": true, "updated_at": "2013-04-03T07:20:38.000000"}, "nova-cert": {"available": true, "active": true, "updated_at": "2013-04-03T07:20:38.000000"}, "nova-network": {"available": true, "active": true, "updated_at": "2013-04-03T07:20:38.000000"}}}, "zoneName": "internal"}, {"zoneState": {"available": true}, "hosts": {"localhost.localdomain": {"nova-compute": {"available": true, "active": true, "updated_at": "2013-04-03T07:20:36.000000"}}}, "zoneName": "nova"}]}

DEBUG (shell:739) object.__new__(thread.lock) is not safe, use thread.lock.__new__()
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/novaclient/shell.py", line 736, in main
    OpenStackComputeShell().main(sys.argv[1:])
  File "/usr/lib/python2.7/site-packages/novaclient/shell.py", line 672, in main
    args.func(self.cs, args)
  File "/usr/lib/python2.7/site-packages/novaclient/v1_1/shell.py", line 2944, in do_availability_zone_list
    result += _treeizeAvailabilityZone(zone)
  File "/usr/lib/python2.7/site-packages/novaclient/v1_1/shell.py", line 2893, in _treeizeAvailabilityZone
    az = AvailabilityZone(copy.deepcopy(zone.manager),
  File "/usr/lib64/python2.7/copy.py", line 190, in deepcopy
    y = _reconstruct(x, rv, 1, memo)
  File "/usr/lib64/python2.7/copy.py", line 334, in _reconstruct
    state = deepcopy(state, memo)
  File "/usr/lib64/python2.7/copy.py", line 163, in deepcopy
    y = copier(x, memo)
  File "/usr/lib64/python2.7/copy.py", line 257, in _deepcopy_dict
    y[deepcopy(key, memo)] = deepcopy(value, memo)
  File "/usr/lib64/python2.7/copy.py", line 190, in deepcopy
    y = _reconstruct(x, rv, 1, memo)
  File "/usr/lib64/python2.7/copy.py", line 334, in _reconstruct
    state = deepcopy(state, memo)
  File "/usr/lib64/python2.7/copy.py", line 163, in deepcopy
    y = copier(x, memo)
  File "/usr/lib64/python2.7/copy.py", line 257, in _deepcopy_dict
    y[deepcopy(key, memo)] = deepcopy(value, memo)
  File "/usr/lib64/python2.7/copy.py", line 190, in deepcopy
    y = _reconstruct(x, rv, 1, memo)
  File "/usr/lib64/python2.7/copy.py", line 334, in _reconstruct
    state = deepcopy(state, memo)
  File "/usr/lib64/python2.7/copy.py", line 163, in deepcopy
    y = copier(x, memo)
  File "/usr/lib64/python2.7/copy.py", line 257, in _deepcopy_dict
    y[deepcopy(key, memo)] = deepcopy(value, memo)
  File "/usr/lib64/python2.7/copy.py", line 190, in deepcopy
    y = _reconstruct(x, rv, 1, memo)
  File "/usr/lib64/python2.7/copy.py", line 334, in _reconstruct
    state = deepcopy(state, memo)
  File "/usr/lib64/python2.7/copy.py", line 163, in deepcopy
    y = copier(x, memo)
  File "/usr/lib64/python2.7/copy.py", line 257, in _deepcopy_dict
    y[deepcopy(key, memo)] = deepcopy(value, memo)
  File "/usr/lib64/python2.7/copy.py", line 163, in deepcopy
    y = copier(x, memo)
  File "/usr/lib64/python2.7/copy.py", line 230, in _deepcopy_list
    y.append(deepcopy(a, memo))
  File "/usr/lib64/python2.7/copy.py", line 190, in deepcopy
    y = _reconstruct(x, rv, 1, memo)
  File "/usr/lib64/python2.7/copy.py", line 334, in _reconstruct
    state = deepcopy(state, memo)
  File "/usr/lib64/python2.7/copy.py", line 163, in deepcopy
    y = copier(x, memo)
  File "/usr/lib64/python2.7/copy.py", line 257, in _deepcopy_dict
    y[deepcopy(key, memo)] = deepcopy(value, memo)
  File "/usr/lib64/python2.7/copy.py", line 190, in deepcopy
    y = _reconstruct(x, rv, 1, memo)
  File "/usr/lib64/python2.7/copy.py", line 334, in _reconstruct
    state = deepcopy(state, memo)
  File "/usr/lib64/python2.7/copy.py", line 163, in deepcopy
    y = copier(x, memo)
  File "/usr/lib64/python2.7/copy.py", line 257, in _deepcopy_dict
    y[deepcopy(key, memo)] = deepcopy(value, memo)
  File "/usr/lib64/python2.7/copy.py", line 190, in deepcopy
    y = _reconstruct(x, rv, 1, memo)
  File "/usr/lib64/python2.7/copy.py", line 329, in _reconstruct
    y = callable(*args)
  File "/usr/lib64/python2.7/copy_reg.py", line 93, in __newobj__
    return cls.__new__(cls, *args)
TypeError: object.__new__(thread.lock) is not safe, use thread.lock.__new__()
ERROR: object.__new__(thread.lock) is not safe, use thread.lock.__new__()


Version-Release number of selected component (if applicable):
baseurl=http://repos.fedorapeople.org/repos/openstack/openstack-grizzly/fedora-$releasever/

[afazekas@localhost tempest(keystone_admin)]$ rpm -qa |grep nova
python-novaclient-2.11.1-3.fc19.noarch
openstack-nova-compute-2013.1-0.11.rc1.fc19.noarch
openstack-nova-network-2013.1-0.11.rc1.fc19.noarch
openstack-nova-objectstore-2013.1-0.11.rc1.fc19.noarch
python-nova-2013.1-0.11.rc1.fc19.noarch
openstack-nova-conductor-2013.1-0.11.rc1.fc19.noarch
openstack-nova-cert-2013.1-0.11.rc1.fc19.noarch
openstack-nova-api-2013.1-0.11.rc1.fc19.noarch
openstack-nova-scheduler-2013.1-0.11.rc1.fc19.noarch
openstack-nova-console-2013.1-0.11.rc1.fc19.noarch
openstack-nova-novncproxy-0.4-5.fc19.noarch
openstack-nova-common-2013.1-0.11.rc1.fc19.noarch

How reproducible:
always

  
Expected results:
Display zones with and without --debug option.

Additional info:
Installed by packstack on defualt f18 kde respin on physical machine.
(testresources and testtools installed from pypi)

Comment 1 Fedora End Of Life 2013-12-21 12:38:01 UTC
This message is a reminder that Fedora 18 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 18. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as WONTFIX if it remains open with a Fedora 
'version' of '18'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version prior to Fedora 18's end of life.

Thank you for reporting this issue and we are sorry that we may not be 
able to fix it before Fedora 18 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior to Fedora 18's end of life.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 2 Fedora End Of Life 2014-02-05 20:26:18 UTC
Fedora 18 changed to end-of-life (EOL) status on 2014-01-14. Fedora 18 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.


Note You need to log in before you can comment on or make changes to this bug.