2025-08-29 14:28:44,614 - INFO - Domain Default found not creating
2025-08-29 14:28:44,783 - INFO - Project ctest-TestBasicPolicy-97259466 not found, creating it
2025-08-29 14:28:45,235 - INFO - Created Project:ctest-TestBasicPolicy-97259466, ID : c6cd133b-af56-438d-bea5-89c9ade19860
2025-08-29 14:28:46,583 - INFO - ================================================================================
2025-08-29 14:28:46,583 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-08-29 14:28:46,583 - 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
2025-08-29 14:28:46,842 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with
2025-08-29 14:28:46,842 - INFO - Initial checks done. Running the testcase now
2025-08-29 14:28:46,842 - INFO -
2025-08-29 14:28:47,359 - DEBUG - Response for create_network : {'network': {'id': '748e7dbe-3aa3-434b-b17a-1df6915c6510', 'name': 'ctest-vn-11041161', 'tenant_id': 'c6cd133baf56438dbea589c9ade19860', 'project_id': 'c6cd133baf56438dbea589c9ade19860', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-97259466', 'ctest-vn-11041161'], 'port_security_enabled': True, 'description': ''}}
2025-08-29 14:28:47,553 - DEBUG - Response for create_subnet : {'subnet': {'id': '70ac3883-3194-4fac-8d0c-68585ab7b0f1', 'name': '', 'tenant_id': 'c6cd133baf56438dbea589c9ade19860', 'network_id': '748e7dbe-3aa3-434b-b17a-1df6915c6510', 'ip_version': 4, 'cidr': '216.24.72.192/26', 'allocation_pools': [{'start': '216.24.72.194', 'end': '216.24.72.254'}], 'gateway_ip': '216.24.72.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '216.24.72.194', 'tags': [], 'project_id': 'c6cd133baf56438dbea589c9ade19860'}}
2025-08-29 14:28:47,569 - INFO - Created VN ctest-vn-11041161
2025-08-29 14:28:47,617 - DEBUG - VN ctest-vn-11041161 UUID is 748e7dbe-3aa3-434b-b17a-1df6915c6510
2025-08-29 14:28:47,927 - DEBUG - Response for create_network : {'network': {'id': '65cd75a5-795f-4ae2-a1d1-3a791ac0bcb8', 'name': 'ctest-vn-12440031', 'tenant_id': 'c6cd133baf56438dbea589c9ade19860', 'project_id': 'c6cd133baf56438dbea589c9ade19860', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-97259466', 'ctest-vn-12440031'], 'port_security_enabled': True, 'description': ''}}
2025-08-29 14:28:48,116 - DEBUG - Response for create_subnet : {'subnet': {'id': '475683cb-873c-4dbe-a400-d02dc8f1c48c', 'name': '', 'tenant_id': 'c6cd133baf56438dbea589c9ade19860', 'network_id': '65cd75a5-795f-4ae2-a1d1-3a791ac0bcb8', 'ip_version': 4, 'cidr': '54.80.6.64/26', 'allocation_pools': [{'start': '54.80.6.66', 'end': '54.80.6.126'}], 'gateway_ip': '54.80.6.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '54.80.6.66', 'tags': [], 'project_id': 'c6cd133baf56438dbea589c9ade19860'}}
2025-08-29 14:28:48,135 - INFO - Created VN ctest-vn-12440031
2025-08-29 14:28:48,185 - DEBUG - VN ctest-vn-12440031 UUID is 65cd75a5-795f-4ae2-a1d1-3a791ac0bcb8
2025-08-29 14:28:48,337 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-97259466:ctest-vn-11041161, 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-97259466:ctest-vn-12440031, 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]
2025-08-29 14:28:48,613 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '748e7dbe-3aa3-434b-b17a-1df6915c6510', 'name': 'ctest-vn-11041161', 'tenant_id': 'c6cd133baf56438dbea589c9ade19860', 'project_id': 'c6cd133baf56438dbea589c9ade19860', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['70ac3883-3194-4fac-8d0c-68585ab7b0f1'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-97259466', 'ctest-vn-11041161'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-97259466', 'ctest-policy-allow-all-96305705']], 'subnet_ipam': [{'subnet_cidr': '216.24.72.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-29 14:28:48,848 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '65cd75a5-795f-4ae2-a1d1-3a791ac0bcb8', 'name': 'ctest-vn-12440031', 'tenant_id': 'c6cd133baf56438dbea589c9ade19860', 'project_id': 'c6cd133baf56438dbea589c9ade19860', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['475683cb-873c-4dbe-a400-d02dc8f1c48c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-97259466', 'ctest-vn-12440031'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-97259466', 'ctest-policy-allow-all-96305705']], 'subnet_ipam': [{'subnet_cidr': '54.80.6.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-29 14:28:49,009 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-08-29 14:28:49,301 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-08-29 14:28:49,328 - DEBUG - Requesting: http://10.0.0.254:8082/domain/9fbf19a5-98bd-498d-ac68-1bfc368e7dab
2025-08-29 14:28:49,342 - DEBUG - Requesting: http://10.0.0.254:8082/project/c6cd133b-af56-438d-bea5-89c9ade19860
2025-08-29 14:28:49,412 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/748e7dbe-3aa3-434b-b17a-1df6915c6510
2025-08-29 14:28:49,423 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/748e7dbe-3aa3-434b-b17a-1df6915c6510
2025-08-29 14:28:49,431 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/55069ee3-e135-4ebf-a007-e5806c72fc10
2025-08-29 14:28:49,438 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/55069ee3-e135-4ebf-a007-e5806c72fc10
2025-08-29 14:28:49,444 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/0ea994e2-7ca1-489b-85b5-2fa9818504d9
2025-08-29 14:28:49,449 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-29 14:28:49,449 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/748e7dbe-3aa3-434b-b17a-1df6915c6510
2025-08-29 14:28:49,457 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/55069ee3-e135-4ebf-a007-e5806c72fc10
2025-08-29 14:28:49,471 - INFO - Verified VN network id 12 for VN 748e7dbe-3aa3-434b-b17a-1df6915c6510
2025-08-29 14:28:49,471 - INFO - Verifications in API Server for VN ctest-vn-11041161 passed
2025-08-29 14:28:49,471 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/748e7dbe-3aa3-434b-b17a-1df6915c6510
2025-08-29 14:28:49,480 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/55069ee3-e135-4ebf-a007-e5806c72fc10
2025-08-29 14:28:49,486 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/55069ee3-e135-4ebf-a007-e5806c72fc10
2025-08-29 14:28:49,492 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/0ea994e2-7ca1-489b-85b5-2fa9818504d9
2025-08-29 14:28:49,502 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-97259466:ctest-vn-11041161', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-97259466', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8398788611073590091', 'uuid-lslong': '12788567036709856528'}, 'enable': 'true', 'created': '2025-08-29T14:28:47', 'last-modified': '2025-08-29T14:28:48', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.907652'}
2025-08-29 14:28:49,508 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-29 14:28:49,509 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-11041161 passed
2025-08-29 14:28:49,510 - DEBUG - ====Verifying policy data for ctest-vn-11041161 in API_Server ======
2025-08-29 14:28:49,510 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-08-29 14:28:49,515 - DEBUG - Requesting: http://10.0.0.254:8082/domain/9fbf19a5-98bd-498d-ac68-1bfc368e7dab
2025-08-29 14:28:49,526 - DEBUG - Requesting: http://10.0.0.254:8082/project/c6cd133b-af56-438d-bea5-89c9ade19860
2025-08-29 14:28:49,596 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/748e7dbe-3aa3-434b-b17a-1df6915c6510
2025-08-29 14:28:49,603 - DEBUG - ==>Verifying data for policy with id: 1d57efbe-ad64-48ef-858a-0dc00cc6e926, fqn: ['default-domain', 'ctest-TestBasicPolicy-97259466', 'ctest-policy-allow-all-96305705']
2025-08-29 14:28:49,603 - INFO - VN ctest-vn-11041161 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-29 14:28:49,603 - DEBUG - Verifying the vn in opserver
2025-08-29 14:28:49,603 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-97259466:ctest-vn-11041161 virtual network link through opserver 10.0.0.254
2025-08-29 14:28:49,604 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-08-29 14:28:49,896 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-08-29 14:28:49,955 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-97259466:ctest-vn-11041161', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-97259466:ctest-vn-11041161?flat'}
2025-08-29 14:28:49,955 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-97259466:ctest-vn-11041161 is found in opserver
2025-08-29 14:28:49,963 - DEBUG - Do not have enough data to verify VN in agent
2025-08-29 14:28:49,967 - DEBUG - VRF ids for VN ctest-vn-11041161: {}
2025-08-29 14:28:49,967 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-08-29 14:28:49,972 - DEBUG - Requesting: http://10.0.0.254:8082/domain/9fbf19a5-98bd-498d-ac68-1bfc368e7dab
2025-08-29 14:28:49,982 - DEBUG - Requesting: http://10.0.0.254:8082/project/c6cd133b-af56-438d-bea5-89c9ade19860
2025-08-29 14:28:50,047 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/65cd75a5-795f-4ae2-a1d1-3a791ac0bcb8
2025-08-29 14:28:50,056 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/65cd75a5-795f-4ae2-a1d1-3a791ac0bcb8
2025-08-29 14:28:50,065 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/159016f8-5824-447d-8fed-4a3e87df7ee9
2025-08-29 14:28:50,072 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/159016f8-5824-447d-8fed-4a3e87df7ee9
2025-08-29 14:28:50,078 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/211a719a-fc63-4fd0-8ea8-e5f312011063
2025-08-29 14:28:50,085 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-29 14:28:50,085 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/65cd75a5-795f-4ae2-a1d1-3a791ac0bcb8
2025-08-29 14:28:50,095 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/159016f8-5824-447d-8fed-4a3e87df7ee9
2025-08-29 14:28:50,109 - INFO - Verified VN network id 13 for VN 65cd75a5-795f-4ae2-a1d1-3a791ac0bcb8
2025-08-29 14:28:50,109 - INFO - Verifications in API Server for VN ctest-vn-12440031 passed
2025-08-29 14:28:50,110 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/65cd75a5-795f-4ae2-a1d1-3a791ac0bcb8
2025-08-29 14:28:50,120 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/159016f8-5824-447d-8fed-4a3e87df7ee9
2025-08-29 14:28:50,126 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/159016f8-5824-447d-8fed-4a3e87df7ee9
2025-08-29 14:28:50,132 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/211a719a-fc63-4fd0-8ea8-e5f312011063
2025-08-29 14:28:50,143 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-97259466:ctest-vn-12440031', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-97259466', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7335648721622747874', 'uuid-lslong': '11660165202053217464'}, 'enable': 'true', 'created': '2025-08-29T14:28:47', 'last-modified': '2025-08-29T14:28:48', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.314263'}
2025-08-29 14:28:50,150 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-29 14:28:50,150 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-12440031 passed
2025-08-29 14:28:50,150 - DEBUG - ====Verifying policy data for ctest-vn-12440031 in API_Server ======
2025-08-29 14:28:50,150 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-08-29 14:28:50,155 - DEBUG - Requesting: http://10.0.0.254:8082/domain/9fbf19a5-98bd-498d-ac68-1bfc368e7dab
2025-08-29 14:28:50,165 - DEBUG - Requesting: http://10.0.0.254:8082/project/c6cd133b-af56-438d-bea5-89c9ade19860
2025-08-29 14:28:50,230 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/65cd75a5-795f-4ae2-a1d1-3a791ac0bcb8
2025-08-29 14:28:50,238 - DEBUG - ==>Verifying data for policy with id: 1d57efbe-ad64-48ef-858a-0dc00cc6e926, fqn: ['default-domain', 'ctest-TestBasicPolicy-97259466', 'ctest-policy-allow-all-96305705']
2025-08-29 14:28:50,238 - INFO - VN ctest-vn-12440031 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-29 14:28:50,238 - DEBUG - Verifying the vn in opserver
2025-08-29 14:28:50,238 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-97259466:ctest-vn-12440031 virtual network link through opserver 10.0.0.254
2025-08-29 14:28:50,238 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-08-29 14:28:50,247 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-97259466:ctest-vn-12440031', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-97259466:ctest-vn-12440031?flat'}
2025-08-29 14:28:50,247 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-97259466:ctest-vn-12440031 is found in opserver
2025-08-29 14:28:50,255 - DEBUG - Do not have enough data to verify VN in agent
2025-08-29 14:28:50,263 - DEBUG - VRF ids for VN ctest-vn-12440031: {}
2025-08-29 14:28:50,316 - DEBUG - Services list from nova: [