2025-06-05 02:17:51,724 - INFO - Domain Default found not creating
2025-06-05 02:17:51,892 - INFO - Project ctest-TestBasicPolicy-11206888 not found, creating it
2025-06-05 02:17:52,411 - INFO - Created Project:ctest-TestBasicPolicy-11206888, ID : ffe45751-7751-4457-94be-f4c4058b487f
2025-06-05 02:17:54,136 - INFO - ================================================================================
2025-06-05 02:17:54,136 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-06-05 02:17:54,136 - 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-06-05 02:17:54,399 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.20.0.18': '0'}} with
2025-06-05 02:17:54,399 - INFO - Initial checks done. Running the testcase now
2025-06-05 02:17:54,400 - INFO -
2025-06-05 02:17:55,041 - DEBUG - Response for create_network : {'network': {'id': '09cf8184-7077-479e-92cd-f0a82d0e653d', 'name': 'ctest-vn-51751537', 'tenant_id': 'ffe457517751445794bef4c4058b487f', 'project_id': 'ffe457517751445794bef4c4058b487f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-11206888', 'ctest-vn-51751537'], 'port_security_enabled': True, 'description': ''}}
2025-06-05 02:17:55,276 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e5f4da2f-e70c-4beb-a12a-6b21a958d49d', 'name': '', 'tenant_id': 'ffe457517751445794bef4c4058b487f', 'network_id': '09cf8184-7077-479e-92cd-f0a82d0e653d', 'ip_version': 4, 'cidr': '161.232.181.128/26', 'allocation_pools': [{'start': '161.232.181.130', 'end': '161.232.181.190'}], 'gateway_ip': '161.232.181.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '161.232.181.130', 'tags': [], 'project_id': 'ffe457517751445794bef4c4058b487f'}}
2025-06-05 02:17:55,300 - INFO - Created VN ctest-vn-51751537
2025-06-05 02:17:55,354 - DEBUG - VN ctest-vn-51751537 UUID is 09cf8184-7077-479e-92cd-f0a82d0e653d
2025-06-05 02:17:55,684 - DEBUG - Response for create_network : {'network': {'id': 'da1c1361-312c-4797-b7c0-2ddcbc12e20b', 'name': 'ctest-vn-02628305', 'tenant_id': 'ffe457517751445794bef4c4058b487f', 'project_id': 'ffe457517751445794bef4c4058b487f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-11206888', 'ctest-vn-02628305'], 'port_security_enabled': True, 'description': ''}}
2025-06-05 02:17:55,880 - DEBUG - Response for create_subnet : {'subnet': {'id': 'bc2c51a4-d2e9-44c6-a035-4b66ab60cebe', 'name': '', 'tenant_id': 'ffe457517751445794bef4c4058b487f', 'network_id': 'da1c1361-312c-4797-b7c0-2ddcbc12e20b', 'ip_version': 4, 'cidr': '114.220.79.0/26', 'allocation_pools': [{'start': '114.220.79.2', 'end': '114.220.79.62'}], 'gateway_ip': '114.220.79.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '114.220.79.2', 'tags': [], 'project_id': 'ffe457517751445794bef4c4058b487f'}}
2025-06-05 02:17:55,905 - INFO - Created VN ctest-vn-02628305
2025-06-05 02:17:55,970 - DEBUG - VN ctest-vn-02628305 UUID is da1c1361-312c-4797-b7c0-2ddcbc12e20b
2025-06-05 02:17:56,096 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-11206888:ctest-vn-51751537, 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-11206888:ctest-vn-02628305, 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-06-05 02:17:56,414 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '09cf8184-7077-479e-92cd-f0a82d0e653d', 'name': 'ctest-vn-51751537', 'tenant_id': 'ffe457517751445794bef4c4058b487f', 'project_id': 'ffe457517751445794bef4c4058b487f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e5f4da2f-e70c-4beb-a12a-6b21a958d49d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-11206888', 'ctest-vn-51751537'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-11206888', 'ctest-policy-allow-all-22152194']], 'subnet_ipam': [{'subnet_cidr': '161.232.181.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-05 02:17:56,685 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'da1c1361-312c-4797-b7c0-2ddcbc12e20b', 'name': 'ctest-vn-02628305', 'tenant_id': 'ffe457517751445794bef4c4058b487f', 'project_id': 'ffe457517751445794bef4c4058b487f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['bc2c51a4-d2e9-44c6-a035-4b66ab60cebe'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-11206888', 'ctest-vn-02628305'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-11206888', 'ctest-policy-allow-all-22152194']], 'subnet_ipam': [{'subnet_cidr': '114.220.79.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-05 02:17:56,846 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-06-05 02:17:57,217 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-06-05 02:17:57,250 - DEBUG - Requesting: http://10.0.0.242:8082/domain/5281e19d-b72c-4db7-866c-7da6c6bfb017
2025-06-05 02:17:57,268 - DEBUG - Requesting: http://10.0.0.242:8082/project/ffe45751-7751-4457-94be-f4c4058b487f
2025-06-05 02:17:57,351 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/09cf8184-7077-479e-92cd-f0a82d0e653d
2025-06-05 02:17:57,364 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/09cf8184-7077-479e-92cd-f0a82d0e653d
2025-06-05 02:17:57,375 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/965ef4a8-78e7-4ff9-8d5c-93efb12f0509
2025-06-05 02:17:57,384 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/965ef4a8-78e7-4ff9-8d5c-93efb12f0509
2025-06-05 02:17:57,398 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/04fd731f-4121-4ce7-a91b-5f4f7c3723e9
2025-06-05 02:17:57,409 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-05 02:17:57,409 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/09cf8184-7077-479e-92cd-f0a82d0e653d
2025-06-05 02:17:57,424 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/965ef4a8-78e7-4ff9-8d5c-93efb12f0509
2025-06-05 02:17:57,447 - INFO - Verified VN network id 7 for VN 09cf8184-7077-479e-92cd-f0a82d0e653d
2025-06-05 02:17:57,447 - INFO - Verifications in API Server for VN ctest-vn-51751537 passed
2025-06-05 02:17:57,447 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/09cf8184-7077-479e-92cd-f0a82d0e653d
2025-06-05 02:17:57,460 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/965ef4a8-78e7-4ff9-8d5c-93efb12f0509
2025-06-05 02:17:57,470 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/965ef4a8-78e7-4ff9-8d5c-93efb12f0509
2025-06-05 02:17:57,478 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/04fd731f-4121-4ce7-a91b-5f4f7c3723e9
2025-06-05 02:17:57,492 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-11206888:ctest-vn-51751537', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-11206888', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '706926072342988702', 'uuid-lslong': '10578375704864253245'}, 'enable': 'true', 'created': '2025-06-05T02:17:55', 'last-modified': '2025-06-05T02:17:56', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.100032'}
2025-06-05 02:17:57,501 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-05 02:17:57,501 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-51751537 passed
2025-06-05 02:17:57,502 - DEBUG - ====Verifying policy data for ctest-vn-51751537 in API_Server ======
2025-06-05 02:17:57,502 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-06-05 02:17:57,510 - DEBUG - Requesting: http://10.0.0.242:8082/domain/5281e19d-b72c-4db7-866c-7da6c6bfb017
2025-06-05 02:17:57,526 - DEBUG - Requesting: http://10.0.0.242:8082/project/ffe45751-7751-4457-94be-f4c4058b487f
2025-06-05 02:17:57,600 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/09cf8184-7077-479e-92cd-f0a82d0e653d
2025-06-05 02:17:57,615 - DEBUG - ==>Verifying data for policy with id: fac3aed0-effc-473b-9593-5d158a5cef59, fqn: ['default-domain', 'ctest-TestBasicPolicy-11206888', 'ctest-policy-allow-all-22152194']
2025-06-05 02:17:57,615 - INFO - VN ctest-vn-51751537 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-05 02:17:57,616 - DEBUG - Verifying the vn in opserver
2025-06-05 02:17:57,616 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-11206888:ctest-vn-51751537 virtual network link through opserver 10.0.0.242
2025-06-05 02:17:57,616 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks
2025-06-05 02:17:57,958 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks
2025-06-05 02:17:58,027 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-11206888:ctest-vn-51751537', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-11206888:ctest-vn-51751537?flat'}
2025-06-05 02:17:58,027 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-11206888:ctest-vn-51751537 is found in opserver
2025-06-05 02:17:58,040 - DEBUG - Do not have enough data to verify VN in agent
2025-06-05 02:17:58,046 - DEBUG - VRF ids for VN ctest-vn-51751537: {}
2025-06-05 02:17:58,046 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-06-05 02:17:58,054 - DEBUG - Requesting: http://10.0.0.242:8082/domain/5281e19d-b72c-4db7-866c-7da6c6bfb017
2025-06-05 02:17:58,069 - DEBUG - Requesting: http://10.0.0.242:8082/project/ffe45751-7751-4457-94be-f4c4058b487f
2025-06-05 02:17:58,154 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/da1c1361-312c-4797-b7c0-2ddcbc12e20b
2025-06-05 02:17:58,167 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/da1c1361-312c-4797-b7c0-2ddcbc12e20b
2025-06-05 02:17:58,179 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/a7049dcd-0a7a-440e-b337-17d6f7e08bbf
2025-06-05 02:17:58,187 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/a7049dcd-0a7a-440e-b337-17d6f7e08bbf
2025-06-05 02:17:58,196 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/80d1986d-551c-4ce6-987a-580cb006d057
2025-06-05 02:17:58,206 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-05 02:17:58,206 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/da1c1361-312c-4797-b7c0-2ddcbc12e20b
2025-06-05 02:17:58,220 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/a7049dcd-0a7a-440e-b337-17d6f7e08bbf
2025-06-05 02:17:58,237 - INFO - Verified VN network id 8 for VN da1c1361-312c-4797-b7c0-2ddcbc12e20b
2025-06-05 02:17:58,238 - INFO - Verifications in API Server for VN ctest-vn-02628305 passed
2025-06-05 02:17:58,238 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/da1c1361-312c-4797-b7c0-2ddcbc12e20b
2025-06-05 02:17:58,250 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/a7049dcd-0a7a-440e-b337-17d6f7e08bbf
2025-06-05 02:17:58,260 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/a7049dcd-0a7a-440e-b337-17d6f7e08bbf
2025-06-05 02:17:58,268 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/80d1986d-551c-4ce6-987a-580cb006d057
2025-06-05 02:17:58,283 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-11206888:ctest-vn-02628305', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-11206888', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15716458107773929367', 'uuid-lslong': '13240633330540667403'}, 'enable': 'true', 'created': '2025-06-05T02:17:55', 'last-modified': '2025-06-05T02:17:56', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.626315'}
2025-06-05 02:17:58,291 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-05 02:17:58,291 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-02628305 passed
2025-06-05 02:17:58,291 - DEBUG - ====Verifying policy data for ctest-vn-02628305 in API_Server ======
2025-06-05 02:17:58,291 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-06-05 02:17:58,299 - DEBUG - Requesting: http://10.0.0.242:8082/domain/5281e19d-b72c-4db7-866c-7da6c6bfb017
2025-06-05 02:17:58,316 - DEBUG - Requesting: http://10.0.0.242:8082/project/ffe45751-7751-4457-94be-f4c4058b487f
2025-06-05 02:17:58,396 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/da1c1361-312c-4797-b7c0-2ddcbc12e20b
2025-06-05 02:17:58,409 - DEBUG - ==>Verifying data for policy with id: fac3aed0-effc-473b-9593-5d158a5cef59, fqn: ['default-domain', 'ctest-TestBasicPolicy-11206888', 'ctest-policy-allow-all-22152194']
2025-06-05 02:17:58,409 - INFO - VN ctest-vn-02628305 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-05 02:17:58,409 - DEBUG - Verifying the vn in opserver
2025-06-05 02:17:58,409 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-11206888:ctest-vn-02628305 virtual network link through opserver 10.0.0.242
2025-06-05 02:17:58,409 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks
2025-06-05 02:17:58,428 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-11206888:ctest-vn-02628305', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-11206888:ctest-vn-02628305?flat'}
2025-06-05 02:17:58,428 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-11206888:ctest-vn-02628305 is found in opserver
2025-06-05 02:17:58,442 - DEBUG - Do not have enough data to verify VN in agent
2025-06-05 02:17:58,449 - DEBUG - VRF ids for VN ctest-vn-02628305: {}
2025-06-05 02:17:58,522 - DEBUG - Services list from nova: [