2025-05-28 16:18:01,112 - INFO - Domain Default found not creating
2025-05-28 16:18:01,252 - INFO - Project ctest-TestBasicPolicy-90457777 not found, creating it
2025-05-28 16:18:01,726 - INFO - Created Project:ctest-TestBasicPolicy-90457777, ID : da634cb4-cae4-4181-b03d-b3774c131494
2025-05-28 16:18:03,253 - INFO - ================================================================================
2025-05-28 16:18:03,253 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-05-28 16:18:03,253 - 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-28 16:18:03,508 - DEBUG - Nothing to compare xmpp stats {'10.0.0.241': {'10.20.0.17': '0'}} with
2025-05-28 16:18:03,509 - INFO - Initial checks done. Running the testcase now
2025-05-28 16:18:03,509 - INFO -
2025-05-28 16:18:04,092 - DEBUG - Response for create_network : {'network': {'id': '2d77d272-0e1b-44bb-8bc6-e4b4fcf028ea', 'name': 'ctest-vn-56660980', 'tenant_id': 'da634cb4cae44181b03db3774c131494', 'project_id': 'da634cb4cae44181b03db3774c131494', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-90457777', 'ctest-vn-56660980'], 'port_security_enabled': True, 'description': ''}}
2025-05-28 16:18:04,299 - DEBUG - Response for create_subnet : {'subnet': {'id': '77976115-ad46-4c4f-98c3-746118187c94', 'name': '', 'tenant_id': 'da634cb4cae44181b03db3774c131494', 'network_id': '2d77d272-0e1b-44bb-8bc6-e4b4fcf028ea', 'ip_version': 4, 'cidr': '23.57.144.128/26', 'allocation_pools': [{'start': '23.57.144.130', 'end': '23.57.144.190'}], 'gateway_ip': '23.57.144.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '23.57.144.130', 'tags': [], 'project_id': 'da634cb4cae44181b03db3774c131494'}}
2025-05-28 16:18:04,316 - INFO - Created VN ctest-vn-56660980
2025-05-28 16:18:04,366 - DEBUG - VN ctest-vn-56660980 UUID is 2d77d272-0e1b-44bb-8bc6-e4b4fcf028ea
2025-05-28 16:18:04,700 - DEBUG - Response for create_network : {'network': {'id': '47a96476-9889-4abe-9930-cd8bf658ffe2', 'name': 'ctest-vn-99561824', 'tenant_id': 'da634cb4cae44181b03db3774c131494', 'project_id': 'da634cb4cae44181b03db3774c131494', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-90457777', 'ctest-vn-99561824'], 'port_security_enabled': True, 'description': ''}}
2025-05-28 16:18:04,891 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ff59bb40-453c-4cac-8269-1f24bf653d73', 'name': '', 'tenant_id': 'da634cb4cae44181b03db3774c131494', 'network_id': '47a96476-9889-4abe-9930-cd8bf658ffe2', 'ip_version': 4, 'cidr': '121.175.110.64/26', 'allocation_pools': [{'start': '121.175.110.66', 'end': '121.175.110.126'}], 'gateway_ip': '121.175.110.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '121.175.110.66', 'tags': [], 'project_id': 'da634cb4cae44181b03db3774c131494'}}
2025-05-28 16:18:04,908 - INFO - Created VN ctest-vn-99561824
2025-05-28 16:18:04,962 - DEBUG - VN ctest-vn-99561824 UUID is 47a96476-9889-4abe-9930-cd8bf658ffe2
2025-05-28 16:18:05,110 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-90457777:ctest-vn-56660980, 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-90457777:ctest-vn-99561824, 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-28 16:18:05,394 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2d77d272-0e1b-44bb-8bc6-e4b4fcf028ea', 'name': 'ctest-vn-56660980', 'tenant_id': 'da634cb4cae44181b03db3774c131494', 'project_id': 'da634cb4cae44181b03db3774c131494', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['77976115-ad46-4c4f-98c3-746118187c94'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-90457777', 'ctest-vn-56660980'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-90457777', 'ctest-policy-allow-all-67348932']], 'subnet_ipam': [{'subnet_cidr': '23.57.144.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-05-28 16:18:05,631 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '47a96476-9889-4abe-9930-cd8bf658ffe2', 'name': 'ctest-vn-99561824', 'tenant_id': 'da634cb4cae44181b03db3774c131494', 'project_id': 'da634cb4cae44181b03db3774c131494', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ff59bb40-453c-4cac-8269-1f24bf653d73'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-90457777', 'ctest-vn-99561824'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-90457777', 'ctest-policy-allow-all-67348932']], 'subnet_ipam': [{'subnet_cidr': '121.175.110.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-05-28 16:18:05,782 - DEBUG - Requesting: http://10.0.0.241:8082/domains
2025-05-28 16:18:06,149 - DEBUG - Requesting: http://10.0.0.241:8082/domains
2025-05-28 16:18:06,186 - DEBUG - Requesting: http://10.0.0.241:8082/domain/fc93ff58-0714-406b-8753-efed98742da4
2025-05-28 16:18:06,199 - DEBUG - Requesting: http://10.0.0.241:8082/project/da634cb4-cae4-4181-b03d-b3774c131494
2025-05-28 16:18:06,276 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/2d77d272-0e1b-44bb-8bc6-e4b4fcf028ea
2025-05-28 16:18:06,287 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/2d77d272-0e1b-44bb-8bc6-e4b4fcf028ea
2025-05-28 16:18:06,297 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/dc760372-5679-4ffe-a4c7-9ca4da3bd77d
2025-05-28 16:18:06,304 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/dc760372-5679-4ffe-a4c7-9ca4da3bd77d
2025-05-28 16:18:06,311 - DEBUG - Requesting: http://10.0.0.241:8082/route-target/48d14500-97cd-428f-9fb5-a635eab317cb
2025-05-28 16:18:06,318 - DEBUG - Route Targets: ['target:64512:8000005']
2025-05-28 16:18:06,318 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/2d77d272-0e1b-44bb-8bc6-e4b4fcf028ea
2025-05-28 16:18:06,329 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/dc760372-5679-4ffe-a4c7-9ca4da3bd77d
2025-05-28 16:18:06,343 - INFO - Verified VN network id 8 for VN 2d77d272-0e1b-44bb-8bc6-e4b4fcf028ea
2025-05-28 16:18:06,344 - INFO - Verifications in API Server for VN ctest-vn-56660980 passed
2025-05-28 16:18:06,344 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/2d77d272-0e1b-44bb-8bc6-e4b4fcf028ea
2025-05-28 16:18:06,353 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/dc760372-5679-4ffe-a4c7-9ca4da3bd77d
2025-05-28 16:18:06,360 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/dc760372-5679-4ffe-a4c7-9ca4da3bd77d
2025-05-28 16:18:06,367 - DEBUG - Requesting: http://10.0.0.241:8082/route-target/48d14500-97cd-428f-9fb5-a635eab317cb
2025-05-28 16:18:06,379 - DEBUG - Control-node 10.0.0.241 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-90457777:ctest-vn-56660980', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-90457777', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3276318641240097979', 'uuid-lslong': '10071989082649536746'}, 'enable': 'true', 'created': '2025-05-28T16:18:04', 'last-modified': '2025-05-28T16:18:05', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.006397'}
2025-05-28 16:18:06,386 - DEBUG - Route Targets: ['target:64512:8000005']
2025-05-28 16:18:06,386 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-56660980 passed
2025-05-28 16:18:06,386 - DEBUG - ====Verifying policy data for ctest-vn-56660980 in API_Server ======
2025-05-28 16:18:06,386 - DEBUG - Requesting: http://10.0.0.241:8082/domains
2025-05-28 16:18:06,391 - DEBUG - Requesting: http://10.0.0.241:8082/domain/fc93ff58-0714-406b-8753-efed98742da4
2025-05-28 16:18:06,402 - DEBUG - Requesting: http://10.0.0.241:8082/project/da634cb4-cae4-4181-b03d-b3774c131494
2025-05-28 16:18:06,477 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/2d77d272-0e1b-44bb-8bc6-e4b4fcf028ea
2025-05-28 16:18:06,487 - DEBUG - ==>Verifying data for policy with id: 63ab8f27-3d30-4b24-a15d-4c9bf476c030, fqn: ['default-domain', 'ctest-TestBasicPolicy-90457777', 'ctest-policy-allow-all-67348932']
2025-05-28 16:18:06,487 - INFO - VN ctest-vn-56660980 Policy verification: verify_vn_policy_in_api_server, status: True
2025-05-28 16:18:06,487 - DEBUG - Verifying the vn in opserver
2025-05-28 16:18:06,487 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-90457777:ctest-vn-56660980 virtual network link through opserver 10.0.0.241
2025-05-28 16:18:06,487 - DEBUG - Requesting: http://10.0.0.241:8081/analytics/uves/virtual-networks
2025-05-28 16:18:06,818 - DEBUG - Requesting: http://10.0.0.241:8081/analytics/uves/virtual-networks
2025-05-28 16:18:06,880 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-90457777:ctest-vn-56660980', 'href': 'http://10.0.0.241:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-90457777:ctest-vn-56660980?flat'}
2025-05-28 16:18:06,880 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-90457777:ctest-vn-56660980 is found in opserver
2025-05-28 16:18:06,891 - DEBUG - Do not have enough data to verify VN in agent
2025-05-28 16:18:06,896 - DEBUG - VRF ids for VN ctest-vn-56660980: {}
2025-05-28 16:18:06,897 - DEBUG - Requesting: http://10.0.0.241:8082/domains
2025-05-28 16:18:06,902 - DEBUG - Requesting: http://10.0.0.241:8082/domain/fc93ff58-0714-406b-8753-efed98742da4
2025-05-28 16:18:06,914 - DEBUG - Requesting: http://10.0.0.241:8082/project/da634cb4-cae4-4181-b03d-b3774c131494
2025-05-28 16:18:06,989 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/47a96476-9889-4abe-9930-cd8bf658ffe2
2025-05-28 16:18:07,001 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/47a96476-9889-4abe-9930-cd8bf658ffe2
2025-05-28 16:18:07,011 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/c68b088c-ce5c-415b-983d-95fb88ff7a60
2025-05-28 16:18:07,019 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/c68b088c-ce5c-415b-983d-95fb88ff7a60
2025-05-28 16:18:07,027 - DEBUG - Requesting: http://10.0.0.241:8082/route-target/cdcfd779-3584-4c4d-8276-3af9e8afd249
2025-05-28 16:18:07,034 - DEBUG - Route Targets: ['target:64512:8000006']
2025-05-28 16:18:07,034 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/47a96476-9889-4abe-9930-cd8bf658ffe2
2025-05-28 16:18:07,043 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/c68b088c-ce5c-415b-983d-95fb88ff7a60
2025-05-28 16:18:07,057 - INFO - Verified VN network id 9 for VN 47a96476-9889-4abe-9930-cd8bf658ffe2
2025-05-28 16:18:07,057 - INFO - Verifications in API Server for VN ctest-vn-99561824 passed
2025-05-28 16:18:07,057 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/47a96476-9889-4abe-9930-cd8bf658ffe2
2025-05-28 16:18:07,067 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/c68b088c-ce5c-415b-983d-95fb88ff7a60
2025-05-28 16:18:07,074 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/c68b088c-ce5c-415b-983d-95fb88ff7a60
2025-05-28 16:18:07,081 - DEBUG - Requesting: http://10.0.0.241:8082/route-target/cdcfd779-3584-4c4d-8276-3af9e8afd249
2025-05-28 16:18:07,092 - DEBUG - Control-node 10.0.0.241 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-90457777:ctest-vn-99561824', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-90457777', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5163768908285037246', 'uuid-lslong': '11038548687702261730'}, 'enable': 'true', 'created': '2025-05-28T16:18:04', 'last-modified': '2025-05-28T16:18:05', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.481084'}
2025-05-28 16:18:07,099 - DEBUG - Route Targets: ['target:64512:8000006']
2025-05-28 16:18:07,099 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-99561824 passed
2025-05-28 16:18:07,099 - DEBUG - ====Verifying policy data for ctest-vn-99561824 in API_Server ======
2025-05-28 16:18:07,099 - DEBUG - Requesting: http://10.0.0.241:8082/domains
2025-05-28 16:18:07,104 - DEBUG - Requesting: http://10.0.0.241:8082/domain/fc93ff58-0714-406b-8753-efed98742da4
2025-05-28 16:18:07,115 - DEBUG - Requesting: http://10.0.0.241:8082/project/da634cb4-cae4-4181-b03d-b3774c131494
2025-05-28 16:18:07,191 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/47a96476-9889-4abe-9930-cd8bf658ffe2
2025-05-28 16:18:07,201 - DEBUG - ==>Verifying data for policy with id: 63ab8f27-3d30-4b24-a15d-4c9bf476c030, fqn: ['default-domain', 'ctest-TestBasicPolicy-90457777', 'ctest-policy-allow-all-67348932']
2025-05-28 16:18:07,201 - INFO - VN ctest-vn-99561824 Policy verification: verify_vn_policy_in_api_server, status: True
2025-05-28 16:18:07,201 - DEBUG - Verifying the vn in opserver
2025-05-28 16:18:07,201 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-90457777:ctest-vn-99561824 virtual network link through opserver 10.0.0.241
2025-05-28 16:18:07,201 - DEBUG - Requesting: http://10.0.0.241:8081/analytics/uves/virtual-networks
2025-05-28 16:18:07,212 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-90457777:ctest-vn-99561824', 'href': 'http://10.0.0.241:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-90457777:ctest-vn-99561824?flat'}
2025-05-28 16:18:07,212 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-90457777:ctest-vn-99561824 is found in opserver
2025-05-28 16:18:07,223 - DEBUG - Do not have enough data to verify VN in agent
2025-05-28 16:18:07,228 - DEBUG - VRF ids for VN ctest-vn-99561824: {}
2025-05-28 16:18:07,282 - DEBUG - Services list from nova: [