2026-02-11 17:39:40,024 - INFO - Domain Default found not creating
2026-02-11 17:39:40,210 - INFO - Project ctest-TestBasicPolicy-19237105 not found, creating it
2026-02-11 17:39:40,893 - INFO - Created Project:ctest-TestBasicPolicy-19237105, ID : a94d187d-52f1-40c7-a5ed-fe42db15759a
2026-02-11 17:39:42,569 - INFO - ================================================================================
2026-02-11 17:39:42,569 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-02-11 17:39:42,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
2026-02-11 17:39:42,826 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with
2026-02-11 17:39:42,826 - INFO - Initial checks done. Running the testcase now
2026-02-11 17:39:42,826 - INFO -
2026-02-11 17:39:43,419 - DEBUG - Response for create_network : {'network': {'id': 'b2b1568e-7f8b-4609-8fdb-d4efebf55500', 'name': 'ctest-vn-45637272', 'tenant_id': 'a94d187d52f140c7a5edfe42db15759a', 'project_id': 'a94d187d52f140c7a5edfe42db15759a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-19237105', 'ctest-vn-45637272'], 'port_security_enabled': True, 'description': ''}}
2026-02-11 17:39:43,658 - DEBUG - Response for create_subnet : {'subnet': {'id': 'bcdf59c0-3c12-4605-8bfb-00ccf3fba055', 'name': '', 'tenant_id': 'a94d187d52f140c7a5edfe42db15759a', 'network_id': 'b2b1568e-7f8b-4609-8fdb-d4efebf55500', 'ip_version': 4, 'cidr': '111.167.124.64/26', 'allocation_pools': [{'start': '111.167.124.66', 'end': '111.167.124.126'}], 'gateway_ip': '111.167.124.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '111.167.124.66', 'tags': [], 'project_id': 'a94d187d52f140c7a5edfe42db15759a'}}
2026-02-11 17:39:43,677 - INFO - Created VN ctest-vn-45637272
2026-02-11 17:39:43,731 - DEBUG - VN ctest-vn-45637272 UUID is b2b1568e-7f8b-4609-8fdb-d4efebf55500
2026-02-11 17:39:44,023 - DEBUG - Response for create_network : {'network': {'id': '503173c2-468f-4cb5-8d1d-2230556450f8', 'name': 'ctest-vn-22922073', 'tenant_id': 'a94d187d52f140c7a5edfe42db15759a', 'project_id': 'a94d187d52f140c7a5edfe42db15759a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-19237105', 'ctest-vn-22922073'], 'port_security_enabled': True, 'description': ''}}
2026-02-11 17:39:44,207 - DEBUG - Response for create_subnet : {'subnet': {'id': '2b94b2be-d163-4376-86ae-42ff797c9331', 'name': '', 'tenant_id': 'a94d187d52f140c7a5edfe42db15759a', 'network_id': '503173c2-468f-4cb5-8d1d-2230556450f8', 'ip_version': 4, 'cidr': '21.60.53.0/26', 'allocation_pools': [{'start': '21.60.53.2', 'end': '21.60.53.62'}], 'gateway_ip': '21.60.53.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '21.60.53.2', 'tags': [], 'project_id': 'a94d187d52f140c7a5edfe42db15759a'}}
2026-02-11 17:39:44,231 - INFO - Created VN ctest-vn-22922073
2026-02-11 17:39:44,287 - DEBUG - VN ctest-vn-22922073 UUID is 503173c2-468f-4cb5-8d1d-2230556450f8
2026-02-11 17:39:44,401 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-19237105:ctest-vn-45637272, 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-19237105:ctest-vn-22922073, 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]
2026-02-11 17:39:44,698 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b2b1568e-7f8b-4609-8fdb-d4efebf55500', 'name': 'ctest-vn-45637272', 'tenant_id': 'a94d187d52f140c7a5edfe42db15759a', 'project_id': 'a94d187d52f140c7a5edfe42db15759a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['bcdf59c0-3c12-4605-8bfb-00ccf3fba055'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-19237105', 'ctest-vn-45637272'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-19237105', 'ctest-policy-allow-all-48232738']], 'subnet_ipam': [{'subnet_cidr': '111.167.124.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-02-11 17:39:44,984 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '503173c2-468f-4cb5-8d1d-2230556450f8', 'name': 'ctest-vn-22922073', 'tenant_id': 'a94d187d52f140c7a5edfe42db15759a', 'project_id': 'a94d187d52f140c7a5edfe42db15759a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2b94b2be-d163-4376-86ae-42ff797c9331'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-19237105', 'ctest-vn-22922073'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-19237105', 'ctest-policy-allow-all-48232738']], 'subnet_ipam': [{'subnet_cidr': '21.60.53.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-02-11 17:39:45,136 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-02-11 17:39:45,454 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-02-11 17:39:45,490 - DEBUG - Requesting: http://10.0.0.50:8082/domain/555009cd-daff-485d-aa32-2035c124d5c9
2026-02-11 17:39:45,503 - DEBUG - Requesting: http://10.0.0.50:8082/project/a94d187d-52f1-40c7-a5ed-fe42db15759a
2026-02-11 17:39:45,575 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/b2b1568e-7f8b-4609-8fdb-d4efebf55500
2026-02-11 17:39:45,585 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/b2b1568e-7f8b-4609-8fdb-d4efebf55500
2026-02-11 17:39:45,595 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/3a4d849f-f421-464b-a760-870c2d56ddc8
2026-02-11 17:39:45,603 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/3a4d849f-f421-464b-a760-870c2d56ddc8
2026-02-11 17:39:45,610 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/9e2ae63e-1ee3-4bcd-a010-0760c9e00d7c
2026-02-11 17:39:45,617 - DEBUG - Route Targets: ['target:64512:8000004']
2026-02-11 17:39:45,617 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/b2b1568e-7f8b-4609-8fdb-d4efebf55500
2026-02-11 17:39:45,627 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/3a4d849f-f421-464b-a760-870c2d56ddc8
2026-02-11 17:39:45,642 - INFO - Verified VN network id 9 for VN b2b1568e-7f8b-4609-8fdb-d4efebf55500
2026-02-11 17:39:45,642 - INFO - Verifications in API Server for VN ctest-vn-45637272 passed
2026-02-11 17:39:45,643 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/b2b1568e-7f8b-4609-8fdb-d4efebf55500
2026-02-11 17:39:45,659 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/3a4d849f-f421-464b-a760-870c2d56ddc8
2026-02-11 17:39:45,667 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/3a4d849f-f421-464b-a760-870c2d56ddc8
2026-02-11 17:39:45,675 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/9e2ae63e-1ee3-4bcd-a010-0760c9e00d7c
2026-02-11 17:39:45,689 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-19237105:ctest-vn-45637272', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-19237105', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12876167979654137353', 'uuid-lslong': '10366113094244324608'}, 'enable': 'true', 'created': '2026-02-11T17:39:43', 'last-modified': '2026-02-11T17:39:44', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.011788'}
2026-02-11 17:39:45,696 - DEBUG - Route Targets: ['target:64512:8000004']
2026-02-11 17:39:45,696 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-45637272 passed
2026-02-11 17:39:45,696 - DEBUG - ====Verifying policy data for ctest-vn-45637272 in API_Server ======
2026-02-11 17:39:45,697 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-02-11 17:39:45,702 - DEBUG - Requesting: http://10.0.0.50:8082/domain/555009cd-daff-485d-aa32-2035c124d5c9
2026-02-11 17:39:45,713 - DEBUG - Requesting: http://10.0.0.50:8082/project/a94d187d-52f1-40c7-a5ed-fe42db15759a
2026-02-11 17:39:45,791 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/b2b1568e-7f8b-4609-8fdb-d4efebf55500
2026-02-11 17:39:45,800 - DEBUG - ==>Verifying data for policy with id: 7a7823f3-28bb-44c5-9b5e-2ead6b0189a6, fqn: ['default-domain', 'ctest-TestBasicPolicy-19237105', 'ctest-policy-allow-all-48232738']
2026-02-11 17:39:45,800 - INFO - VN ctest-vn-45637272 Policy verification: verify_vn_policy_in_api_server, status: True
2026-02-11 17:39:45,800 - DEBUG - Verifying the vn in opserver
2026-02-11 17:39:45,800 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-19237105:ctest-vn-45637272 virtual network link through opserver 10.0.0.50
2026-02-11 17:39:45,800 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-02-11 17:39:46,100 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-02-11 17:39:46,481 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-19237105:ctest-vn-45637272', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-19237105:ctest-vn-45637272?flat'}
2026-02-11 17:39:46,481 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-19237105:ctest-vn-45637272 is found in opserver
2026-02-11 17:39:46,494 - DEBUG - Do not have enough data to verify VN in agent
2026-02-11 17:39:46,499 - DEBUG - VRF ids for VN ctest-vn-45637272: {}
2026-02-11 17:39:46,499 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-02-11 17:39:46,506 - DEBUG - Requesting: http://10.0.0.50:8082/domain/555009cd-daff-485d-aa32-2035c124d5c9
2026-02-11 17:39:46,516 - DEBUG - Requesting: http://10.0.0.50:8082/project/a94d187d-52f1-40c7-a5ed-fe42db15759a
2026-02-11 17:39:46,591 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/503173c2-468f-4cb5-8d1d-2230556450f8
2026-02-11 17:39:46,605 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/503173c2-468f-4cb5-8d1d-2230556450f8
2026-02-11 17:39:46,616 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/4b5e3c15-3be0-41ad-94cf-795e5714db1b
2026-02-11 17:39:46,623 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/4b5e3c15-3be0-41ad-94cf-795e5714db1b
2026-02-11 17:39:46,631 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/f6d1641c-fe45-472d-908d-163f2461bffb
2026-02-11 17:39:46,638 - DEBUG - Route Targets: ['target:64512:8000005']
2026-02-11 17:39:46,638 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/503173c2-468f-4cb5-8d1d-2230556450f8
2026-02-11 17:39:46,647 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/4b5e3c15-3be0-41ad-94cf-795e5714db1b
2026-02-11 17:39:46,665 - INFO - Verified VN network id 10 for VN 503173c2-468f-4cb5-8d1d-2230556450f8
2026-02-11 17:39:46,665 - INFO - Verifications in API Server for VN ctest-vn-22922073 passed
2026-02-11 17:39:46,665 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/503173c2-468f-4cb5-8d1d-2230556450f8
2026-02-11 17:39:46,674 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/4b5e3c15-3be0-41ad-94cf-795e5714db1b
2026-02-11 17:39:46,682 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/4b5e3c15-3be0-41ad-94cf-795e5714db1b
2026-02-11 17:39:46,696 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/f6d1641c-fe45-472d-908d-163f2461bffb
2026-02-11 17:39:46,717 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-19237105:ctest-vn-22922073', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-19237105', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5778527075137703093', 'uuid-lslong': '10168321124658860280'}, 'enable': 'true', 'created': '2026-02-11T17:39:43', 'last-modified': '2026-02-11T17:39:44', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.800903'}
2026-02-11 17:39:46,731 - DEBUG - Route Targets: ['target:64512:8000005']
2026-02-11 17:39:46,731 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-22922073 passed
2026-02-11 17:39:46,732 - DEBUG - ====Verifying policy data for ctest-vn-22922073 in API_Server ======
2026-02-11 17:39:46,732 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-02-11 17:39:46,737 - DEBUG - Requesting: http://10.0.0.50:8082/domain/555009cd-daff-485d-aa32-2035c124d5c9
2026-02-11 17:39:46,749 - DEBUG - Requesting: http://10.0.0.50:8082/project/a94d187d-52f1-40c7-a5ed-fe42db15759a
2026-02-11 17:39:46,824 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/503173c2-468f-4cb5-8d1d-2230556450f8
2026-02-11 17:39:46,835 - DEBUG - ==>Verifying data for policy with id: 7a7823f3-28bb-44c5-9b5e-2ead6b0189a6, fqn: ['default-domain', 'ctest-TestBasicPolicy-19237105', 'ctest-policy-allow-all-48232738']
2026-02-11 17:39:46,835 - INFO - VN ctest-vn-22922073 Policy verification: verify_vn_policy_in_api_server, status: True
2026-02-11 17:39:46,836 - DEBUG - Verifying the vn in opserver
2026-02-11 17:39:46,836 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-19237105:ctest-vn-22922073 virtual network link through opserver 10.0.0.50
2026-02-11 17:39:46,836 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-02-11 17:39:46,845 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-19237105:ctest-vn-22922073', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-19237105:ctest-vn-22922073?flat'}
2026-02-11 17:39:46,846 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-19237105:ctest-vn-22922073 is found in opserver
2026-02-11 17:39:46,856 - DEBUG - Do not have enough data to verify VN in agent
2026-02-11 17:39:46,862 - DEBUG - VRF ids for VN ctest-vn-22922073: {}
2026-02-11 17:39:46,928 - DEBUG - Services list from nova: [