Some server attributes are not de-serialized from XML during create

Bug #1050997 reported by Dan Smith
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Medium
Vish Ishaya

Bug Description

The following are server attributes which are not de-serialized in servers.CommonDeserializer._extract_server() but later used in servers.Controller.create():

 - block_device_mapping
 - availability_zone
 - return_reservation_id
 - min_count
 - max_count
 - scheduler_hints

This means that servers cannot be created via an XML representation if using those attributes.

Dan Smith (danms)
Changed in nova:
assignee: nobody → Dan Smith (danms)
importance: Undecided → Medium
status: New → In Progress
summary: - adminPass and access IP information can't be passed in XML
+ XML deserialization issues in compute extensions
description: updated
description: updated
description: updated
Revision history for this message
Matthew Treinish (treinish) wrote : Re: XML deserialization issues in compute extensions
description: updated
Revision history for this message
Matthew Treinish (treinish) wrote :

That should be bug 1050797, I missed a '0' above

Changed in nova:
assignee: Dan Smith (danms) → Mauro Sergio Martins Rodrigues (maurosr)
Revision history for this message
Mark McLoughlin (markmc) wrote :

This bug originally was about rebuild action de-serialization:

  Server Rebuild:

  The following attributes aren't honored when calling server rebuild via XML:
   - adminPass
   - accessIPv4
   - accessIPv6

  This was uncovered during api_sample test development for server actions:

  https://review.openstack.org/#/c/13035/

But this issue was fixed by https://review.openstack.org/13033

I'm not really sure why we re-purposed this bug for another issue, but ...

description: updated
summary: - XML deserialization issues in compute extensions
+ Some server attributes are not de-serialized from XML during create
Revision history for this message
Mark McLoughlin (markmc) wrote :

Also removed the reference to the user_data issue from the description since that is handled by bug 1050797

Revision history for this message
Mark McLoughlin (markmc) wrote :

https://review.openstack.org/12940 fixes the scheduler_hints piece

Mark McLoughlin (markmc)
description: updated
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

Reviewed: https://review.openstack.org/12940
Committed: http://github.com/openstack/nova/commit/81e76480af6ad17943cd2385a045d24217b07a7b
Submitter: Jenkins
Branch: master

commit 81e76480af6ad17943cd2385a045d24217b07a7b
Author: Mauro S. M. Rodrigues <email address hidden>
Date: Thu Sep 13 01:59:43 2012 -0400

    Include Schedule Hints deserialization to XML API

    So far the xml format to schedule hints were not defined.
    Once defined (in ML), this patch add support to its deserialization.

    This patch also includes a xml deserialization method to get the Elements
    between the childs of a node.

    Partially fixes bug 1050997

    Change-Id: I2a34dbbd6200755818d7eaa7330a96d61a043614

Changed in nova:
status: In Progress → Fix Committed
Changed in nova:
status: Fix Committed → In Progress
Changed in nova:
assignee: Mauro Sergio Martins Rodrigues (maurosr) → Vish Ishaya (vishvananda)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (master)

Fix proposed to branch: master
Review: https://review.openstack.org/13221

Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

Fix proposed to branch: master
Review: https://review.openstack.org/13222

Revision history for this message
Vish Ishaya (vishvananda) wrote :

patches in queue for everything but block_device_mapping. Probably going to push block_device_mapping out of folsom and list it as a known issue.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

Reviewed: https://review.openstack.org/13221
Committed: http://github.com/openstack/nova/commit/71c9677d803a722f5c9eb5b2d0719f1e713d1b7b
Submitter: Jenkins
Branch: master

commit 71c9677d803a722f5c9eb5b2d0719f1e713d1b7b
Author: Vishvananda Ishaya <email address hidden>
Date: Tue Sep 18 11:56:54 2012 -0700

    Add deserialization for multiple create and az

    We were not deserializing xml values causing the multiple create
    extension and the availability zone extension to fail with xml.

    This adds deserialization for these attributes and adds tests

    Part of bug 1050997

    Change-Id: Ic40ce58b0854717dd99dba8ed39c861e31e6bba4

Changed in nova:
status: In Progress → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

Reviewed: https://review.openstack.org/13222
Committed: http://github.com/openstack/nova/commit/8d43c3fba1a5e07703cae6f7b631d0787c4f41bb
Submitter: Jenkins
Branch: master

commit 8d43c3fba1a5e07703cae6f7b631d0787c4f41bb
Author: Vishvananda Ishaya <email address hidden>
Date: Tue Sep 18 12:02:50 2012 -0700

    Makes scheduler hints and disk config xml correct

    The scheduler hints and disk config extensions were not using
    proper prefixes when deserializing xml. This patch modifes
    them to deserialize properly. It leaves the old deserialization
    in place as well so anyone using the broken implementation
    will continue to work.

    It also updates the api samples to use the new format. Note that
    the proper fix required changing the alias for the scheduler hints
    extension, since the alias is used for xml, so the samples had
    to be moved.

    Finally it fixes an issue with deserialization, allowing it to
    support multiple hints with the same name.

    Part of bug 1050997

    Change-Id: I9969582d65d44de25388f07b6d2013fb7d093fb2

Thierry Carrez (ttx)
Changed in nova:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in nova:
milestone: folsom-rc1 → 2012.2
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.