rebuild command missed some parameters

Bug #1268435 reported by Tiantian Gao
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
python-novaclient
Fix Released
Medium
Liyingjun

Bug Description

Now nova rebuild only support reset: password, image, preserve-ephemeral. But nova-api support another parameters[0], The REST api looks like below. The rebuild command should support these parameter, and the argument name should be consistent with nova boot:

{
    "rebuild" : {
        "imageRef" : "http://openstack.example.com/v2/32278/images/70a599e0-31e7-49b7-b260-868f441e862b",
        "name" : "foobar", <<<<<<<< missed
        "adminPass" : "seekr3t",
        "accessIPv4" : "1.2.3.4", <<<<<<< missed, but nova boot not support
        "accessIPv6" : "fe80::100", <<<<<<<< missed, but nova boot not support
        "metadata" : {
            "meta var" : "meta val" <<<<<<<<< missed
        },
        "personality" : [ <<<<< missed
            {
                "path" : "/etc/banner.txt",
                "contents" : "......"
            }
        ]
    }
}

Reference:
[0]http://api.openstack.org/api-ref-compute.html#compute_server-actions

melanie witt (melwitt)
Changed in python-novaclient:
importance: Undecided → Medium
status: New → Confirmed
Liyingjun (liyingjun)
Changed in python-novaclient:
assignee: nobody → Liyingjun (liyingjun)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-novaclient (master)

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

Changed in python-novaclient:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-novaclient (master)

Reviewed: https://review.openstack.org/105345
Committed: https://git.openstack.org/cgit/openstack/python-novaclient/commit/?id=32d13a6ec797d8b9bf68ca4d4deea6960854e981
Submitter: Jenkins
Branch: master

commit 32d13a6ec797d8b9bf68ca4d4deea6960854e981
Author: liyingjun <email address hidden>
Date: Thu Jun 26 03:01:29 2014 +0800

    Add missing parameters for server rebuild

    Currently, nova rebuild only support reset: password, image,
    preserve-ephemeral. While nova api support other parameters
    like: name, metadata, personality. This patch adds these missing
    parameters for server rebuild.

    Change-Id: I4edd8146bbbb0b2e0c9e01907af5dab96f090029
    Closes-bug: 1268435

Changed in python-novaclient:
status: In Progress → Fix Committed
Michael Still (mikal)
Changed in python-novaclient:
milestone: none → 2.19.0
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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