2026-02-09 17:01:28,853 - INFO - Domain Default found not creating
2026-02-09 17:01:29,016 - INFO - Project ctest-TestBasicPolicy-30449690 not found, creating it
2026-02-09 17:01:29,474 - INFO - Created Project:ctest-TestBasicPolicy-30449690, ID : e5c5778e-70bb-4501-aa99-910006cac10e
2026-02-09 17:01:30,929 - INFO - ================================================================================
2026-02-09 17:01:30,929 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-02-09 17:01:30,929 - 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-09 17:01:31,186 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.17': '0'}} with
2026-02-09 17:01:31,186 - INFO - Initial checks done. Running the testcase now
2026-02-09 17:01:31,186 - INFO -
2026-02-09 17:01:31,788 - DEBUG - Response for create_network : {'network': {'id': '9701644b-a110-41ca-a2d2-3e867819d493', 'name': 'ctest-vn-91472339', 'tenant_id': 'e5c5778e70bb4501aa99910006cac10e', 'project_id': 'e5c5778e70bb4501aa99910006cac10e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-30449690', 'ctest-vn-91472339'], 'port_security_enabled': True, 'description': ''}}
2026-02-09 17:01:31,998 - DEBUG - Response for create_subnet : {'subnet': {'id': '9c100943-96e2-4c14-9fdc-e042c1ecc70c', 'name': '', 'tenant_id': 'e5c5778e70bb4501aa99910006cac10e', 'network_id': '9701644b-a110-41ca-a2d2-3e867819d493', 'ip_version': 4, 'cidr': '56.71.235.128/26', 'allocation_pools': [{'start': '56.71.235.130', 'end': '56.71.235.190'}], 'gateway_ip': '56.71.235.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '56.71.235.130', 'tags': [], 'project_id': 'e5c5778e70bb4501aa99910006cac10e'}}
2026-02-09 17:01:32,019 - INFO - Created VN ctest-vn-91472339
2026-02-09 17:01:32,072 - DEBUG - VN ctest-vn-91472339 UUID is 9701644b-a110-41ca-a2d2-3e867819d493
2026-02-09 17:01:32,401 - DEBUG - Response for create_network : {'network': {'id': '4617a081-aa55-4069-a34f-85d0d190489b', 'name': 'ctest-vn-63211714', 'tenant_id': 'e5c5778e70bb4501aa99910006cac10e', 'project_id': 'e5c5778e70bb4501aa99910006cac10e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-30449690', 'ctest-vn-63211714'], 'port_security_enabled': True, 'description': ''}}
2026-02-09 17:01:32,615 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd7669fc8-af8c-4765-894c-de5b190e556a', 'name': '', 'tenant_id': 'e5c5778e70bb4501aa99910006cac10e', 'network_id': '4617a081-aa55-4069-a34f-85d0d190489b', 'ip_version': 4, 'cidr': '192.218.178.64/26', 'allocation_pools': [{'start': '192.218.178.66', 'end': '192.218.178.126'}], 'gateway_ip': '192.218.178.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '192.218.178.66', 'tags': [], 'project_id': 'e5c5778e70bb4501aa99910006cac10e'}}
2026-02-09 17:01:32,633 - INFO - Created VN ctest-vn-63211714
2026-02-09 17:01:32,684 - DEBUG - VN ctest-vn-63211714 UUID is 4617a081-aa55-4069-a34f-85d0d190489b
2026-02-09 17:01:32,795 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-30449690:ctest-vn-91472339, 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-30449690:ctest-vn-63211714, 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-09 17:01:33,090 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9701644b-a110-41ca-a2d2-3e867819d493', 'name': 'ctest-vn-91472339', 'tenant_id': 'e5c5778e70bb4501aa99910006cac10e', 'project_id': 'e5c5778e70bb4501aa99910006cac10e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9c100943-96e2-4c14-9fdc-e042c1ecc70c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-30449690', 'ctest-vn-91472339'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-30449690', 'ctest-policy-allow-all-50257218']], 'subnet_ipam': [{'subnet_cidr': '56.71.235.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-02-09 17:01:33,366 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4617a081-aa55-4069-a34f-85d0d190489b', 'name': 'ctest-vn-63211714', 'tenant_id': 'e5c5778e70bb4501aa99910006cac10e', 'project_id': 'e5c5778e70bb4501aa99910006cac10e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d7669fc8-af8c-4765-894c-de5b190e556a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-30449690', 'ctest-vn-63211714'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-30449690', 'ctest-policy-allow-all-50257218']], 'subnet_ipam': [{'subnet_cidr': '192.218.178.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-02-09 17:01:33,508 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-02-09 17:01:33,801 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-02-09 17:01:33,834 - DEBUG - Requesting: http://10.0.0.22:8082/domain/5eb5de91-00e3-4cee-a993-b6d4ac99880c
2026-02-09 17:01:33,845 - DEBUG - Requesting: http://10.0.0.22:8082/project/e5c5778e-70bb-4501-aa99-910006cac10e
2026-02-09 17:01:33,921 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/9701644b-a110-41ca-a2d2-3e867819d493
2026-02-09 17:01:33,933 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/9701644b-a110-41ca-a2d2-3e867819d493
2026-02-09 17:01:33,944 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/2d7ead1d-e985-4b0d-a50c-45dfef068855
2026-02-09 17:01:33,952 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/2d7ead1d-e985-4b0d-a50c-45dfef068855
2026-02-09 17:01:33,959 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/da135d62-4d2e-416a-af96-8e7b05f38976
2026-02-09 17:01:33,965 - DEBUG - Route Targets: ['target:64512:8000004']
2026-02-09 17:01:33,965 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/9701644b-a110-41ca-a2d2-3e867819d493
2026-02-09 17:01:33,973 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/2d7ead1d-e985-4b0d-a50c-45dfef068855
2026-02-09 17:01:33,986 - INFO - Verified VN network id 11 for VN 9701644b-a110-41ca-a2d2-3e867819d493
2026-02-09 17:01:33,986 - INFO - Verifications in API Server for VN ctest-vn-91472339 passed
2026-02-09 17:01:33,986 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/9701644b-a110-41ca-a2d2-3e867819d493
2026-02-09 17:01:33,995 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/2d7ead1d-e985-4b0d-a50c-45dfef068855
2026-02-09 17:01:34,003 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/2d7ead1d-e985-4b0d-a50c-45dfef068855
2026-02-09 17:01:34,010 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/da135d62-4d2e-416a-af96-8e7b05f38976
2026-02-09 17:01:34,024 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-30449690:ctest-vn-91472339', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-30449690', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10881088450691350986', 'uuid-lslong': '11732508726515061907'}, 'enable': 'true', 'created': '2026-02-09T17:01:31', 'last-modified': '2026-02-09T17:01:33', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.955274'}
2026-02-09 17:01:34,030 - DEBUG - Route Targets: ['target:64512:8000004']
2026-02-09 17:01:34,030 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-91472339 passed
2026-02-09 17:01:34,031 - DEBUG - ====Verifying policy data for ctest-vn-91472339 in API_Server ======
2026-02-09 17:01:34,031 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-02-09 17:01:34,036 - DEBUG - Requesting: http://10.0.0.22:8082/domain/5eb5de91-00e3-4cee-a993-b6d4ac99880c
2026-02-09 17:01:34,047 - DEBUG - Requesting: http://10.0.0.22:8082/project/e5c5778e-70bb-4501-aa99-910006cac10e
2026-02-09 17:01:34,117 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/9701644b-a110-41ca-a2d2-3e867819d493
2026-02-09 17:01:34,126 - DEBUG - ==>Verifying data for policy with id: 4f356cd4-57f1-4ac0-bea2-b2048da4817d, fqn: ['default-domain', 'ctest-TestBasicPolicy-30449690', 'ctest-policy-allow-all-50257218']
2026-02-09 17:01:34,126 - INFO - VN ctest-vn-91472339 Policy verification: verify_vn_policy_in_api_server, status: True
2026-02-09 17:01:34,126 - DEBUG - Verifying the vn in opserver
2026-02-09 17:01:34,126 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-30449690:ctest-vn-91472339 virtual network link through opserver 10.0.0.22
2026-02-09 17:01:34,126 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2026-02-09 17:01:34,417 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2026-02-09 17:01:34,483 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-30449690:ctest-vn-91472339', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-30449690:ctest-vn-91472339?flat'}
2026-02-09 17:01:34,483 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-30449690:ctest-vn-91472339 is found in opserver
2026-02-09 17:01:34,492 - DEBUG - Do not have enough data to verify VN in agent
2026-02-09 17:01:34,496 - DEBUG - VRF ids for VN ctest-vn-91472339: {}
2026-02-09 17:01:34,496 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-02-09 17:01:34,501 - DEBUG - Requesting: http://10.0.0.22:8082/domain/5eb5de91-00e3-4cee-a993-b6d4ac99880c
2026-02-09 17:01:34,511 - DEBUG - Requesting: http://10.0.0.22:8082/project/e5c5778e-70bb-4501-aa99-910006cac10e
2026-02-09 17:01:34,586 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/4617a081-aa55-4069-a34f-85d0d190489b
2026-02-09 17:01:34,600 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/4617a081-aa55-4069-a34f-85d0d190489b
2026-02-09 17:01:34,609 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/ba264ec3-3f48-4e04-823d-5e0047022e89
2026-02-09 17:01:34,616 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/ba264ec3-3f48-4e04-823d-5e0047022e89
2026-02-09 17:01:34,621 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/a363decd-fef7-45ed-b001-0e7a62c66fad
2026-02-09 17:01:34,626 - DEBUG - Route Targets: ['target:64512:8000005']
2026-02-09 17:01:34,627 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/4617a081-aa55-4069-a34f-85d0d190489b
2026-02-09 17:01:34,634 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/ba264ec3-3f48-4e04-823d-5e0047022e89
2026-02-09 17:01:34,646 - INFO - Verified VN network id 12 for VN 4617a081-aa55-4069-a34f-85d0d190489b
2026-02-09 17:01:34,646 - INFO - Verifications in API Server for VN ctest-vn-63211714 passed
2026-02-09 17:01:34,647 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/4617a081-aa55-4069-a34f-85d0d190489b
2026-02-09 17:01:34,656 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/ba264ec3-3f48-4e04-823d-5e0047022e89
2026-02-09 17:01:34,663 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/ba264ec3-3f48-4e04-823d-5e0047022e89
2026-02-09 17:01:34,671 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/a363decd-fef7-45ed-b001-0e7a62c66fad
2026-02-09 17:01:34,682 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-30449690:ctest-vn-63211714', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-30449690', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5050681985888239721', 'uuid-lslong': '11767771483257981083'}, 'enable': 'true', 'created': '2026-02-09T17:01:32', 'last-modified': '2026-02-09T17:01:33', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.384437'}
2026-02-09 17:01:34,689 - DEBUG - Route Targets: ['target:64512:8000005']
2026-02-09 17:01:34,689 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-63211714 passed
2026-02-09 17:01:34,689 - DEBUG - ====Verifying policy data for ctest-vn-63211714 in API_Server ======
2026-02-09 17:01:34,689 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2026-02-09 17:01:34,695 - DEBUG - Requesting: http://10.0.0.22:8082/domain/5eb5de91-00e3-4cee-a993-b6d4ac99880c
2026-02-09 17:01:34,706 - DEBUG - Requesting: http://10.0.0.22:8082/project/e5c5778e-70bb-4501-aa99-910006cac10e
2026-02-09 17:01:34,775 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/4617a081-aa55-4069-a34f-85d0d190489b
2026-02-09 17:01:34,783 - DEBUG - ==>Verifying data for policy with id: 4f356cd4-57f1-4ac0-bea2-b2048da4817d, fqn: ['default-domain', 'ctest-TestBasicPolicy-30449690', 'ctest-policy-allow-all-50257218']
2026-02-09 17:01:34,783 - INFO - VN ctest-vn-63211714 Policy verification: verify_vn_policy_in_api_server, status: True
2026-02-09 17:01:34,783 - DEBUG - Verifying the vn in opserver
2026-02-09 17:01:34,783 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-30449690:ctest-vn-63211714 virtual network link through opserver 10.0.0.22
2026-02-09 17:01:34,783 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2026-02-09 17:01:34,792 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-30449690:ctest-vn-63211714', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-30449690:ctest-vn-63211714?flat'}
2026-02-09 17:01:34,792 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-30449690:ctest-vn-63211714 is found in opserver
2026-02-09 17:01:34,801 - DEBUG - Do not have enough data to verify VN in agent
2026-02-09 17:01:34,805 - DEBUG - VRF ids for VN ctest-vn-63211714: {}
2026-02-09 17:01:34,858 - DEBUG - Services list from nova: [