2025-08-11 17:02:30,337 - INFO - Domain Default found not creating
2025-08-11 17:02:30,469 - INFO - Project ctest-TestBasicPolicy-37235727 not found, creating it
2025-08-11 17:02:30,912 - INFO - Created Project:ctest-TestBasicPolicy-37235727, ID : 6eb41949-b3da-4fc4-a3a2-776c709919e8
2025-08-11 17:02:32,481 - INFO - ================================================================================
2025-08-11 17:02:32,481 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-08-11 17:02:32,481 - 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-08-11 17:02:32,740 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.14': '0'}} with
2025-08-11 17:02:32,740 - INFO - Initial checks done. Running the testcase now
2025-08-11 17:02:32,740 - INFO -
2025-08-11 17:02:33,323 - DEBUG - Response for create_network : {'network': {'id': '8355c401-3536-4492-bbc6-ca427cb33e0a', 'name': 'ctest-vn-39050128', 'tenant_id': '6eb41949b3da4fc4a3a2776c709919e8', 'project_id': '6eb41949b3da4fc4a3a2776c709919e8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-37235727', 'ctest-vn-39050128'], 'port_security_enabled': True, 'description': ''}}
2025-08-11 17:02:33,499 - DEBUG - Response for create_subnet : {'subnet': {'id': '9010cbe2-6d1c-4630-b1e1-4d2746d3d54e', 'name': '', 'tenant_id': '6eb41949b3da4fc4a3a2776c709919e8', 'network_id': '8355c401-3536-4492-bbc6-ca427cb33e0a', 'ip_version': 4, 'cidr': '143.184.27.128/26', 'allocation_pools': [{'start': '143.184.27.130', 'end': '143.184.27.190'}], 'gateway_ip': '143.184.27.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '143.184.27.130', 'tags': [], 'project_id': '6eb41949b3da4fc4a3a2776c709919e8'}}
2025-08-11 17:02:33,516 - INFO - Created VN ctest-vn-39050128
2025-08-11 17:02:33,570 - DEBUG - VN ctest-vn-39050128 UUID is 8355c401-3536-4492-bbc6-ca427cb33e0a
2025-08-11 17:02:33,889 - DEBUG - Response for create_network : {'network': {'id': '99e4d522-ea3f-4c11-9cf2-abc228becc10', 'name': 'ctest-vn-59289224', 'tenant_id': '6eb41949b3da4fc4a3a2776c709919e8', 'project_id': '6eb41949b3da4fc4a3a2776c709919e8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-37235727', 'ctest-vn-59289224'], 'port_security_enabled': True, 'description': ''}}
2025-08-11 17:02:34,079 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e7715280-4b6d-4a3c-9dee-cd86e83be792', 'name': '', 'tenant_id': '6eb41949b3da4fc4a3a2776c709919e8', 'network_id': '99e4d522-ea3f-4c11-9cf2-abc228becc10', 'ip_version': 4, 'cidr': '76.50.44.128/26', 'allocation_pools': [{'start': '76.50.44.130', 'end': '76.50.44.190'}], 'gateway_ip': '76.50.44.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '76.50.44.130', 'tags': [], 'project_id': '6eb41949b3da4fc4a3a2776c709919e8'}}
2025-08-11 17:02:34,098 - INFO - Created VN ctest-vn-59289224
2025-08-11 17:02:34,154 - DEBUG - VN ctest-vn-59289224 UUID is 99e4d522-ea3f-4c11-9cf2-abc228becc10
2025-08-11 17:02:34,310 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-37235727:ctest-vn-39050128, 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-37235727:ctest-vn-59289224, 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-08-11 17:02:34,599 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8355c401-3536-4492-bbc6-ca427cb33e0a', 'name': 'ctest-vn-39050128', 'tenant_id': '6eb41949b3da4fc4a3a2776c709919e8', 'project_id': '6eb41949b3da4fc4a3a2776c709919e8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9010cbe2-6d1c-4630-b1e1-4d2746d3d54e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-37235727', 'ctest-vn-39050128'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-37235727', 'ctest-policy-allow-all-86742280']], 'subnet_ipam': [{'subnet_cidr': '143.184.27.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-11 17:02:34,881 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '99e4d522-ea3f-4c11-9cf2-abc228becc10', 'name': 'ctest-vn-59289224', 'tenant_id': '6eb41949b3da4fc4a3a2776c709919e8', 'project_id': '6eb41949b3da4fc4a3a2776c709919e8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e7715280-4b6d-4a3c-9dee-cd86e83be792'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-37235727', 'ctest-vn-59289224'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-37235727', 'ctest-policy-allow-all-86742280']], 'subnet_ipam': [{'subnet_cidr': '76.50.44.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-11 17:02:35,022 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-08-11 17:02:35,359 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-08-11 17:02:35,387 - DEBUG - Requesting: http://10.0.0.254:8082/domain/5f883c93-e6c1-499b-9edc-ef559f9f2026
2025-08-11 17:02:35,401 - DEBUG - Requesting: http://10.0.0.254:8082/project/6eb41949-b3da-4fc4-a3a2-776c709919e8
2025-08-11 17:02:35,474 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/8355c401-3536-4492-bbc6-ca427cb33e0a
2025-08-11 17:02:35,486 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/8355c401-3536-4492-bbc6-ca427cb33e0a
2025-08-11 17:02:35,496 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/27704d96-67fe-4b0a-99d9-a34e7870758f
2025-08-11 17:02:35,503 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/27704d96-67fe-4b0a-99d9-a34e7870758f
2025-08-11 17:02:35,510 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/f7308151-5e8e-4a35-96e8-2d3deda68ffd
2025-08-11 17:02:35,516 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-11 17:02:35,517 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/8355c401-3536-4492-bbc6-ca427cb33e0a
2025-08-11 17:02:35,526 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/27704d96-67fe-4b0a-99d9-a34e7870758f
2025-08-11 17:02:35,540 - INFO - Verified VN network id 10 for VN 8355c401-3536-4492-bbc6-ca427cb33e0a
2025-08-11 17:02:35,540 - INFO - Verifications in API Server for VN ctest-vn-39050128 passed
2025-08-11 17:02:35,540 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/8355c401-3536-4492-bbc6-ca427cb33e0a
2025-08-11 17:02:35,550 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/27704d96-67fe-4b0a-99d9-a34e7870758f
2025-08-11 17:02:35,557 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/27704d96-67fe-4b0a-99d9-a34e7870758f
2025-08-11 17:02:35,564 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/f7308151-5e8e-4a35-96e8-2d3deda68ffd
2025-08-11 17:02:35,577 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-37235727:ctest-vn-39050128', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-37235727', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9463685701455725714', 'uuid-lslong': '13530724517390007818'}, 'enable': 'true', 'created': '2025-08-11T17:02:33', 'last-modified': '2025-08-11T17:02:34', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.002726'}
2025-08-11 17:02:35,583 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-11 17:02:35,583 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-39050128 passed
2025-08-11 17:02:35,584 - DEBUG - ====Verifying policy data for ctest-vn-39050128 in API_Server ======
2025-08-11 17:02:35,584 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-08-11 17:02:35,589 - DEBUG - Requesting: http://10.0.0.254:8082/domain/5f883c93-e6c1-499b-9edc-ef559f9f2026
2025-08-11 17:02:35,600 - DEBUG - Requesting: http://10.0.0.254:8082/project/6eb41949-b3da-4fc4-a3a2-776c709919e8
2025-08-11 17:02:35,676 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/8355c401-3536-4492-bbc6-ca427cb33e0a
2025-08-11 17:02:35,687 - DEBUG - ==>Verifying data for policy with id: 5dd26858-9f33-4b1c-9a40-21361156868a, fqn: ['default-domain', 'ctest-TestBasicPolicy-37235727', 'ctest-policy-allow-all-86742280']
2025-08-11 17:02:35,687 - INFO - VN ctest-vn-39050128 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-11 17:02:35,687 - DEBUG - Verifying the vn in opserver
2025-08-11 17:02:35,687 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-37235727:ctest-vn-39050128 virtual network link through opserver 10.0.0.254
2025-08-11 17:02:35,687 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-08-11 17:02:36,016 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-08-11 17:02:36,070 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-37235727:ctest-vn-39050128', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-37235727:ctest-vn-39050128?flat'}
2025-08-11 17:02:36,070 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-37235727:ctest-vn-39050128 is found in opserver
2025-08-11 17:02:36,082 - DEBUG - Do not have enough data to verify VN in agent
2025-08-11 17:02:36,087 - DEBUG - VRF ids for VN ctest-vn-39050128: {}
2025-08-11 17:02:36,088 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-08-11 17:02:36,093 - DEBUG - Requesting: http://10.0.0.254:8082/domain/5f883c93-e6c1-499b-9edc-ef559f9f2026
2025-08-11 17:02:36,105 - DEBUG - Requesting: http://10.0.0.254:8082/project/6eb41949-b3da-4fc4-a3a2-776c709919e8
2025-08-11 17:02:36,176 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/99e4d522-ea3f-4c11-9cf2-abc228becc10
2025-08-11 17:02:36,189 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/99e4d522-ea3f-4c11-9cf2-abc228becc10
2025-08-11 17:02:36,199 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/6d5f77f1-959e-41ab-b17b-2b70bdbcd99f
2025-08-11 17:02:36,207 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/6d5f77f1-959e-41ab-b17b-2b70bdbcd99f
2025-08-11 17:02:36,214 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/aba156d2-a827-4a3c-abfc-55e9a95b01f1
2025-08-11 17:02:36,220 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-11 17:02:36,220 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/99e4d522-ea3f-4c11-9cf2-abc228becc10
2025-08-11 17:02:36,230 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/6d5f77f1-959e-41ab-b17b-2b70bdbcd99f
2025-08-11 17:02:36,244 - INFO - Verified VN network id 11 for VN 99e4d522-ea3f-4c11-9cf2-abc228becc10
2025-08-11 17:02:36,244 - INFO - Verifications in API Server for VN ctest-vn-59289224 passed
2025-08-11 17:02:36,244 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/99e4d522-ea3f-4c11-9cf2-abc228becc10
2025-08-11 17:02:36,254 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/6d5f77f1-959e-41ab-b17b-2b70bdbcd99f
2025-08-11 17:02:36,261 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/6d5f77f1-959e-41ab-b17b-2b70bdbcd99f
2025-08-11 17:02:36,268 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/aba156d2-a827-4a3c-abfc-55e9a95b01f1
2025-08-11 17:02:36,280 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-37235727:ctest-vn-59289224', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-37235727', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11089222528428624913', 'uuid-lslong': '11309290464676334608'}, 'enable': 'true', 'created': '2025-08-11T17:02:33', 'last-modified': '2025-08-11T17:02:34', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.467768'}
2025-08-11 17:02:36,287 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-11 17:02:36,287 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-59289224 passed
2025-08-11 17:02:36,287 - DEBUG - ====Verifying policy data for ctest-vn-59289224 in API_Server ======
2025-08-11 17:02:36,287 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-08-11 17:02:36,292 - DEBUG - Requesting: http://10.0.0.254:8082/domain/5f883c93-e6c1-499b-9edc-ef559f9f2026
2025-08-11 17:02:36,304 - DEBUG - Requesting: http://10.0.0.254:8082/project/6eb41949-b3da-4fc4-a3a2-776c709919e8
2025-08-11 17:02:36,379 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/99e4d522-ea3f-4c11-9cf2-abc228becc10
2025-08-11 17:02:36,389 - DEBUG - ==>Verifying data for policy with id: 5dd26858-9f33-4b1c-9a40-21361156868a, fqn: ['default-domain', 'ctest-TestBasicPolicy-37235727', 'ctest-policy-allow-all-86742280']
2025-08-11 17:02:36,389 - INFO - VN ctest-vn-59289224 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-11 17:02:36,389 - DEBUG - Verifying the vn in opserver
2025-08-11 17:02:36,389 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-37235727:ctest-vn-59289224 virtual network link through opserver 10.0.0.254
2025-08-11 17:02:36,389 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-08-11 17:02:36,399 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-37235727:ctest-vn-59289224', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-37235727:ctest-vn-59289224?flat'}
2025-08-11 17:02:36,399 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-37235727:ctest-vn-59289224 is found in opserver
2025-08-11 17:02:36,410 - DEBUG - Do not have enough data to verify VN in agent
2025-08-11 17:02:36,416 - DEBUG - VRF ids for VN ctest-vn-59289224: {}
2025-08-11 17:02:36,469 - DEBUG - Services list from nova: [