2025-05-17 14:41:24,823 - INFO - Domain Default found not creating
2025-05-17 14:41:25,091 - INFO - Project ctest-TestBasicPolicy-16380380 not found, creating it
2025-05-17 14:41:25,765 - INFO - Created Project:ctest-TestBasicPolicy-16380380, ID : c39f3664-f084-4a69-ad23-22de87617a10
2025-05-17 14:41:28,036 - INFO - ================================================================================
2025-05-17 14:41:28,036 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-05-17 14:41:28,037 - 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
2025-05-17 14:41:28,352 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with
2025-05-17 14:41:28,353 - INFO - Initial checks done. Running the testcase now
2025-05-17 14:41:28,353 - INFO -
2025-05-17 14:41:29,180 - DEBUG - Response for create_network : {'network': {'id': '58f03acf-23f4-4327-b1ad-25db46f2bc53', 'name': 'ctest-vn-03595835', 'tenant_id': 'c39f3664f0844a69ad2322de87617a10', 'project_id': 'c39f3664f0844a69ad2322de87617a10', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-16380380', 'ctest-vn-03595835'], 'port_security_enabled': True, 'description': ''}}
2025-05-17 14:41:29,356 - DEBUG - Response for create_subnet : {'subnet': {'id': '5604ea5d-b3bd-45d5-a149-f058f49baa19', 'name': '', 'tenant_id': 'c39f3664f0844a69ad2322de87617a10', 'network_id': '58f03acf-23f4-4327-b1ad-25db46f2bc53', 'ip_version': 4, 'cidr': '180.21.139.192/26', 'allocation_pools': [{'start': '180.21.139.194', 'end': '180.21.139.254'}], 'gateway_ip': '180.21.139.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '180.21.139.194', 'tags': [], 'project_id': 'c39f3664f0844a69ad2322de87617a10'}}
2025-05-17 14:41:29,378 - INFO - Created VN ctest-vn-03595835
2025-05-17 14:41:29,437 - DEBUG - VN ctest-vn-03595835 UUID is 58f03acf-23f4-4327-b1ad-25db46f2bc53
2025-05-17 14:41:29,882 - DEBUG - Response for create_network : {'network': {'id': 'd839e318-435a-4712-a3bb-3e866b3787e8', 'name': 'ctest-vn-07845662', 'tenant_id': 'c39f3664f0844a69ad2322de87617a10', 'project_id': 'c39f3664f0844a69ad2322de87617a10', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-16380380', 'ctest-vn-07845662'], 'port_security_enabled': True, 'description': ''}}
2025-05-17 14:41:30,111 - DEBUG - Response for create_subnet : {'subnet': {'id': '6c648d29-4b94-4786-bb2b-e7c2fba8e742', 'name': '', 'tenant_id': 'c39f3664f0844a69ad2322de87617a10', 'network_id': 'd839e318-435a-4712-a3bb-3e866b3787e8', 'ip_version': 4, 'cidr': '211.233.72.192/26', 'allocation_pools': [{'start': '211.233.72.194', 'end': '211.233.72.254'}], 'gateway_ip': '211.233.72.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '211.233.72.194', 'tags': [], 'project_id': 'c39f3664f0844a69ad2322de87617a10'}}
2025-05-17 14:41:30,137 - INFO - Created VN ctest-vn-07845662
2025-05-17 14:41:30,192 - DEBUG - VN ctest-vn-07845662 UUID is d839e318-435a-4712-a3bb-3e866b3787e8
2025-05-17 14:41:30,381 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-16380380:ctest-vn-03595835, 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-16380380:ctest-vn-07845662, 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]
2025-05-17 14:41:30,816 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '58f03acf-23f4-4327-b1ad-25db46f2bc53', 'name': 'ctest-vn-03595835', 'tenant_id': 'c39f3664f0844a69ad2322de87617a10', 'project_id': 'c39f3664f0844a69ad2322de87617a10', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['5604ea5d-b3bd-45d5-a149-f058f49baa19'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-16380380', 'ctest-vn-03595835'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-16380380', 'ctest-policy-allow-all-12404068']], 'subnet_ipam': [{'subnet_cidr': '180.21.139.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-05-17 14:41:31,195 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd839e318-435a-4712-a3bb-3e866b3787e8', 'name': 'ctest-vn-07845662', 'tenant_id': 'c39f3664f0844a69ad2322de87617a10', 'project_id': 'c39f3664f0844a69ad2322de87617a10', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6c648d29-4b94-4786-bb2b-e7c2fba8e742'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-16380380', 'ctest-vn-07845662'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-16380380', 'ctest-policy-allow-all-12404068']], 'subnet_ipam': [{'subnet_cidr': '211.233.72.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-05-17 14:41:31,409 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-05-17 14:41:31,750 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-05-17 14:41:31,801 - DEBUG - Requesting: http://10.0.0.38:8082/domain/8d766ad7-d914-4dfb-b8ed-c53ffb0a7ff1
2025-05-17 14:41:31,845 - DEBUG - Requesting: http://10.0.0.38:8082/project/c39f3664-f084-4a69-ad23-22de87617a10
2025-05-17 14:41:31,969 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/58f03acf-23f4-4327-b1ad-25db46f2bc53
2025-05-17 14:41:31,993 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/58f03acf-23f4-4327-b1ad-25db46f2bc53
2025-05-17 14:41:32,015 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d21bd9ee-fff0-4e9f-8abb-6fa799e9446a
2025-05-17 14:41:32,033 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d21bd9ee-fff0-4e9f-8abb-6fa799e9446a
2025-05-17 14:41:32,049 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/3a4cd4cd-c070-4ddf-8e6c-75724bfc0105
2025-05-17 14:41:32,063 - DEBUG - Route Targets: ['target:64512:8000005']
2025-05-17 14:41:32,063 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/58f03acf-23f4-4327-b1ad-25db46f2bc53
2025-05-17 14:41:32,091 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d21bd9ee-fff0-4e9f-8abb-6fa799e9446a
2025-05-17 14:41:32,131 - INFO - Verified VN network id 7 for VN 58f03acf-23f4-4327-b1ad-25db46f2bc53
2025-05-17 14:41:32,131 - INFO - Verifications in API Server for VN ctest-vn-03595835 passed
2025-05-17 14:41:32,131 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/58f03acf-23f4-4327-b1ad-25db46f2bc53
2025-05-17 14:41:32,149 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d21bd9ee-fff0-4e9f-8abb-6fa799e9446a
2025-05-17 14:41:32,162 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d21bd9ee-fff0-4e9f-8abb-6fa799e9446a
2025-05-17 14:41:32,175 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/3a4cd4cd-c070-4ddf-8e6c-75724bfc0105
2025-05-17 14:41:32,199 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-16380380:ctest-vn-03595835', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-16380380', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6408686931084067623', 'uuid-lslong': '12802930939402566739'}, 'enable': 'true', 'created': '2025-05-17T14:41:29', 'last-modified': '2025-05-17T14:41:30', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.438119'}
2025-05-17 14:41:32,213 - DEBUG - Route Targets: ['target:64512:8000005']
2025-05-17 14:41:32,213 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-03595835 passed
2025-05-17 14:41:32,214 - DEBUG - ====Verifying policy data for ctest-vn-03595835 in API_Server ======
2025-05-17 14:41:32,214 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-05-17 14:41:32,223 - DEBUG - Requesting: http://10.0.0.38:8082/domain/8d766ad7-d914-4dfb-b8ed-c53ffb0a7ff1
2025-05-17 14:41:32,241 - DEBUG - Requesting: http://10.0.0.38:8082/project/c39f3664-f084-4a69-ad23-22de87617a10
2025-05-17 14:41:32,341 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/58f03acf-23f4-4327-b1ad-25db46f2bc53
2025-05-17 14:41:32,366 - DEBUG - ==>Verifying data for policy with id: 87855f39-c0bc-47ad-9986-52a61e9f299e, fqn: ['default-domain', 'ctest-TestBasicPolicy-16380380', 'ctest-policy-allow-all-12404068']
2025-05-17 14:41:32,366 - INFO - VN ctest-vn-03595835 Policy verification: verify_vn_policy_in_api_server, status: True
2025-05-17 14:41:32,367 - DEBUG - Verifying the vn in opserver
2025-05-17 14:41:32,367 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-16380380:ctest-vn-03595835 virtual network link through opserver 10.0.0.38
2025-05-17 14:41:32,367 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-05-17 14:41:32,726 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-05-17 14:41:32,865 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-16380380:ctest-vn-03595835', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-16380380:ctest-vn-03595835?flat'}
2025-05-17 14:41:32,865 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-16380380:ctest-vn-03595835 is found in opserver
2025-05-17 14:41:32,905 - DEBUG - Do not have enough data to verify VN in agent
2025-05-17 14:41:32,936 - DEBUG - VRF ids for VN ctest-vn-03595835: {}
2025-05-17 14:41:32,936 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-05-17 14:41:32,955 - DEBUG - Requesting: http://10.0.0.38:8082/domain/8d766ad7-d914-4dfb-b8ed-c53ffb0a7ff1
2025-05-17 14:41:32,986 - DEBUG - Requesting: http://10.0.0.38:8082/project/c39f3664-f084-4a69-ad23-22de87617a10
2025-05-17 14:41:33,117 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d839e318-435a-4712-a3bb-3e866b3787e8
2025-05-17 14:41:33,150 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d839e318-435a-4712-a3bb-3e866b3787e8
2025-05-17 14:41:33,171 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5abb4df7-9be4-486c-9df9-8cd88f97f2af
2025-05-17 14:41:33,187 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5abb4df7-9be4-486c-9df9-8cd88f97f2af
2025-05-17 14:41:33,203 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/43be55ff-f6de-40d1-95a0-98cbe342ad12
2025-05-17 14:41:33,216 - DEBUG - Route Targets: ['target:64512:8000006']
2025-05-17 14:41:33,216 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d839e318-435a-4712-a3bb-3e866b3787e8
2025-05-17 14:41:33,232 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5abb4df7-9be4-486c-9df9-8cd88f97f2af
2025-05-17 14:41:33,263 - INFO - Verified VN network id 8 for VN d839e318-435a-4712-a3bb-3e866b3787e8
2025-05-17 14:41:33,264 - INFO - Verifications in API Server for VN ctest-vn-07845662 passed
2025-05-17 14:41:33,264 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d839e318-435a-4712-a3bb-3e866b3787e8
2025-05-17 14:41:33,278 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5abb4df7-9be4-486c-9df9-8cd88f97f2af
2025-05-17 14:41:33,287 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5abb4df7-9be4-486c-9df9-8cd88f97f2af
2025-05-17 14:41:33,296 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/43be55ff-f6de-40d1-95a0-98cbe342ad12
2025-05-17 14:41:33,317 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-16380380:ctest-vn-07845662', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-16380380', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15580734079213651730', 'uuid-lslong': '11798092395872487400'}, 'enable': 'true', 'created': '2025-05-17T14:41:29', 'last-modified': '2025-05-17T14:41:31', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.171517'}
2025-05-17 14:41:33,326 - DEBUG - Route Targets: ['target:64512:8000006']
2025-05-17 14:41:33,326 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-07845662 passed
2025-05-17 14:41:33,327 - DEBUG - ====Verifying policy data for ctest-vn-07845662 in API_Server ======
2025-05-17 14:41:33,327 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-05-17 14:41:33,335 - DEBUG - Requesting: http://10.0.0.38:8082/domain/8d766ad7-d914-4dfb-b8ed-c53ffb0a7ff1
2025-05-17 14:41:33,348 - DEBUG - Requesting: http://10.0.0.38:8082/project/c39f3664-f084-4a69-ad23-22de87617a10
2025-05-17 14:41:33,465 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d839e318-435a-4712-a3bb-3e866b3787e8
2025-05-17 14:41:33,485 - DEBUG - ==>Verifying data for policy with id: 87855f39-c0bc-47ad-9986-52a61e9f299e, fqn: ['default-domain', 'ctest-TestBasicPolicy-16380380', 'ctest-policy-allow-all-12404068']
2025-05-17 14:41:33,485 - INFO - VN ctest-vn-07845662 Policy verification: verify_vn_policy_in_api_server, status: True
2025-05-17 14:41:33,485 - DEBUG - Verifying the vn in opserver
2025-05-17 14:41:33,485 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-16380380:ctest-vn-07845662 virtual network link through opserver 10.0.0.38
2025-05-17 14:41:33,485 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-05-17 14:41:33,511 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-16380380:ctest-vn-07845662', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-16380380:ctest-vn-07845662?flat'}
2025-05-17 14:41:33,511 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-16380380:ctest-vn-07845662 is found in opserver
2025-05-17 14:41:33,542 - DEBUG - Do not have enough data to verify VN in agent
2025-05-17 14:41:33,556 - DEBUG - VRF ids for VN ctest-vn-07845662: {}
2025-05-17 14:41:33,666 - DEBUG - Services list from nova: [