2026-02-05 01:54:08,375 - INFO - Reading existing Domain with UUID 70bce805-d50c-4da5-abf7-4b11fc3802fd
2026-02-05 01:54:08,387 - INFO - Using existing domain ['admin_domain'](70bce805-d50c-4da5-abf7-4b11fc3802fd)
2026-02-05 01:54:08,618 - INFO - Project ctest-TestBasicPolicy-90459926 not found, creating it
2026-02-05 01:54:09,131 - INFO - Created Project:ctest-TestBasicPolicy-90459926, ID : dedddbcd-74db-4273-a610-cf25ad669ec4
2026-02-05 01:54:10,841 - INFO - ================================================================================
2026-02-05 01:54:10,842 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-02-05 01:54:10,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
2026-02-05 01:54:11,231 - DEBUG - Nothing to compare xmpp stats {'10.0.0.241': {'10.0.0.241': '0'}} with
2026-02-05 01:54:11,231 - INFO - Initial checks done. Running the testcase now
2026-02-05 01:54:11,232 - INFO -
2026-02-05 01:54:12,051 - DEBUG - Response for create_network : {'network': {'id': '6a42bc76-7a7a-48e6-acd3-6bd6031991dc', 'name': 'ctest-vn-61740552', 'tenant_id': 'dedddbcd74db4273a610cf25ad669ec4', 'project_id': 'dedddbcd74db4273a610cf25ad669ec4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-90459926', 'ctest-vn-61740552'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}}
2026-02-05 01:54:12,323 - DEBUG - Response for create_subnet : {'subnet': {'id': '43fc70c1-24b4-4749-a3d7-dc182a54df76', 'name': '', 'tenant_id': 'dedddbcd74db4273a610cf25ad669ec4', 'network_id': '6a42bc76-7a7a-48e6-acd3-6bd6031991dc', 'ip_version': 4, 'cidr': '211.245.72.0/26', 'allocation_pools': [{'start': '211.245.72.2', 'end': '211.245.72.62'}], 'gateway_ip': '211.245.72.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2026-02-05T01:54:12.201014', 'updated_at': '2026-02-05T01:54:12.201014', 'dns_server_address': '211.245.72.2', 'tags': [], 'project_id': 'dedddbcd74db4273a610cf25ad669ec4'}}
2026-02-05 01:54:12,389 - INFO - Created VN ctest-vn-61740552
2026-02-05 01:54:12,442 - DEBUG - VN ctest-vn-61740552 UUID is 6a42bc76-7a7a-48e6-acd3-6bd6031991dc
2026-02-05 01:54:12,954 - DEBUG - Response for create_network : {'network': {'id': '648e89eb-ca88-49ce-b6a2-cd0c8aa695cd', 'name': 'ctest-vn-92869796', 'tenant_id': 'dedddbcd74db4273a610cf25ad669ec4', 'project_id': 'dedddbcd74db4273a610cf25ad669ec4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-90459926', 'ctest-vn-92869796'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}}
2026-02-05 01:54:13,159 - DEBUG - Response for create_subnet : {'subnet': {'id': '76810d7e-d91a-4eb6-9167-d7afd122a4e4', 'name': '', 'tenant_id': 'dedddbcd74db4273a610cf25ad669ec4', 'network_id': '648e89eb-ca88-49ce-b6a2-cd0c8aa695cd', 'ip_version': 4, 'cidr': '132.228.154.0/26', 'allocation_pools': [{'start': '132.228.154.2', 'end': '132.228.154.62'}], 'gateway_ip': '132.228.154.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2026-02-05T01:54:13.067375', 'updated_at': '2026-02-05T01:54:13.067375', 'dns_server_address': '132.228.154.2', 'tags': [], 'project_id': 'dedddbcd74db4273a610cf25ad669ec4'}}
2026-02-05 01:54:13,225 - INFO - Created VN ctest-vn-92869796
2026-02-05 01:54:13,278 - DEBUG - VN ctest-vn-92869796 UUID is 648e89eb-ca88-49ce-b6a2-cd0c8aa695cd
2026-02-05 01:54:13,489 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicy-90459926:ctest-vn-61740552, 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-90459926:ctest-vn-92869796, 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]
2026-02-05 01:54:13,898 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6a42bc76-7a7a-48e6-acd3-6bd6031991dc', 'name': 'ctest-vn-61740552', 'tenant_id': 'dedddbcd74db4273a610cf25ad669ec4', 'project_id': 'dedddbcd74db4273a610cf25ad669ec4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['43fc70c1-24b4-4749-a3d7-dc182a54df76'], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-90459926', 'ctest-vn-61740552'], 'policys': [['admin_domain', 'ctest-TestBasicPolicy-90459926', 'ctest-policy-allow-all-39410081']], 'subnet_ipam': [{'subnet_cidr': '211.245.72.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2026-02-05T01:54:11.964588', 'updated_at': '2026-02-05T01:54:12.223398'}}
2026-02-05 01:54:14,286 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '648e89eb-ca88-49ce-b6a2-cd0c8aa695cd', 'name': 'ctest-vn-92869796', 'tenant_id': 'dedddbcd74db4273a610cf25ad669ec4', 'project_id': 'dedddbcd74db4273a610cf25ad669ec4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['76810d7e-d91a-4eb6-9167-d7afd122a4e4'], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-90459926', 'ctest-vn-92869796'], 'policys': [['admin_domain', 'ctest-TestBasicPolicy-90459926', 'ctest-policy-allow-all-39410081']], 'subnet_ipam': [{'subnet_cidr': '132.228.154.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2026-02-05T01:54:12.873438', 'updated_at': '2026-02-05T01:54:13.079188'}}
2026-02-05 01:54:14,462 - DEBUG - Requesting: https://10.0.0.241:8082/domains
2026-02-05 01:54:14,807 - DEBUG - Requesting: https://10.0.0.241:8082/domains
2026-02-05 01:54:14,891 - DEBUG - Requesting: https://10.0.0.241:8082/domain/70bce805-d50c-4da5-abf7-4b11fc3802fd
2026-02-05 01:54:14,955 - DEBUG - Requesting: https://10.0.0.241:8082/project/dedddbcd-74db-4273-a610-cf25ad669ec4
2026-02-05 01:54:15,036 - DEBUG - Requesting: https://10.0.0.241:8082/virtual-network/6a42bc76-7a7a-48e6-acd3-6bd6031991dc
2026-02-05 01:54:15,096 - DEBUG - Requesting: https://10.0.0.241:8082/virtual-network/6a42bc76-7a7a-48e6-acd3-6bd6031991dc
2026-02-05 01:54:15,151 - DEBUG - Requesting: https://10.0.0.241:8082/routing-instance/dcf2971e-9c34-444b-9de3-82993d56f27c
2026-02-05 01:54:15,211 - DEBUG - Requesting: https://10.0.0.241:8082/routing-instance/dcf2971e-9c34-444b-9de3-82993d56f27c
2026-02-05 01:54:15,267 - DEBUG - Requesting: https://10.0.0.241:8082/route-target/9044faf3-7c31-45c1-a233-33b0837d2742
2026-02-05 01:54:15,327 - DEBUG - Route Targets: ['target:64512:8000004']
2026-02-05 01:54:15,327 - DEBUG - Requesting: https://10.0.0.241:8082/virtual-network/6a42bc76-7a7a-48e6-acd3-6bd6031991dc
2026-02-05 01:54:15,388 - DEBUG - Requesting: https://10.0.0.241:8082/routing-instance/dcf2971e-9c34-444b-9de3-82993d56f27c
2026-02-05 01:54:15,455 - INFO - Verified VN network id 10 for VN 6a42bc76-7a7a-48e6-acd3-6bd6031991dc
2026-02-05 01:54:15,455 - INFO - Verifications in API Server for VN ctest-vn-61740552 passed
2026-02-05 01:54:15,456 - DEBUG - Requesting: https://10.0.0.241:8082/virtual-network/6a42bc76-7a7a-48e6-acd3-6bd6031991dc
2026-02-05 01:54:15,520 - DEBUG - Requesting: https://10.0.0.241:8082/routing-instance/dcf2971e-9c34-444b-9de3-82993d56f27c
2026-02-05 01:54:15,575 - DEBUG - Requesting: https://10.0.0.241:8082/routing-instance/dcf2971e-9c34-444b-9de3-82993d56f27c
2026-02-05 01:54:15,631 - DEBUG - Requesting: https://10.0.0.241:8082/route-target/9044faf3-7c31-45c1-a233-33b0837d2742
2026-02-05 01:54:15,739 - DEBUG - Control-node 10.0.0.241 : VN object is : {'node_name': 'virtual-network:admin_domain:ctest-TestBasicPolicy-90459926:ctest-vn-61740552', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-90459926', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7656889533530261734', 'uuid-lslong': '12453415961528734172'}, 'enable': 'true', 'created': '2026-02-05T01:54:11', 'last-modified': '2026-02-05T01:54:13', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.869572'}
2026-02-05 01:54:15,795 - DEBUG - Route Targets: ['target:64512:8000004']
2026-02-05 01:54:15,795 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-61740552 passed
2026-02-05 01:54:15,795 - DEBUG - ====Verifying policy data for ctest-vn-61740552 in API_Server ======
2026-02-05 01:54:15,795 - DEBUG - Requesting: https://10.0.0.241:8082/domains
2026-02-05 01:54:15,846 - DEBUG - Requesting: https://10.0.0.241:8082/domain/70bce805-d50c-4da5-abf7-4b11fc3802fd
2026-02-05 01:54:15,903 - DEBUG - Requesting: https://10.0.0.241:8082/project/dedddbcd-74db-4273-a610-cf25ad669ec4
2026-02-05 01:54:15,983 - DEBUG - Requesting: https://10.0.0.241:8082/virtual-network/6a42bc76-7a7a-48e6-acd3-6bd6031991dc
2026-02-05 01:54:16,040 - DEBUG - ==>Verifying data for policy with id: f7d35ebc-3321-4a90-9a6b-6a92d5e93627, fqn: ['admin_domain', 'ctest-TestBasicPolicy-90459926', 'ctest-policy-allow-all-39410081']
2026-02-05 01:54:16,040 - INFO - VN ctest-vn-61740552 Policy verification: verify_vn_policy_in_api_server, status: True
2026-02-05 01:54:16,040 - DEBUG - Verifying the vn in opserver
2026-02-05 01:54:16,040 - DEBUG - Verifying the admin_domain:ctest-TestBasicPolicy-90459926:ctest-vn-61740552 virtual network link through opserver 10.0.0.241
2026-02-05 01:54:16,040 - DEBUG - Requesting: https://10.0.0.241:8081/analytics/uves/virtual-networks
2026-02-05 01:54:16,388 - DEBUG - Requesting: https://10.0.0.241:8081/analytics/uves/virtual-networks
2026-02-05 01:54:16,502 - DEBUG - vn link and name as {'name': 'admin_domain:ctest-TestBasicPolicy-90459926:ctest-vn-61740552', 'href': 'https://10.0.0.241:8081/analytics/uves/virtual-network/admin_domain:ctest-TestBasicPolicy-90459926:ctest-vn-61740552?flat'}
2026-02-05 01:54:16,502 - INFO - Validated that VN admin_domain:ctest-TestBasicPolicy-90459926:ctest-vn-61740552 is found in opserver
2026-02-05 01:54:16,606 - DEBUG - Do not have enough data to verify VN in agent
2026-02-05 01:54:16,658 - DEBUG - VRF ids for VN ctest-vn-61740552: {}
2026-02-05 01:54:16,659 - DEBUG - Requesting: https://10.0.0.241:8082/domains
2026-02-05 01:54:16,710 - DEBUG - Requesting: https://10.0.0.241:8082/domain/70bce805-d50c-4da5-abf7-4b11fc3802fd
2026-02-05 01:54:16,767 - DEBUG - Requesting: https://10.0.0.241:8082/project/dedddbcd-74db-4273-a610-cf25ad669ec4
2026-02-05 01:54:16,843 - DEBUG - Requesting: https://10.0.0.241:8082/virtual-network/648e89eb-ca88-49ce-b6a2-cd0c8aa695cd
2026-02-05 01:54:16,900 - DEBUG - Requesting: https://10.0.0.241:8082/virtual-network/648e89eb-ca88-49ce-b6a2-cd0c8aa695cd
2026-02-05 01:54:16,956 - DEBUG - Requesting: https://10.0.0.241:8082/routing-instance/62b2fd3b-e1bc-44e6-a7fc-ba92f7011cfb
2026-02-05 01:54:17,011 - DEBUG - Requesting: https://10.0.0.241:8082/routing-instance/62b2fd3b-e1bc-44e6-a7fc-ba92f7011cfb
2026-02-05 01:54:17,067 - DEBUG - Requesting: https://10.0.0.241:8082/route-target/ba24a762-e637-4556-b930-c80e4b2cf113
2026-02-05 01:54:17,127 - DEBUG - Route Targets: ['target:64512:8000005']
2026-02-05 01:54:17,127 - DEBUG - Requesting: https://10.0.0.241:8082/virtual-network/648e89eb-ca88-49ce-b6a2-cd0c8aa695cd
2026-02-05 01:54:17,190 - DEBUG - Requesting: https://10.0.0.241:8082/routing-instance/62b2fd3b-e1bc-44e6-a7fc-ba92f7011cfb
2026-02-05 01:54:17,257 - INFO - Verified VN network id 11 for VN 648e89eb-ca88-49ce-b6a2-cd0c8aa695cd
2026-02-05 01:54:17,257 - INFO - Verifications in API Server for VN ctest-vn-92869796 passed
2026-02-05 01:54:17,258 - DEBUG - Requesting: https://10.0.0.241:8082/virtual-network/648e89eb-ca88-49ce-b6a2-cd0c8aa695cd
2026-02-05 01:54:17,316 - DEBUG - Requesting: https://10.0.0.241:8082/routing-instance/62b2fd3b-e1bc-44e6-a7fc-ba92f7011cfb
2026-02-05 01:54:17,376 - DEBUG - Requesting: https://10.0.0.241:8082/routing-instance/62b2fd3b-e1bc-44e6-a7fc-ba92f7011cfb
2026-02-05 01:54:17,435 - DEBUG - Requesting: https://10.0.0.241:8082/route-target/ba24a762-e637-4556-b930-c80e4b2cf113
2026-02-05 01:54:17,547 - DEBUG - Control-node 10.0.0.241 : VN object is : {'node_name': 'virtual-network:admin_domain:ctest-TestBasicPolicy-90459926:ctest-vn-92869796', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-90459926', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7245880496293956046', 'uuid-lslong': '13160306514879485389'}, 'enable': 'true', 'created': '2026-02-05T01:54:12', 'last-modified': '2026-02-05T01:54:14', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:03.333633'}
2026-02-05 01:54:17,600 - DEBUG - Route Targets: ['target:64512:8000005']
2026-02-05 01:54:17,600 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-92869796 passed
2026-02-05 01:54:17,600 - DEBUG - ====Verifying policy data for ctest-vn-92869796 in API_Server ======
2026-02-05 01:54:17,600 - DEBUG - Requesting: https://10.0.0.241:8082/domains
2026-02-05 01:54:17,654 - DEBUG - Requesting: https://10.0.0.241:8082/domain/70bce805-d50c-4da5-abf7-4b11fc3802fd
2026-02-05 01:54:17,711 - DEBUG - Requesting: https://10.0.0.241:8082/project/dedddbcd-74db-4273-a610-cf25ad669ec4
2026-02-05 01:54:17,795 - DEBUG - Requesting: https://10.0.0.241:8082/virtual-network/648e89eb-ca88-49ce-b6a2-cd0c8aa695cd
2026-02-05 01:54:17,851 - DEBUG - ==>Verifying data for policy with id: f7d35ebc-3321-4a90-9a6b-6a92d5e93627, fqn: ['admin_domain', 'ctest-TestBasicPolicy-90459926', 'ctest-policy-allow-all-39410081']
2026-02-05 01:54:17,851 - INFO - VN ctest-vn-92869796 Policy verification: verify_vn_policy_in_api_server, status: True
2026-02-05 01:54:17,852 - DEBUG - Verifying the vn in opserver
2026-02-05 01:54:17,852 - DEBUG - Verifying the admin_domain:ctest-TestBasicPolicy-90459926:ctest-vn-92869796 virtual network link through opserver 10.0.0.241
2026-02-05 01:54:17,852 - DEBUG - Requesting: https://10.0.0.241:8081/analytics/uves/virtual-networks
2026-02-05 01:54:17,910 - DEBUG - vn link and name as {'name': 'admin_domain:ctest-TestBasicPolicy-90459926:ctest-vn-92869796', 'href': 'https://10.0.0.241:8081/analytics/uves/virtual-network/admin_domain:ctest-TestBasicPolicy-90459926:ctest-vn-92869796?flat'}
2026-02-05 01:54:17,910 - INFO - Validated that VN admin_domain:ctest-TestBasicPolicy-90459926:ctest-vn-92869796 is found in opserver
2026-02-05 01:54:18,011 - DEBUG - Do not have enough data to verify VN in agent
2026-02-05 01:54:18,062 - DEBUG - VRF ids for VN ctest-vn-92869796: {}
2026-02-05 01:54:18,130 - DEBUG - Services list from nova: [