400 error when launching an instance

Bug #1691055 reported by Lan Qi song
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
nova-powervm
Won't Fix
Undecided
Unassigned

Bug Description

When I was tring to launch an instance with powervm driver. The following error occurred:

2017-05-16 16:53:33.561 14395 TRACE nova.compute.manager [instance: 2946705d-11a4-4d78-818e-682585dbe12d] raise self._get_httperror(resp)
2017-05-16 16:53:33.561 14395 TRACE nova.compute.manager [instance: 2946705d-11a4-4d78-818e-682585dbe12d] HttpError: HTTP error 400 for method PUT on path /rest/api/web/File/contents/3fb491e1-7de5-4342-80ab-b701ed8cad88: Bad Request -- REST0030 TargetDeviceUniqueDeviceID is required for a file of this type.

Seems "TargetDeviceUniqueDeviceID" is missed when create_disk_from_image, and the "UniqueDeviceID" is not returned through VolumeGroup api, the following is "VirtualDisk" parts output from VolumeGroup Api:

    <VirtualDisks kb="CUD" kxe="false" schemaVersion="V1_5_0">
        <Metadata>
            <Atom/>
        </Metadata>
        <VirtualDisk schemaVersion="V1_5_0">
            <Metadata>
                <Atom/>
            </Metadata>
            <DiskCapacity kxe="false" kb="CUR">50</DiskCapacity>
            <DiskLabel kxe="false" kb="CUR">None</DiskLabel>
            <DiskName kxe="false" kb="CUR">b_instance_f9b3</DiskName>
            <PartitionSize kb="CUR" kxe="false">0.125</PartitionSize>
            <VolumeGroup kb="ROR" kxe="false" href="https://172.16.15.69:12443/rest/api/uom/VirtualIOServer/307E90CD-F385-4BAF-B657-5FFBD343A486/VolumeGroup/fd47b9a0-086
2-3cd0-9cd0-da2b81c17bc7" rel="related"/>
        </VirtualDisk>
    </VirtualDisks>

Lan Qi song (lqslan)
description: updated
description: updated
Revision history for this message
Chhavi Agarwal (chhagarw) wrote :

Can you provide more details, how u tried to launch instance, did you used the Openstack horizon,
or the REST API,
If you used the REST API please share the Request body

Revision history for this message
Lan Qi song (lqslan) wrote :

I used nova boot command line as follow:

nova boot --image cirros --nic net-id=e2f84e34-fbb1-445b-a973-24e4e2507106 --flavor 1 instance01

Revision history for this message
Lan Qi song (lqslan) wrote :

The vios version:
$ ioslevel
2.2.2.0

HMC version: V8R8.6.0

Revision history for this message
Drew Thorstensen (thorst) wrote :

Lan Qi song - are you using the HMC or NovaLink for the PowerVM drivers?

The PowerVM drivers are only supported on a PowerVM NovaLink based system.

Revision history for this message
Lan Qi song (lqslan) wrote :

Hmm, I am using HMC. From the guide, the NovaLink based system is only supported by power8, what if the previous version of power, how can I manage them.

Before the NovaLink be born, the HMC should be ok, right ?

Revision history for this message
Drew Thorstensen (thorst) wrote :

We're discussing in IRC. But the drivers don't have support for anything other than PowerVM NovaLink based management.

Changed in nova-powervm:
status: New → Won't Fix
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.