2026-01-28 21:35:47,653 - INFO - Domain Default found not creating
2026-01-28 21:35:47,818 - INFO - Project ctest-TestBasicPolicy-59946393 not found, creating it
2026-01-28 21:35:48,268 - INFO - Created Project:ctest-TestBasicPolicy-59946393, ID : 79142c0b-f9dc-43b7-b483-af964230f5be
2026-01-28 21:35:49,716 - INFO - ================================================================================
2026-01-28 21:35:49,716 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-01-28 21:35:49,716 - 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 21:35:49,968 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with
2026-01-28 21:35:49,968 - INFO - Initial checks done. Running the testcase now
2026-01-28 21:35:49,968 - INFO -
2026-01-28 21:35:50,500 - DEBUG - Response for create_network : {'network': {'id': '28dc79a3-9e74-472a-80aa-1be68a2d8fd8', 'name': 'ctest-vn-11897695', 'tenant_id': '79142c0bf9dc43b7b483af964230f5be', 'project_id': '79142c0bf9dc43b7b483af964230f5be', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-59946393', 'ctest-vn-11897695'], 'port_security_enabled': True, 'description': ''}}
2026-01-28 21:35:50,631 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e5f760a7-d976-4885-a611-1eba8addca75', 'name': '', 'tenant_id': '79142c0bf9dc43b7b483af964230f5be', 'network_id': '28dc79a3-9e74-472a-80aa-1be68a2d8fd8', 'ip_version': 4, 'cidr': '158.246.187.64/26', 'allocation_pools': [{'start': '158.246.187.66', 'end': '158.246.187.126'}], 'gateway_ip': '158.246.187.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '158.246.187.66', 'tags': [], 'project_id': '79142c0bf9dc43b7b483af964230f5be'}}
2026-01-28 21:35:50,647 - INFO - Created VN ctest-vn-11897695
2026-01-28 21:35:50,699 - DEBUG - VN ctest-vn-11897695 UUID is 28dc79a3-9e74-472a-80aa-1be68a2d8fd8
2026-01-28 21:35:51,032 - DEBUG - Response for create_network : {'network': {'id': 'b5a2a2c0-6156-4151-b08f-d8ce90182ff3', 'name': 'ctest-vn-73308599', 'tenant_id': '79142c0bf9dc43b7b483af964230f5be', 'project_id': '79142c0bf9dc43b7b483af964230f5be', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-59946393', 'ctest-vn-73308599'], 'port_security_enabled': True, 'description': ''}}
2026-01-28 21:35:51,225 - DEBUG - Response for create_subnet : {'subnet': {'id': '54115aeb-6e00-4e5c-8ce8-30066321dba0', 'name': '', 'tenant_id': '79142c0bf9dc43b7b483af964230f5be', 'network_id': 'b5a2a2c0-6156-4151-b08f-d8ce90182ff3', 'ip_version': 4, 'cidr': '140.212.104.0/26', 'allocation_pools': [{'start': '140.212.104.2', 'end': '140.212.104.62'}], 'gateway_ip': '140.212.104.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '140.212.104.2', 'tags': [], 'project_id': '79142c0bf9dc43b7b483af964230f5be'}}
2026-01-28 21:35:51,244 - INFO - Created VN ctest-vn-73308599
2026-01-28 21:35:51,299 - DEBUG - VN ctest-vn-73308599 UUID is b5a2a2c0-6156-4151-b08f-d8ce90182ff3
2026-01-28 21:35:51,406 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-59946393:ctest-vn-11897695, 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-59946393:ctest-vn-73308599, 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 21:35:51,699 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '28dc79a3-9e74-472a-80aa-1be68a2d8fd8', 'name': 'ctest-vn-11897695', 'tenant_id': '79142c0bf9dc43b7b483af964230f5be', 'project_id': '79142c0bf9dc43b7b483af964230f5be', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e5f760a7-d976-4885-a611-1eba8addca75'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-59946393', 'ctest-vn-11897695'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-59946393', 'ctest-policy-allow-all-14558506']], 'subnet_ipam': [{'subnet_cidr': '158.246.187.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-01-28 21:35:51,923 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b5a2a2c0-6156-4151-b08f-d8ce90182ff3', 'name': 'ctest-vn-73308599', 'tenant_id': '79142c0bf9dc43b7b483af964230f5be', 'project_id': '79142c0bf9dc43b7b483af964230f5be', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['54115aeb-6e00-4e5c-8ce8-30066321dba0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-59946393', 'ctest-vn-73308599'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-59946393', 'ctest-policy-allow-all-14558506']], 'subnet_ipam': [{'subnet_cidr': '140.212.104.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-01-28 21:35:52,083 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-01-28 21:35:52,376 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-01-28 21:35:52,406 - DEBUG - Requesting: http://10.0.0.38:8082/domain/5baedca6-d545-46d8-972e-8d9bb19a5e4c
2026-01-28 21:35:52,417 - DEBUG - Requesting: http://10.0.0.38:8082/project/79142c0b-f9dc-43b7-b483-af964230f5be
2026-01-28 21:35:52,484 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/28dc79a3-9e74-472a-80aa-1be68a2d8fd8
2026-01-28 21:35:52,493 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/28dc79a3-9e74-472a-80aa-1be68a2d8fd8
2026-01-28 21:35:52,500 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/44938ab8-c77c-4e8c-b94d-229fe15290a7
2026-01-28 21:35:52,505 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/44938ab8-c77c-4e8c-b94d-229fe15290a7
2026-01-28 21:35:52,510 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/d75fd11e-94c9-47a2-82e2-2e1abf074cd1
2026-01-28 21:35:52,516 - DEBUG - Route Targets: ['target:64512:8000004']
2026-01-28 21:35:52,516 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/28dc79a3-9e74-472a-80aa-1be68a2d8fd8
2026-01-28 21:35:52,524 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/44938ab8-c77c-4e8c-b94d-229fe15290a7
2026-01-28 21:35:52,536 - INFO - Verified VN network id 11 for VN 28dc79a3-9e74-472a-80aa-1be68a2d8fd8
2026-01-28 21:35:52,536 - INFO - Verifications in API Server for VN ctest-vn-11897695 passed
2026-01-28 21:35:52,536 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/28dc79a3-9e74-472a-80aa-1be68a2d8fd8
2026-01-28 21:35:52,543 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/44938ab8-c77c-4e8c-b94d-229fe15290a7
2026-01-28 21:35:52,549 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/44938ab8-c77c-4e8c-b94d-229fe15290a7
2026-01-28 21:35:52,555 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/d75fd11e-94c9-47a2-82e2-2e1abf074cd1
2026-01-28 21:35:52,564 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-59946393:ctest-vn-11897695', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-59946393', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2944362000038512426', 'uuid-lslong': '9271253459870257112'}, 'enable': 'true', 'created': '2026-01-28T21:35:50', 'last-modified': '2026-01-28T21:35:51', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.884576'}
2026-01-28 21:35:52,569 - DEBUG - Route Targets: ['target:64512:8000004']
2026-01-28 21:35:52,569 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-11897695 passed
2026-01-28 21:35:52,569 - DEBUG - ====Verifying policy data for ctest-vn-11897695 in API_Server ======
2026-01-28 21:35:52,569 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-01-28 21:35:52,573 - DEBUG - Requesting: http://10.0.0.38:8082/domain/5baedca6-d545-46d8-972e-8d9bb19a5e4c
2026-01-28 21:35:52,583 - DEBUG - Requesting: http://10.0.0.38:8082/project/79142c0b-f9dc-43b7-b483-af964230f5be
2026-01-28 21:35:52,651 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/28dc79a3-9e74-472a-80aa-1be68a2d8fd8
2026-01-28 21:35:52,660 - DEBUG - ==>Verifying data for policy with id: 9f64716d-5dcc-43b7-90a9-be6687be078e, fqn: ['default-domain', 'ctest-TestBasicPolicy-59946393', 'ctest-policy-allow-all-14558506']
2026-01-28 21:35:52,660 - INFO - VN ctest-vn-11897695 Policy verification: verify_vn_policy_in_api_server, status: True
2026-01-28 21:35:52,660 - DEBUG - Verifying the vn in opserver
2026-01-28 21:35:52,660 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-59946393:ctest-vn-11897695 virtual network link through opserver 10.0.0.38
2026-01-28 21:35:52,660 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-01-28 21:35:52,956 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-01-28 21:35:53,011 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-59946393:ctest-vn-11897695', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-59946393:ctest-vn-11897695?flat'}
2026-01-28 21:35:53,011 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-59946393:ctest-vn-11897695 is found in opserver
2026-01-28 21:35:53,020 - DEBUG - Do not have enough data to verify VN in agent
2026-01-28 21:35:53,023 - DEBUG - VRF ids for VN ctest-vn-11897695: {}
2026-01-28 21:35:53,023 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-01-28 21:35:53,028 - DEBUG - Requesting: http://10.0.0.38:8082/domain/5baedca6-d545-46d8-972e-8d9bb19a5e4c
2026-01-28 21:35:53,037 - DEBUG - Requesting: http://10.0.0.38:8082/project/79142c0b-f9dc-43b7-b483-af964230f5be
2026-01-28 21:35:53,103 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b5a2a2c0-6156-4151-b08f-d8ce90182ff3
2026-01-28 21:35:53,113 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b5a2a2c0-6156-4151-b08f-d8ce90182ff3
2026-01-28 21:35:53,122 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3b5ff12a-418a-4a1d-8103-7329dc5bfde0
2026-01-28 21:35:53,128 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3b5ff12a-418a-4a1d-8103-7329dc5bfde0
2026-01-28 21:35:53,133 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/e0db5261-db9c-4c77-b336-7edba51060e3
2026-01-28 21:35:53,138 - DEBUG - Route Targets: ['target:64512:8000005']
2026-01-28 21:35:53,138 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b5a2a2c0-6156-4151-b08f-d8ce90182ff3
2026-01-28 21:35:53,145 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3b5ff12a-418a-4a1d-8103-7329dc5bfde0
2026-01-28 21:35:53,156 - INFO - Verified VN network id 12 for VN b5a2a2c0-6156-4151-b08f-d8ce90182ff3
2026-01-28 21:35:53,156 - INFO - Verifications in API Server for VN ctest-vn-73308599 passed
2026-01-28 21:35:53,156 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b5a2a2c0-6156-4151-b08f-d8ce90182ff3
2026-01-28 21:35:53,164 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3b5ff12a-418a-4a1d-8103-7329dc5bfde0
2026-01-28 21:35:53,169 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3b5ff12a-418a-4a1d-8103-7329dc5bfde0
2026-01-28 21:35:53,174 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/e0db5261-db9c-4c77-b336-7edba51060e3
2026-01-28 21:35:53,184 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-59946393:ctest-vn-73308599', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-59946393', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13088202414242546001', 'uuid-lslong': '12722625854037307379'}, 'enable': 'true', 'created': '2026-01-28T21:35:51', 'last-modified': '2026-01-28T21:35:51', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.276506'}
2026-01-28 21:35:53,190 - DEBUG - Route Targets: ['target:64512:8000005']
2026-01-28 21:35:53,190 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-73308599 passed
2026-01-28 21:35:53,190 - DEBUG - ====Verifying policy data for ctest-vn-73308599 in API_Server ======
2026-01-28 21:35:53,190 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-01-28 21:35:53,195 - DEBUG - Requesting: http://10.0.0.38:8082/domain/5baedca6-d545-46d8-972e-8d9bb19a5e4c
2026-01-28 21:35:53,204 - DEBUG - Requesting: http://10.0.0.38:8082/project/79142c0b-f9dc-43b7-b483-af964230f5be
2026-01-28 21:35:53,272 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b5a2a2c0-6156-4151-b08f-d8ce90182ff3
2026-01-28 21:35:53,280 - DEBUG - ==>Verifying data for policy with id: 9f64716d-5dcc-43b7-90a9-be6687be078e, fqn: ['default-domain', 'ctest-TestBasicPolicy-59946393', 'ctest-policy-allow-all-14558506']
2026-01-28 21:35:53,280 - INFO - VN ctest-vn-73308599 Policy verification: verify_vn_policy_in_api_server, status: True
2026-01-28 21:35:53,280 - DEBUG - Verifying the vn in opserver
2026-01-28 21:35:53,280 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-59946393:ctest-vn-73308599 virtual network link through opserver 10.0.0.38
2026-01-28 21:35:53,280 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-01-28 21:35:53,288 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-59946393:ctest-vn-73308599', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-59946393:ctest-vn-73308599?flat'}
2026-01-28 21:35:53,288 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-59946393:ctest-vn-73308599 is found in opserver
2026-01-28 21:35:53,296 - DEBUG - Do not have enough data to verify VN in agent
2026-01-28 21:35:53,300 - DEBUG - VRF ids for VN ctest-vn-73308599: {}
2026-01-28 21:35:53,355 - DEBUG - Services list from nova: [