2025-07-21 12:44:10,519 - INFO - Domain Default found not creating
2025-07-21 12:44:10,669 - INFO - Project ctest-TestBasicPolicy-01319833 not found, creating it
2025-07-21 12:44:11,116 - INFO - Created Project:ctest-TestBasicPolicy-01319833, ID : 9f85c8b9-9a65-4c37-ac93-607de7180bb2
2025-07-21 12:44:12,569 - INFO - ================================================================================
2025-07-21 12:44:12,569 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-07-21 12:44:12,569 - 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-07-21 12:44:12,829 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.20.0.25': '0'}} with
2025-07-21 12:44:12,829 - INFO - Initial checks done. Running the testcase now
2025-07-21 12:44:12,829 - INFO -
2025-07-21 12:44:13,414 - DEBUG - Response for create_network : {'network': {'id': 'fba9ecca-9337-4efa-b5cc-cd6ee209991f', 'name': 'ctest-vn-26716272', 'tenant_id': '9f85c8b99a654c37ac93607de7180bb2', 'project_id': '9f85c8b99a654c37ac93607de7180bb2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-01319833', 'ctest-vn-26716272'], 'port_security_enabled': True, 'description': ''}}
2025-07-21 12:44:13,578 - DEBUG - Response for create_subnet : {'subnet': {'id': '2dd8cd9b-212b-441d-92c3-c2b4129249d9', 'name': '', 'tenant_id': '9f85c8b99a654c37ac93607de7180bb2', 'network_id': 'fba9ecca-9337-4efa-b5cc-cd6ee209991f', 'ip_version': 4, 'cidr': '2.74.21.64/26', 'allocation_pools': [{'start': '2.74.21.66', 'end': '2.74.21.126'}], 'gateway_ip': '2.74.21.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2.74.21.66', 'tags': [], 'project_id': '9f85c8b99a654c37ac93607de7180bb2'}}
2025-07-21 12:44:13,598 - INFO - Created VN ctest-vn-26716272
2025-07-21 12:44:13,651 - DEBUG - VN ctest-vn-26716272 UUID is fba9ecca-9337-4efa-b5cc-cd6ee209991f
2025-07-21 12:44:14,051 - DEBUG - Response for create_network : {'network': {'id': 'e988aa60-8b68-4c17-9e3c-36c45484fd3b', 'name': 'ctest-vn-73067359', 'tenant_id': '9f85c8b99a654c37ac93607de7180bb2', 'project_id': '9f85c8b99a654c37ac93607de7180bb2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-01319833', 'ctest-vn-73067359'], 'port_security_enabled': True, 'description': ''}}
2025-07-21 12:44:14,223 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c6f06025-39e9-4467-9c3e-8036db24d763', 'name': '', 'tenant_id': '9f85c8b99a654c37ac93607de7180bb2', 'network_id': 'e988aa60-8b68-4c17-9e3c-36c45484fd3b', 'ip_version': 4, 'cidr': '169.212.71.64/26', 'allocation_pools': [{'start': '169.212.71.66', 'end': '169.212.71.126'}], 'gateway_ip': '169.212.71.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '169.212.71.66', 'tags': [], 'project_id': '9f85c8b99a654c37ac93607de7180bb2'}}
2025-07-21 12:44:14,241 - INFO - Created VN ctest-vn-73067359
2025-07-21 12:44:14,295 - DEBUG - VN ctest-vn-73067359 UUID is e988aa60-8b68-4c17-9e3c-36c45484fd3b
2025-07-21 12:44:14,447 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-01319833:ctest-vn-26716272, 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-01319833:ctest-vn-73067359, 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-07-21 12:44:14,727 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'fba9ecca-9337-4efa-b5cc-cd6ee209991f', 'name': 'ctest-vn-26716272', 'tenant_id': '9f85c8b99a654c37ac93607de7180bb2', 'project_id': '9f85c8b99a654c37ac93607de7180bb2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2dd8cd9b-212b-441d-92c3-c2b4129249d9'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-01319833', 'ctest-vn-26716272'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-01319833', 'ctest-policy-allow-all-64191636']], 'subnet_ipam': [{'subnet_cidr': '2.74.21.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-21 12:44:14,929 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e988aa60-8b68-4c17-9e3c-36c45484fd3b', 'name': 'ctest-vn-73067359', 'tenant_id': '9f85c8b99a654c37ac93607de7180bb2', 'project_id': '9f85c8b99a654c37ac93607de7180bb2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c6f06025-39e9-4467-9c3e-8036db24d763'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-01319833', 'ctest-vn-73067359'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-01319833', 'ctest-policy-allow-all-64191636']], 'subnet_ipam': [{'subnet_cidr': '169.212.71.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-21 12:44:15,123 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-07-21 12:44:15,419 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-07-21 12:44:15,448 - DEBUG - Requesting: http://10.0.0.242:8082/domain/cd5aada3-daec-42be-8b0f-2db33554c66c
2025-07-21 12:44:15,462 - DEBUG - Requesting: http://10.0.0.242:8082/project/9f85c8b9-9a65-4c37-ac93-607de7180bb2
2025-07-21 12:44:15,533 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/fba9ecca-9337-4efa-b5cc-cd6ee209991f
2025-07-21 12:44:15,545 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/fba9ecca-9337-4efa-b5cc-cd6ee209991f
2025-07-21 12:44:15,556 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/d94ae37c-8350-45f8-b091-712d125422aa
2025-07-21 12:44:15,564 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/d94ae37c-8350-45f8-b091-712d125422aa
2025-07-21 12:44:15,572 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/e410e525-aeca-4b57-8a63-fe95e5c6031b
2025-07-21 12:44:15,580 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-21 12:44:15,580 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/fba9ecca-9337-4efa-b5cc-cd6ee209991f
2025-07-21 12:44:15,591 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/d94ae37c-8350-45f8-b091-712d125422aa
2025-07-21 12:44:15,607 - INFO - Verified VN network id 8 for VN fba9ecca-9337-4efa-b5cc-cd6ee209991f
2025-07-21 12:44:15,607 - INFO - Verifications in API Server for VN ctest-vn-26716272 passed
2025-07-21 12:44:15,607 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/fba9ecca-9337-4efa-b5cc-cd6ee209991f
2025-07-21 12:44:15,618 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/d94ae37c-8350-45f8-b091-712d125422aa
2025-07-21 12:44:15,626 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/d94ae37c-8350-45f8-b091-712d125422aa
2025-07-21 12:44:15,634 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/e410e525-aeca-4b57-8a63-fe95e5c6031b
2025-07-21 12:44:15,648 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-01319833:ctest-vn-26716272', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-01319833', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18134285729381437178', 'uuid-lslong': '13100071292236306719'}, 'enable': 'true', 'created': '2025-07-21T12:44:13', 'last-modified': '2025-07-21T12:44:14', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.916723'}
2025-07-21 12:44:15,655 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-21 12:44:15,655 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-26716272 passed
2025-07-21 12:44:15,656 - DEBUG - ====Verifying policy data for ctest-vn-26716272 in API_Server ======
2025-07-21 12:44:15,656 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-07-21 12:44:15,661 - DEBUG - Requesting: http://10.0.0.242:8082/domain/cd5aada3-daec-42be-8b0f-2db33554c66c
2025-07-21 12:44:15,674 - DEBUG - Requesting: http://10.0.0.242:8082/project/9f85c8b9-9a65-4c37-ac93-607de7180bb2
2025-07-21 12:44:15,754 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/fba9ecca-9337-4efa-b5cc-cd6ee209991f
2025-07-21 12:44:15,769 - DEBUG - ==>Verifying data for policy with id: 45a11216-0569-4bfd-ac49-f038557f77c1, fqn: ['default-domain', 'ctest-TestBasicPolicy-01319833', 'ctest-policy-allow-all-64191636']
2025-07-21 12:44:15,769 - INFO - VN ctest-vn-26716272 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-21 12:44:15,769 - DEBUG - Verifying the vn in opserver
2025-07-21 12:44:15,769 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-01319833:ctest-vn-26716272 virtual network link through opserver 10.0.0.242
2025-07-21 12:44:15,769 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks
2025-07-21 12:44:16,065 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks
2025-07-21 12:44:16,123 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-01319833:ctest-vn-26716272', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-01319833:ctest-vn-26716272?flat'}
2025-07-21 12:44:16,123 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-01319833:ctest-vn-26716272 is found in opserver
2025-07-21 12:44:16,137 - DEBUG - Do not have enough data to verify VN in agent
2025-07-21 12:44:16,142 - DEBUG - VRF ids for VN ctest-vn-26716272: {}
2025-07-21 12:44:16,142 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-07-21 12:44:16,148 - DEBUG - Requesting: http://10.0.0.242:8082/domain/cd5aada3-daec-42be-8b0f-2db33554c66c
2025-07-21 12:44:16,160 - DEBUG - Requesting: http://10.0.0.242:8082/project/9f85c8b9-9a65-4c37-ac93-607de7180bb2
2025-07-21 12:44:16,242 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/e988aa60-8b68-4c17-9e3c-36c45484fd3b
2025-07-21 12:44:16,259 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/e988aa60-8b68-4c17-9e3c-36c45484fd3b
2025-07-21 12:44:16,269 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/afeaab99-0c0c-4562-9b47-85681e91d94e
2025-07-21 12:44:16,278 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/afeaab99-0c0c-4562-9b47-85681e91d94e
2025-07-21 12:44:16,286 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/45d909f6-07db-4843-b9d7-5a4a3b0782ff
2025-07-21 12:44:16,293 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-21 12:44:16,293 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/e988aa60-8b68-4c17-9e3c-36c45484fd3b
2025-07-21 12:44:16,304 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/afeaab99-0c0c-4562-9b47-85681e91d94e
2025-07-21 12:44:16,320 - INFO - Verified VN network id 9 for VN e988aa60-8b68-4c17-9e3c-36c45484fd3b
2025-07-21 12:44:16,320 - INFO - Verifications in API Server for VN ctest-vn-73067359 passed
2025-07-21 12:44:16,321 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/e988aa60-8b68-4c17-9e3c-36c45484fd3b
2025-07-21 12:44:16,335 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/afeaab99-0c0c-4562-9b47-85681e91d94e
2025-07-21 12:44:16,346 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/afeaab99-0c0c-4562-9b47-85681e91d94e
2025-07-21 12:44:16,356 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/45d909f6-07db-4843-b9d7-5a4a3b0782ff
2025-07-21 12:44:16,374 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-01319833:ctest-vn-73067359', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-01319833', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16827887339302308887', 'uuid-lslong': '11402048573454744891'}, 'enable': 'true', 'created': '2025-07-21T12:44:14', 'last-modified': '2025-07-21T12:44:14', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.466230'}
2025-07-21 12:44:16,382 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-21 12:44:16,382 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-73067359 passed
2025-07-21 12:44:16,382 - DEBUG - ====Verifying policy data for ctest-vn-73067359 in API_Server ======
2025-07-21 12:44:16,382 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-07-21 12:44:16,389 - DEBUG - Requesting: http://10.0.0.242:8082/domain/cd5aada3-daec-42be-8b0f-2db33554c66c
2025-07-21 12:44:16,403 - DEBUG - Requesting: http://10.0.0.242:8082/project/9f85c8b9-9a65-4c37-ac93-607de7180bb2
2025-07-21 12:44:16,478 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/e988aa60-8b68-4c17-9e3c-36c45484fd3b
2025-07-21 12:44:16,488 - DEBUG - ==>Verifying data for policy with id: 45a11216-0569-4bfd-ac49-f038557f77c1, fqn: ['default-domain', 'ctest-TestBasicPolicy-01319833', 'ctest-policy-allow-all-64191636']
2025-07-21 12:44:16,488 - INFO - VN ctest-vn-73067359 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-21 12:44:16,489 - DEBUG - Verifying the vn in opserver
2025-07-21 12:44:16,489 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-01319833:ctest-vn-73067359 virtual network link through opserver 10.0.0.242
2025-07-21 12:44:16,489 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks
2025-07-21 12:44:16,501 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-01319833:ctest-vn-73067359', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-01319833:ctest-vn-73067359?flat'}
2025-07-21 12:44:16,501 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-01319833:ctest-vn-73067359 is found in opserver
2025-07-21 12:44:16,511 - DEBUG - Do not have enough data to verify VN in agent
2025-07-21 12:44:16,518 - DEBUG - VRF ids for VN ctest-vn-73067359: {}
2025-07-21 12:44:16,580 - DEBUG - Services list from nova: [