2026-09-17 08:51:27,264 - INFO - Domain Default found not creating
2026-09-17 08:51:27,442 - INFO - Project ctest-TestBasicPolicy-68447604 not found, creating it
2026-09-17 08:51:27,940 - INFO - Created Project:ctest-TestBasicPolicy-68447604, ID : 99749bf4-cdd5-423c-99d0-68d3dbfde1d5
2026-09-17 08:51:29,727 - INFO - ================================================================================
2026-09-17 08:51:29,727 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-09-17 08:51:29,727 - INFO - TEST DESCRIPTION :
Create 2 Vns and allow icmp traffic between them and validate with pings
Update the policy to deny the same traffic
Check that pings fail
2026-09-17 08:51:30,000 - DEBUG - Nothing to compare xmpp stats {'10.0.0.185': {'10.20.0.17': '0'}} with
2026-09-17 08:51:30,001 - INFO - Initial checks done. Running the testcase now
2026-09-17 08:51:30,001 - INFO -
2026-09-17 08:51:30,864 - DEBUG - Response for create_network : {'network': {'id': 'afcc4de6-4679-4c97-b215-9bd5c4c32dcc', 'name': 'ctest-vn-78898125', 'tenant_id': '99749bf4cdd5423c99d068d3dbfde1d5', 'project_id': '99749bf4cdd5423c99d068d3dbfde1d5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-68447604', 'ctest-vn-78898125'], 'port_security_enabled': True, 'description': ''}}
2026-09-17 08:51:31,214 - DEBUG - Response for create_subnet : {'subnet': {'id': '4ac3fac3-3118-4252-b501-549f54e42982', 'name': '', 'tenant_id': '99749bf4cdd5423c99d068d3dbfde1d5', 'network_id': 'afcc4de6-4679-4c97-b215-9bd5c4c32dcc', 'ip_version': 4, 'cidr': '125.121.151.192/26', 'allocation_pools': [{'start': '125.121.151.194', 'end': '125.121.151.254'}], 'gateway_ip': '125.121.151.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '125.121.151.194', 'tags': [], 'project_id': '99749bf4cdd5423c99d068d3dbfde1d5'}}
2026-09-17 08:51:31,246 - INFO - Created VN ctest-vn-78898125
2026-09-17 08:51:31,303 - DEBUG - VN ctest-vn-78898125 UUID is afcc4de6-4679-4c97-b215-9bd5c4c32dcc
2026-09-17 08:51:31,678 - DEBUG - Response for create_network : {'network': {'id': 'd48d6b94-d65f-4099-90e2-46f1fd8ccff4', 'name': 'ctest-vn-17501135', 'tenant_id': '99749bf4cdd5423c99d068d3dbfde1d5', 'project_id': '99749bf4cdd5423c99d068d3dbfde1d5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-68447604', 'ctest-vn-17501135'], 'port_security_enabled': True, 'description': ''}}
2026-09-17 08:51:31,938 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b179ebad-9ec9-45f4-8a6a-166295e2ca88', 'name': '', 'tenant_id': '99749bf4cdd5423c99d068d3dbfde1d5', 'network_id': 'd48d6b94-d65f-4099-90e2-46f1fd8ccff4', 'ip_version': 4, 'cidr': '5.181.13.0/26', 'allocation_pools': [{'start': '5.181.13.2', 'end': '5.181.13.62'}], 'gateway_ip': '5.181.13.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '5.181.13.2', 'tags': [], 'project_id': '99749bf4cdd5423c99d068d3dbfde1d5'}}
2026-09-17 08:51:31,958 - INFO - Created VN ctest-vn-17501135
2026-09-17 08:51:32,011 - DEBUG - VN ctest-vn-17501135 UUID is d48d6b94-d65f-4099-90e2-46f1fd8ccff4
2026-09-17 08:51:32,134 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-68447604:ctest-vn-78898125, security_group = None, network_policy = None, subnet_list = []], src_ports = [start_port = -1, end_port = -1], application = [], dst_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-68447604:ctest-vn-17501135, security_group = None, network_policy = None, subnet_list = []], dst_ports = [start_port = -1, end_port = -1], action_list = simple_action = pass, gateway_name = None, apply_service = [], service_properties = None, mirror_to = None, assign_routing_instance = None, log = False, alert = False, qos_action = None, host_based_service = False, ethertype = None, created = None, last_modified = None, description = None]
2026-09-17 08:51:32,491 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'afcc4de6-4679-4c97-b215-9bd5c4c32dcc', 'name': 'ctest-vn-78898125', 'tenant_id': '99749bf4cdd5423c99d068d3dbfde1d5', 'project_id': '99749bf4cdd5423c99d068d3dbfde1d5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['4ac3fac3-3118-4252-b501-549f54e42982'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-68447604', 'ctest-vn-78898125'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-68447604', 'ctest-policy-allow-all-99098644']], 'subnet_ipam': [{'subnet_cidr': '125.121.151.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-09-17 08:51:32,774 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd48d6b94-d65f-4099-90e2-46f1fd8ccff4', 'name': 'ctest-vn-17501135', 'tenant_id': '99749bf4cdd5423c99d068d3dbfde1d5', 'project_id': '99749bf4cdd5423c99d068d3dbfde1d5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['b179ebad-9ec9-45f4-8a6a-166295e2ca88'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-68447604', 'ctest-vn-17501135'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-68447604', 'ctest-policy-allow-all-99098644']], 'subnet_ipam': [{'subnet_cidr': '5.181.13.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-09-17 08:51:32,971 - DEBUG - Requesting: http://10.0.0.185:8082/domains
2026-09-17 08:51:33,360 - DEBUG - Requesting: http://10.0.0.185:8082/domains
2026-09-17 08:51:33,389 - DEBUG - Requesting: http://10.0.0.185:8082/domain/522fd4d2-eb3b-4744-b7a4-a7c4e7c67581
2026-09-17 08:51:33,403 - DEBUG - Requesting: http://10.0.0.185:8082/project/99749bf4-cdd5-423c-99d0-68d3dbfde1d5
2026-09-17 08:51:33,496 - DEBUG - Requesting: http://10.0.0.185:8082/virtual-network/afcc4de6-4679-4c97-b215-9bd5c4c32dcc
2026-09-17 08:51:33,510 - DEBUG - Requesting: http://10.0.0.185:8082/virtual-network/afcc4de6-4679-4c97-b215-9bd5c4c32dcc
2026-09-17 08:51:33,520 - DEBUG - Requesting: http://10.0.0.185:8082/routing-instance/892530ce-d977-49af-9d1a-906c94122092
2026-09-17 08:51:33,530 - DEBUG - Requesting: http://10.0.0.185:8082/routing-instance/892530ce-d977-49af-9d1a-906c94122092
2026-09-17 08:51:33,540 - DEBUG - Requesting: http://10.0.0.185:8082/route-target/d6b4e32b-eeb7-4ffc-a7d9-0cc878a89d5e
2026-09-17 08:51:33,550 - DEBUG - Route Targets: ['target:64512:8000005']
2026-09-17 08:51:33,551 - DEBUG - Requesting: http://10.0.0.185:8082/virtual-network/afcc4de6-4679-4c97-b215-9bd5c4c32dcc
2026-09-17 08:51:33,564 - DEBUG - Requesting: http://10.0.0.185:8082/routing-instance/892530ce-d977-49af-9d1a-906c94122092
2026-09-17 08:51:33,582 - INFO - Verified VN network id 12 for VN afcc4de6-4679-4c97-b215-9bd5c4c32dcc
2026-09-17 08:51:33,583 - INFO - Verifications in API Server for VN ctest-vn-78898125 passed
2026-09-17 08:51:33,583 - DEBUG - Requesting: http://10.0.0.185:8082/virtual-network/afcc4de6-4679-4c97-b215-9bd5c4c32dcc
2026-09-17 08:51:33,594 - DEBUG - Requesting: http://10.0.0.185:8082/routing-instance/892530ce-d977-49af-9d1a-906c94122092
2026-09-17 08:51:33,603 - DEBUG - Requesting: http://10.0.0.185:8082/routing-instance/892530ce-d977-49af-9d1a-906c94122092
2026-09-17 08:51:33,614 - DEBUG - Requesting: http://10.0.0.185:8082/route-target/d6b4e32b-eeb7-4ffc-a7d9-0cc878a89d5e
2026-09-17 08:51:33,634 - DEBUG - Control-node 10.0.0.185 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-68447604:ctest-vn-78898125', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-68447604', 'owner-access': '7', 'group': 'manager', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12667585503306534039', 'uuid-lslong': '12832334055693561292'}, 'enable': 'true', 'created': '2026-09-17T08:51:30', 'last-modified': '2026-09-17T08:51:32', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.190876'}
2026-09-17 08:51:33,642 - DEBUG - Route Targets: ['target:64512:8000005']
2026-09-17 08:51:33,642 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-78898125 passed
2026-09-17 08:51:33,643 - DEBUG - ====Verifying policy data for ctest-vn-78898125 in API_Server ======
2026-09-17 08:51:33,643 - DEBUG - Requesting: http://10.0.0.185:8082/domains
2026-09-17 08:51:33,649 - DEBUG - Requesting: http://10.0.0.185:8082/domain/522fd4d2-eb3b-4744-b7a4-a7c4e7c67581
2026-09-17 08:51:33,662 - DEBUG - Requesting: http://10.0.0.185:8082/project/99749bf4-cdd5-423c-99d0-68d3dbfde1d5
2026-09-17 08:51:33,748 - DEBUG - Requesting: http://10.0.0.185:8082/virtual-network/afcc4de6-4679-4c97-b215-9bd5c4c32dcc
2026-09-17 08:51:33,758 - DEBUG - ==>Verifying data for policy with id: 0a98ee4b-f848-48f5-8657-4c2635c58018, fqn: ['default-domain', 'ctest-TestBasicPolicy-68447604', 'ctest-policy-allow-all-99098644']
2026-09-17 08:51:33,759 - INFO - VN ctest-vn-78898125 Policy verification: verify_vn_policy_in_api_server, status: True
2026-09-17 08:51:33,759 - DEBUG - Verifying the vn in opserver
2026-09-17 08:51:33,759 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-68447604:ctest-vn-78898125 virtual network link through opserver 10.0.0.185
2026-09-17 08:51:33,759 - DEBUG - Requesting: http://10.0.0.185:8081/analytics/uves/virtual-networks
2026-09-17 08:51:34,125 - DEBUG - Requesting: http://10.0.0.185:8081/analytics/uves/virtual-networks
2026-09-17 08:51:34,188 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-68447604:ctest-vn-78898125', 'href': 'http://10.0.0.185:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-68447604:ctest-vn-78898125?flat'}
2026-09-17 08:51:34,188 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-68447604:ctest-vn-78898125 is found in opserver
2026-09-17 08:51:34,201 - DEBUG - Do not have enough data to verify VN in agent
2026-09-17 08:51:34,206 - DEBUG - VRF ids for VN ctest-vn-78898125: {}
2026-09-17 08:51:34,206 - DEBUG - Requesting: http://10.0.0.185:8082/domains
2026-09-17 08:51:34,213 - DEBUG - Requesting: http://10.0.0.185:8082/domain/522fd4d2-eb3b-4744-b7a4-a7c4e7c67581
2026-09-17 08:51:34,225 - DEBUG - Requesting: http://10.0.0.185:8082/project/99749bf4-cdd5-423c-99d0-68d3dbfde1d5
2026-09-17 08:51:34,308 - DEBUG - Requesting: http://10.0.0.185:8082/virtual-network/d48d6b94-d65f-4099-90e2-46f1fd8ccff4
2026-09-17 08:51:34,321 - DEBUG - Requesting: http://10.0.0.185:8082/virtual-network/d48d6b94-d65f-4099-90e2-46f1fd8ccff4
2026-09-17 08:51:34,333 - DEBUG - Requesting: http://10.0.0.185:8082/routing-instance/ea979405-6e12-4e7f-a09b-c450b8a54a00
2026-09-17 08:51:34,342 - DEBUG - Requesting: http://10.0.0.185:8082/routing-instance/ea979405-6e12-4e7f-a09b-c450b8a54a00
2026-09-17 08:51:34,350 - DEBUG - Requesting: http://10.0.0.185:8082/route-target/1d44934f-aa41-4c6f-9d5f-dce4ae41fd08
2026-09-17 08:51:34,359 - DEBUG - Route Targets: ['target:64512:8000006']
2026-09-17 08:51:34,359 - DEBUG - Requesting: http://10.0.0.185:8082/virtual-network/d48d6b94-d65f-4099-90e2-46f1fd8ccff4
2026-09-17 08:51:34,371 - DEBUG - Requesting: http://10.0.0.185:8082/routing-instance/ea979405-6e12-4e7f-a09b-c450b8a54a00
2026-09-17 08:51:34,393 - INFO - Verified VN network id 13 for VN d48d6b94-d65f-4099-90e2-46f1fd8ccff4
2026-09-17 08:51:34,393 - INFO - Verifications in API Server for VN ctest-vn-17501135 passed
2026-09-17 08:51:34,393 - DEBUG - Requesting: http://10.0.0.185:8082/virtual-network/d48d6b94-d65f-4099-90e2-46f1fd8ccff4
2026-09-17 08:51:34,406 - DEBUG - Requesting: http://10.0.0.185:8082/routing-instance/ea979405-6e12-4e7f-a09b-c450b8a54a00
2026-09-17 08:51:34,415 - DEBUG - Requesting: http://10.0.0.185:8082/routing-instance/ea979405-6e12-4e7f-a09b-c450b8a54a00
2026-09-17 08:51:34,423 - DEBUG - Requesting: http://10.0.0.185:8082/route-target/1d44934f-aa41-4c6f-9d5f-dce4ae41fd08
2026-09-17 08:51:34,440 - DEBUG - Control-node 10.0.0.185 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-68447604:ctest-vn-17501135', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-68447604', 'owner-access': '7', 'group': 'manager', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15316016194752823449', 'uuid-lslong': '10439984891353157620'}, 'enable': 'true', 'created': '2026-09-17T08:51:31', 'last-modified': '2026-09-17T08:51:32', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.711253'}
2026-09-17 08:51:34,446 - DEBUG - Route Targets: ['target:64512:8000006']
2026-09-17 08:51:34,446 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-17501135 passed
2026-09-17 08:51:34,447 - DEBUG - ====Verifying policy data for ctest-vn-17501135 in API_Server ======
2026-09-17 08:51:34,447 - DEBUG - Requesting: http://10.0.0.185:8082/domains
2026-09-17 08:51:34,453 - DEBUG - Requesting: http://10.0.0.185:8082/domain/522fd4d2-eb3b-4744-b7a4-a7c4e7c67581
2026-09-17 08:51:34,466 - DEBUG - Requesting: http://10.0.0.185:8082/project/99749bf4-cdd5-423c-99d0-68d3dbfde1d5
2026-09-17 08:51:34,543 - DEBUG - Requesting: http://10.0.0.185:8082/virtual-network/d48d6b94-d65f-4099-90e2-46f1fd8ccff4
2026-09-17 08:51:34,555 - DEBUG - ==>Verifying data for policy with id: 0a98ee4b-f848-48f5-8657-4c2635c58018, fqn: ['default-domain', 'ctest-TestBasicPolicy-68447604', 'ctest-policy-allow-all-99098644']
2026-09-17 08:51:34,555 - INFO - VN ctest-vn-17501135 Policy verification: verify_vn_policy_in_api_server, status: True
2026-09-17 08:51:34,555 - DEBUG - Verifying the vn in opserver
2026-09-17 08:51:34,555 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-68447604:ctest-vn-17501135 virtual network link through opserver 10.0.0.185
2026-09-17 08:51:34,555 - DEBUG - Requesting: http://10.0.0.185:8081/analytics/uves/virtual-networks
2026-09-17 08:51:34,568 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-68447604:ctest-vn-17501135', 'href': 'http://10.0.0.185:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-68447604:ctest-vn-17501135?flat'}
2026-09-17 08:51:34,568 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-68447604:ctest-vn-17501135 is found in opserver
2026-09-17 08:51:34,580 - DEBUG - Do not have enough data to verify VN in agent
2026-09-17 08:51:34,586 - DEBUG - VRF ids for VN ctest-vn-17501135: {}
2026-09-17 08:51:34,655 - DEBUG - Services list from nova: [