2025-07-17 16:52:56,874 - INFO - Domain Default found not creating
2025-07-17 16:52:57,015 - INFO - Project ctest-TestBasicPolicy-57546994 not found, creating it
2025-07-17 16:52:57,479 - INFO - Created Project:ctest-TestBasicPolicy-57546994, ID : c1a00ddc-704d-455f-873d-19d81f2373c5
2025-07-17 16:52:58,959 - INFO - ================================================================================
2025-07-17 16:52:58,959 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-07-17 16:52:58,959 - 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-07-17 16:52:59,236 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with
2025-07-17 16:52:59,236 - INFO - Initial checks done. Running the testcase now
2025-07-17 16:52:59,236 - INFO -
2025-07-17 16:52:59,832 - DEBUG - Response for create_network : {'network': {'id': 'd4eeca67-9af7-4fcf-b8cd-c745aca5027c', 'name': 'ctest-vn-24818759', 'tenant_id': 'c1a00ddc704d455f873d19d81f2373c5', 'project_id': 'c1a00ddc704d455f873d19d81f2373c5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-57546994', 'ctest-vn-24818759'], 'port_security_enabled': True, 'description': ''}}
2025-07-17 16:53:00,067 - DEBUG - Response for create_subnet : {'subnet': {'id': '050de4d4-ef11-46d3-912f-1ee4a1061875', 'name': '', 'tenant_id': 'c1a00ddc704d455f873d19d81f2373c5', 'network_id': 'd4eeca67-9af7-4fcf-b8cd-c745aca5027c', 'ip_version': 4, 'cidr': '53.10.160.64/26', 'allocation_pools': [{'start': '53.10.160.66', 'end': '53.10.160.126'}], 'gateway_ip': '53.10.160.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '53.10.160.66', 'tags': [], 'project_id': 'c1a00ddc704d455f873d19d81f2373c5'}}
2025-07-17 16:53:00,085 - INFO - Created VN ctest-vn-24818759
2025-07-17 16:53:00,137 - DEBUG - VN ctest-vn-24818759 UUID is d4eeca67-9af7-4fcf-b8cd-c745aca5027c
2025-07-17 16:53:00,433 - DEBUG - Response for create_network : {'network': {'id': 'c28a8970-8a3a-4d9b-88ed-b25f37012c1b', 'name': 'ctest-vn-90375037', 'tenant_id': 'c1a00ddc704d455f873d19d81f2373c5', 'project_id': 'c1a00ddc704d455f873d19d81f2373c5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-57546994', 'ctest-vn-90375037'], 'port_security_enabled': True, 'description': ''}}
2025-07-17 16:53:00,636 - DEBUG - Response for create_subnet : {'subnet': {'id': '51efecb2-25a2-4c2a-b816-809cdcfa081e', 'name': '', 'tenant_id': 'c1a00ddc704d455f873d19d81f2373c5', 'network_id': 'c28a8970-8a3a-4d9b-88ed-b25f37012c1b', 'ip_version': 4, 'cidr': '122.252.142.192/26', 'allocation_pools': [{'start': '122.252.142.194', 'end': '122.252.142.254'}], 'gateway_ip': '122.252.142.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '122.252.142.194', 'tags': [], 'project_id': 'c1a00ddc704d455f873d19d81f2373c5'}}
2025-07-17 16:53:00,655 - INFO - Created VN ctest-vn-90375037
2025-07-17 16:53:00,709 - DEBUG - VN ctest-vn-90375037 UUID is c28a8970-8a3a-4d9b-88ed-b25f37012c1b
2025-07-17 16:53:00,830 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-57546994:ctest-vn-24818759, 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-57546994:ctest-vn-90375037, 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-07-17 16:53:01,149 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd4eeca67-9af7-4fcf-b8cd-c745aca5027c', 'name': 'ctest-vn-24818759', 'tenant_id': 'c1a00ddc704d455f873d19d81f2373c5', 'project_id': 'c1a00ddc704d455f873d19d81f2373c5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['050de4d4-ef11-46d3-912f-1ee4a1061875'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-57546994', 'ctest-vn-24818759'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-57546994', 'ctest-policy-allow-all-05855297']], 'subnet_ipam': [{'subnet_cidr': '53.10.160.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-17 16:53:01,452 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c28a8970-8a3a-4d9b-88ed-b25f37012c1b', 'name': 'ctest-vn-90375037', 'tenant_id': 'c1a00ddc704d455f873d19d81f2373c5', 'project_id': 'c1a00ddc704d455f873d19d81f2373c5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['51efecb2-25a2-4c2a-b816-809cdcfa081e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-57546994', 'ctest-vn-90375037'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-57546994', 'ctest-policy-allow-all-05855297']], 'subnet_ipam': [{'subnet_cidr': '122.252.142.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-17 16:53:01,605 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-07-17 16:53:01,903 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-07-17 16:53:01,931 - DEBUG - Requesting: http://10.0.0.50:8082/domain/07336dcf-6ffa-4c2d-a139-798206c25467
2025-07-17 16:53:01,946 - DEBUG - Requesting: http://10.0.0.50:8082/project/c1a00ddc-704d-455f-873d-19d81f2373c5
2025-07-17 16:53:02,020 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/d4eeca67-9af7-4fcf-b8cd-c745aca5027c
2025-07-17 16:53:02,032 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/d4eeca67-9af7-4fcf-b8cd-c745aca5027c
2025-07-17 16:53:02,043 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/9e14284d-5834-4395-a54f-4cfaf8e1eeb7
2025-07-17 16:53:02,051 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/9e14284d-5834-4395-a54f-4cfaf8e1eeb7
2025-07-17 16:53:02,059 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/27e209b8-249b-43c2-a297-b6173ef4c318
2025-07-17 16:53:02,066 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-17 16:53:02,066 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/d4eeca67-9af7-4fcf-b8cd-c745aca5027c
2025-07-17 16:53:02,084 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/9e14284d-5834-4395-a54f-4cfaf8e1eeb7
2025-07-17 16:53:02,112 - INFO - Verified VN network id 7 for VN d4eeca67-9af7-4fcf-b8cd-c745aca5027c
2025-07-17 16:53:02,112 - INFO - Verifications in API Server for VN ctest-vn-24818759 passed
2025-07-17 16:53:02,112 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/d4eeca67-9af7-4fcf-b8cd-c745aca5027c
2025-07-17 16:53:02,125 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/9e14284d-5834-4395-a54f-4cfaf8e1eeb7
2025-07-17 16:53:02,135 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/9e14284d-5834-4395-a54f-4cfaf8e1eeb7
2025-07-17 16:53:02,142 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/27e209b8-249b-43c2-a297-b6173ef4c318
2025-07-17 16:53:02,155 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-57546994:ctest-vn-24818759', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-57546994', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15343423526828199887', 'uuid-lslong': '13316518775267590780'}, 'enable': 'true', 'created': '2025-07-17T16:52:59', 'last-modified': '2025-07-17T16:53:01', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.032790'}
2025-07-17 16:53:02,163 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-17 16:53:02,163 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-24818759 passed
2025-07-17 16:53:02,163 - DEBUG - ====Verifying policy data for ctest-vn-24818759 in API_Server ======
2025-07-17 16:53:02,163 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-07-17 16:53:02,169 - DEBUG - Requesting: http://10.0.0.50:8082/domain/07336dcf-6ffa-4c2d-a139-798206c25467
2025-07-17 16:53:02,181 - DEBUG - Requesting: http://10.0.0.50:8082/project/c1a00ddc-704d-455f-873d-19d81f2373c5
2025-07-17 16:53:02,263 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/d4eeca67-9af7-4fcf-b8cd-c745aca5027c
2025-07-17 16:53:02,278 - DEBUG - ==>Verifying data for policy with id: 81253b0b-77b0-4def-87e0-8a7021608d9e, fqn: ['default-domain', 'ctest-TestBasicPolicy-57546994', 'ctest-policy-allow-all-05855297']
2025-07-17 16:53:02,278 - INFO - VN ctest-vn-24818759 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-17 16:53:02,278 - DEBUG - Verifying the vn in opserver
2025-07-17 16:53:02,278 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-57546994:ctest-vn-24818759 virtual network link through opserver 10.0.0.50
2025-07-17 16:53:02,279 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-07-17 16:53:02,581 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-07-17 16:53:02,647 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-57546994:ctest-vn-24818759', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-57546994:ctest-vn-24818759?flat'}
2025-07-17 16:53:02,647 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-57546994:ctest-vn-24818759 is found in opserver
2025-07-17 16:53:02,658 - DEBUG - Do not have enough data to verify VN in agent
2025-07-17 16:53:02,664 - DEBUG - VRF ids for VN ctest-vn-24818759: {}
2025-07-17 16:53:02,664 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-07-17 16:53:02,670 - DEBUG - Requesting: http://10.0.0.50:8082/domain/07336dcf-6ffa-4c2d-a139-798206c25467
2025-07-17 16:53:02,681 - DEBUG - Requesting: http://10.0.0.50:8082/project/c1a00ddc-704d-455f-873d-19d81f2373c5
2025-07-17 16:53:02,757 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/c28a8970-8a3a-4d9b-88ed-b25f37012c1b
2025-07-17 16:53:02,769 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/c28a8970-8a3a-4d9b-88ed-b25f37012c1b
2025-07-17 16:53:02,781 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/a594d956-8357-4297-b39f-6725bf61a881
2025-07-17 16:53:02,791 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/a594d956-8357-4297-b39f-6725bf61a881
2025-07-17 16:53:02,799 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/5208ba71-2529-4784-9e95-d54bec265752
2025-07-17 16:53:02,807 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-17 16:53:02,807 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/c28a8970-8a3a-4d9b-88ed-b25f37012c1b
2025-07-17 16:53:02,819 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/a594d956-8357-4297-b39f-6725bf61a881
2025-07-17 16:53:02,835 - INFO - Verified VN network id 8 for VN c28a8970-8a3a-4d9b-88ed-b25f37012c1b
2025-07-17 16:53:02,835 - INFO - Verifications in API Server for VN ctest-vn-90375037 passed
2025-07-17 16:53:02,835 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/c28a8970-8a3a-4d9b-88ed-b25f37012c1b
2025-07-17 16:53:02,848 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/a594d956-8357-4297-b39f-6725bf61a881
2025-07-17 16:53:02,856 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/a594d956-8357-4297-b39f-6725bf61a881
2025-07-17 16:53:02,866 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/5208ba71-2529-4784-9e95-d54bec265752
2025-07-17 16:53:02,880 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-57546994:ctest-vn-90375037', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-57546994', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14018167906592509339', 'uuid-lslong': '9866738480653085723'}, 'enable': 'true', 'created': '2025-07-17T16:53:00', 'last-modified': '2025-07-17T16:53:01', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.510524'}
2025-07-17 16:53:02,887 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-17 16:53:02,887 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-90375037 passed
2025-07-17 16:53:02,887 - DEBUG - ====Verifying policy data for ctest-vn-90375037 in API_Server ======
2025-07-17 16:53:02,887 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-07-17 16:53:02,894 - DEBUG - Requesting: http://10.0.0.50:8082/domain/07336dcf-6ffa-4c2d-a139-798206c25467
2025-07-17 16:53:02,907 - DEBUG - Requesting: http://10.0.0.50:8082/project/c1a00ddc-704d-455f-873d-19d81f2373c5
2025-07-17 16:53:02,979 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/c28a8970-8a3a-4d9b-88ed-b25f37012c1b
2025-07-17 16:53:02,989 - DEBUG - ==>Verifying data for policy with id: 81253b0b-77b0-4def-87e0-8a7021608d9e, fqn: ['default-domain', 'ctest-TestBasicPolicy-57546994', 'ctest-policy-allow-all-05855297']
2025-07-17 16:53:02,989 - INFO - VN ctest-vn-90375037 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-17 16:53:02,989 - DEBUG - Verifying the vn in opserver
2025-07-17 16:53:02,989 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-57546994:ctest-vn-90375037 virtual network link through opserver 10.0.0.50
2025-07-17 16:53:02,989 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-07-17 16:53:03,002 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-57546994:ctest-vn-90375037', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-57546994:ctest-vn-90375037?flat'}
2025-07-17 16:53:03,002 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-57546994:ctest-vn-90375037 is found in opserver
2025-07-17 16:53:03,014 - DEBUG - Do not have enough data to verify VN in agent
2025-07-17 16:53:03,019 - DEBUG - VRF ids for VN ctest-vn-90375037: {}
2025-07-17 16:53:03,080 - DEBUG - Services list from nova: [