2025-10-21 17:50:41,899 - INFO - Domain Default found not creating
2025-10-21 17:50:42,232 - INFO - Project ctest-TestBasicPolicy-69150588 not found, creating it
2025-10-21 17:50:42,973 - INFO - Created Project:ctest-TestBasicPolicy-69150588, ID : deff038e-1102-4657-a2d3-5f48ce25bb96
2025-10-21 17:50:45,327 - INFO - ================================================================================
2025-10-21 17:50:45,328 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-21 17:50:45,328 - 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-21 17:50:45,644 - DEBUG - Nothing to compare xmpp stats {'10.0.0.130': {'10.20.0.25': '0'}} with
2025-10-21 17:50:45,644 - INFO - Initial checks done. Running the testcase now
2025-10-21 17:50:45,645 - INFO -
2025-10-21 17:50:46,544 - DEBUG - Response for create_network : {'network': {'id': '90a0c23a-db25-40a2-bd14-1d5f38f2c236', 'name': 'ctest-vn-04858518', 'tenant_id': 'deff038e11024657a2d35f48ce25bb96', 'project_id': 'deff038e11024657a2d35f48ce25bb96', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-69150588', 'ctest-vn-04858518'], 'port_security_enabled': True, 'description': ''}}
2025-10-21 17:50:46,823 - DEBUG - Response for create_subnet : {'subnet': {'id': '1150ca75-2e21-4c07-bbff-dde750ea66c6', 'name': '', 'tenant_id': 'deff038e11024657a2d35f48ce25bb96', 'network_id': '90a0c23a-db25-40a2-bd14-1d5f38f2c236', 'ip_version': 4, 'cidr': '206.74.252.128/26', 'allocation_pools': [{'start': '206.74.252.130', 'end': '206.74.252.190'}], 'gateway_ip': '206.74.252.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '206.74.252.130', 'tags': [], 'project_id': 'deff038e11024657a2d35f48ce25bb96'}}
2025-10-21 17:50:46,860 - INFO - Created VN ctest-vn-04858518
2025-10-21 17:50:46,923 - DEBUG - VN ctest-vn-04858518 UUID is 90a0c23a-db25-40a2-bd14-1d5f38f2c236
2025-10-21 17:50:47,365 - DEBUG - Response for create_network : {'network': {'id': 'c9a630f5-da95-4ab2-abc6-d67108c04d70', 'name': 'ctest-vn-32509000', 'tenant_id': 'deff038e11024657a2d35f48ce25bb96', 'project_id': 'deff038e11024657a2d35f48ce25bb96', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-69150588', 'ctest-vn-32509000'], 'port_security_enabled': True, 'description': ''}}
2025-10-21 17:50:47,603 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b3707c74-9ed4-4dfa-a47b-ed57d3557df8', 'name': '', 'tenant_id': 'deff038e11024657a2d35f48ce25bb96', 'network_id': 'c9a630f5-da95-4ab2-abc6-d67108c04d70', 'ip_version': 4, 'cidr': '78.235.209.0/26', 'allocation_pools': [{'start': '78.235.209.2', 'end': '78.235.209.62'}], 'gateway_ip': '78.235.209.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '78.235.209.2', 'tags': [], 'project_id': 'deff038e11024657a2d35f48ce25bb96'}}
2025-10-21 17:50:47,629 - INFO - Created VN ctest-vn-32509000
2025-10-21 17:50:47,683 - DEBUG - VN ctest-vn-32509000 UUID is c9a630f5-da95-4ab2-abc6-d67108c04d70
2025-10-21 17:50:47,831 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-69150588:ctest-vn-04858518, 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-69150588:ctest-vn-32509000, 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-21 17:50:48,272 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '90a0c23a-db25-40a2-bd14-1d5f38f2c236', 'name': 'ctest-vn-04858518', 'tenant_id': 'deff038e11024657a2d35f48ce25bb96', 'project_id': 'deff038e11024657a2d35f48ce25bb96', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1150ca75-2e21-4c07-bbff-dde750ea66c6'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-69150588', 'ctest-vn-04858518'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-69150588', 'ctest-policy-allow-all-22556237']], 'subnet_ipam': [{'subnet_cidr': '206.74.252.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-21 17:50:48,584 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c9a630f5-da95-4ab2-abc6-d67108c04d70', 'name': 'ctest-vn-32509000', 'tenant_id': 'deff038e11024657a2d35f48ce25bb96', 'project_id': 'deff038e11024657a2d35f48ce25bb96', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b3707c74-9ed4-4dfa-a47b-ed57d3557df8'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-69150588', 'ctest-vn-32509000'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-69150588', 'ctest-policy-allow-all-22556237']], 'subnet_ipam': [{'subnet_cidr': '78.235.209.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-21 17:50:48,751 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2025-10-21 17:50:49,052 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2025-10-21 17:50:49,091 - DEBUG - Requesting: http://10.0.0.130:8082/domain/a9b02489-17d2-4343-bae9-3201b5557307
2025-10-21 17:50:49,128 - DEBUG - Requesting: http://10.0.0.130:8082/project/deff038e-1102-4657-a2d3-5f48ce25bb96
2025-10-21 17:50:49,244 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/90a0c23a-db25-40a2-bd14-1d5f38f2c236
2025-10-21 17:50:49,276 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/90a0c23a-db25-40a2-bd14-1d5f38f2c236
2025-10-21 17:50:49,303 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/c20294f4-a3a5-494e-931c-3e1cc673c859
2025-10-21 17:50:49,324 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/c20294f4-a3a5-494e-931c-3e1cc673c859
2025-10-21 17:50:49,342 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/0573879b-b857-4dce-996a-c0b4e896083b
2025-10-21 17:50:49,359 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-21 17:50:49,360 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/90a0c23a-db25-40a2-bd14-1d5f38f2c236
2025-10-21 17:50:49,388 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/c20294f4-a3a5-494e-931c-3e1cc673c859
2025-10-21 17:50:49,427 - INFO - Verified VN network id 11 for VN 90a0c23a-db25-40a2-bd14-1d5f38f2c236
2025-10-21 17:50:49,427 - INFO - Verifications in API Server for VN ctest-vn-04858518 passed
2025-10-21 17:50:49,428 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/90a0c23a-db25-40a2-bd14-1d5f38f2c236
2025-10-21 17:50:49,473 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/c20294f4-a3a5-494e-931c-3e1cc673c859
2025-10-21 17:50:49,492 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/c20294f4-a3a5-494e-931c-3e1cc673c859
2025-10-21 17:50:49,505 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/0573879b-b857-4dce-996a-c0b4e896083b
2025-10-21 17:50:49,534 - DEBUG - Control-node 10.0.0.130 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-69150588:ctest-vn-04858518', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-69150588', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10421543095775871138', 'uuid-lslong': '13624547067517125174'}, 'enable': 'true', 'created': '2025-10-21T17:50:46', 'last-modified': '2025-10-21T17:50:48', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.307532'}
2025-10-21 17:50:49,550 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-21 17:50:49,550 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-04858518 passed
2025-10-21 17:50:49,551 - DEBUG - ====Verifying policy data for ctest-vn-04858518 in API_Server ======
2025-10-21 17:50:49,551 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2025-10-21 17:50:49,575 - DEBUG - Requesting: http://10.0.0.130:8082/domain/a9b02489-17d2-4343-bae9-3201b5557307
2025-10-21 17:50:49,641 - DEBUG - Requesting: http://10.0.0.130:8082/project/deff038e-1102-4657-a2d3-5f48ce25bb96
2025-10-21 17:50:49,739 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/90a0c23a-db25-40a2-bd14-1d5f38f2c236
2025-10-21 17:50:49,756 - DEBUG - ==>Verifying data for policy with id: bac561fb-61b1-4b8b-be30-c9da1b698f06, fqn: ['default-domain', 'ctest-TestBasicPolicy-69150588', 'ctest-policy-allow-all-22556237']
2025-10-21 17:50:49,756 - INFO - VN ctest-vn-04858518 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-21 17:50:49,756 - DEBUG - Verifying the vn in opserver
2025-10-21 17:50:49,756 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-69150588:ctest-vn-04858518 virtual network link through opserver 10.0.0.130
2025-10-21 17:50:49,756 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks
2025-10-21 17:50:50,079 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks
2025-10-21 17:50:50,143 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-69150588:ctest-vn-04858518', 'href': 'http://10.0.0.130:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-69150588:ctest-vn-04858518?flat'}
2025-10-21 17:50:50,145 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-69150588:ctest-vn-04858518 is found in opserver
2025-10-21 17:50:50,157 - DEBUG - Do not have enough data to verify VN in agent
2025-10-21 17:50:50,168 - DEBUG - VRF ids for VN ctest-vn-04858518: {}
2025-10-21 17:50:50,168 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2025-10-21 17:50:50,175 - DEBUG - Requesting: http://10.0.0.130:8082/domain/a9b02489-17d2-4343-bae9-3201b5557307
2025-10-21 17:50:50,191 - DEBUG - Requesting: http://10.0.0.130:8082/project/deff038e-1102-4657-a2d3-5f48ce25bb96
2025-10-21 17:50:50,301 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/c9a630f5-da95-4ab2-abc6-d67108c04d70
2025-10-21 17:50:50,325 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/c9a630f5-da95-4ab2-abc6-d67108c04d70
2025-10-21 17:50:50,354 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/4adf14ed-8af2-47a2-a111-44812f11f404
2025-10-21 17:50:50,368 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/4adf14ed-8af2-47a2-a111-44812f11f404
2025-10-21 17:50:50,380 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/9ec7a6ef-3adc-4b9c-b478-8c22af65b725
2025-10-21 17:50:50,394 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-21 17:50:50,395 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/c9a630f5-da95-4ab2-abc6-d67108c04d70
2025-10-21 17:50:50,413 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/4adf14ed-8af2-47a2-a111-44812f11f404
2025-10-21 17:50:50,444 - INFO - Verified VN network id 12 for VN c9a630f5-da95-4ab2-abc6-d67108c04d70
2025-10-21 17:50:50,444 - INFO - Verifications in API Server for VN ctest-vn-32509000 passed
2025-10-21 17:50:50,444 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/c9a630f5-da95-4ab2-abc6-d67108c04d70
2025-10-21 17:50:50,470 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/4adf14ed-8af2-47a2-a111-44812f11f404
2025-10-21 17:50:50,487 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/4adf14ed-8af2-47a2-a111-44812f11f404
2025-10-21 17:50:50,506 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/9ec7a6ef-3adc-4b9c-b478-8c22af65b725
2025-10-21 17:50:50,535 - DEBUG - Control-node 10.0.0.130 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-69150588:ctest-vn-32509000', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-69150588', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14530355080249821874', 'uuid-lslong': '12377816406840855920'}, 'enable': 'true', 'created': '2025-10-21T17:50:47', 'last-modified': '2025-10-21T17:50:48', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.991323'}
2025-10-21 17:50:50,550 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-21 17:50:50,551 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-32509000 passed
2025-10-21 17:50:50,551 - DEBUG - ====Verifying policy data for ctest-vn-32509000 in API_Server ======
2025-10-21 17:50:50,551 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2025-10-21 17:50:50,564 - DEBUG - Requesting: http://10.0.0.130:8082/domain/a9b02489-17d2-4343-bae9-3201b5557307
2025-10-21 17:50:50,593 - DEBUG - Requesting: http://10.0.0.130:8082/project/deff038e-1102-4657-a2d3-5f48ce25bb96
2025-10-21 17:50:50,718 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/c9a630f5-da95-4ab2-abc6-d67108c04d70
2025-10-21 17:50:50,749 - DEBUG - ==>Verifying data for policy with id: bac561fb-61b1-4b8b-be30-c9da1b698f06, fqn: ['default-domain', 'ctest-TestBasicPolicy-69150588', 'ctest-policy-allow-all-22556237']
2025-10-21 17:50:50,749 - INFO - VN ctest-vn-32509000 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-21 17:50:50,749 - DEBUG - Verifying the vn in opserver
2025-10-21 17:50:50,749 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-69150588:ctest-vn-32509000 virtual network link through opserver 10.0.0.130
2025-10-21 17:50:50,749 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks
2025-10-21 17:50:50,772 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-69150588:ctest-vn-32509000', 'href': 'http://10.0.0.130:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-69150588:ctest-vn-32509000?flat'}
2025-10-21 17:50:50,773 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-69150588:ctest-vn-32509000 is found in opserver
2025-10-21 17:50:50,805 - DEBUG - Do not have enough data to verify VN in agent
2025-10-21 17:50:50,816 - DEBUG - VRF ids for VN ctest-vn-32509000: {}
2025-10-21 17:50:50,967 - DEBUG - Services list from nova: [