Hyper-V neutron agent hangs on nova boot (with enable_security_group=true)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
networking-hyperv |
Invalid
|
Undecided
|
Unassigned |
Bug Description
The issue is reproducable easily when the compute node get Provider rule updated before VM boot.
Steps to reproduce.
1. Create Network
2. Create Subnet
3. Create a provider rule under default security group.
4. Create a VM with ERROR state (i.e. ensure nova boot fails)
5. Bringup hyperv agent and ensure :) is seen
6. Initiate delete for the failed VM and verify in hyperv neutron agent log file that Provider rule updated is received and refresh firewall is called.
7. Now boot a new VM.
8. Check for neutron agent status. It will show hyperv agent as XXX.
9. On compute node neutron agent log will stop logging any message which gives a feel of agent hanged.
Cli Trace:
sdn@osc:~/devstack$ neutron agent-list
An auth plugin is required to fetch a token
sdn@osc:~/devstack$ source openrc admin admin
WARNING: setting legacy OS_TENANT_NAME to support cli tools.
sdn@osc:~/devstack$
sdn@osc:~/devstack$ neutron net-list
+------
| id | name | subnets |
+------
| 70dda170-
| | | 5666b860-
| 749b045a-
| 46185e06-
+------
sdn@osc:~/devstack$ neutron subnet-list
+------
| id | name | cidr | allocation_pools |
+------
| e235035c-
| | | | "10.0.0.254"} |
| db8cdac2-
| e8873aca-
| 5666b860-
| | | | "fddf:dac3:
+------
sdn@osc:~/devstack$
sdn@osc:~/devstack$ neutron security-group-list
+------
| id | name | security_
+------
| 4ed72860-
| | | egress, IPv6 |
| | | ingress, IPv4, 635/tcp, remote_ip_prefix: 2.2.2.0/24 |
| | | ingress, IPv4, remote_group_id: 4ed72860-
| | | ingress, IPv6, remote_group_id: 4ed72860-
| 86cdf254-
| | | egress, IPv6 |
| | | ingress, IPv4, remote_group_id: 86cdf254-
| | | ingress, IPv6, remote_group_id: 86cdf254-
| cf39eaa2-
| | | egress, IPv6 |
| | | ingress, IPv4, remote_group_id: cf39eaa2-
| | | ingress, IPv6, remote_group_id: cf39eaa2-
+------
sdn@osc:~/devstack$ neutron agent-list
+------
| id | agent_type | host | availability_zone | alive | admin_state_up | binary |
+------
| 3a9bcd08-d228-4ef2 | L3 agent | osc | nova | :-) | True | neutron-l3-agent |
| -bce9-8836a8d1f454 | | | | | | |
| 3d778a93-1d6f-4460 | Metadata agent | osc | | :-) | True | neutron-metadata- |
| -967f-ec99aa6759e8 | | | | | | agent |
| 402261af-c8cf-41b9 | DHCP agent | osc | nova | :-) | True | neutron-dhcp-agent |
| -b7f4-0c92e60c9dba | | | | | | |
| 88fcb5fb-fb5d-46f0 | Open vSwitch agent | osc | | :-) | True | neutron-
| -b25c-b9165488a145 | | | | | | agent |
| b6398de6-4c6d-4e85 | HyperV agent | WIN-7PSEDT471HE | | :-) | True | neutron-
| -837b-93566cc49648 | | | | | | |
+------
sdn@osc:~/devstack$ nova service-list
+----+-
| Id | Binary | Host | Zone | Status | State | Updated_at | Disabled Reason |
+----+-
| 5 | nova-conductor | osc | internal | enabled | up | 2016-05-
| 7 | nova-scheduler | osc | internal | enabled | up | 2016-05-
| 8 | nova-consoleauth | osc | internal | enabled | up | 2016-05-
| 9 | nova-compute | WIN-7PSEDT471HE | nova | enabled | up | 2016-05-
+----+-
sdn@osc:~/devstack$ nova list
+------
| ID | Name | Status | Task State | Power State | Networks |
+------
| 33d5f2da-
+------
sdn@osc:~/devstack$ nova delete vm2
Request to delete server vm2 has been accepted.
sdn@osc:~/devstack$
sdn@osc:~/devstack$ nova boot --image Fedora --flavor 256 --nic net-id=
+------
| 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 | a8hsnUuFjVqQ |
| config_drive | |
| created | 2016-05-
| description | - |
| flavor | 256 (256) |
| hostId | |
| host_status | |
| id | 9d9629be-
| image | Fedora (37560002-
| key_name | - |
| locked | False |
| metadata | {} |
| name | vm1 |
| os-extended-
| progress | 0 |
| security_groups | default |
| status | BUILD |
| tenant_id | 1e6f6a59ee6e483
| updated | 2016-05-
| user_id | d5fa17a7caa34d1
+------
sdn@osc:~/devstack$
sdn@osc:~/devstack$
sdn@osc:~/devstack$
sdn@osc:~/devstack$
sdn@osc:~/devstack$ nova list
+------
| ID | Name | Status | Task State | Power State | Networks |
+------
| 9d9629be-
+------
sdn@osc:~/devstack$ nova show 9d9629be-
+------
| 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 | error |
| OS-SRV-
| OS-SRV-
| accessIPv4 | |
| accessIPv6 | |
| config_drive | |
| created | 2016-05-
| description | - |
| fault | {"message": "No valid host was found. There are not enough hosts available.", "code": 500, "details": " File \"/opt/
| | context, request_spec, filter_properties) |
| | File \"/opt/
| | hosts = self.scheduler_
| | File \"/opt/
| | return func(*args, **kwargs) |
| | File \"/opt/
| | return self.queryclien
| | File \"/opt/
| | return getattr(
| | File \"/opt/
| | return self.scheduler_
| | File \"/opt/
| | return cctxt.call(ctxt, 'select_
| | File \"/usr/
| | retry=self.retry) |
| | File \"/usr/
| | timeout=timeout, retry=retry) |
| | File \"/usr/
| | retry=retry) |
| | File \"/usr/
| | raise result |
| | ", "created": "2016-05-
| flavor | 256 (256) |
| hostId | |
| host_status | |
| id | 9d9629be-
| image | Fedora (37560002-
| key_name | - |
| locked | False |
| metadata | {} |
| name | vm1 |
| os-extended-
| status | ERROR |
| tenant_id | 1e6f6a59ee6e483
| updated | 2016-05-
| user_id | d5fa17a7caa34d1
+------
sdn@osc:~/devstack$
sdn@osc:~/devstack$
sdn@osc:~/devstack$ neutron agent-list
+------
| id | agent_type | host | availability_zone | alive | admin_state_up | binary |
+------
| 3a9bcd08-d228-4ef2 | L3 agent | osc | nova | :-) | True | neutron-l3-agent |
| -bce9-8836a8d1f454 | | | | | | |
| 3d778a93-1d6f-4460 | Metadata agent | osc | | :-) | True | neutron-metadata- |
| -967f-ec99aa6759e8 | | | | | | agent |
| 402261af-c8cf-41b9 | DHCP agent | osc | nova | :-) | True | neutron-dhcp-agent |
| -b7f4-0c92e60c9dba | | | | | | |
| 88fcb5fb-fb5d-46f0 | Open vSwitch agent | osc | | :-) | True | neutron-
| -b25c-b9165488a145 | | | | | | agent |
| b6398de6-4c6d-4e85 | HyperV agent | WIN-7PSEDT471HE | | xxx | True | neutron-
| -837b-93566cc49648 | | | | | | |
+------
sdn@osc:~/devstack$ nova list
+------
| ID | Name | Status | Task State | Power State | Networks |
+------
| 9d9629be-
+------
Changed in networking-hyperv: | |
status: | Incomplete → Invalid |
Hello. What branch are you using?