2026-01-28 19:09:09,279 - INFO - Domain Default found not creating
2026-01-28 19:09:09,441 - INFO - Project ctest-TestBasicPolicy-87391807 not found, creating it
2026-01-28 19:09:09,902 - INFO - Created Project:ctest-TestBasicPolicy-87391807, ID : 51f460a0-d7e7-46f3-9393-89858bfadf69
2026-01-28 19:09:11,418 - INFO - ================================================================================
2026-01-28 19:09:11,418 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-01-28 19:09:11,418 - 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-01-28 19:09:11,673 - DEBUG - Nothing to compare xmpp stats {'10.0.0.23': {'10.20.0.17': '0'}} with
2026-01-28 19:09:11,673 - INFO - Initial checks done. Running the testcase now
2026-01-28 19:09:11,673 - INFO -
2026-01-28 19:09:12,215 - DEBUG - Response for create_network : {'network': {'id': '90f43b79-710c-4dc9-8a50-3d6edd98fec8', 'name': 'ctest-vn-45871419', 'tenant_id': '51f460a0d7e746f3939389858bfadf69', 'project_id': '51f460a0d7e746f3939389858bfadf69', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-87391807', 'ctest-vn-45871419'], 'port_security_enabled': True, 'description': ''}}
2026-01-28 19:09:12,383 - DEBUG - Response for create_subnet : {'subnet': {'id': '8ba052ab-eb0c-418a-9c84-404c25f20b30', 'name': '', 'tenant_id': '51f460a0d7e746f3939389858bfadf69', 'network_id': '90f43b79-710c-4dc9-8a50-3d6edd98fec8', 'ip_version': 4, 'cidr': '122.214.107.64/26', 'allocation_pools': [{'start': '122.214.107.66', 'end': '122.214.107.126'}], 'gateway_ip': '122.214.107.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '122.214.107.66', 'tags': [], 'project_id': '51f460a0d7e746f3939389858bfadf69'}}
2026-01-28 19:09:12,402 - INFO - Created VN ctest-vn-45871419
2026-01-28 19:09:12,455 - DEBUG - VN ctest-vn-45871419 UUID is 90f43b79-710c-4dc9-8a50-3d6edd98fec8
2026-01-28 19:09:12,736 - DEBUG - Response for create_network : {'network': {'id': '0c2a74e3-df58-4b90-b224-75efa73696ad', 'name': 'ctest-vn-21139923', 'tenant_id': '51f460a0d7e746f3939389858bfadf69', 'project_id': '51f460a0d7e746f3939389858bfadf69', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-87391807', 'ctest-vn-21139923'], 'port_security_enabled': True, 'description': ''}}
2026-01-28 19:09:12,878 - DEBUG - Response for create_subnet : {'subnet': {'id': '8691611f-aa33-4ef8-9abc-9eb6587454c6', 'name': '', 'tenant_id': '51f460a0d7e746f3939389858bfadf69', 'network_id': '0c2a74e3-df58-4b90-b224-75efa73696ad', 'ip_version': 4, 'cidr': '177.88.186.128/26', 'allocation_pools': [{'start': '177.88.186.130', 'end': '177.88.186.190'}], 'gateway_ip': '177.88.186.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '177.88.186.130', 'tags': [], 'project_id': '51f460a0d7e746f3939389858bfadf69'}}
2026-01-28 19:09:12,896 - INFO - Created VN ctest-vn-21139923
2026-01-28 19:09:12,951 - DEBUG - VN ctest-vn-21139923 UUID is 0c2a74e3-df58-4b90-b224-75efa73696ad
2026-01-28 19:09:13,068 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-87391807:ctest-vn-45871419, 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-87391807:ctest-vn-21139923, 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-01-28 19:09:13,360 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '90f43b79-710c-4dc9-8a50-3d6edd98fec8', 'name': 'ctest-vn-45871419', 'tenant_id': '51f460a0d7e746f3939389858bfadf69', 'project_id': '51f460a0d7e746f3939389858bfadf69', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8ba052ab-eb0c-418a-9c84-404c25f20b30'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-87391807', 'ctest-vn-45871419'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-87391807', 'ctest-policy-allow-all-60985108']], 'subnet_ipam': [{'subnet_cidr': '122.214.107.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-01-28 19:09:13,586 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0c2a74e3-df58-4b90-b224-75efa73696ad', 'name': 'ctest-vn-21139923', 'tenant_id': '51f460a0d7e746f3939389858bfadf69', 'project_id': '51f460a0d7e746f3939389858bfadf69', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8691611f-aa33-4ef8-9abc-9eb6587454c6'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-87391807', 'ctest-vn-21139923'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-87391807', 'ctest-policy-allow-all-60985108']], 'subnet_ipam': [{'subnet_cidr': '177.88.186.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-01-28 19:09:13,739 - DEBUG - Requesting: http://10.0.0.23:8082/domains
2026-01-28 19:09:14,029 - DEBUG - Requesting: http://10.0.0.23:8082/domains
2026-01-28 19:09:14,059 - DEBUG - Requesting: http://10.0.0.23:8082/domain/a42f7af0-84fe-44bc-b407-4f8073709127
2026-01-28 19:09:14,071 - DEBUG - Requesting: http://10.0.0.23:8082/project/51f460a0-d7e7-46f3-9393-89858bfadf69
2026-01-28 19:09:14,141 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/90f43b79-710c-4dc9-8a50-3d6edd98fec8
2026-01-28 19:09:14,151 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/90f43b79-710c-4dc9-8a50-3d6edd98fec8
2026-01-28 19:09:14,160 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/d5f6ddd0-6ad9-4ca2-a1a6-1f799d4dcfef
2026-01-28 19:09:14,167 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/d5f6ddd0-6ad9-4ca2-a1a6-1f799d4dcfef
2026-01-28 19:09:14,173 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/dc134a70-83bf-4cc7-b97d-1b0e5868a1fb
2026-01-28 19:09:14,178 - DEBUG - Route Targets: ['target:64512:8000004']
2026-01-28 19:09:14,178 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/90f43b79-710c-4dc9-8a50-3d6edd98fec8
2026-01-28 19:09:14,187 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/d5f6ddd0-6ad9-4ca2-a1a6-1f799d4dcfef
2026-01-28 19:09:14,200 - INFO - Verified VN network id 11 for VN 90f43b79-710c-4dc9-8a50-3d6edd98fec8
2026-01-28 19:09:14,200 - INFO - Verifications in API Server for VN ctest-vn-45871419 passed
2026-01-28 19:09:14,200 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/90f43b79-710c-4dc9-8a50-3d6edd98fec8
2026-01-28 19:09:14,210 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/d5f6ddd0-6ad9-4ca2-a1a6-1f799d4dcfef
2026-01-28 19:09:14,217 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/d5f6ddd0-6ad9-4ca2-a1a6-1f799d4dcfef
2026-01-28 19:09:14,223 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/dc134a70-83bf-4cc7-b97d-1b0e5868a1fb
2026-01-28 19:09:14,234 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-87391807:ctest-vn-45871419', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-87391807', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10445038828552736201', 'uuid-lslong': '9966533521744395976'}, 'enable': 'true', 'created': '2026-01-28T19:09:12', 'last-modified': '2026-01-28T19:09:13', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.893025'}
2026-01-28 19:09:14,241 - DEBUG - Route Targets: ['target:64512:8000004']
2026-01-28 19:09:14,241 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-45871419 passed
2026-01-28 19:09:14,241 - DEBUG - ====Verifying policy data for ctest-vn-45871419 in API_Server ======
2026-01-28 19:09:14,241 - DEBUG - Requesting: http://10.0.0.23:8082/domains
2026-01-28 19:09:14,246 - DEBUG - Requesting: http://10.0.0.23:8082/domain/a42f7af0-84fe-44bc-b407-4f8073709127
2026-01-28 19:09:14,256 - DEBUG - Requesting: http://10.0.0.23:8082/project/51f460a0-d7e7-46f3-9393-89858bfadf69
2026-01-28 19:09:14,326 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/90f43b79-710c-4dc9-8a50-3d6edd98fec8
2026-01-28 19:09:14,336 - DEBUG - ==>Verifying data for policy with id: e2369802-9adc-4480-8cea-ac1a5e9980c4, fqn: ['default-domain', 'ctest-TestBasicPolicy-87391807', 'ctest-policy-allow-all-60985108']
2026-01-28 19:09:14,336 - INFO - VN ctest-vn-45871419 Policy verification: verify_vn_policy_in_api_server, status: True
2026-01-28 19:09:14,336 - DEBUG - Verifying the vn in opserver
2026-01-28 19:09:14,336 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-87391807:ctest-vn-45871419 virtual network link through opserver 10.0.0.23
2026-01-28 19:09:14,336 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks
2026-01-28 19:09:14,625 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks
2026-01-28 19:09:14,687 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-87391807:ctest-vn-45871419', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-87391807:ctest-vn-45871419?flat'}
2026-01-28 19:09:14,687 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-87391807:ctest-vn-45871419 is found in opserver
2026-01-28 19:09:14,698 - DEBUG - Do not have enough data to verify VN in agent
2026-01-28 19:09:14,703 - DEBUG - VRF ids for VN ctest-vn-45871419: {}
2026-01-28 19:09:14,703 - DEBUG - Requesting: http://10.0.0.23:8082/domains
2026-01-28 19:09:14,708 - DEBUG - Requesting: http://10.0.0.23:8082/domain/a42f7af0-84fe-44bc-b407-4f8073709127
2026-01-28 19:09:14,720 - DEBUG - Requesting: http://10.0.0.23:8082/project/51f460a0-d7e7-46f3-9393-89858bfadf69
2026-01-28 19:09:14,787 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/0c2a74e3-df58-4b90-b224-75efa73696ad
2026-01-28 19:09:14,796 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/0c2a74e3-df58-4b90-b224-75efa73696ad
2026-01-28 19:09:14,804 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/30218a79-9580-4b8f-a787-da0979e25c0c
2026-01-28 19:09:14,811 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/30218a79-9580-4b8f-a787-da0979e25c0c
2026-01-28 19:09:14,817 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/1f439a74-ca9f-493a-b230-01b01efe3679
2026-01-28 19:09:14,828 - DEBUG - Route Targets: ['target:64512:8000005']
2026-01-28 19:09:14,828 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/0c2a74e3-df58-4b90-b224-75efa73696ad
2026-01-28 19:09:14,836 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/30218a79-9580-4b8f-a787-da0979e25c0c
2026-01-28 19:09:14,849 - INFO - Verified VN network id 12 for VN 0c2a74e3-df58-4b90-b224-75efa73696ad
2026-01-28 19:09:14,849 - INFO - Verifications in API Server for VN ctest-vn-21139923 passed
2026-01-28 19:09:14,849 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/0c2a74e3-df58-4b90-b224-75efa73696ad
2026-01-28 19:09:14,857 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/30218a79-9580-4b8f-a787-da0979e25c0c
2026-01-28 19:09:14,864 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/30218a79-9580-4b8f-a787-da0979e25c0c
2026-01-28 19:09:14,870 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/1f439a74-ca9f-493a-b230-01b01efe3679
2026-01-28 19:09:14,881 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-87391807:ctest-vn-21139923', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-87391807', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '876641599530486672', 'uuid-lslong': '12836514510075762349'}, 'enable': 'true', 'created': '2026-01-28T19:09:12', 'last-modified': '2026-01-28T19:09:13', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.317654'}
2026-01-28 19:09:14,889 - DEBUG - Route Targets: ['target:64512:8000005']
2026-01-28 19:09:14,890 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-21139923 passed
2026-01-28 19:09:14,890 - DEBUG - ====Verifying policy data for ctest-vn-21139923 in API_Server ======
2026-01-28 19:09:14,890 - DEBUG - Requesting: http://10.0.0.23:8082/domains
2026-01-28 19:09:14,896 - DEBUG - Requesting: http://10.0.0.23:8082/domain/a42f7af0-84fe-44bc-b407-4f8073709127
2026-01-28 19:09:14,905 - DEBUG - Requesting: http://10.0.0.23:8082/project/51f460a0-d7e7-46f3-9393-89858bfadf69
2026-01-28 19:09:14,974 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/0c2a74e3-df58-4b90-b224-75efa73696ad
2026-01-28 19:09:14,982 - DEBUG - ==>Verifying data for policy with id: e2369802-9adc-4480-8cea-ac1a5e9980c4, fqn: ['default-domain', 'ctest-TestBasicPolicy-87391807', 'ctest-policy-allow-all-60985108']
2026-01-28 19:09:14,982 - INFO - VN ctest-vn-21139923 Policy verification: verify_vn_policy_in_api_server, status: True
2026-01-28 19:09:14,982 - DEBUG - Verifying the vn in opserver
2026-01-28 19:09:14,982 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-87391807:ctest-vn-21139923 virtual network link through opserver 10.0.0.23
2026-01-28 19:09:14,982 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks
2026-01-28 19:09:14,993 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-87391807:ctest-vn-21139923', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-87391807:ctest-vn-21139923?flat'}
2026-01-28 19:09:14,993 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-87391807:ctest-vn-21139923 is found in opserver
2026-01-28 19:09:15,002 - DEBUG - Do not have enough data to verify VN in agent
2026-01-28 19:09:15,008 - DEBUG - VRF ids for VN ctest-vn-21139923: {}
2026-01-28 19:09:15,062 - DEBUG - Services list from nova: [