← Back to team overview

openstack team mailing list archive

How can I boot an instance with multiple NICs and limit them to a single VLAN?

 

I tried to boot a new instance with two NICs, but seems I can't setup
network_id to a single one, that means I have to create at least two VLANs
for NICs. Is there any way that I can boot my instance with two NICs and
assign the ip in a single VLAN? And why this is not allowed currently?
Thanks.

Here's the error message I saw from output:
nova --debug boot --flavor 11033 --image
39b66c00-2dfd-4310-99f2-76ea8905e820 --availability-zone CL_PUBLIC --nic
net-id=5fbe4145-f48e-420b-9493-866714d08376,v4-fixed-ip=172.16.4.20 --nic
net-id=5fbe4145-f48e-420b-9493-866714d08376,v4-fixed-ip=172.16.4.21
--security-groups default MYTEST

DEBUG (shell:534) Duplicate networks (5fbe4145-f48e-420b-9493-866714d08376)
are not allowed (HTTP 400) (Request-ID:
req-0bf32ea6-afc4-4ffa-94dd-d4e4a0d3a8eb)
Traceback (most recent call last):
  File
"/usr/local/lib/python2.7/dist-packages/python_novaclient-2.9.0.24-py2.7.egg/novaclient/shell.py",
line 531, in main
    OpenStackComputeShell().main(sys.argv[1:])
  File
"/usr/local/lib/python2.7/dist-packages/python_novaclient-2.9.0.24-py2.7.egg/novaclient/shell.py",
line 467, in main
    args.func(self.cs, args)
  File
"/usr/local/lib/python2.7/dist-packages/python_novaclient-2.9.0.24-py2.7.egg/novaclient/v1_1/shell.py",
line 228, in do_boot
    server = cs.servers.create(*boot_args, **boot_kwargs)
  File
"/usr/local/lib/python2.7/dist-packages/python_novaclient-2.9.0.24-py2.7.egg/novaclient/v1_1/servers.py",
line 498, in create
    **boot_kwargs)
  File
"/usr/local/lib/python2.7/dist-packages/python_novaclient-2.9.0.24-py2.7.egg/novaclient/v1_1/base.py",
line 162, in _boot
    return_raw=return_raw, **kwargs)
  File
"/usr/local/lib/python2.7/dist-packages/python_novaclient-2.9.0.24-py2.7.egg/novaclient/base.py",
line 148, in _create
    _resp, body = self.api.client.post(url, body=body)
  File
"/usr/local/lib/python2.7/dist-packages/python_novaclient-2.9.0.24-py2.7.egg/novaclient/client.py",
line 244, in post
    return self._cs_request(url, 'POST', **kwargs)
  File
"/usr/local/lib/python2.7/dist-packages/python_novaclient-2.9.0.24-py2.7.egg/novaclient/client.py",
line 228, in _cs_request
    **kwargs)
  File
"/usr/local/lib/python2.7/dist-packages/python_novaclient-2.9.0.24-py2.7.egg/novaclient/client.py",
line 210, in _time_request
    resp, body = self.request(url, method, **kwargs)
  File
"/usr/local/lib/python2.7/dist-packages/python_novaclient-2.9.0.24-py2.7.egg/novaclient/client.py",
line 204, in request
    raise exceptions.from_response(resp, body)
BadRequest: Duplicate networks (5fbe4145-f48e-420b-9493-866714d08376) are
not allowed (HTTP 400) (Request-ID:
req-0bf32ea6-afc4-4ffa-94dd-d4e4a0d3a8eb)
ERROR: Duplicate networks (5fbe4145-f48e-420b-9493-866714d08376) are not
allowed (HTTP 400) (Request-ID: req-0bf32ea6-afc4-4ffa-94dd-d4e4a0d3a8eb)

- Ray
Yours faithfully, Kind regards.

CIeNET Technologies (Beijing) Co., Ltd
Email: qsun01185@xxxxxxxxxxxxx
Office Phone: +86-01081470088-7079
Mobile Phone: +86-13581988291