Error "nova volume-create" - TypeError: %x format: a number is required, not unicode

Bug #1065549 reported by John D'Esposito
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Invalid
Undecided
Unassigned

Bug Description

I am running ubuntu 12.04 Folsom 2012.2.

When I run the following command:

nova volume-create --display_name folsomv1 50

The following error occurs:

TypeError: %x format: a number is required, not unicode

Also, the state of the volume create is always seen as "creating".

============== log file snippet =============

2012-10-11 09:44:07 ERROR nova.openstack.common.rpc.amqp [-] Exception during message handling
2012-10-11 09:44:07 TRACE nova.openstack.common.rpc.amqp Traceback (most recent call last):
2012-10-11 09:44:07 TRACE nova.openstack.common.rpc.amqp File "/usr/lib/python2.7/dist-packages/nova/openstack/common/rpc/amqp.py", line 275, in _process_data
2012-10-11 09:44:07 TRACE nova.openstack.common.rpc.amqp rval = self.proxy.dispatch(ctxt, version, method, **args)
2012-10-11 09:44:07 TRACE nova.openstack.common.rpc.amqp File "/usr/lib/python2.7/dist-packages/nova/openstack/common/rpc/dispatcher.py", line 145, in dispatch
2012-10-11 09:44:07 TRACE nova.openstack.common.rpc.amqp return getattr(proxyobj, method)(ctxt, **kwargs)
2012-10-11 09:44:07 TRACE nova.openstack.common.rpc.amqp File "/usr/lib/python2.7/dist-packages/nova/volume/manager.py", line 121, in create_volume
2012-10-11 09:44:07 TRACE nova.openstack.common.rpc.amqp LOG.info(_("volume %s: creating"), volume_ref['name'])
2012-10-11 09:44:07 TRACE nova.openstack.common.rpc.amqp File "/usr/lib/python2.7/dist-packages/nova/db/sqlalchemy/models.py", line 73, in __getitem__
2012-10-11 09:44:07 TRACE nova.openstack.common.rpc.amqp return getattr(self, key)
2012-10-11 09:44:07 TRACE nova.openstack.common.rpc.amqp File "/usr/lib/python2.7/dist-packages/nova/db/sqlalchemy/models.py", line 356, in name
2012-10-11 09:44:07 TRACE nova.openstack.common.rpc.amqp return FLAGS.volume_name_template % self.id
2012-10-11 09:44:07 TRACE nova.openstack.common.rpc.amqp TypeError: %x format: a number is required, not unicode

==============================================================================

thanks

John

Revision history for this message
John D'Esposito (johndesp) wrote :

Solved:

In essex we had the following parameter in the nova.conf

#volume_name_template=volume-%08x

We copied it over to folsom.

Once I pounded out the parameter and restarted nova-volumes I was able to create the volume.

Please close this item. This is not a bug.

I hope this helps other folks.

thanks

John

Michael Still (mikal)
Changed in nova:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.