2025-10-19 16:11:43,453 - INFO - Domain Default found not creating
2025-10-19 16:11:43,610 - INFO - Project ctest-TestBasicPolicy-12555103 not found, creating it
2025-10-19 16:11:44,058 - INFO - Created Project:ctest-TestBasicPolicy-12555103, ID : bba4ca88-e9cf-463c-b185-305fe595fb8c
2025-10-19 16:11:45,489 - INFO - ================================================================================
2025-10-19 16:11:45,489 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-19 16:11:45,489 - 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-10-19 16:11:45,745 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with
2025-10-19 16:11:45,745 - INFO - Initial checks done. Running the testcase now
2025-10-19 16:11:45,745 - INFO -
2025-10-19 16:11:46,293 - DEBUG - Response for create_network : {'network': {'id': '4afe52f2-50e4-4543-ae43-6d5ef17b2bc3', 'name': 'ctest-vn-68553821', 'tenant_id': 'bba4ca88e9cf463cb185305fe595fb8c', 'project_id': 'bba4ca88e9cf463cb185305fe595fb8c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-12555103', 'ctest-vn-68553821'], 'port_security_enabled': True, 'description': ''}}
2025-10-19 16:11:46,455 - DEBUG - Response for create_subnet : {'subnet': {'id': 'bc9cfbb1-7193-4cb4-867f-9156266a30e9', 'name': '', 'tenant_id': 'bba4ca88e9cf463cb185305fe595fb8c', 'network_id': '4afe52f2-50e4-4543-ae43-6d5ef17b2bc3', 'ip_version': 4, 'cidr': '16.209.74.192/26', 'allocation_pools': [{'start': '16.209.74.194', 'end': '16.209.74.254'}], 'gateway_ip': '16.209.74.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '16.209.74.194', 'tags': [], 'project_id': 'bba4ca88e9cf463cb185305fe595fb8c'}}
2025-10-19 16:11:46,472 - INFO - Created VN ctest-vn-68553821
2025-10-19 16:11:46,526 - DEBUG - VN ctest-vn-68553821 UUID is 4afe52f2-50e4-4543-ae43-6d5ef17b2bc3
2025-10-19 16:11:46,802 - DEBUG - Response for create_network : {'network': {'id': '2bcb46d8-fef6-4f8e-b63f-f0f9fccefb5d', 'name': 'ctest-vn-21628581', 'tenant_id': 'bba4ca88e9cf463cb185305fe595fb8c', 'project_id': 'bba4ca88e9cf463cb185305fe595fb8c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-12555103', 'ctest-vn-21628581'], 'port_security_enabled': True, 'description': ''}}
2025-10-19 16:11:46,961 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a9a93ccb-6501-4fa0-bc6a-2075741199a7', 'name': '', 'tenant_id': 'bba4ca88e9cf463cb185305fe595fb8c', 'network_id': '2bcb46d8-fef6-4f8e-b63f-f0f9fccefb5d', 'ip_version': 4, 'cidr': '37.229.249.64/26', 'allocation_pools': [{'start': '37.229.249.66', 'end': '37.229.249.126'}], 'gateway_ip': '37.229.249.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '37.229.249.66', 'tags': [], 'project_id': 'bba4ca88e9cf463cb185305fe595fb8c'}}
2025-10-19 16:11:46,977 - INFO - Created VN ctest-vn-21628581
2025-10-19 16:11:47,026 - DEBUG - VN ctest-vn-21628581 UUID is 2bcb46d8-fef6-4f8e-b63f-f0f9fccefb5d
2025-10-19 16:11:47,141 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-12555103:ctest-vn-68553821, 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-12555103:ctest-vn-21628581, 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-10-19 16:11:47,434 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4afe52f2-50e4-4543-ae43-6d5ef17b2bc3', 'name': 'ctest-vn-68553821', 'tenant_id': 'bba4ca88e9cf463cb185305fe595fb8c', 'project_id': 'bba4ca88e9cf463cb185305fe595fb8c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['bc9cfbb1-7193-4cb4-867f-9156266a30e9'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-12555103', 'ctest-vn-68553821'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-12555103', 'ctest-policy-allow-all-00492489']], 'subnet_ipam': [{'subnet_cidr': '16.209.74.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-19 16:11:47,713 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2bcb46d8-fef6-4f8e-b63f-f0f9fccefb5d', 'name': 'ctest-vn-21628581', 'tenant_id': 'bba4ca88e9cf463cb185305fe595fb8c', 'project_id': 'bba4ca88e9cf463cb185305fe595fb8c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a9a93ccb-6501-4fa0-bc6a-2075741199a7'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-12555103', 'ctest-vn-21628581'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-12555103', 'ctest-policy-allow-all-00492489']], 'subnet_ipam': [{'subnet_cidr': '37.229.249.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-19 16:11:47,862 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-10-19 16:11:48,154 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-10-19 16:11:48,180 - DEBUG - Requesting: http://10.0.0.38:8082/domain/c4dc0c6e-82e5-43a1-b4de-ae9d09e19243
2025-10-19 16:11:48,191 - DEBUG - Requesting: http://10.0.0.38:8082/project/bba4ca88-e9cf-463c-b185-305fe595fb8c
2025-10-19 16:11:48,262 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/4afe52f2-50e4-4543-ae43-6d5ef17b2bc3
2025-10-19 16:11:48,271 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/4afe52f2-50e4-4543-ae43-6d5ef17b2bc3
2025-10-19 16:11:48,279 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/08ef968d-ad64-4667-bfbc-69b91d62bf8c
2025-10-19 16:11:48,285 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/08ef968d-ad64-4667-bfbc-69b91d62bf8c
2025-10-19 16:11:48,290 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/0e8c52a2-b00b-432d-ad78-c68eb5b1ee38
2025-10-19 16:11:48,295 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-19 16:11:48,295 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/4afe52f2-50e4-4543-ae43-6d5ef17b2bc3
2025-10-19 16:11:48,304 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/08ef968d-ad64-4667-bfbc-69b91d62bf8c
2025-10-19 16:11:48,318 - INFO - Verified VN network id 11 for VN 4afe52f2-50e4-4543-ae43-6d5ef17b2bc3
2025-10-19 16:11:48,318 - INFO - Verifications in API Server for VN ctest-vn-68553821 passed
2025-10-19 16:11:48,318 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/4afe52f2-50e4-4543-ae43-6d5ef17b2bc3
2025-10-19 16:11:48,327 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/08ef968d-ad64-4667-bfbc-69b91d62bf8c
2025-10-19 16:11:48,333 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/08ef968d-ad64-4667-bfbc-69b91d62bf8c
2025-10-19 16:11:48,339 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/0e8c52a2-b00b-432d-ad78-c68eb5b1ee38
2025-10-19 16:11:48,349 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-12555103:ctest-vn-68553821', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-12555103', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5403847803583874371', 'uuid-lslong': '12557000440584809411'}, 'enable': 'true', 'created': '2025-10-19T16:11:46', 'last-modified': '2025-10-19T16:11:47', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.933586'}
2025-10-19 16:11:48,354 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-19 16:11:48,354 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-68553821 passed
2025-10-19 16:11:48,355 - DEBUG - ====Verifying policy data for ctest-vn-68553821 in API_Server ======
2025-10-19 16:11:48,355 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-10-19 16:11:48,359 - DEBUG - Requesting: http://10.0.0.38:8082/domain/c4dc0c6e-82e5-43a1-b4de-ae9d09e19243
2025-10-19 16:11:48,370 - DEBUG - Requesting: http://10.0.0.38:8082/project/bba4ca88-e9cf-463c-b185-305fe595fb8c
2025-10-19 16:11:48,445 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/4afe52f2-50e4-4543-ae43-6d5ef17b2bc3
2025-10-19 16:11:48,454 - DEBUG - ==>Verifying data for policy with id: 9c41adcc-e1d2-4aab-a17b-d22cfd9201b8, fqn: ['default-domain', 'ctest-TestBasicPolicy-12555103', 'ctest-policy-allow-all-00492489']
2025-10-19 16:11:48,454 - INFO - VN ctest-vn-68553821 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-19 16:11:48,454 - DEBUG - Verifying the vn in opserver
2025-10-19 16:11:48,454 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-12555103:ctest-vn-68553821 virtual network link through opserver 10.0.0.38
2025-10-19 16:11:48,454 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-10-19 16:11:48,748 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-10-19 16:11:48,801 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-12555103:ctest-vn-68553821', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-12555103:ctest-vn-68553821?flat'}
2025-10-19 16:11:48,801 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-12555103:ctest-vn-68553821 is found in opserver
2025-10-19 16:11:48,810 - DEBUG - Do not have enough data to verify VN in agent
2025-10-19 16:11:48,815 - DEBUG - VRF ids for VN ctest-vn-68553821: {}
2025-10-19 16:11:48,815 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-10-19 16:11:48,820 - DEBUG - Requesting: http://10.0.0.38:8082/domain/c4dc0c6e-82e5-43a1-b4de-ae9d09e19243
2025-10-19 16:11:48,830 - DEBUG - Requesting: http://10.0.0.38:8082/project/bba4ca88-e9cf-463c-b185-305fe595fb8c
2025-10-19 16:11:48,896 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/2bcb46d8-fef6-4f8e-b63f-f0f9fccefb5d
2025-10-19 16:11:48,907 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/2bcb46d8-fef6-4f8e-b63f-f0f9fccefb5d
2025-10-19 16:11:48,915 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/0489d033-f9f4-4b64-bf99-ef88f56f82bd
2025-10-19 16:11:48,922 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/0489d033-f9f4-4b64-bf99-ef88f56f82bd
2025-10-19 16:11:48,929 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/6676bd72-f38e-454b-8bb8-669d30cc2866
2025-10-19 16:11:48,935 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-19 16:11:48,936 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/2bcb46d8-fef6-4f8e-b63f-f0f9fccefb5d
2025-10-19 16:11:48,944 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/0489d033-f9f4-4b64-bf99-ef88f56f82bd
2025-10-19 16:11:48,956 - INFO - Verified VN network id 12 for VN 2bcb46d8-fef6-4f8e-b63f-f0f9fccefb5d
2025-10-19 16:11:48,956 - INFO - Verifications in API Server for VN ctest-vn-21628581 passed
2025-10-19 16:11:48,956 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/2bcb46d8-fef6-4f8e-b63f-f0f9fccefb5d
2025-10-19 16:11:48,964 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/0489d033-f9f4-4b64-bf99-ef88f56f82bd
2025-10-19 16:11:48,970 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/0489d033-f9f4-4b64-bf99-ef88f56f82bd
2025-10-19 16:11:48,976 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/6676bd72-f38e-454b-8bb8-669d30cc2866
2025-10-19 16:11:48,986 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-12555103:ctest-vn-21628581', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-12555103', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3155693861707599758', 'uuid-lslong': '13132479994914601821'}, 'enable': 'true', 'created': '2025-10-19T16:11:46', 'last-modified': '2025-10-19T16:11:47', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.340150'}
2025-10-19 16:11:48,991 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-19 16:11:48,991 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-21628581 passed
2025-10-19 16:11:48,991 - DEBUG - ====Verifying policy data for ctest-vn-21628581 in API_Server ======
2025-10-19 16:11:48,991 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-10-19 16:11:48,998 - DEBUG - Requesting: http://10.0.0.38:8082/domain/c4dc0c6e-82e5-43a1-b4de-ae9d09e19243
2025-10-19 16:11:49,007 - DEBUG - Requesting: http://10.0.0.38:8082/project/bba4ca88-e9cf-463c-b185-305fe595fb8c
2025-10-19 16:11:49,075 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/2bcb46d8-fef6-4f8e-b63f-f0f9fccefb5d
2025-10-19 16:11:49,083 - DEBUG - ==>Verifying data for policy with id: 9c41adcc-e1d2-4aab-a17b-d22cfd9201b8, fqn: ['default-domain', 'ctest-TestBasicPolicy-12555103', 'ctest-policy-allow-all-00492489']
2025-10-19 16:11:49,083 - INFO - VN ctest-vn-21628581 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-19 16:11:49,083 - DEBUG - Verifying the vn in opserver
2025-10-19 16:11:49,083 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-12555103:ctest-vn-21628581 virtual network link through opserver 10.0.0.38
2025-10-19 16:11:49,083 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-10-19 16:11:49,092 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-12555103:ctest-vn-21628581', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-12555103:ctest-vn-21628581?flat'}
2025-10-19 16:11:49,092 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-12555103:ctest-vn-21628581 is found in opserver
2025-10-19 16:11:49,100 - DEBUG - Do not have enough data to verify VN in agent
2025-10-19 16:11:49,104 - DEBUG - VRF ids for VN ctest-vn-21628581: {}
2025-10-19 16:11:49,164 - DEBUG - Services list from nova: [