[nova] Boot image with multiple ports

Asked by Rory Schellekens

Our software requires specific mac addresses. For that I configured six ports with quantum:
quantum port-create --tenant-id 3048e1ec37284542bf592178f14efa79 --mac-address "00:50:56:00:00:05" project

When I try to boot the image I get a 500 error, I use the following command:
nova --debug boot mySC1 --image "00eefdf1-7f59-4610-a2f2-a2c5c7b19db2" --flavor 6 --nic port-id="addf792f-2716-428c-aa68-3427c9c5a349" --nic port-id="6431bb76-9bdd-4b97-a40b-1591dc08d23a" --nic port-id="46eac78c-5c5a-43b1-b955-8151f63dca6b" --nic port-id="b29c8a7a-3e6f-4745-a035-0600bc7efc35" --nic port-id="e425cc01-de84-4eed-8ca6-27ded2894f00" --nic port-id="c10faf9e-8b14-483e-8596-46c7fe7823b3"

Error:
send: u'POST /v2/3048e1ec37284542bf592178f14efa79/servers HTTP/1.1\r\nHost: 10.44.41.170:8774\r\nContent-Length: 245\r\nx-auth-project-id: admin\r\naccept-encoding: gzip, deflate\r\naccept: application/json\r\nx-auth-token: fad9613a3bb341dca9c2459753301531\r\nuser-agent: python-novaclient\r\ncontent-type: application/json\r\n\r\n{"server": {"name": "mySC1", "imageRef": "00eefdf1-7f59-4610-a2f2-a2c5c7b19db2", "flavorRef": "6", "max_count": 1, "min_count": 1, "networks": [{"port": "addf792f-2716-428c-aa68-3427c9c5a349"}, {"port": "6431bb76-9bdd-4b97-a40b-1591dc08d23a"}]}}'
reply: 'HTTP/1.1 500 Internal Server Error\r\n'
header: Content-Length: 128
header: Content-Type: application/json; charset=UTF-8
header: X-Compute-Request-Id: req-8e25bc8a-1476-473a-8290-3f1e45e60218
header: Date: Mon, 25 Mar 2013 16:14:12 GMT
RESP:{'date': 'Mon, 25 Mar 2013 16:14:12 GMT', 'status': '500', 'content-length': '128', 'content-type': 'application/json; charset=UTF-8', 'x-compute-request-id': 'req-8e25bc8a-1476-473a-8290-3f1e45e60218'} {"computeFault": {"message": "The server has either erred or is incapable of performing the requested operation.", "code": 500}}

DEBUG (shell:534) The server has either erred or is incapable of performing the requested operation. (HTTP 500) (Request-ID: req-8e25bc8a-1476-473a-8290-3f1e45e60218)

When I boot the image with only one port it works.

Is it possible to add six ports to an instance? If so which command do I need to use?

Question information

Language:
English Edit question
Status:
Expired
For:
OpenStack Compute (nova) Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Launchpad Janitor (janitor) said :
#1

This question was expired because it remained in the 'Open' state without activity for the last 15 days.

Revision history for this message
Ritesh Shetty (ritesh-s-shetty) said :
#2

I am also facing the same issue. If i send in 2 ports during provisioning then it fails but works with 1 port.
Is this a bug or my paylaod is incorect. Since Rory faced issue with cli i am assuming my rest payload is ok
This is the rest paylaod.

{ "server" : { "name" : "loadbalancer-1-T55" , "imageRef" : "6b97a852-8eb1-498c-b9f0-d5374726a43c" , "flavorRef" : "1" , "key_name" : "demokey" ,

"networks" : [
{ "port" : "5dae5598-a5e6-4330-ba1c-5120d31c5f85"} ,
{ "port" : "013d75e0-9cfe-4b32-9b6f-41c0a5063795"}]

}}