2025-10-23 02:00:28,934 - INFO - Domain Default found not creating
2025-10-23 02:00:29,113 - INFO - Project ctest-TestBasicPolicy-96251021 not found, creating it
2025-10-23 02:00:29,594 - INFO - Created Project:ctest-TestBasicPolicy-96251021, ID : b3d49387-48dd-43ce-bf08-6510f37b27a7
2025-10-23 02:00:31,089 - INFO - ================================================================================
2025-10-23 02:00:31,090 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-23 02:00:31,090 - 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-10-23 02:00:31,346 - DEBUG - Nothing to compare xmpp stats {'10.0.0.241': {'10.20.0.252': '0'}} with
2025-10-23 02:00:31,347 - INFO - Initial checks done. Running the testcase now
2025-10-23 02:00:31,347 - INFO -
2025-10-23 02:00:31,906 - DEBUG - Response for create_network : {'network': {'id': '604938e6-6fdd-4905-a0e5-b736091b0ca5', 'name': 'ctest-vn-67688402', 'tenant_id': 'b3d4938748dd43cebf086510f37b27a7', 'project_id': 'b3d4938748dd43cebf086510f37b27a7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-96251021', 'ctest-vn-67688402'], 'port_security_enabled': True, 'description': ''}}
2025-10-23 02:00:32,065 - DEBUG - Response for create_subnet : {'subnet': {'id': '19b13c6f-845e-452f-8a36-3438810990f0', 'name': '', 'tenant_id': 'b3d4938748dd43cebf086510f37b27a7', 'network_id': '604938e6-6fdd-4905-a0e5-b736091b0ca5', 'ip_version': 4, 'cidr': '135.172.167.128/26', 'allocation_pools': [{'start': '135.172.167.130', 'end': '135.172.167.190'}], 'gateway_ip': '135.172.167.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '135.172.167.130', 'tags': [], 'project_id': 'b3d4938748dd43cebf086510f37b27a7'}}
2025-10-23 02:00:32,085 - INFO - Created VN ctest-vn-67688402
2025-10-23 02:00:32,143 - DEBUG - VN ctest-vn-67688402 UUID is 604938e6-6fdd-4905-a0e5-b736091b0ca5
2025-10-23 02:00:32,451 - DEBUG - Response for create_network : {'network': {'id': 'f0453ad8-e028-4ac2-b457-5214528b18e2', 'name': 'ctest-vn-64922839', 'tenant_id': 'b3d4938748dd43cebf086510f37b27a7', 'project_id': 'b3d4938748dd43cebf086510f37b27a7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-96251021', 'ctest-vn-64922839'], 'port_security_enabled': True, 'description': ''}}
2025-10-23 02:00:32,653 - DEBUG - Response for create_subnet : {'subnet': {'id': '31bee35c-4986-47d1-9acf-e7433c0a428b', 'name': '', 'tenant_id': 'b3d4938748dd43cebf086510f37b27a7', 'network_id': 'f0453ad8-e028-4ac2-b457-5214528b18e2', 'ip_version': 4, 'cidr': '80.149.17.64/26', 'allocation_pools': [{'start': '80.149.17.66', 'end': '80.149.17.126'}], 'gateway_ip': '80.149.17.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '80.149.17.66', 'tags': [], 'project_id': 'b3d4938748dd43cebf086510f37b27a7'}}
2025-10-23 02:00:32,676 - INFO - Created VN ctest-vn-64922839
2025-10-23 02:00:32,727 - DEBUG - VN ctest-vn-64922839 UUID is f0453ad8-e028-4ac2-b457-5214528b18e2
2025-10-23 02:00:32,857 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-96251021:ctest-vn-67688402, 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-96251021:ctest-vn-64922839, 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-10-23 02:00:33,160 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '604938e6-6fdd-4905-a0e5-b736091b0ca5', 'name': 'ctest-vn-67688402', 'tenant_id': 'b3d4938748dd43cebf086510f37b27a7', 'project_id': 'b3d4938748dd43cebf086510f37b27a7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['19b13c6f-845e-452f-8a36-3438810990f0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-96251021', 'ctest-vn-67688402'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-96251021', 'ctest-policy-allow-all-79032045']], 'subnet_ipam': [{'subnet_cidr': '135.172.167.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-23 02:00:33,395 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f0453ad8-e028-4ac2-b457-5214528b18e2', 'name': 'ctest-vn-64922839', 'tenant_id': 'b3d4938748dd43cebf086510f37b27a7', 'project_id': 'b3d4938748dd43cebf086510f37b27a7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['31bee35c-4986-47d1-9acf-e7433c0a428b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-96251021', 'ctest-vn-64922839'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-96251021', 'ctest-policy-allow-all-79032045']], 'subnet_ipam': [{'subnet_cidr': '80.149.17.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-23 02:00:33,567 - DEBUG - Requesting: http://10.0.0.241:8082/domains
2025-10-23 02:00:33,874 - DEBUG - Requesting: http://10.0.0.241:8082/domains
2025-10-23 02:00:33,909 - DEBUG - Requesting: http://10.0.0.241:8082/domain/50f717e1-7edc-43de-8b5a-5b897134ccb4
2025-10-23 02:00:33,921 - DEBUG - Requesting: http://10.0.0.241:8082/project/b3d49387-48dd-43ce-bf08-6510f37b27a7
2025-10-23 02:00:33,996 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/604938e6-6fdd-4905-a0e5-b736091b0ca5
2025-10-23 02:00:34,007 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/604938e6-6fdd-4905-a0e5-b736091b0ca5
2025-10-23 02:00:34,018 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/dae4b4de-99bb-443b-950a-1f9856f94cae
2025-10-23 02:00:34,025 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/dae4b4de-99bb-443b-950a-1f9856f94cae
2025-10-23 02:00:34,033 - DEBUG - Requesting: http://10.0.0.241:8082/route-target/9065df49-60bc-491f-bbb0-5736f10d4659
2025-10-23 02:00:34,040 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-23 02:00:34,040 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/604938e6-6fdd-4905-a0e5-b736091b0ca5
2025-10-23 02:00:34,050 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/dae4b4de-99bb-443b-950a-1f9856f94cae
2025-10-23 02:00:34,067 - INFO - Verified VN network id 11 for VN 604938e6-6fdd-4905-a0e5-b736091b0ca5
2025-10-23 02:00:34,067 - INFO - Verifications in API Server for VN ctest-vn-67688402 passed
2025-10-23 02:00:34,067 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/604938e6-6fdd-4905-a0e5-b736091b0ca5
2025-10-23 02:00:34,077 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/dae4b4de-99bb-443b-950a-1f9856f94cae
2025-10-23 02:00:34,084 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/dae4b4de-99bb-443b-950a-1f9856f94cae
2025-10-23 02:00:34,093 - DEBUG - Requesting: http://10.0.0.241:8082/route-target/9065df49-60bc-491f-bbb0-5736f10d4659
2025-10-23 02:00:34,106 - DEBUG - Control-node 10.0.0.241 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-96251021:ctest-vn-67688402', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-96251021', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6938139263311366405', 'uuid-lslong': '11593874258444094629'}, 'enable': 'true', 'created': '2025-10-23T02:00:31', 'last-modified': '2025-10-23T02:00:33', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.974499'}
2025-10-23 02:00:34,112 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-23 02:00:34,112 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-67688402 passed
2025-10-23 02:00:34,113 - DEBUG - ====Verifying policy data for ctest-vn-67688402 in API_Server ======
2025-10-23 02:00:34,113 - DEBUG - Requesting: http://10.0.0.241:8082/domains
2025-10-23 02:00:34,118 - DEBUG - Requesting: http://10.0.0.241:8082/domain/50f717e1-7edc-43de-8b5a-5b897134ccb4
2025-10-23 02:00:34,131 - DEBUG - Requesting: http://10.0.0.241:8082/project/b3d49387-48dd-43ce-bf08-6510f37b27a7
2025-10-23 02:00:34,203 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/604938e6-6fdd-4905-a0e5-b736091b0ca5
2025-10-23 02:00:34,215 - DEBUG - ==>Verifying data for policy with id: 5893b691-af55-480f-b2fa-e15b8450d20e, fqn: ['default-domain', 'ctest-TestBasicPolicy-96251021', 'ctest-policy-allow-all-79032045']
2025-10-23 02:00:34,215 - INFO - VN ctest-vn-67688402 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-23 02:00:34,215 - DEBUG - Verifying the vn in opserver
2025-10-23 02:00:34,215 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-96251021:ctest-vn-67688402 virtual network link through opserver 10.0.0.241
2025-10-23 02:00:34,215 - DEBUG - Requesting: http://10.0.0.241:8081/analytics/uves/virtual-networks
2025-10-23 02:00:34,511 - DEBUG - Requesting: http://10.0.0.241:8081/analytics/uves/virtual-networks
2025-10-23 02:00:34,571 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-96251021:ctest-vn-67688402', 'href': 'http://10.0.0.241:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-96251021:ctest-vn-67688402?flat'}
2025-10-23 02:00:34,571 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-96251021:ctest-vn-67688402 is found in opserver
2025-10-23 02:00:34,582 - DEBUG - Do not have enough data to verify VN in agent
2025-10-23 02:00:34,587 - DEBUG - VRF ids for VN ctest-vn-67688402: {}
2025-10-23 02:00:34,587 - DEBUG - Requesting: http://10.0.0.241:8082/domains
2025-10-23 02:00:34,594 - DEBUG - Requesting: http://10.0.0.241:8082/domain/50f717e1-7edc-43de-8b5a-5b897134ccb4
2025-10-23 02:00:34,606 - DEBUG - Requesting: http://10.0.0.241:8082/project/b3d49387-48dd-43ce-bf08-6510f37b27a7
2025-10-23 02:00:34,677 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/f0453ad8-e028-4ac2-b457-5214528b18e2
2025-10-23 02:00:34,690 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/f0453ad8-e028-4ac2-b457-5214528b18e2
2025-10-23 02:00:34,700 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/1be77238-684a-4486-bb91-46c9ac796e1a
2025-10-23 02:00:34,707 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/1be77238-684a-4486-bb91-46c9ac796e1a
2025-10-23 02:00:34,714 - DEBUG - Requesting: http://10.0.0.241:8082/route-target/3e00be8a-3cc3-4ded-ab81-db2cc9151076
2025-10-23 02:00:34,723 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-23 02:00:34,723 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/f0453ad8-e028-4ac2-b457-5214528b18e2
2025-10-23 02:00:34,732 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/1be77238-684a-4486-bb91-46c9ac796e1a
2025-10-23 02:00:34,747 - INFO - Verified VN network id 12 for VN f0453ad8-e028-4ac2-b457-5214528b18e2
2025-10-23 02:00:34,747 - INFO - Verifications in API Server for VN ctest-vn-64922839 passed
2025-10-23 02:00:34,747 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/f0453ad8-e028-4ac2-b457-5214528b18e2
2025-10-23 02:00:34,756 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/1be77238-684a-4486-bb91-46c9ac796e1a
2025-10-23 02:00:34,764 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/1be77238-684a-4486-bb91-46c9ac796e1a
2025-10-23 02:00:34,771 - DEBUG - Requesting: http://10.0.0.241:8082/route-target/3e00be8a-3cc3-4ded-ab81-db2cc9151076
2025-10-23 02:00:34,784 - DEBUG - Control-node 10.0.0.241 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-96251021:ctest-vn-64922839', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-96251021', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17313309045643823810', 'uuid-lslong': '12994945497038526690'}, 'enable': 'true', 'created': '2025-10-23T02:00:32', 'last-modified': '2025-10-23T02:00:33', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.413681'}
2025-10-23 02:00:34,790 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-23 02:00:34,790 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-64922839 passed
2025-10-23 02:00:34,791 - DEBUG - ====Verifying policy data for ctest-vn-64922839 in API_Server ======
2025-10-23 02:00:34,791 - DEBUG - Requesting: http://10.0.0.241:8082/domains
2025-10-23 02:00:34,797 - DEBUG - Requesting: http://10.0.0.241:8082/domain/50f717e1-7edc-43de-8b5a-5b897134ccb4
2025-10-23 02:00:34,807 - DEBUG - Requesting: http://10.0.0.241:8082/project/b3d49387-48dd-43ce-bf08-6510f37b27a7
2025-10-23 02:00:34,883 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/f0453ad8-e028-4ac2-b457-5214528b18e2
2025-10-23 02:00:34,896 - DEBUG - ==>Verifying data for policy with id: 5893b691-af55-480f-b2fa-e15b8450d20e, fqn: ['default-domain', 'ctest-TestBasicPolicy-96251021', 'ctest-policy-allow-all-79032045']
2025-10-23 02:00:34,896 - INFO - VN ctest-vn-64922839 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-23 02:00:34,896 - DEBUG - Verifying the vn in opserver
2025-10-23 02:00:34,896 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-96251021:ctest-vn-64922839 virtual network link through opserver 10.0.0.241
2025-10-23 02:00:34,896 - DEBUG - Requesting: http://10.0.0.241:8081/analytics/uves/virtual-networks
2025-10-23 02:00:34,907 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-96251021:ctest-vn-64922839', 'href': 'http://10.0.0.241:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-96251021:ctest-vn-64922839?flat'}
2025-10-23 02:00:34,907 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-96251021:ctest-vn-64922839 is found in opserver
2025-10-23 02:00:34,916 - DEBUG - Do not have enough data to verify VN in agent
2025-10-23 02:00:34,921 - DEBUG - VRF ids for VN ctest-vn-64922839: {}
2025-10-23 02:00:34,986 - DEBUG - Services list from nova: [