2025-10-13 01:52:51,509 - INFO - Reading existing Domain with UUID 537505e7-1547-4002-bf39-a6f4fbcc30df
2025-10-13 01:52:51,520 - INFO - Using existing domain ['admin_domain'](537505e7-1547-4002-bf39-a6f4fbcc30df)
2025-10-13 01:52:51,732 - INFO - Project ctest-TestBasicPolicy-64046718 not found, creating it
2025-10-13 01:52:52,281 - INFO - Created Project:ctest-TestBasicPolicy-64046718, ID : 77b2b8e2-a4da-412f-8b35-1e24cd0c6d1e
2025-10-13 01:52:54,063 - INFO - ================================================================================
2025-10-13 01:52:54,063 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-13 01:52:54,063 - 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-13 01:52:54,461 - DEBUG - Nothing to compare xmpp stats {'10.0.0.129': {'10.0.0.129': '0'}} with
2025-10-13 01:52:54,461 - INFO - Initial checks done. Running the testcase now
2025-10-13 01:52:54,461 - INFO -
2025-10-13 01:52:55,232 - DEBUG - Response for create_network : {'network': {'id': 'a775161f-bc20-4e17-8271-b855282ddfe2', 'name': 'ctest-vn-15109593', 'tenant_id': '77b2b8e2a4da412f8b351e24cd0c6d1e', 'project_id': '77b2b8e2a4da412f8b351e24cd0c6d1e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-64046718', 'ctest-vn-15109593'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}}
2025-10-13 01:52:55,448 - DEBUG - Response for create_subnet : {'subnet': {'id': '6a2bed76-8a50-488e-9ed3-5c27ca7f1bb4', 'name': '', 'tenant_id': '77b2b8e2a4da412f8b351e24cd0c6d1e', 'network_id': 'a775161f-bc20-4e17-8271-b855282ddfe2', 'ip_version': 4, 'cidr': '16.59.19.64/26', 'allocation_pools': [{'start': '16.59.19.66', 'end': '16.59.19.126'}], 'gateway_ip': '16.59.19.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2025-10-13T01:52:55.349019', 'updated_at': '2025-10-13T01:52:55.349019', 'dns_server_address': '16.59.19.66', 'tags': [], 'project_id': '77b2b8e2a4da412f8b351e24cd0c6d1e'}}
2025-10-13 01:52:55,518 - INFO - Created VN ctest-vn-15109593
2025-10-13 01:52:55,572 - DEBUG - VN ctest-vn-15109593 UUID is a775161f-bc20-4e17-8271-b855282ddfe2
2025-10-13 01:52:56,067 - DEBUG - Response for create_network : {'network': {'id': 'ed3d3ace-9e29-4f99-9bcc-97cc7482feec', 'name': 'ctest-vn-09240494', 'tenant_id': '77b2b8e2a4da412f8b351e24cd0c6d1e', 'project_id': '77b2b8e2a4da412f8b351e24cd0c6d1e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-64046718', 'ctest-vn-09240494'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}}
2025-10-13 01:52:56,309 - DEBUG - Response for create_subnet : {'subnet': {'id': '4ce2230d-3e19-4598-b8a8-b7dfedc20dcf', 'name': '', 'tenant_id': '77b2b8e2a4da412f8b351e24cd0c6d1e', 'network_id': 'ed3d3ace-9e29-4f99-9bcc-97cc7482feec', 'ip_version': 4, 'cidr': '63.83.171.128/26', 'allocation_pools': [{'start': '63.83.171.130', 'end': '63.83.171.190'}], 'gateway_ip': '63.83.171.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2025-10-13T01:52:56.204576', 'updated_at': '2025-10-13T01:52:56.204576', 'dns_server_address': '63.83.171.130', 'tags': [], 'project_id': '77b2b8e2a4da412f8b351e24cd0c6d1e'}}
2025-10-13 01:52:56,373 - INFO - Created VN ctest-vn-09240494
2025-10-13 01:52:56,427 - DEBUG - VN ctest-vn-09240494 UUID is ed3d3ace-9e29-4f99-9bcc-97cc7482feec
2025-10-13 01:52:56,649 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicy-64046718:ctest-vn-15109593, security_group = None, network_policy = None, subnet_list = []], src_ports = [start_port = -1, end_port = -1], application = [], dst_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicy-64046718:ctest-vn-09240494, 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-13 01:52:57,095 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a775161f-bc20-4e17-8271-b855282ddfe2', 'name': 'ctest-vn-15109593', 'tenant_id': '77b2b8e2a4da412f8b351e24cd0c6d1e', 'project_id': '77b2b8e2a4da412f8b351e24cd0c6d1e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6a2bed76-8a50-488e-9ed3-5c27ca7f1bb4'], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-64046718', 'ctest-vn-15109593'], 'policys': [['admin_domain', 'ctest-TestBasicPolicy-64046718', 'ctest-policy-allow-all-34050929']], 'subnet_ipam': [{'subnet_cidr': '16.59.19.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2025-10-13T01:52:55.161198', 'updated_at': '2025-10-13T01:52:55.361804'}}
2025-10-13 01:52:57,487 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ed3d3ace-9e29-4f99-9bcc-97cc7482feec', 'name': 'ctest-vn-09240494', 'tenant_id': '77b2b8e2a4da412f8b351e24cd0c6d1e', 'project_id': '77b2b8e2a4da412f8b351e24cd0c6d1e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4ce2230d-3e19-4598-b8a8-b7dfedc20dcf'], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-64046718', 'ctest-vn-09240494'], 'policys': [['admin_domain', 'ctest-TestBasicPolicy-64046718', 'ctest-policy-allow-all-34050929']], 'subnet_ipam': [{'subnet_cidr': '63.83.171.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2025-10-13T01:52:55.989761', 'updated_at': '2025-10-13T01:52:56.221980'}}
2025-10-13 01:52:57,687 - DEBUG - Requesting: https://10.0.0.129:8082/domains
2025-10-13 01:52:58,040 - DEBUG - Requesting: https://10.0.0.129:8082/domains
2025-10-13 01:52:58,124 - DEBUG - Requesting: https://10.0.0.129:8082/domain/537505e7-1547-4002-bf39-a6f4fbcc30df
2025-10-13 01:52:58,184 - DEBUG - Requesting: https://10.0.0.129:8082/project/77b2b8e2-a4da-412f-8b35-1e24cd0c6d1e
2025-10-13 01:52:58,264 - DEBUG - Requesting: https://10.0.0.129:8082/virtual-network/a775161f-bc20-4e17-8271-b855282ddfe2
2025-10-13 01:52:58,321 - DEBUG - Requesting: https://10.0.0.129:8082/virtual-network/a775161f-bc20-4e17-8271-b855282ddfe2
2025-10-13 01:52:58,377 - DEBUG - Requesting: https://10.0.0.129:8082/routing-instance/899edfe8-7058-4e77-80e8-430ae39deac5
2025-10-13 01:52:58,432 - DEBUG - Requesting: https://10.0.0.129:8082/routing-instance/899edfe8-7058-4e77-80e8-430ae39deac5
2025-10-13 01:52:58,484 - DEBUG - Requesting: https://10.0.0.129:8082/route-target/b4187797-9b48-4845-b4f7-e00e4e1e89ac
2025-10-13 01:52:58,536 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-13 01:52:58,536 - DEBUG - Requesting: https://10.0.0.129:8082/virtual-network/a775161f-bc20-4e17-8271-b855282ddfe2
2025-10-13 01:52:58,593 - DEBUG - Requesting: https://10.0.0.129:8082/routing-instance/899edfe8-7058-4e77-80e8-430ae39deac5
2025-10-13 01:52:58,657 - INFO - Verified VN network id 11 for VN a775161f-bc20-4e17-8271-b855282ddfe2
2025-10-13 01:52:58,657 - INFO - Verifications in API Server for VN ctest-vn-15109593 passed
2025-10-13 01:52:58,657 - DEBUG - Requesting: https://10.0.0.129:8082/virtual-network/a775161f-bc20-4e17-8271-b855282ddfe2
2025-10-13 01:52:58,717 - DEBUG - Requesting: https://10.0.0.129:8082/routing-instance/899edfe8-7058-4e77-80e8-430ae39deac5
2025-10-13 01:52:58,768 - DEBUG - Requesting: https://10.0.0.129:8082/routing-instance/899edfe8-7058-4e77-80e8-430ae39deac5
2025-10-13 01:52:58,821 - DEBUG - Requesting: https://10.0.0.129:8082/route-target/b4187797-9b48-4845-b4f7-e00e4e1e89ac
2025-10-13 01:52:58,924 - DEBUG - Control-node 10.0.0.129 : VN object is : {'node_name': 'virtual-network:admin_domain:ctest-TestBasicPolicy-64046718:ctest-vn-15109593', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-64046718', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12066575102165143063', 'uuid-lslong': '9399496573184761826'}, 'enable': 'true', 'created': '2025-10-13T01:52:55', 'last-modified': '2025-10-13T01:52:56', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.874727'}
2025-10-13 01:52:58,981 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-13 01:52:58,981 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-15109593 passed
2025-10-13 01:52:58,981 - DEBUG - ====Verifying policy data for ctest-vn-15109593 in API_Server ======
2025-10-13 01:52:58,981 - DEBUG - Requesting: https://10.0.0.129:8082/domains
2025-10-13 01:52:59,032 - DEBUG - Requesting: https://10.0.0.129:8082/domain/537505e7-1547-4002-bf39-a6f4fbcc30df
2025-10-13 01:52:59,092 - DEBUG - Requesting: https://10.0.0.129:8082/project/77b2b8e2-a4da-412f-8b35-1e24cd0c6d1e
2025-10-13 01:52:59,173 - DEBUG - Requesting: https://10.0.0.129:8082/virtual-network/a775161f-bc20-4e17-8271-b855282ddfe2
2025-10-13 01:52:59,234 - DEBUG - ==>Verifying data for policy with id: fc5ebdac-df94-49d3-a7fd-c85fd7de66a3, fqn: ['admin_domain', 'ctest-TestBasicPolicy-64046718', 'ctest-policy-allow-all-34050929']
2025-10-13 01:52:59,235 - INFO - VN ctest-vn-15109593 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-13 01:52:59,236 - DEBUG - Verifying the vn in opserver
2025-10-13 01:52:59,236 - DEBUG - Verifying the admin_domain:ctest-TestBasicPolicy-64046718:ctest-vn-15109593 virtual network link through opserver 10.0.0.129
2025-10-13 01:52:59,236 - DEBUG - Requesting: https://10.0.0.129:8081/analytics/uves/virtual-networks
2025-10-13 01:52:59,576 - DEBUG - Requesting: https://10.0.0.129:8081/analytics/uves/virtual-networks
2025-10-13 01:52:59,700 - DEBUG - vn link and name as {'name': 'admin_domain:ctest-TestBasicPolicy-64046718:ctest-vn-15109593', 'href': 'https://10.0.0.129:8081/analytics/uves/virtual-network/admin_domain:ctest-TestBasicPolicy-64046718:ctest-vn-15109593?flat'}
2025-10-13 01:52:59,700 - INFO - Validated that VN admin_domain:ctest-TestBasicPolicy-64046718:ctest-vn-15109593 is found in opserver
2025-10-13 01:52:59,796 - DEBUG - Do not have enough data to verify VN in agent
2025-10-13 01:52:59,844 - DEBUG - VRF ids for VN ctest-vn-15109593: {}
2025-10-13 01:52:59,845 - DEBUG - Requesting: https://10.0.0.129:8082/domains
2025-10-13 01:52:59,900 - DEBUG - Requesting: https://10.0.0.129:8082/domain/537505e7-1547-4002-bf39-a6f4fbcc30df
2025-10-13 01:52:59,957 - DEBUG - Requesting: https://10.0.0.129:8082/project/77b2b8e2-a4da-412f-8b35-1e24cd0c6d1e
2025-10-13 01:53:00,045 - DEBUG - Requesting: https://10.0.0.129:8082/virtual-network/ed3d3ace-9e29-4f99-9bcc-97cc7482feec
2025-10-13 01:53:00,105 - DEBUG - Requesting: https://10.0.0.129:8082/virtual-network/ed3d3ace-9e29-4f99-9bcc-97cc7482feec
2025-10-13 01:53:00,161 - DEBUG - Requesting: https://10.0.0.129:8082/routing-instance/bf31d054-9f85-4956-a2ce-3ff71f7d68ed
2025-10-13 01:53:00,213 - DEBUG - Requesting: https://10.0.0.129:8082/routing-instance/bf31d054-9f85-4956-a2ce-3ff71f7d68ed
2025-10-13 01:53:00,268 - DEBUG - Requesting: https://10.0.0.129:8082/route-target/efcf0e0d-7952-4dc4-89ba-69706a8b081d
2025-10-13 01:53:00,321 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-13 01:53:00,321 - DEBUG - Requesting: https://10.0.0.129:8082/virtual-network/ed3d3ace-9e29-4f99-9bcc-97cc7482feec
2025-10-13 01:53:00,381 - DEBUG - Requesting: https://10.0.0.129:8082/routing-instance/bf31d054-9f85-4956-a2ce-3ff71f7d68ed
2025-10-13 01:53:00,442 - INFO - Verified VN network id 12 for VN ed3d3ace-9e29-4f99-9bcc-97cc7482feec
2025-10-13 01:53:00,442 - INFO - Verifications in API Server for VN ctest-vn-09240494 passed
2025-10-13 01:53:00,442 - DEBUG - Requesting: https://10.0.0.129:8082/virtual-network/ed3d3ace-9e29-4f99-9bcc-97cc7482feec
2025-10-13 01:53:00,497 - DEBUG - Requesting: https://10.0.0.129:8082/routing-instance/bf31d054-9f85-4956-a2ce-3ff71f7d68ed
2025-10-13 01:53:00,557 - DEBUG - Requesting: https://10.0.0.129:8082/routing-instance/bf31d054-9f85-4956-a2ce-3ff71f7d68ed
2025-10-13 01:53:00,613 - DEBUG - Requesting: https://10.0.0.129:8082/route-target/efcf0e0d-7952-4dc4-89ba-69706a8b081d
2025-10-13 01:53:00,716 - DEBUG - Control-node 10.0.0.129 : VN object is : {'node_name': 'virtual-network:admin_domain:ctest-TestBasicPolicy-64046718:ctest-vn-09240494', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-64046718', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17094884419659452313', 'uuid-lslong': '11226514875511668460'}, 'enable': 'true', 'created': '2025-10-13T01:52:55', 'last-modified': '2025-10-13T01:52:57', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:03.301750'}
2025-10-13 01:53:00,770 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-13 01:53:00,770 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-09240494 passed
2025-10-13 01:53:00,770 - DEBUG - ====Verifying policy data for ctest-vn-09240494 in API_Server ======
2025-10-13 01:53:00,770 - DEBUG - Requesting: https://10.0.0.129:8082/domains
2025-10-13 01:53:00,824 - DEBUG - Requesting: https://10.0.0.129:8082/domain/537505e7-1547-4002-bf39-a6f4fbcc30df
2025-10-13 01:53:00,885 - DEBUG - Requesting: https://10.0.0.129:8082/project/77b2b8e2-a4da-412f-8b35-1e24cd0c6d1e
2025-10-13 01:53:00,973 - DEBUG - Requesting: https://10.0.0.129:8082/virtual-network/ed3d3ace-9e29-4f99-9bcc-97cc7482feec
2025-10-13 01:53:01,030 - DEBUG - ==>Verifying data for policy with id: fc5ebdac-df94-49d3-a7fd-c85fd7de66a3, fqn: ['admin_domain', 'ctest-TestBasicPolicy-64046718', 'ctest-policy-allow-all-34050929']
2025-10-13 01:53:01,031 - INFO - VN ctest-vn-09240494 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-13 01:53:01,031 - DEBUG - Verifying the vn in opserver
2025-10-13 01:53:01,031 - DEBUG - Verifying the admin_domain:ctest-TestBasicPolicy-64046718:ctest-vn-09240494 virtual network link through opserver 10.0.0.129
2025-10-13 01:53:01,031 - DEBUG - Requesting: https://10.0.0.129:8081/analytics/uves/virtual-networks
2025-10-13 01:53:01,092 - DEBUG - vn link and name as {'name': 'admin_domain:ctest-TestBasicPolicy-64046718:ctest-vn-09240494', 'href': 'https://10.0.0.129:8081/analytics/uves/virtual-network/admin_domain:ctest-TestBasicPolicy-64046718:ctest-vn-09240494?flat'}
2025-10-13 01:53:01,092 - INFO - Validated that VN admin_domain:ctest-TestBasicPolicy-64046718:ctest-vn-09240494 is found in opserver
2025-10-13 01:53:01,196 - DEBUG - Do not have enough data to verify VN in agent
2025-10-13 01:53:01,260 - DEBUG - VRF ids for VN ctest-vn-09240494: {}
2025-10-13 01:53:01,325 - DEBUG - Services list from nova: [