2025-11-27 02:08:58,559 - INFO - Domain Default found not creating
2025-11-27 02:08:58,732 - INFO - Project ctest-TestBasicPolicy-00596240 not found, creating it
2025-11-27 02:08:59,200 - INFO - Created Project:ctest-TestBasicPolicy-00596240, ID : 953953fc-0261-4d46-8bb8-0e6f24404699
2025-11-27 02:09:00,842 - INFO - ================================================================================
2025-11-27 02:09:00,842 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-11-27 02:09:00,842 - 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-11-27 02:09:01,101 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.17': '0'}} with
2025-11-27 02:09:01,101 - INFO - Initial checks done. Running the testcase now
2025-11-27 02:09:01,101 - INFO -
2025-11-27 02:09:01,710 - DEBUG - Response for create_network : {'network': {'id': 'a37ca289-680e-47d7-803f-7b92d6b1f1fd', 'name': 'ctest-vn-50087783', 'tenant_id': '953953fc02614d468bb80e6f24404699', 'project_id': '953953fc02614d468bb80e6f24404699', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-00596240', 'ctest-vn-50087783'], 'port_security_enabled': True, 'description': ''}}
2025-11-27 02:09:01,918 - DEBUG - Response for create_subnet : {'subnet': {'id': '20dea330-6544-438a-aaa0-d1bed493b0dd', 'name': '', 'tenant_id': '953953fc02614d468bb80e6f24404699', 'network_id': 'a37ca289-680e-47d7-803f-7b92d6b1f1fd', 'ip_version': 4, 'cidr': '33.239.44.128/26', 'allocation_pools': [{'start': '33.239.44.130', 'end': '33.239.44.190'}], 'gateway_ip': '33.239.44.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '33.239.44.130', 'tags': [], 'project_id': '953953fc02614d468bb80e6f24404699'}}
2025-11-27 02:09:01,938 - INFO - Created VN ctest-vn-50087783
2025-11-27 02:09:01,992 - DEBUG - VN ctest-vn-50087783 UUID is a37ca289-680e-47d7-803f-7b92d6b1f1fd
2025-11-27 02:09:02,318 - DEBUG - Response for create_network : {'network': {'id': 'c96eef40-aedd-4565-af4f-32af0bdd0b37', 'name': 'ctest-vn-18823558', 'tenant_id': '953953fc02614d468bb80e6f24404699', 'project_id': '953953fc02614d468bb80e6f24404699', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-00596240', 'ctest-vn-18823558'], 'port_security_enabled': True, 'description': ''}}
2025-11-27 02:09:02,542 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ca47e0ee-3d15-4aa4-83b0-08566df0c5ae', 'name': '', 'tenant_id': '953953fc02614d468bb80e6f24404699', 'network_id': 'c96eef40-aedd-4565-af4f-32af0bdd0b37', 'ip_version': 4, 'cidr': '101.137.236.64/26', 'allocation_pools': [{'start': '101.137.236.66', 'end': '101.137.236.126'}], 'gateway_ip': '101.137.236.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '101.137.236.66', 'tags': [], 'project_id': '953953fc02614d468bb80e6f24404699'}}
2025-11-27 02:09:02,561 - INFO - Created VN ctest-vn-18823558
2025-11-27 02:09:02,616 - DEBUG - VN ctest-vn-18823558 UUID is c96eef40-aedd-4565-af4f-32af0bdd0b37
2025-11-27 02:09:02,729 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-00596240:ctest-vn-50087783, 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-00596240:ctest-vn-18823558, 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-11-27 02:09:03,048 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a37ca289-680e-47d7-803f-7b92d6b1f1fd', 'name': 'ctest-vn-50087783', 'tenant_id': '953953fc02614d468bb80e6f24404699', 'project_id': '953953fc02614d468bb80e6f24404699', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['20dea330-6544-438a-aaa0-d1bed493b0dd'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-00596240', 'ctest-vn-50087783'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-00596240', 'ctest-policy-allow-all-08183954']], 'subnet_ipam': [{'subnet_cidr': '33.239.44.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-27 02:09:03,335 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c96eef40-aedd-4565-af4f-32af0bdd0b37', 'name': 'ctest-vn-18823558', 'tenant_id': '953953fc02614d468bb80e6f24404699', 'project_id': '953953fc02614d468bb80e6f24404699', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ca47e0ee-3d15-4aa4-83b0-08566df0c5ae'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-00596240', 'ctest-vn-18823558'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-00596240', 'ctest-policy-allow-all-08183954']], 'subnet_ipam': [{'subnet_cidr': '101.137.236.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-27 02:09:03,484 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-11-27 02:09:03,819 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-11-27 02:09:03,855 - DEBUG - Requesting: http://10.0.0.22:8082/domain/4c46a6c9-7e7d-43c8-94b2-74dfcfc418c9
2025-11-27 02:09:03,868 - DEBUG - Requesting: http://10.0.0.22:8082/project/953953fc-0261-4d46-8bb8-0e6f24404699
2025-11-27 02:09:03,945 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/a37ca289-680e-47d7-803f-7b92d6b1f1fd
2025-11-27 02:09:03,958 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/a37ca289-680e-47d7-803f-7b92d6b1f1fd
2025-11-27 02:09:03,969 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/304e183f-8e05-4217-8d33-6021c6174481
2025-11-27 02:09:03,978 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/304e183f-8e05-4217-8d33-6021c6174481
2025-11-27 02:09:03,985 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/a8577ba6-2b35-4bb6-8bd0-edd5f6db5961
2025-11-27 02:09:03,992 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-27 02:09:03,992 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/a37ca289-680e-47d7-803f-7b92d6b1f1fd
2025-11-27 02:09:04,002 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/304e183f-8e05-4217-8d33-6021c6174481
2025-11-27 02:09:04,019 - INFO - Verified VN network id 11 for VN a37ca289-680e-47d7-803f-7b92d6b1f1fd
2025-11-27 02:09:04,019 - INFO - Verifications in API Server for VN ctest-vn-50087783 passed
2025-11-27 02:09:04,019 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/a37ca289-680e-47d7-803f-7b92d6b1f1fd
2025-11-27 02:09:04,030 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/304e183f-8e05-4217-8d33-6021c6174481
2025-11-27 02:09:04,037 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/304e183f-8e05-4217-8d33-6021c6174481
2025-11-27 02:09:04,046 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/a8577ba6-2b35-4bb6-8bd0-edd5f6db5961
2025-11-27 02:09:04,058 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-00596240:ctest-vn-50087783', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-00596240', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11780469436334360535', 'uuid-lslong': '9241240830984974845'}, 'enable': 'true', 'created': '2025-11-27T02:09:01', 'last-modified': '2025-11-27T02:09:03', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.040403'}
2025-11-27 02:09:04,064 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-27 02:09:04,065 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-50087783 passed
2025-11-27 02:09:04,065 - DEBUG - ====Verifying policy data for ctest-vn-50087783 in API_Server ======
2025-11-27 02:09:04,065 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-11-27 02:09:04,070 - DEBUG - Requesting: http://10.0.0.22:8082/domain/4c46a6c9-7e7d-43c8-94b2-74dfcfc418c9
2025-11-27 02:09:04,081 - DEBUG - Requesting: http://10.0.0.22:8082/project/953953fc-0261-4d46-8bb8-0e6f24404699
2025-11-27 02:09:04,154 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/a37ca289-680e-47d7-803f-7b92d6b1f1fd
2025-11-27 02:09:04,163 - DEBUG - ==>Verifying data for policy with id: b8a01ba5-a884-4513-ad4f-18d504d9fbab, fqn: ['default-domain', 'ctest-TestBasicPolicy-00596240', 'ctest-policy-allow-all-08183954']
2025-11-27 02:09:04,163 - INFO - VN ctest-vn-50087783 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-27 02:09:04,163 - DEBUG - Verifying the vn in opserver
2025-11-27 02:09:04,164 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-00596240:ctest-vn-50087783 virtual network link through opserver 10.0.0.22
2025-11-27 02:09:04,164 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-11-27 02:09:04,497 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-11-27 02:09:04,560 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-00596240:ctest-vn-50087783', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-00596240:ctest-vn-50087783?flat'}
2025-11-27 02:09:04,560 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-00596240:ctest-vn-50087783 is found in opserver
2025-11-27 02:09:04,571 - DEBUG - Do not have enough data to verify VN in agent
2025-11-27 02:09:04,575 - DEBUG - VRF ids for VN ctest-vn-50087783: {}
2025-11-27 02:09:04,575 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-11-27 02:09:04,582 - DEBUG - Requesting: http://10.0.0.22:8082/domain/4c46a6c9-7e7d-43c8-94b2-74dfcfc418c9
2025-11-27 02:09:04,594 - DEBUG - Requesting: http://10.0.0.22:8082/project/953953fc-0261-4d46-8bb8-0e6f24404699
2025-11-27 02:09:04,666 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/c96eef40-aedd-4565-af4f-32af0bdd0b37
2025-11-27 02:09:04,681 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/c96eef40-aedd-4565-af4f-32af0bdd0b37
2025-11-27 02:09:04,690 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/4acd38bc-b933-4c4b-99f0-1d4920a1e928
2025-11-27 02:09:04,697 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/4acd38bc-b933-4c4b-99f0-1d4920a1e928
2025-11-27 02:09:04,703 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/43fd792f-005b-415d-a473-afc5f14452d3
2025-11-27 02:09:04,710 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-27 02:09:04,710 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/c96eef40-aedd-4565-af4f-32af0bdd0b37
2025-11-27 02:09:04,720 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/4acd38bc-b933-4c4b-99f0-1d4920a1e928
2025-11-27 02:09:04,734 - INFO - Verified VN network id 12 for VN c96eef40-aedd-4565-af4f-32af0bdd0b37
2025-11-27 02:09:04,734 - INFO - Verifications in API Server for VN ctest-vn-18823558 passed
2025-11-27 02:09:04,734 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/c96eef40-aedd-4565-af4f-32af0bdd0b37
2025-11-27 02:09:04,743 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/4acd38bc-b933-4c4b-99f0-1d4920a1e928
2025-11-27 02:09:04,749 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/4acd38bc-b933-4c4b-99f0-1d4920a1e928
2025-11-27 02:09:04,755 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/43fd792f-005b-415d-a473-afc5f14452d3
2025-11-27 02:09:04,765 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-00596240:ctest-vn-18823558', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-00596240', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14514801710152369509', 'uuid-lslong': '12632371207197231927'}, 'enable': 'true', 'created': '2025-11-27T02:09:02', 'last-modified': '2025-11-27T02:09:03', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.500044'}
2025-11-27 02:09:04,771 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-27 02:09:04,771 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-18823558 passed
2025-11-27 02:09:04,771 - DEBUG - ====Verifying policy data for ctest-vn-18823558 in API_Server ======
2025-11-27 02:09:04,771 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-11-27 02:09:04,777 - DEBUG - Requesting: http://10.0.0.22:8082/domain/4c46a6c9-7e7d-43c8-94b2-74dfcfc418c9
2025-11-27 02:09:04,786 - DEBUG - Requesting: http://10.0.0.22:8082/project/953953fc-0261-4d46-8bb8-0e6f24404699
2025-11-27 02:09:04,856 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/c96eef40-aedd-4565-af4f-32af0bdd0b37
2025-11-27 02:09:04,866 - DEBUG - ==>Verifying data for policy with id: b8a01ba5-a884-4513-ad4f-18d504d9fbab, fqn: ['default-domain', 'ctest-TestBasicPolicy-00596240', 'ctest-policy-allow-all-08183954']
2025-11-27 02:09:04,866 - INFO - VN ctest-vn-18823558 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-27 02:09:04,866 - DEBUG - Verifying the vn in opserver
2025-11-27 02:09:04,866 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-00596240:ctest-vn-18823558 virtual network link through opserver 10.0.0.22
2025-11-27 02:09:04,866 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-11-27 02:09:04,877 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-00596240:ctest-vn-18823558', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-00596240:ctest-vn-18823558?flat'}
2025-11-27 02:09:04,877 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-00596240:ctest-vn-18823558 is found in opserver
2025-11-27 02:09:04,886 - DEBUG - Do not have enough data to verify VN in agent
2025-11-27 02:09:04,891 - DEBUG - VRF ids for VN ctest-vn-18823558: {}
2025-11-27 02:09:04,959 - DEBUG - Services list from nova: [