nova boot vm with '--nic net-id=xxxx, v4-fixed-ip=xxx' failed
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Low
|
Zhiyuan Cai | ||
Juno |
Fix Released
|
Low
|
Artom Lifshitz | ||
python-neutronclient |
Fix Released
|
Low
|
Shraddha Pandhe |
Bug Description
now nova boot vm with '--nic net-id=xxxx, v4-fixed-ip=xxx' will failed, the error in nova-compute log is bellow:
File "/opt/stack/
, in wrapper
ret = obj(*args, **kwargs)
File "/usr/local/
ient.py", line 1266, in serialize
self.
File "/usr/local/
serializer.py", line 390, in serialize
return self._get_
File "/usr/local/
serializer.py", line 54, in serialize
return self.dispatch(data, action=action)
File "/usr/local/
serializer.py", line 44, in dispatch
return action_
File "/usr/local/
serializer.py", line 66, in default
return jsonutils.
File "/usr/local/
ck/common/
return json.dumps(value, default=default, **kwargs)
File "/usr/lib/
sort_
File "/usr/lib/
chunks = self.iterencode(o, _one_shot=True)
File "/usr/lib/
return _iterencode(o, 0)
File "/usr/local/
serializer.py", line 65, in sanitizer
return six.text_type(obj, 'utf8')
TypeError: coercing to Unicode: need string or buffer, IPAddress fou
nd
Changed in nova: | |
assignee: | nobody → shihanzhang (shihanzhang) |
tags: | added: python-neutronclient |
summary: |
- nova boot vm with '--nic net-id=xxxx, v4-fixed-ip=xxx' + nova boot vm with '--nic net-id=xxxx, v4-fixed-ip=xxx' failed |
Changed in nova: | |
status: | New → Invalid |
Changed in nova: | |
importance: | Undecided → Low |
Changed in nova: | |
milestone: | none → kilo-2 |
status: | Fix Committed → Fix Released |
tags: | removed: juno-backport-potential |
Changed in python-neutronclient: | |
milestone: | none → 2.3.11 |
status: | Fix Committed → Fix Released |
importance: | Undecided → Low |
Changed in nova: | |
milestone: | kilo-2 → 2015.1.0 |
Not really a bug, moreover a lack of feature, but it is documented: "Networking does not currently support the v4-fixed-ip parameter of the --nic option for the nova command" ( http:// docs.openstack. org/admin- guide-cloud/ content/ advanced_ vm_creation. html ).
If you want to specify an IP address you have to use:
$ neutron port-create --fixed-ip subnet_ id=SUBNET_ ID,ip_address= IP_ADDRESS NET_ID
$ nova boot --image IMAGE --flavor FLAVOR --nic port-id=PORT_ID VM_NAME