networks are not specified introduce an error says the NetworkID is needed

Bug #1538501 reported by Jeffrey Guan
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Heat
New
Undecided
Unassigned

Bug Description

Dear all,

when I run the following command to create a stack,
heat stack-create -f test.yaml jeguan

I received the following error:

[root@jeguan]# heat event-list jeguan
| oam_group | 985b0250-f581-49e4-8b3e-934a8c699df2 | Error: Resource CREATE failed: Error: Resource CREATE failed: BadRequest: Multiple possible networks found, use a Network ID to be more specific. (HTTP 400) (Request-ID: req-30534876-6a02-4abf-acc7-e9476df95625) | CREATE_FAILED | 2016-01-27T10:29:32Z |

Some parts of the test.yaml:
  testOAM:
    type: OS::Nova::Server
    properties:
      image: {get_param: image}
      flavor: {get_param: flavor}
      key_name: {get_param: key_name}
      user_data_format: RAW
      user_data: |
        #!/bin/python
        list1={"node1": 1, "node2": 2, "node3": 3}
        for k in list1
          echo list1[k] >> test.out

However, I see some example(https://github.com/double12gzh/demo_templates/blob/master/kilo_summit_heat_beyond_the_basics/example1_provider_environment/server_with_volume.yaml) for OS::Nova::Server shows that the networks are needed.

Thanks,
Jeffrey

Revision history for this message
huangtianhua (huangtianhua) wrote :

I don't think it's a bug, if don't specify the network, nova will choose the 'available' network, but if there are some public or private network the user can see, then nova doesn't know to choose which one, then nova will ask you to specify one.

Revision history for this message
Jeffrey Guan (double12gzh) wrote :

Thank you so much for your answer.

Rico Lin (rico-lin)
Changed in heat:
milestone: none → no-priority-tag-bugs
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.