yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #28207
[Bug 1418675] Re: libvirt utils doesn't canonicalize the image architecture property
** Also affects: glance
Importance: Undecided
Status: New
--
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/1418675
Title:
libvirt utils doesn't canonicalize the image architecture property
Status in OpenStack Image Registry and Delivery Service (Glance):
New
Status in OpenStack Compute (Nova):
New
Bug description:
If the image has an architecture property, the libvirt utils do *not*
canonicalize that.
``utils.get_arch(image_meta)`` can possibly return "S390X" (<= upper
case). The canonicalized version should be "s390x" (<= lower case).
This will be an issue when a user adds the property
"architecture=S390X" on an image.
I used "S390X" as an arbitrary example. The real issue here is the
lower case and upper case thing.
See method ``get_arch(image_meta)`` in https://github.com/openstack/nova/blob/master/nova/virt/libvirt/utils.py#L557
See method ``canonicalize(name)`` in https://github.com/openstack/nova/blob/master/nova/compute/arch.py#L147
To manage notifications about this bug go to:
https://bugs.launchpad.net/glance/+bug/1418675/+subscriptions
References