2025-09-11 12:07:50,508 - INFO - Domain Default found not creating
2025-09-11 12:07:50,665 - INFO - Project ctest-TestBasicPolicy-84307024 not found, creating it
2025-09-11 12:07:51,134 - INFO - Created Project:ctest-TestBasicPolicy-84307024, ID : daa7c02e-e755-4b1f-8f4b-cabdaa6479f2
2025-09-11 12:07:52,729 - INFO - ================================================================================
2025-09-11 12:07:52,729 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-09-11 12:07:52,729 - 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-09-11 12:07:52,992 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with
2025-09-11 12:07:52,992 - INFO - Initial checks done. Running the testcase now
2025-09-11 12:07:52,992 - INFO -
2025-09-11 12:07:53,575 - DEBUG - Response for create_network : {'network': {'id': '5bd064ea-344c-487f-aa48-b64cb476ca45', 'name': 'ctest-vn-77667820', 'tenant_id': 'daa7c02ee7554b1f8f4bcabdaa6479f2', 'project_id': 'daa7c02ee7554b1f8f4bcabdaa6479f2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-84307024', 'ctest-vn-77667820'], 'port_security_enabled': True, 'description': ''}}
2025-09-11 12:07:53,780 - DEBUG - Response for create_subnet : {'subnet': {'id': '8674b152-6c02-4226-9bd4-604201a05e81', 'name': '', 'tenant_id': 'daa7c02ee7554b1f8f4bcabdaa6479f2', 'network_id': '5bd064ea-344c-487f-aa48-b64cb476ca45', 'ip_version': 4, 'cidr': '92.164.144.64/26', 'allocation_pools': [{'start': '92.164.144.66', 'end': '92.164.144.126'}], 'gateway_ip': '92.164.144.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '92.164.144.66', 'tags': [], 'project_id': 'daa7c02ee7554b1f8f4bcabdaa6479f2'}}
2025-09-11 12:07:53,800 - INFO - Created VN ctest-vn-77667820
2025-09-11 12:07:53,853 - DEBUG - VN ctest-vn-77667820 UUID is 5bd064ea-344c-487f-aa48-b64cb476ca45
2025-09-11 12:07:54,156 - DEBUG - Response for create_network : {'network': {'id': 'eac05f9d-aeb2-49cf-8b71-bfbe02d939e0', 'name': 'ctest-vn-23970120', 'tenant_id': 'daa7c02ee7554b1f8f4bcabdaa6479f2', 'project_id': 'daa7c02ee7554b1f8f4bcabdaa6479f2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-84307024', 'ctest-vn-23970120'], 'port_security_enabled': True, 'description': ''}}
2025-09-11 12:07:54,363 - DEBUG - Response for create_subnet : {'subnet': {'id': '6ae1e06a-4ae1-4c2b-9ec9-b998b8a91e48', 'name': '', 'tenant_id': 'daa7c02ee7554b1f8f4bcabdaa6479f2', 'network_id': 'eac05f9d-aeb2-49cf-8b71-bfbe02d939e0', 'ip_version': 4, 'cidr': '179.21.188.192/26', 'allocation_pools': [{'start': '179.21.188.194', 'end': '179.21.188.254'}], 'gateway_ip': '179.21.188.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '179.21.188.194', 'tags': [], 'project_id': 'daa7c02ee7554b1f8f4bcabdaa6479f2'}}
2025-09-11 12:07:54,385 - INFO - Created VN ctest-vn-23970120
2025-09-11 12:07:54,437 - DEBUG - VN ctest-vn-23970120 UUID is eac05f9d-aeb2-49cf-8b71-bfbe02d939e0
2025-09-11 12:07:54,559 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-84307024:ctest-vn-77667820, 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-84307024:ctest-vn-23970120, 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-09-11 12:07:54,874 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5bd064ea-344c-487f-aa48-b64cb476ca45', 'name': 'ctest-vn-77667820', 'tenant_id': 'daa7c02ee7554b1f8f4bcabdaa6479f2', 'project_id': 'daa7c02ee7554b1f8f4bcabdaa6479f2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8674b152-6c02-4226-9bd4-604201a05e81'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-84307024', 'ctest-vn-77667820'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-84307024', 'ctest-policy-allow-all-76430230']], 'subnet_ipam': [{'subnet_cidr': '92.164.144.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-11 12:07:55,108 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'eac05f9d-aeb2-49cf-8b71-bfbe02d939e0', 'name': 'ctest-vn-23970120', 'tenant_id': 'daa7c02ee7554b1f8f4bcabdaa6479f2', 'project_id': 'daa7c02ee7554b1f8f4bcabdaa6479f2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6ae1e06a-4ae1-4c2b-9ec9-b998b8a91e48'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-84307024', 'ctest-vn-23970120'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-84307024', 'ctest-policy-allow-all-76430230']], 'subnet_ipam': [{'subnet_cidr': '179.21.188.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-11 12:07:55,277 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-09-11 12:07:55,612 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-09-11 12:07:55,650 - DEBUG - Requesting: http://10.0.0.254:8082/domain/cd9d092e-c11e-476c-bc01-0f7503265805
2025-09-11 12:07:55,663 - DEBUG - Requesting: http://10.0.0.254:8082/project/daa7c02e-e755-4b1f-8f4b-cabdaa6479f2
2025-09-11 12:07:55,737 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/5bd064ea-344c-487f-aa48-b64cb476ca45
2025-09-11 12:07:55,748 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/5bd064ea-344c-487f-aa48-b64cb476ca45
2025-09-11 12:07:55,758 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/281d3976-9ab1-40f9-9431-217ca4a95e72
2025-09-11 12:07:55,765 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/281d3976-9ab1-40f9-9431-217ca4a95e72
2025-09-11 12:07:55,772 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/8f66f084-ec0d-44a2-a4a8-5644019165bf
2025-09-11 12:07:55,778 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-11 12:07:55,778 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/5bd064ea-344c-487f-aa48-b64cb476ca45
2025-09-11 12:07:55,788 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/281d3976-9ab1-40f9-9431-217ca4a95e72
2025-09-11 12:07:55,803 - INFO - Verified VN network id 11 for VN 5bd064ea-344c-487f-aa48-b64cb476ca45
2025-09-11 12:07:55,803 - INFO - Verifications in API Server for VN ctest-vn-77667820 passed
2025-09-11 12:07:55,803 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/5bd064ea-344c-487f-aa48-b64cb476ca45
2025-09-11 12:07:55,812 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/281d3976-9ab1-40f9-9431-217ca4a95e72
2025-09-11 12:07:55,818 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/281d3976-9ab1-40f9-9431-217ca4a95e72
2025-09-11 12:07:55,825 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/8f66f084-ec0d-44a2-a4a8-5644019165bf
2025-09-11 12:07:55,838 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-84307024:ctest-vn-77667820', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-84307024', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6615898809669798015', 'uuid-lslong': '12270257625332369989'}, 'enable': 'true', 'created': '2025-09-11T12:07:53', 'last-modified': '2025-09-11T12:07:54', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.989480'}
2025-09-11 12:07:55,845 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-11 12:07:55,845 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-77667820 passed
2025-09-11 12:07:55,845 - DEBUG - ====Verifying policy data for ctest-vn-77667820 in API_Server ======
2025-09-11 12:07:55,845 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-09-11 12:07:55,851 - DEBUG - Requesting: http://10.0.0.254:8082/domain/cd9d092e-c11e-476c-bc01-0f7503265805
2025-09-11 12:07:55,863 - DEBUG - Requesting: http://10.0.0.254:8082/project/daa7c02e-e755-4b1f-8f4b-cabdaa6479f2
2025-09-11 12:07:55,932 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/5bd064ea-344c-487f-aa48-b64cb476ca45
2025-09-11 12:07:55,944 - DEBUG - ==>Verifying data for policy with id: 15e94e3a-f010-45e4-951e-5d868b3786b4, fqn: ['default-domain', 'ctest-TestBasicPolicy-84307024', 'ctest-policy-allow-all-76430230']
2025-09-11 12:07:55,944 - INFO - VN ctest-vn-77667820 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-11 12:07:55,944 - DEBUG - Verifying the vn in opserver
2025-09-11 12:07:55,944 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-84307024:ctest-vn-77667820 virtual network link through opserver 10.0.0.254
2025-09-11 12:07:55,944 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-09-11 12:07:56,296 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-09-11 12:07:56,367 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-84307024:ctest-vn-77667820', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-84307024:ctest-vn-77667820?flat'}
2025-09-11 12:07:56,367 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-84307024:ctest-vn-77667820 is found in opserver
2025-09-11 12:07:56,378 - DEBUG - Do not have enough data to verify VN in agent
2025-09-11 12:07:56,382 - DEBUG - VRF ids for VN ctest-vn-77667820: {}
2025-09-11 12:07:56,383 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-09-11 12:07:56,389 - DEBUG - Requesting: http://10.0.0.254:8082/domain/cd9d092e-c11e-476c-bc01-0f7503265805
2025-09-11 12:07:56,402 - DEBUG - Requesting: http://10.0.0.254:8082/project/daa7c02e-e755-4b1f-8f4b-cabdaa6479f2
2025-09-11 12:07:56,471 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/eac05f9d-aeb2-49cf-8b71-bfbe02d939e0
2025-09-11 12:07:56,483 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/eac05f9d-aeb2-49cf-8b71-bfbe02d939e0
2025-09-11 12:07:56,492 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/325a63f6-761b-434d-86cb-92f7899a243e
2025-09-11 12:07:56,498 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/325a63f6-761b-434d-86cb-92f7899a243e
2025-09-11 12:07:56,504 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/244fba68-12d6-484d-8901-0e78df9bdb14
2025-09-11 12:07:56,511 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-11 12:07:56,511 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/eac05f9d-aeb2-49cf-8b71-bfbe02d939e0
2025-09-11 12:07:56,520 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/325a63f6-761b-434d-86cb-92f7899a243e
2025-09-11 12:07:56,531 - INFO - Verified VN network id 12 for VN eac05f9d-aeb2-49cf-8b71-bfbe02d939e0
2025-09-11 12:07:56,531 - INFO - Verifications in API Server for VN ctest-vn-23970120 passed
2025-09-11 12:07:56,532 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/eac05f9d-aeb2-49cf-8b71-bfbe02d939e0
2025-09-11 12:07:56,541 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/325a63f6-761b-434d-86cb-92f7899a243e
2025-09-11 12:07:56,549 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/325a63f6-761b-434d-86cb-92f7899a243e
2025-09-11 12:07:56,556 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/244fba68-12d6-484d-8901-0e78df9bdb14
2025-09-11 12:07:56,566 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-84307024:ctest-vn-23970120', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-84307024', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16915625331249007055', 'uuid-lslong': '10048023066452769248'}, 'enable': 'true', 'created': '2025-09-11T12:07:54', 'last-modified': '2025-09-11T12:07:55', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.478855'}
2025-09-11 12:07:56,571 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-11 12:07:56,573 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-23970120 passed
2025-09-11 12:07:56,573 - DEBUG - ====Verifying policy data for ctest-vn-23970120 in API_Server ======
2025-09-11 12:07:56,573 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-09-11 12:07:56,579 - DEBUG - Requesting: http://10.0.0.254:8082/domain/cd9d092e-c11e-476c-bc01-0f7503265805
2025-09-11 12:07:56,589 - DEBUG - Requesting: http://10.0.0.254:8082/project/daa7c02e-e755-4b1f-8f4b-cabdaa6479f2
2025-09-11 12:07:56,657 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/eac05f9d-aeb2-49cf-8b71-bfbe02d939e0
2025-09-11 12:07:56,667 - DEBUG - ==>Verifying data for policy with id: 15e94e3a-f010-45e4-951e-5d868b3786b4, fqn: ['default-domain', 'ctest-TestBasicPolicy-84307024', 'ctest-policy-allow-all-76430230']
2025-09-11 12:07:56,667 - INFO - VN ctest-vn-23970120 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-11 12:07:56,668 - DEBUG - Verifying the vn in opserver
2025-09-11 12:07:56,668 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-84307024:ctest-vn-23970120 virtual network link through opserver 10.0.0.254
2025-09-11 12:07:56,668 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-09-11 12:07:56,677 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-84307024:ctest-vn-23970120', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-84307024:ctest-vn-23970120?flat'}
2025-09-11 12:07:56,677 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-84307024:ctest-vn-23970120 is found in opserver
2025-09-11 12:07:56,687 - DEBUG - Do not have enough data to verify VN in agent
2025-09-11 12:07:56,691 - DEBUG - VRF ids for VN ctest-vn-23970120: {}
2025-09-11 12:07:56,750 - DEBUG - Services list from nova: [