2026-02-09 02:09:39,749 - INFO - Domain Default found not creating
2026-02-09 02:09:39,910 - INFO - Project ctest-TestBasicPolicy-16031842 not found, creating it
2026-02-09 02:09:40,351 - INFO - Created Project:ctest-TestBasicPolicy-16031842, ID : dc68969e-8fe9-4254-87ac-1ad2b1ffd5a9
2026-02-09 02:09:41,788 - INFO - ================================================================================
2026-02-09 02:09:41,788 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-02-09 02:09:41,789 - 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 02:09:42,043 - DEBUG - Nothing to compare xmpp stats {'10.0.0.240': {'10.20.0.129': '0'}} with
2026-02-09 02:09:42,043 - INFO - Initial checks done. Running the testcase now
2026-02-09 02:09:42,044 - INFO -
2026-02-09 02:09:42,584 - DEBUG - Response for create_network : {'network': {'id': 'bd4faf2e-5ae6-47ea-a283-3b783275e22c', 'name': 'ctest-vn-71092617', 'tenant_id': 'dc68969e8fe9425487ac1ad2b1ffd5a9', 'project_id': 'dc68969e8fe9425487ac1ad2b1ffd5a9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-16031842', 'ctest-vn-71092617'], 'port_security_enabled': True, 'description': ''}}
2026-02-09 02:09:42,798 - DEBUG - Response for create_subnet : {'subnet': {'id': '24deb62c-ca78-43a8-8b22-5484caffc60e', 'name': '', 'tenant_id': 'dc68969e8fe9425487ac1ad2b1ffd5a9', 'network_id': 'bd4faf2e-5ae6-47ea-a283-3b783275e22c', 'ip_version': 4, 'cidr': '78.158.66.64/26', 'allocation_pools': [{'start': '78.158.66.66', 'end': '78.158.66.126'}], 'gateway_ip': '78.158.66.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '78.158.66.66', 'tags': [], 'project_id': 'dc68969e8fe9425487ac1ad2b1ffd5a9'}}
2026-02-09 02:09:42,815 - INFO - Created VN ctest-vn-71092617
2026-02-09 02:09:42,866 - DEBUG - VN ctest-vn-71092617 UUID is bd4faf2e-5ae6-47ea-a283-3b783275e22c
2026-02-09 02:09:43,175 - DEBUG - Response for create_network : {'network': {'id': '955d1dbc-2e65-454f-b234-9460cdb1d680', 'name': 'ctest-vn-02701849', 'tenant_id': 'dc68969e8fe9425487ac1ad2b1ffd5a9', 'project_id': 'dc68969e8fe9425487ac1ad2b1ffd5a9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-16031842', 'ctest-vn-02701849'], 'port_security_enabled': True, 'description': ''}}
2026-02-09 02:09:43,327 - DEBUG - Response for create_subnet : {'subnet': {'id': '564ee12e-2977-429d-9868-8509ca031a91', 'name': '', 'tenant_id': 'dc68969e8fe9425487ac1ad2b1ffd5a9', 'network_id': '955d1dbc-2e65-454f-b234-9460cdb1d680', 'ip_version': 4, 'cidr': '33.239.38.0/26', 'allocation_pools': [{'start': '33.239.38.2', 'end': '33.239.38.62'}], 'gateway_ip': '33.239.38.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '33.239.38.2', 'tags': [], 'project_id': 'dc68969e8fe9425487ac1ad2b1ffd5a9'}}
2026-02-09 02:09:43,343 - INFO - Created VN ctest-vn-02701849
2026-02-09 02:09:43,394 - DEBUG - VN ctest-vn-02701849 UUID is 955d1dbc-2e65-454f-b234-9460cdb1d680
2026-02-09 02:09:43,538 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-16031842:ctest-vn-71092617, 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-16031842:ctest-vn-02701849, 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 02:09:43,816 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'bd4faf2e-5ae6-47ea-a283-3b783275e22c', 'name': 'ctest-vn-71092617', 'tenant_id': 'dc68969e8fe9425487ac1ad2b1ffd5a9', 'project_id': 'dc68969e8fe9425487ac1ad2b1ffd5a9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['24deb62c-ca78-43a8-8b22-5484caffc60e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-16031842', 'ctest-vn-71092617'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-16031842', 'ctest-policy-allow-all-90323485']], 'subnet_ipam': [{'subnet_cidr': '78.158.66.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-02-09 02:09:44,034 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '955d1dbc-2e65-454f-b234-9460cdb1d680', 'name': 'ctest-vn-02701849', 'tenant_id': 'dc68969e8fe9425487ac1ad2b1ffd5a9', 'project_id': 'dc68969e8fe9425487ac1ad2b1ffd5a9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['564ee12e-2977-429d-9868-8509ca031a91'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-16031842', 'ctest-vn-02701849'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-16031842', 'ctest-policy-allow-all-90323485']], 'subnet_ipam': [{'subnet_cidr': '33.239.38.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-02-09 02:09:44,194 - DEBUG - Requesting: http://10.0.0.240:8082/domains
2026-02-09 02:09:44,489 - DEBUG - Requesting: http://10.0.0.240:8082/domains
2026-02-09 02:09:44,519 - DEBUG - Requesting: http://10.0.0.240:8082/domain/7470f268-9049-41c4-9352-79f6bcd272f1
2026-02-09 02:09:44,533 - DEBUG - Requesting: http://10.0.0.240:8082/project/dc68969e-8fe9-4254-87ac-1ad2b1ffd5a9
2026-02-09 02:09:44,610 - DEBUG - Requesting: http://10.0.0.240:8082/virtual-network/bd4faf2e-5ae6-47ea-a283-3b783275e22c
2026-02-09 02:09:44,621 - DEBUG - Requesting: http://10.0.0.240:8082/virtual-network/bd4faf2e-5ae6-47ea-a283-3b783275e22c
2026-02-09 02:09:44,632 - DEBUG - Requesting: http://10.0.0.240:8082/routing-instance/aadeab92-01fa-4ad8-aa4b-b7ece1ee82ed
2026-02-09 02:09:44,640 - DEBUG - Requesting: http://10.0.0.240:8082/routing-instance/aadeab92-01fa-4ad8-aa4b-b7ece1ee82ed
2026-02-09 02:09:44,648 - DEBUG - Requesting: http://10.0.0.240:8082/route-target/e14601ad-bd61-4eca-a1df-e3a47df42596
2026-02-09 02:09:44,654 - DEBUG - Route Targets: ['target:64512:8000004']
2026-02-09 02:09:44,654 - DEBUG - Requesting: http://10.0.0.240:8082/virtual-network/bd4faf2e-5ae6-47ea-a283-3b783275e22c
2026-02-09 02:09:44,665 - DEBUG - Requesting: http://10.0.0.240:8082/routing-instance/aadeab92-01fa-4ad8-aa4b-b7ece1ee82ed
2026-02-09 02:09:44,680 - INFO - Verified VN network id 11 for VN bd4faf2e-5ae6-47ea-a283-3b783275e22c
2026-02-09 02:09:44,680 - INFO - Verifications in API Server for VN ctest-vn-71092617 passed
2026-02-09 02:09:44,680 - DEBUG - Requesting: http://10.0.0.240:8082/virtual-network/bd4faf2e-5ae6-47ea-a283-3b783275e22c
2026-02-09 02:09:44,690 - DEBUG - Requesting: http://10.0.0.240:8082/routing-instance/aadeab92-01fa-4ad8-aa4b-b7ece1ee82ed
2026-02-09 02:09:44,698 - DEBUG - Requesting: http://10.0.0.240:8082/routing-instance/aadeab92-01fa-4ad8-aa4b-b7ece1ee82ed
2026-02-09 02:09:44,706 - DEBUG - Requesting: http://10.0.0.240:8082/route-target/e14601ad-bd61-4eca-a1df-e3a47df42596
2026-02-09 02:09:44,719 - DEBUG - Control-node 10.0.0.240 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-16031842:ctest-vn-71092617', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-16031842', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13641314409956919274', 'uuid-lslong': '11710268843522122284'}, 'enable': 'true', 'created': '2026-02-09T02:09:42', 'last-modified': '2026-02-09T02:09:43', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.921334'}
2026-02-09 02:09:44,726 - DEBUG - Route Targets: ['target:64512:8000004']
2026-02-09 02:09:44,727 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-71092617 passed
2026-02-09 02:09:44,727 - DEBUG - ====Verifying policy data for ctest-vn-71092617 in API_Server ======
2026-02-09 02:09:44,727 - DEBUG - Requesting: http://10.0.0.240:8082/domains
2026-02-09 02:09:44,733 - DEBUG - Requesting: http://10.0.0.240:8082/domain/7470f268-9049-41c4-9352-79f6bcd272f1
2026-02-09 02:09:44,745 - DEBUG - Requesting: http://10.0.0.240:8082/project/dc68969e-8fe9-4254-87ac-1ad2b1ffd5a9
2026-02-09 02:09:44,818 - DEBUG - Requesting: http://10.0.0.240:8082/virtual-network/bd4faf2e-5ae6-47ea-a283-3b783275e22c
2026-02-09 02:09:44,827 - DEBUG - ==>Verifying data for policy with id: 8a410454-375e-4072-8244-ee9e93f3af0d, fqn: ['default-domain', 'ctest-TestBasicPolicy-16031842', 'ctest-policy-allow-all-90323485']
2026-02-09 02:09:44,827 - INFO - VN ctest-vn-71092617 Policy verification: verify_vn_policy_in_api_server, status: True
2026-02-09 02:09:44,827 - DEBUG - Verifying the vn in opserver
2026-02-09 02:09:44,827 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-16031842:ctest-vn-71092617 virtual network link through opserver 10.0.0.240
2026-02-09 02:09:44,827 - DEBUG - Requesting: http://10.0.0.240:8081/analytics/uves/virtual-networks
2026-02-09 02:09:45,124 - DEBUG - Requesting: http://10.0.0.240:8081/analytics/uves/virtual-networks
2026-02-09 02:09:45,179 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-16031842:ctest-vn-71092617', 'href': 'http://10.0.0.240:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-16031842:ctest-vn-71092617?flat'}
2026-02-09 02:09:45,179 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-16031842:ctest-vn-71092617 is found in opserver
2026-02-09 02:09:45,188 - DEBUG - Do not have enough data to verify VN in agent
2026-02-09 02:09:45,192 - DEBUG - VRF ids for VN ctest-vn-71092617: {}
2026-02-09 02:09:45,192 - DEBUG - Requesting: http://10.0.0.240:8082/domains
2026-02-09 02:09:45,196 - DEBUG - Requesting: http://10.0.0.240:8082/domain/7470f268-9049-41c4-9352-79f6bcd272f1
2026-02-09 02:09:45,206 - DEBUG - Requesting: http://10.0.0.240:8082/project/dc68969e-8fe9-4254-87ac-1ad2b1ffd5a9
2026-02-09 02:09:45,273 - DEBUG - Requesting: http://10.0.0.240:8082/virtual-network/955d1dbc-2e65-454f-b234-9460cdb1d680
2026-02-09 02:09:45,282 - DEBUG - Requesting: http://10.0.0.240:8082/virtual-network/955d1dbc-2e65-454f-b234-9460cdb1d680
2026-02-09 02:09:45,290 - DEBUG - Requesting: http://10.0.0.240:8082/routing-instance/b07b4344-5b25-4712-b42c-ad9f47786da4
2026-02-09 02:09:45,295 - DEBUG - Requesting: http://10.0.0.240:8082/routing-instance/b07b4344-5b25-4712-b42c-ad9f47786da4
2026-02-09 02:09:45,300 - DEBUG - Requesting: http://10.0.0.240:8082/route-target/373eb2a2-d10c-4d0e-94e8-83f1f5fa705e
2026-02-09 02:09:45,306 - DEBUG - Route Targets: ['target:64512:8000005']
2026-02-09 02:09:45,306 - DEBUG - Requesting: http://10.0.0.240:8082/virtual-network/955d1dbc-2e65-454f-b234-9460cdb1d680
2026-02-09 02:09:45,312 - DEBUG - Requesting: http://10.0.0.240:8082/routing-instance/b07b4344-5b25-4712-b42c-ad9f47786da4
2026-02-09 02:09:45,323 - INFO - Verified VN network id 12 for VN 955d1dbc-2e65-454f-b234-9460cdb1d680
2026-02-09 02:09:45,323 - INFO - Verifications in API Server for VN ctest-vn-02701849 passed
2026-02-09 02:09:45,323 - DEBUG - Requesting: http://10.0.0.240:8082/virtual-network/955d1dbc-2e65-454f-b234-9460cdb1d680
2026-02-09 02:09:45,330 - DEBUG - Requesting: http://10.0.0.240:8082/routing-instance/b07b4344-5b25-4712-b42c-ad9f47786da4
2026-02-09 02:09:45,336 - DEBUG - Requesting: http://10.0.0.240:8082/routing-instance/b07b4344-5b25-4712-b42c-ad9f47786da4
2026-02-09 02:09:45,343 - DEBUG - Requesting: http://10.0.0.240:8082/route-target/373eb2a2-d10c-4d0e-94e8-83f1f5fa705e
2026-02-09 02:09:45,354 - DEBUG - Control-node 10.0.0.240 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-16031842:ctest-vn-02701849', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-16031842', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10762791378554799439', 'uuid-lslong': '12841051581028882048'}, 'enable': 'true', 'created': '2026-02-09T02:09:43', 'last-modified': '2026-02-09T02:09:44', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.339277'}
2026-02-09 02:09:45,359 - DEBUG - Route Targets: ['target:64512:8000005']
2026-02-09 02:09:45,359 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-02701849 passed
2026-02-09 02:09:45,359 - DEBUG - ====Verifying policy data for ctest-vn-02701849 in API_Server ======
2026-02-09 02:09:45,359 - DEBUG - Requesting: http://10.0.0.240:8082/domains
2026-02-09 02:09:45,365 - DEBUG - Requesting: http://10.0.0.240:8082/domain/7470f268-9049-41c4-9352-79f6bcd272f1
2026-02-09 02:09:45,378 - DEBUG - Requesting: http://10.0.0.240:8082/project/dc68969e-8fe9-4254-87ac-1ad2b1ffd5a9
2026-02-09 02:09:45,446 - DEBUG - Requesting: http://10.0.0.240:8082/virtual-network/955d1dbc-2e65-454f-b234-9460cdb1d680
2026-02-09 02:09:45,456 - DEBUG - ==>Verifying data for policy with id: 8a410454-375e-4072-8244-ee9e93f3af0d, fqn: ['default-domain', 'ctest-TestBasicPolicy-16031842', 'ctest-policy-allow-all-90323485']
2026-02-09 02:09:45,456 - INFO - VN ctest-vn-02701849 Policy verification: verify_vn_policy_in_api_server, status: True
2026-02-09 02:09:45,456 - DEBUG - Verifying the vn in opserver
2026-02-09 02:09:45,456 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-16031842:ctest-vn-02701849 virtual network link through opserver 10.0.0.240
2026-02-09 02:09:45,456 - DEBUG - Requesting: http://10.0.0.240:8081/analytics/uves/virtual-networks
2026-02-09 02:09:45,466 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-16031842:ctest-vn-02701849', 'href': 'http://10.0.0.240:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-16031842:ctest-vn-02701849?flat'}
2026-02-09 02:09:45,466 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-16031842:ctest-vn-02701849 is found in opserver
2026-02-09 02:09:45,476 - DEBUG - Do not have enough data to verify VN in agent
2026-02-09 02:09:45,481 - DEBUG - VRF ids for VN ctest-vn-02701849: {}
2026-02-09 02:09:45,535 - DEBUG - Services list from nova: [