2025-04-28 01:50:42,307 - INFO - Reading existing Domain with UUID 603e603f-8372-4ebb-8595-56d5f17fcd53
2025-04-28 01:50:42,320 - INFO - Using existing domain ['admin_domain'](603e603f-8372-4ebb-8595-56d5f17fcd53)
2025-04-28 01:50:42,511 - INFO - Project ctest-TestBasicPolicy-92306154 not found, creating it
2025-04-28 01:50:43,015 - INFO - Created Project:ctest-TestBasicPolicy-92306154, ID : c53a4e6e-7f55-466b-a0a7-c712382e4e60
2025-04-28 01:50:44,831 - INFO - ================================================================================
2025-04-28 01:50:44,831 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-04-28 01:50:44,831 - 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-04-28 01:50:45,230 - DEBUG - Nothing to compare xmpp stats {'10.0.0.241': {'10.0.0.241': '0'}} with
2025-04-28 01:50:45,230 - INFO - Initial checks done. Running the testcase now
2025-04-28 01:50:45,230 - INFO -
2025-04-28 01:50:46,021 - DEBUG - Response for create_network : {'network': {'id': '634b7872-77b7-4cfd-99dc-af193b060eb2', 'name': 'ctest-vn-58403124', 'tenant_id': 'c53a4e6e7f55466ba0a7c712382e4e60', 'project_id': 'c53a4e6e7f55466ba0a7c712382e4e60', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-92306154', 'ctest-vn-58403124'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}}
2025-04-28 01:50:46,249 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a782f2a6-462c-4c4e-acd6-1c0c236ce1c2', 'name': '', 'tenant_id': 'c53a4e6e7f55466ba0a7c712382e4e60', 'network_id': '634b7872-77b7-4cfd-99dc-af193b060eb2', 'ip_version': 4, 'cidr': '35.93.38.192/26', 'allocation_pools': [{'start': '35.93.38.194', 'end': '35.93.38.254'}], 'gateway_ip': '35.93.38.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2025-04-28T01:50:46.144800', 'updated_at': '2025-04-28T01:50:46.144800', 'dns_server_address': '35.93.38.194', 'tags': [], 'project_id': 'c53a4e6e7f55466ba0a7c712382e4e60'}}
2025-04-28 01:50:46,314 - INFO - Created VN ctest-vn-58403124
2025-04-28 01:50:46,368 - DEBUG - VN ctest-vn-58403124 UUID is 634b7872-77b7-4cfd-99dc-af193b060eb2
2025-04-28 01:50:46,885 - DEBUG - Response for create_network : {'network': {'id': '3849bc19-9513-42ae-8376-bdbc19a9b5b6', 'name': 'ctest-vn-36093338', 'tenant_id': 'c53a4e6e7f55466ba0a7c712382e4e60', 'project_id': 'c53a4e6e7f55466ba0a7c712382e4e60', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-92306154', 'ctest-vn-36093338'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}}
2025-04-28 01:50:47,137 - DEBUG - Response for create_subnet : {'subnet': {'id': '916bc11f-0c21-402c-85ac-351359fcb707', 'name': '', 'tenant_id': 'c53a4e6e7f55466ba0a7c712382e4e60', 'network_id': '3849bc19-9513-42ae-8376-bdbc19a9b5b6', 'ip_version': 4, 'cidr': '213.227.250.0/26', 'allocation_pools': [{'start': '213.227.250.2', 'end': '213.227.250.62'}], 'gateway_ip': '213.227.250.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2025-04-28T01:50:47.040835', 'updated_at': '2025-04-28T01:50:47.040835', 'dns_server_address': '213.227.250.2', 'tags': [], 'project_id': 'c53a4e6e7f55466ba0a7c712382e4e60'}}
2025-04-28 01:50:47,203 - INFO - Created VN ctest-vn-36093338
2025-04-28 01:50:47,256 - DEBUG - VN ctest-vn-36093338 UUID is 3849bc19-9513-42ae-8376-bdbc19a9b5b6
2025-04-28 01:50:47,473 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicy-92306154:ctest-vn-58403124, 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-92306154:ctest-vn-36093338, 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-04-28 01:50:47,900 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '634b7872-77b7-4cfd-99dc-af193b060eb2', 'name': 'ctest-vn-58403124', 'tenant_id': 'c53a4e6e7f55466ba0a7c712382e4e60', 'project_id': 'c53a4e6e7f55466ba0a7c712382e4e60', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a782f2a6-462c-4c4e-acd6-1c0c236ce1c2'], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-92306154', 'ctest-vn-58403124'], 'policys': [['admin_domain', 'ctest-TestBasicPolicy-92306154', 'ctest-policy-allow-all-14584849']], 'subnet_ipam': [{'subnet_cidr': '35.93.38.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2025-04-28T01:50:45.949039', 'updated_at': '2025-04-28T01:50:46.157677'}}
2025-04-28 01:50:48,300 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3849bc19-9513-42ae-8376-bdbc19a9b5b6', 'name': 'ctest-vn-36093338', 'tenant_id': 'c53a4e6e7f55466ba0a7c712382e4e60', 'project_id': 'c53a4e6e7f55466ba0a7c712382e4e60', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['916bc11f-0c21-402c-85ac-351359fcb707'], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-92306154', 'ctest-vn-36093338'], 'policys': [['admin_domain', 'ctest-TestBasicPolicy-92306154', 'ctest-policy-allow-all-14584849']], 'subnet_ipam': [{'subnet_cidr': '213.227.250.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2025-04-28T01:50:46.803566', 'updated_at': '2025-04-28T01:50:47.054617'}}
2025-04-28 01:50:48,492 - DEBUG - Requesting: https://10.0.0.241:8082/domains
2025-04-28 01:50:48,882 - DEBUG - Requesting: https://10.0.0.241:8082/domains
2025-04-28 01:50:48,961 - DEBUG - Requesting: https://10.0.0.241:8082/domain/603e603f-8372-4ebb-8595-56d5f17fcd53
2025-04-28 01:50:49,021 - DEBUG - Requesting: https://10.0.0.241:8082/project/c53a4e6e-7f55-466b-a0a7-c712382e4e60
2025-04-28 01:50:49,102 - DEBUG - Requesting: https://10.0.0.241:8082/virtual-network/634b7872-77b7-4cfd-99dc-af193b060eb2
2025-04-28 01:50:49,159 - DEBUG - Requesting: https://10.0.0.241:8082/virtual-network/634b7872-77b7-4cfd-99dc-af193b060eb2
2025-04-28 01:50:49,215 - DEBUG - Requesting: https://10.0.0.241:8082/routing-instance/89591cb9-3e25-45f6-8769-6052f61eb447
2025-04-28 01:50:49,270 - DEBUG - Requesting: https://10.0.0.241:8082/routing-instance/89591cb9-3e25-45f6-8769-6052f61eb447
2025-04-28 01:50:49,325 - DEBUG - Requesting: https://10.0.0.241:8082/route-target/e6d3c1cd-0b40-4b8f-a8e5-fdbae30927a4
2025-04-28 01:50:49,381 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-28 01:50:49,381 - DEBUG - Requesting: https://10.0.0.241:8082/virtual-network/634b7872-77b7-4cfd-99dc-af193b060eb2
2025-04-28 01:50:49,439 - DEBUG - Requesting: https://10.0.0.241:8082/routing-instance/89591cb9-3e25-45f6-8769-6052f61eb447
2025-04-28 01:50:49,502 - INFO - Verified VN network id 8 for VN 634b7872-77b7-4cfd-99dc-af193b060eb2
2025-04-28 01:50:49,502 - INFO - Verifications in API Server for VN ctest-vn-58403124 passed
2025-04-28 01:50:49,502 - DEBUG - Requesting: https://10.0.0.241:8082/virtual-network/634b7872-77b7-4cfd-99dc-af193b060eb2
2025-04-28 01:50:49,558 - DEBUG - Requesting: https://10.0.0.241:8082/routing-instance/89591cb9-3e25-45f6-8769-6052f61eb447
2025-04-28 01:50:49,617 - DEBUG - Requesting: https://10.0.0.241:8082/routing-instance/89591cb9-3e25-45f6-8769-6052f61eb447
2025-04-28 01:50:49,669 - DEBUG - Requesting: https://10.0.0.241:8082/route-target/e6d3c1cd-0b40-4b8f-a8e5-fdbae30927a4
2025-04-28 01:50:49,773 - DEBUG - Control-node 10.0.0.241 : VN object is : {'node_name': 'virtual-network:admin_domain:ctest-TestBasicPolicy-92306154:ctest-vn-58403124', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-92306154', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7154944866038271229', 'uuid-lslong': '11086928905578614450'}, 'enable': 'true', 'created': '2025-04-28T01:50:45', 'last-modified': '2025-04-28T01:50:47', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.908715'}
2025-04-28 01:50:49,826 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-28 01:50:49,826 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-58403124 passed
2025-04-28 01:50:49,826 - DEBUG - ====Verifying policy data for ctest-vn-58403124 in API_Server ======
2025-04-28 01:50:49,826 - DEBUG - Requesting: https://10.0.0.241:8082/domains
2025-04-28 01:50:49,877 - DEBUG - Requesting: https://10.0.0.241:8082/domain/603e603f-8372-4ebb-8595-56d5f17fcd53
2025-04-28 01:50:49,937 - DEBUG - Requesting: https://10.0.0.241:8082/project/c53a4e6e-7f55-466b-a0a7-c712382e4e60
2025-04-28 01:50:50,018 - DEBUG - Requesting: https://10.0.0.241:8082/virtual-network/634b7872-77b7-4cfd-99dc-af193b060eb2
2025-04-28 01:50:50,075 - DEBUG - ==>Verifying data for policy with id: 443f54e0-1ed9-49ea-b79a-5bb0a1e0f565, fqn: ['admin_domain', 'ctest-TestBasicPolicy-92306154', 'ctest-policy-allow-all-14584849']
2025-04-28 01:50:50,075 - INFO - VN ctest-vn-58403124 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-28 01:50:50,075 - DEBUG - Verifying the vn in opserver
2025-04-28 01:50:50,076 - DEBUG - Verifying the admin_domain:ctest-TestBasicPolicy-92306154:ctest-vn-58403124 virtual network link through opserver 10.0.0.241
2025-04-28 01:50:50,076 - DEBUG - Requesting: https://10.0.0.241:8081/analytics/uves/virtual-networks
2025-04-28 01:50:50,457 - DEBUG - Requesting: https://10.0.0.241:8081/analytics/uves/virtual-networks
2025-04-28 01:50:50,569 - DEBUG - vn link and name as {'name': 'admin_domain:ctest-TestBasicPolicy-92306154:ctest-vn-58403124', 'href': 'https://10.0.0.241:8081/analytics/uves/virtual-network/admin_domain:ctest-TestBasicPolicy-92306154:ctest-vn-58403124?flat'}
2025-04-28 01:50:50,569 - INFO - Validated that VN admin_domain:ctest-TestBasicPolicy-92306154:ctest-vn-58403124 is found in opserver
2025-04-28 01:50:50,669 - DEBUG - Do not have enough data to verify VN in agent
2025-04-28 01:50:50,717 - DEBUG - VRF ids for VN ctest-vn-58403124: {}
2025-04-28 01:50:50,717 - DEBUG - Requesting: https://10.0.0.241:8082/domains
2025-04-28 01:50:50,769 - DEBUG - Requesting: https://10.0.0.241:8082/domain/603e603f-8372-4ebb-8595-56d5f17fcd53
2025-04-28 01:50:50,829 - DEBUG - Requesting: https://10.0.0.241:8082/project/c53a4e6e-7f55-466b-a0a7-c712382e4e60
2025-04-28 01:50:50,910 - DEBUG - Requesting: https://10.0.0.241:8082/virtual-network/3849bc19-9513-42ae-8376-bdbc19a9b5b6
2025-04-28 01:50:50,971 - DEBUG - Requesting: https://10.0.0.241:8082/virtual-network/3849bc19-9513-42ae-8376-bdbc19a9b5b6
2025-04-28 01:50:51,027 - DEBUG - Requesting: https://10.0.0.241:8082/routing-instance/31a7a494-e899-4895-816f-03b3cbbbb488
2025-04-28 01:50:51,082 - DEBUG - Requesting: https://10.0.0.241:8082/routing-instance/31a7a494-e899-4895-816f-03b3cbbbb488
2025-04-28 01:50:51,137 - DEBUG - Requesting: https://10.0.0.241:8082/route-target/f43773d9-4191-4d64-9634-ab183895b187
2025-04-28 01:50:51,189 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-28 01:50:51,189 - DEBUG - Requesting: https://10.0.0.241:8082/virtual-network/3849bc19-9513-42ae-8376-bdbc19a9b5b6
2025-04-28 01:50:51,242 - DEBUG - Requesting: https://10.0.0.241:8082/routing-instance/31a7a494-e899-4895-816f-03b3cbbbb488
2025-04-28 01:50:51,301 - INFO - Verified VN network id 9 for VN 3849bc19-9513-42ae-8376-bdbc19a9b5b6
2025-04-28 01:50:51,301 - INFO - Verifications in API Server for VN ctest-vn-36093338 passed
2025-04-28 01:50:51,301 - DEBUG - Requesting: https://10.0.0.241:8082/virtual-network/3849bc19-9513-42ae-8376-bdbc19a9b5b6
2025-04-28 01:50:51,358 - DEBUG - Requesting: https://10.0.0.241:8082/routing-instance/31a7a494-e899-4895-816f-03b3cbbbb488
2025-04-28 01:50:51,409 - DEBUG - Requesting: https://10.0.0.241:8082/routing-instance/31a7a494-e899-4895-816f-03b3cbbbb488
2025-04-28 01:50:51,465 - DEBUG - Requesting: https://10.0.0.241:8082/route-target/f43773d9-4191-4d64-9634-ab183895b187
2025-04-28 01:50:51,569 - DEBUG - Control-node 10.0.0.241 : VN object is : {'node_name': 'virtual-network:admin_domain:ctest-TestBasicPolicy-92306154:ctest-vn-36093338', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-92306154', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4055979757485114030', 'uuid-lslong': '9472967481802470838'}, 'enable': 'true', 'created': '2025-04-28T01:50:46', 'last-modified': '2025-04-28T01:50:48', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:03.343129'}
2025-04-28 01:50:51,622 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-28 01:50:51,622 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-36093338 passed
2025-04-28 01:50:51,622 - DEBUG - ====Verifying policy data for ctest-vn-36093338 in API_Server ======
2025-04-28 01:50:51,622 - DEBUG - Requesting: https://10.0.0.241:8082/domains
2025-04-28 01:50:51,676 - DEBUG - Requesting: https://10.0.0.241:8082/domain/603e603f-8372-4ebb-8595-56d5f17fcd53
2025-04-28 01:50:51,733 - DEBUG - Requesting: https://10.0.0.241:8082/project/c53a4e6e-7f55-466b-a0a7-c712382e4e60
2025-04-28 01:50:51,810 - DEBUG - Requesting: https://10.0.0.241:8082/virtual-network/3849bc19-9513-42ae-8376-bdbc19a9b5b6
2025-04-28 01:50:51,867 - DEBUG - ==>Verifying data for policy with id: 443f54e0-1ed9-49ea-b79a-5bb0a1e0f565, fqn: ['admin_domain', 'ctest-TestBasicPolicy-92306154', 'ctest-policy-allow-all-14584849']
2025-04-28 01:50:51,867 - INFO - VN ctest-vn-36093338 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-28 01:50:51,867 - DEBUG - Verifying the vn in opserver
2025-04-28 01:50:51,867 - DEBUG - Verifying the admin_domain:ctest-TestBasicPolicy-92306154:ctest-vn-36093338 virtual network link through opserver 10.0.0.241
2025-04-28 01:50:51,867 - DEBUG - Requesting: https://10.0.0.241:8081/analytics/uves/virtual-networks
2025-04-28 01:50:51,925 - DEBUG - vn link and name as {'name': 'admin_domain:ctest-TestBasicPolicy-92306154:ctest-vn-36093338', 'href': 'https://10.0.0.241:8081/analytics/uves/virtual-network/admin_domain:ctest-TestBasicPolicy-92306154:ctest-vn-36093338?flat'}
2025-04-28 01:50:51,925 - INFO - Validated that VN admin_domain:ctest-TestBasicPolicy-92306154:ctest-vn-36093338 is found in opserver
2025-04-28 01:50:52,025 - DEBUG - Do not have enough data to verify VN in agent
2025-04-28 01:50:52,073 - DEBUG - VRF ids for VN ctest-vn-36093338: {}
2025-04-28 01:50:52,139 - DEBUG - Services list from nova: [