Unable to launch an instance on a network where port-security-enabled=False
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
New
|
Undecided
|
Chirag Shahani |
Bug Description
Create a network with port-security-
stack@whiskey:~$ neutron net-show n
+------
| Field | Value |
+------
| admin_state_up | True |
| availability_
| availability_zones | nova |
| id | 45a84b0e-
| mtu | 1450 |
| name | n |
| port_security_
| provider:
| provider:
| provider:
| router:external | False |
| shared | False |
| status | ACTIVE |
| subnets | 57fb945b-
| tenant_id | 96df521a0afe461
+------
create a subnet under this network
stack@whiskey:~$ neutron subnet-show s
+------
| Field | Value |
+------
| allocation_pools | {"start": "2.2.2.2", "end": "2.2.2.254"} |
| cidr | 2.2.2.0/24 |
| dns_nameservers | |
| enable_dhcp | True |
| gateway_ip | 2.2.2.1 |
| host_routes | |
| id | 57fb945b-
| ip_version | 4 |
| ipv6_address_mode | |
| ipv6_ra_mode | |
| name | s |
| network_id | 45a84b0e-
| subnetpool_id | |
| tenant_id | 96df521a0afe461
+------
Now, create a port under this subnet:
stack@whiskey:~$ neutron port-show p
+------
| Field | Value |
+------
| admin_state_up | True |
| allowed_
| binding:host_id | |
| binding:profile | {} |
| binding:vif_details | {} |
| binding:vif_type | unbound |
| binding:vnic_type | normal |
| device_id | |
| device_owner | |
| dns_name | |
| extra_dhcp_opts | |
| fixed_ips | {"subnet_id": "57fb945b-
| id | 33095bd6-
| mac_address | fa:16:3e:f0:46:ae |
| name | p |
| network_id | 45a84b0e-
| port_security_
| security_groups | |
| status | DOWN |
| tenant_id | 96df521a0afe461
+------
As expected the port created has no security groups associated with it.
Now, doing a nova boot on this port, results in the VM getting into error state. is that the expected behavior?
stack@whiskey:~$ nova boot vm --flavor 1 --image cirros-
+------
| Property | Value |
+------
| OS-DCF:diskConfig | MANUAL |
| OS-EXT-
| OS-EXT-
| OS-EXT-
| OS-EXT-
| OS-EXT-
| OS-EXT-
| OS-EXT-
| OS-EXT-
| OS-EXT-
| OS-EXT-
| OS-EXT-
| OS-EXT-
| OS-EXT-
| OS-EXT-STS:vm_state | building |
| OS-SRV-
| OS-SRV-
| accessIPv4 | |
| accessIPv6 | |
| adminPass | rWeLbfy4aFkH |
| config_drive | |
| created | 2016-03-
| flavor | m1.tiny (1) |
| hostId | |
| id | 01ded4ae-
| image | cirros-
| key_name | - |
| locked | False |
| metadata | {} |
| name | vm |
| os-extended-
| progress | 0 |
| security_groups | default |
| status | BUILD |
| tenant_id | 96df521a0afe461
| updated | 2016-03-
| user_id | acae4fa2499f484
+------
stack@whiskey:~$ nova list
+------
| ID | Name | Status | Task State | Power State | Networks |
+------
| 01ded4ae-
+------
Logs on n-cpu:
_http_log_response /usr/local/
2016-03-08 12:39:21.096 18805 ERROR nova.compute.
2016-03-08 12:39:21.096 18805 ERROR nova.compute.
2016-03-08 12:39:21.096 18805 ERROR nova.compute.
2016-03-08 12:39:21.096 18805 ERROR nova.compute.
2016-03-08 12:39:21.096 18805 ERROR nova.compute.
2016-03-08 12:39:21.096 18805 ERROR nova.compute.
2016-03-08 12:39:21.096 18805 ERROR nova.compute.
2016-03-08 12:39:21.096 18805 ERROR nova.compute.
2016-03-08 12:39:21.096 18805 ERROR nova.compute.
2016-03-08 12:39:21.096 18805 ERROR nova.compute.
2016-03-08 12:39:21.096 18805 ERROR nova.compute.
2016-03-08 12:39:21.096 18805 ERROR nova.compute.
2016-03-08 12:39:21.096 18805 ERROR nova.compute.
2016-03-08 12:39:21.096 18805 ERROR nova.compute.
2016-03-08 12:39:21.096 18805 ERROR nova.compute.
2016-03-08 12:39:21.096 18805 ERROR nova.compute.
2016-03-08 12:39:21.096 18805 ERROR nova.compute.
2016-03-08 12:39:21.096 18805 ERROR nova.compute.
2016-03-08 12:39:21.096 18805 ERROR nova.compute.
2016-03-08 12:39:21.096 18805 ERROR nova.compute.
2016-03-08 12:39:21.096 18805 ERROR nova.compute.
2016-03-08 12:39:21.096 18805 ERROR nova.compute.
2016-03-08 12:39:21.096 18805 ERROR nova.compute.
2016-03-08 12:39:21.096 18805 ERROR nova.compute.
2016-03-08 12:39:21.096 18805 ERROR nova.compute.
2016-03-08 12:39:21.096 18805 ERROR nova.compute.
2016-03-08 12:39:21.096 18805 ERROR nova.compute.
2016-03-08 12:39:21.096 18805 ERROR nova.compute.
2016-03-08 12:39:21.096 18805 ERROR nova.compute.
2016-03-08 12:39:21.096 18805 ERROR nova.compute.
2016-03-08 12:39:21.096 18805 ERROR nova.compute.
2016-03-08 12:39:21.096 18805 ERROR nova.compute.
2016-03-08 12:39:21.096 18805 ERROR nova.compute.
2016-03-08 12:39:21.096 18805 ERROR nova.compute.
2016-03-08 12:39:21.096 18805 ERROR nova.compute.
2016-03-08 12:39:21.096 18805 ERROR nova.compute.
2016-03-08 12:39:21.097 18805 INFO nova.compute.
I can however boot a vm on a port where port_security_
I was not expecting that an instance cannot be launched under a network where the value of port_security_
Changed in neutron: | |
assignee: | nobody → Chirag Shahani (chirag-shahani) |
If this is a bug, I could take this up to fix this. Please assign this to me if this is a valid bug.