Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Create an instance with a specific ip

I would like to create an instance with a specific ip so i used the below command, but the creation is failed:

root@controller:~# nova boot --nic net-id=6c053128-c423-4451-9ea5-147c0b521e35,v4-fixed-ip=192.168.1.50 --key-name mykey --image ubuntu --flavor m1.small pro

Fail message: {u'message': u'Exceeded maximum number of retries. Exhausted all hosts available for retrying build failures for instance b7879e73-cfd7-4244-81f7-e4179d9b8249.', u'code': 500, u'created': u'2019-01-18T10:31:22Z'} | | flavor | m1.small (2)

I tried also the creation of a new port with a specific fixed_ip but it failed also:

root@controller:~# neutron port-create --fixed-ip subnet_id=1e162cea-bb55-4c1b-8275-9d8797ed90df,ip_address=192.168.1.50 --name flat-port-subnet1 6c053128-c423-4451-9ea5-147c0b521e35

(rule:create_port and rule:create_port:fixed_ips) is disallowed by policy Neutron server returns request_ids: ['req-37fee48b-ec49-4529-87e5-99a626434a8c']

Any suggestion please ?