2025-08-22 16:33:38,184 - INFO - Domain Default found not creating
2025-08-22 16:33:38,322 - INFO - Project ctest-TestBasicPolicy-06804575 not found, creating it
2025-08-22 16:33:38,771 - INFO - Created Project:ctest-TestBasicPolicy-06804575, ID : f00c0fef-3472-46de-a582-3f8e908884e4
2025-08-22 16:33:40,232 - INFO - ================================================================================
2025-08-22 16:33:40,232 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-08-22 16:33:40,232 - 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-08-22 16:33:40,491 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with
2025-08-22 16:33:40,492 - INFO - Initial checks done. Running the testcase now
2025-08-22 16:33:40,492 - INFO -
2025-08-22 16:33:41,049 - DEBUG - Response for create_network : {'network': {'id': 'e005fc00-a24c-46f4-a21a-1b21bb7f9d1c', 'name': 'ctest-vn-24084625', 'tenant_id': 'f00c0fef347246dea5823f8e908884e4', 'project_id': 'f00c0fef347246dea5823f8e908884e4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-06804575', 'ctest-vn-24084625'], 'port_security_enabled': True, 'description': ''}}
2025-08-22 16:33:41,232 - DEBUG - Response for create_subnet : {'subnet': {'id': '20200868-767b-40cc-ad9c-dd66ad2a8640', 'name': '', 'tenant_id': 'f00c0fef347246dea5823f8e908884e4', 'network_id': 'e005fc00-a24c-46f4-a21a-1b21bb7f9d1c', 'ip_version': 4, 'cidr': '93.120.206.128/26', 'allocation_pools': [{'start': '93.120.206.130', 'end': '93.120.206.190'}], 'gateway_ip': '93.120.206.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '93.120.206.130', 'tags': [], 'project_id': 'f00c0fef347246dea5823f8e908884e4'}}
2025-08-22 16:33:41,249 - INFO - Created VN ctest-vn-24084625
2025-08-22 16:33:41,301 - DEBUG - VN ctest-vn-24084625 UUID is e005fc00-a24c-46f4-a21a-1b21bb7f9d1c
2025-08-22 16:33:41,617 - DEBUG - Response for create_network : {'network': {'id': 'ca0a5a9e-b6e9-4a07-94f8-4fa78a7f2ba2', 'name': 'ctest-vn-27434478', 'tenant_id': 'f00c0fef347246dea5823f8e908884e4', 'project_id': 'f00c0fef347246dea5823f8e908884e4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-06804575', 'ctest-vn-27434478'], 'port_security_enabled': True, 'description': ''}}
2025-08-22 16:33:41,844 - DEBUG - Response for create_subnet : {'subnet': {'id': '0f769541-9da8-4c48-b1dd-fe65a387c621', 'name': '', 'tenant_id': 'f00c0fef347246dea5823f8e908884e4', 'network_id': 'ca0a5a9e-b6e9-4a07-94f8-4fa78a7f2ba2', 'ip_version': 4, 'cidr': '57.29.239.128/26', 'allocation_pools': [{'start': '57.29.239.130', 'end': '57.29.239.190'}], 'gateway_ip': '57.29.239.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '57.29.239.130', 'tags': [], 'project_id': 'f00c0fef347246dea5823f8e908884e4'}}
2025-08-22 16:33:41,862 - INFO - Created VN ctest-vn-27434478
2025-08-22 16:33:41,913 - DEBUG - VN ctest-vn-27434478 UUID is ca0a5a9e-b6e9-4a07-94f8-4fa78a7f2ba2
2025-08-22 16:33:42,028 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-06804575:ctest-vn-24084625, 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-06804575:ctest-vn-27434478, 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-08-22 16:33:42,324 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e005fc00-a24c-46f4-a21a-1b21bb7f9d1c', 'name': 'ctest-vn-24084625', 'tenant_id': 'f00c0fef347246dea5823f8e908884e4', 'project_id': 'f00c0fef347246dea5823f8e908884e4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['20200868-767b-40cc-ad9c-dd66ad2a8640'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-06804575', 'ctest-vn-24084625'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-06804575', 'ctest-policy-allow-all-33024173']], 'subnet_ipam': [{'subnet_cidr': '93.120.206.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-22 16:33:42,595 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ca0a5a9e-b6e9-4a07-94f8-4fa78a7f2ba2', 'name': 'ctest-vn-27434478', 'tenant_id': 'f00c0fef347246dea5823f8e908884e4', 'project_id': 'f00c0fef347246dea5823f8e908884e4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0f769541-9da8-4c48-b1dd-fe65a387c621'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-06804575', 'ctest-vn-27434478'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-06804575', 'ctest-policy-allow-all-33024173']], 'subnet_ipam': [{'subnet_cidr': '57.29.239.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-22 16:33:42,757 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-08-22 16:33:43,051 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-08-22 16:33:43,077 - DEBUG - Requesting: http://10.0.0.254:8082/domain/bf53a1a6-cb6d-44dc-83b6-3bb6a4e6571e
2025-08-22 16:33:43,090 - DEBUG - Requesting: http://10.0.0.254:8082/project/f00c0fef-3472-46de-a582-3f8e908884e4
2025-08-22 16:33:43,161 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/e005fc00-a24c-46f4-a21a-1b21bb7f9d1c
2025-08-22 16:33:43,172 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/e005fc00-a24c-46f4-a21a-1b21bb7f9d1c
2025-08-22 16:33:43,182 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/cfdbd393-c983-4064-9165-b58edd0244f0
2025-08-22 16:33:43,189 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/cfdbd393-c983-4064-9165-b58edd0244f0
2025-08-22 16:33:43,195 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/12284050-dfa7-48d3-a0a0-823c8c1b2dbc
2025-08-22 16:33:43,201 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-22 16:33:43,201 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/e005fc00-a24c-46f4-a21a-1b21bb7f9d1c
2025-08-22 16:33:43,209 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/cfdbd393-c983-4064-9165-b58edd0244f0
2025-08-22 16:33:43,222 - INFO - Verified VN network id 12 for VN e005fc00-a24c-46f4-a21a-1b21bb7f9d1c
2025-08-22 16:33:43,222 - INFO - Verifications in API Server for VN ctest-vn-24084625 passed
2025-08-22 16:33:43,222 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/e005fc00-a24c-46f4-a21a-1b21bb7f9d1c
2025-08-22 16:33:43,231 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/cfdbd393-c983-4064-9165-b58edd0244f0
2025-08-22 16:33:43,237 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/cfdbd393-c983-4064-9165-b58edd0244f0
2025-08-22 16:33:43,243 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/12284050-dfa7-48d3-a0a0-823c8c1b2dbc
2025-08-22 16:33:43,255 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-06804575:ctest-vn-24084625', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-06804575', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16142585519032518388', 'uuid-lslong': '11680678415232376092'}, 'enable': 'true', 'created': '2025-08-22T16:33:41', 'last-modified': '2025-08-22T16:33:42', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.960991'}
2025-08-22 16:33:43,262 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-22 16:33:43,262 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-24084625 passed
2025-08-22 16:33:43,262 - DEBUG - ====Verifying policy data for ctest-vn-24084625 in API_Server ======
2025-08-22 16:33:43,262 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-08-22 16:33:43,268 - DEBUG - Requesting: http://10.0.0.254:8082/domain/bf53a1a6-cb6d-44dc-83b6-3bb6a4e6571e
2025-08-22 16:33:43,279 - DEBUG - Requesting: http://10.0.0.254:8082/project/f00c0fef-3472-46de-a582-3f8e908884e4
2025-08-22 16:33:43,353 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/e005fc00-a24c-46f4-a21a-1b21bb7f9d1c
2025-08-22 16:33:43,366 - DEBUG - ==>Verifying data for policy with id: 7524ddf6-bc2d-4f8e-b9f7-c0222527132e, fqn: ['default-domain', 'ctest-TestBasicPolicy-06804575', 'ctest-policy-allow-all-33024173']
2025-08-22 16:33:43,366 - INFO - VN ctest-vn-24084625 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-22 16:33:43,366 - DEBUG - Verifying the vn in opserver
2025-08-22 16:33:43,366 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-06804575:ctest-vn-24084625 virtual network link through opserver 10.0.0.254
2025-08-22 16:33:43,367 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-08-22 16:33:43,653 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-08-22 16:33:43,703 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-06804575:ctest-vn-24084625', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-06804575:ctest-vn-24084625?flat'}
2025-08-22 16:33:43,703 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-06804575:ctest-vn-24084625 is found in opserver
2025-08-22 16:33:43,715 - DEBUG - Do not have enough data to verify VN in agent
2025-08-22 16:33:43,720 - DEBUG - VRF ids for VN ctest-vn-24084625: {}
2025-08-22 16:33:43,720 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-08-22 16:33:43,726 - DEBUG - Requesting: http://10.0.0.254:8082/domain/bf53a1a6-cb6d-44dc-83b6-3bb6a4e6571e
2025-08-22 16:33:43,738 - DEBUG - Requesting: http://10.0.0.254:8082/project/f00c0fef-3472-46de-a582-3f8e908884e4
2025-08-22 16:33:43,808 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/ca0a5a9e-b6e9-4a07-94f8-4fa78a7f2ba2
2025-08-22 16:33:43,822 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/ca0a5a9e-b6e9-4a07-94f8-4fa78a7f2ba2
2025-08-22 16:33:43,832 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/f130a007-3818-4243-b6b6-faa4479f1b8f
2025-08-22 16:33:43,840 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/f130a007-3818-4243-b6b6-faa4479f1b8f
2025-08-22 16:33:43,847 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/78c7d16f-2b94-40a5-b49d-9c7100139b9d
2025-08-22 16:33:43,854 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-22 16:33:43,854 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/ca0a5a9e-b6e9-4a07-94f8-4fa78a7f2ba2
2025-08-22 16:33:43,862 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/f130a007-3818-4243-b6b6-faa4479f1b8f
2025-08-22 16:33:43,875 - INFO - Verified VN network id 13 for VN ca0a5a9e-b6e9-4a07-94f8-4fa78a7f2ba2
2025-08-22 16:33:43,875 - INFO - Verifications in API Server for VN ctest-vn-27434478 passed
2025-08-22 16:33:43,875 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/ca0a5a9e-b6e9-4a07-94f8-4fa78a7f2ba2
2025-08-22 16:33:43,885 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/f130a007-3818-4243-b6b6-faa4479f1b8f
2025-08-22 16:33:43,892 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/f130a007-3818-4243-b6b6-faa4479f1b8f
2025-08-22 16:33:43,899 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/78c7d16f-2b94-40a5-b49d-9c7100139b9d
2025-08-22 16:33:43,910 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-06804575:ctest-vn-27434478', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-06804575', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14558548383148624391', 'uuid-lslong': '10734417292839300002'}, 'enable': 'true', 'created': '2025-08-22T16:33:41', 'last-modified': '2025-08-22T16:33:42', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.375665'}
2025-08-22 16:33:43,916 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-22 16:33:43,917 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-27434478 passed
2025-08-22 16:33:43,917 - DEBUG - ====Verifying policy data for ctest-vn-27434478 in API_Server ======
2025-08-22 16:33:43,917 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-08-22 16:33:43,922 - DEBUG - Requesting: http://10.0.0.254:8082/domain/bf53a1a6-cb6d-44dc-83b6-3bb6a4e6571e
2025-08-22 16:33:43,934 - DEBUG - Requesting: http://10.0.0.254:8082/project/f00c0fef-3472-46de-a582-3f8e908884e4
2025-08-22 16:33:44,007 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/ca0a5a9e-b6e9-4a07-94f8-4fa78a7f2ba2
2025-08-22 16:33:44,027 - DEBUG - ==>Verifying data for policy with id: 7524ddf6-bc2d-4f8e-b9f7-c0222527132e, fqn: ['default-domain', 'ctest-TestBasicPolicy-06804575', 'ctest-policy-allow-all-33024173']
2025-08-22 16:33:44,027 - INFO - VN ctest-vn-27434478 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-22 16:33:44,027 - DEBUG - Verifying the vn in opserver
2025-08-22 16:33:44,027 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-06804575:ctest-vn-27434478 virtual network link through opserver 10.0.0.254
2025-08-22 16:33:44,027 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-08-22 16:33:44,037 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-06804575:ctest-vn-27434478', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-06804575:ctest-vn-27434478?flat'}
2025-08-22 16:33:44,037 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-06804575:ctest-vn-27434478 is found in opserver
2025-08-22 16:33:44,047 - DEBUG - Do not have enough data to verify VN in agent
2025-08-22 16:33:44,052 - DEBUG - VRF ids for VN ctest-vn-27434478: {}
2025-08-22 16:33:44,104 - DEBUG - Services list from nova: [