2025-11-04 08:58:27,120 - INFO - Domain Default found not creating
2025-11-04 08:58:27,271 - INFO - Project ctest-TestBasicPolicy-35905322 not found, creating it
2025-11-04 08:58:27,707 - INFO - Created Project:ctest-TestBasicPolicy-35905322, ID : 8b385b97-64ed-4ca4-a2fa-873efc3ba414
2025-11-04 08:58:29,266 - INFO - ================================================================================
2025-11-04 08:58:29,266 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-11-04 08:58:29,266 - 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-11-04 08:58:29,521 - DEBUG - Nothing to compare xmpp stats {'10.0.0.48': {'10.20.0.17': '0'}} with
2025-11-04 08:58:29,521 - INFO - Initial checks done. Running the testcase now
2025-11-04 08:58:29,521 - INFO -
2025-11-04 08:58:30,108 - DEBUG - Response for create_network : {'network': {'id': 'bdce8961-27ef-42ef-a4d4-a10def1747ef', 'name': 'ctest-vn-11995220', 'tenant_id': '8b385b9764ed4ca4a2fa873efc3ba414', 'project_id': '8b385b9764ed4ca4a2fa873efc3ba414', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-35905322', 'ctest-vn-11995220'], 'port_security_enabled': True, 'description': ''}}
2025-11-04 08:58:30,333 - DEBUG - Response for create_subnet : {'subnet': {'id': '2a4aaea4-a69d-44db-a99b-c289d51db820', 'name': '', 'tenant_id': '8b385b9764ed4ca4a2fa873efc3ba414', 'network_id': 'bdce8961-27ef-42ef-a4d4-a10def1747ef', 'ip_version': 4, 'cidr': '7.158.142.192/26', 'allocation_pools': [{'start': '7.158.142.194', 'end': '7.158.142.254'}], 'gateway_ip': '7.158.142.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '7.158.142.194', 'tags': [], 'project_id': '8b385b9764ed4ca4a2fa873efc3ba414'}}
2025-11-04 08:58:30,355 - INFO - Created VN ctest-vn-11995220
2025-11-04 08:58:30,407 - DEBUG - VN ctest-vn-11995220 UUID is bdce8961-27ef-42ef-a4d4-a10def1747ef
2025-11-04 08:58:30,684 - DEBUG - Response for create_network : {'network': {'id': '22741d30-98d8-40e9-a1d5-70e45d53ca34', 'name': 'ctest-vn-97496766', 'tenant_id': '8b385b9764ed4ca4a2fa873efc3ba414', 'project_id': '8b385b9764ed4ca4a2fa873efc3ba414', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-35905322', 'ctest-vn-97496766'], 'port_security_enabled': True, 'description': ''}}
2025-11-04 08:58:30,905 - DEBUG - Response for create_subnet : {'subnet': {'id': '3d47e093-ba5b-4c8b-b590-3c7b65f9dfaa', 'name': '', 'tenant_id': '8b385b9764ed4ca4a2fa873efc3ba414', 'network_id': '22741d30-98d8-40e9-a1d5-70e45d53ca34', 'ip_version': 4, 'cidr': '149.38.64.192/26', 'allocation_pools': [{'start': '149.38.64.194', 'end': '149.38.64.254'}], 'gateway_ip': '149.38.64.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '149.38.64.194', 'tags': [], 'project_id': '8b385b9764ed4ca4a2fa873efc3ba414'}}
2025-11-04 08:58:30,924 - INFO - Created VN ctest-vn-97496766
2025-11-04 08:58:30,979 - DEBUG - VN ctest-vn-97496766 UUID is 22741d30-98d8-40e9-a1d5-70e45d53ca34
2025-11-04 08:58:31,099 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-35905322:ctest-vn-11995220, 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-35905322:ctest-vn-97496766, 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-11-04 08:58:31,400 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'bdce8961-27ef-42ef-a4d4-a10def1747ef', 'name': 'ctest-vn-11995220', 'tenant_id': '8b385b9764ed4ca4a2fa873efc3ba414', 'project_id': '8b385b9764ed4ca4a2fa873efc3ba414', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2a4aaea4-a69d-44db-a99b-c289d51db820'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-35905322', 'ctest-vn-11995220'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-35905322', 'ctest-policy-allow-all-78284291']], 'subnet_ipam': [{'subnet_cidr': '7.158.142.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-04 08:58:31,634 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '22741d30-98d8-40e9-a1d5-70e45d53ca34', 'name': 'ctest-vn-97496766', 'tenant_id': '8b385b9764ed4ca4a2fa873efc3ba414', 'project_id': '8b385b9764ed4ca4a2fa873efc3ba414', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3d47e093-ba5b-4c8b-b590-3c7b65f9dfaa'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-35905322', 'ctest-vn-97496766'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-35905322', 'ctest-policy-allow-all-78284291']], 'subnet_ipam': [{'subnet_cidr': '149.38.64.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-04 08:58:31,803 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2025-11-04 08:58:32,142 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2025-11-04 08:58:32,173 - DEBUG - Requesting: http://10.0.0.48:8082/domain/d6f075c9-7c74-4650-9969-b3f1bf15d236
2025-11-04 08:58:32,186 - DEBUG - Requesting: http://10.0.0.48:8082/project/8b385b97-64ed-4ca4-a2fa-873efc3ba414
2025-11-04 08:58:32,258 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/bdce8961-27ef-42ef-a4d4-a10def1747ef
2025-11-04 08:58:32,272 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/bdce8961-27ef-42ef-a4d4-a10def1747ef
2025-11-04 08:58:32,283 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/f26cb9b7-87d9-42c0-9542-84bb16eeabfd
2025-11-04 08:58:32,291 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/f26cb9b7-87d9-42c0-9542-84bb16eeabfd
2025-11-04 08:58:32,298 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/a5167fef-f7b1-4354-89f6-31a629abb4b2
2025-11-04 08:58:32,304 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-04 08:58:32,304 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/bdce8961-27ef-42ef-a4d4-a10def1747ef
2025-11-04 08:58:32,313 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/f26cb9b7-87d9-42c0-9542-84bb16eeabfd
2025-11-04 08:58:32,327 - INFO - Verified VN network id 11 for VN bdce8961-27ef-42ef-a4d4-a10def1747ef
2025-11-04 08:58:32,327 - INFO - Verifications in API Server for VN ctest-vn-11995220 passed
2025-11-04 08:58:32,328 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/bdce8961-27ef-42ef-a4d4-a10def1747ef
2025-11-04 08:58:32,337 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/f26cb9b7-87d9-42c0-9542-84bb16eeabfd
2025-11-04 08:58:32,343 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/f26cb9b7-87d9-42c0-9542-84bb16eeabfd
2025-11-04 08:58:32,349 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/a5167fef-f7b1-4354-89f6-31a629abb4b2
2025-11-04 08:58:32,361 - DEBUG - Control-node 10.0.0.48 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-35905322:ctest-vn-11995220', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-35905322', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13677020168745599727', 'uuid-lslong': '11877295198500767727'}, 'enable': 'true', 'created': '2025-11-04T08:58:30', 'last-modified': '2025-11-04T08:58:31', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.986037'}
2025-11-04 08:58:32,367 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-04 08:58:32,368 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-11995220 passed
2025-11-04 08:58:32,368 - DEBUG - ====Verifying policy data for ctest-vn-11995220 in API_Server ======
2025-11-04 08:58:32,368 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2025-11-04 08:58:32,373 - DEBUG - Requesting: http://10.0.0.48:8082/domain/d6f075c9-7c74-4650-9969-b3f1bf15d236
2025-11-04 08:58:32,383 - DEBUG - Requesting: http://10.0.0.48:8082/project/8b385b97-64ed-4ca4-a2fa-873efc3ba414
2025-11-04 08:58:32,456 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/bdce8961-27ef-42ef-a4d4-a10def1747ef
2025-11-04 08:58:32,466 - DEBUG - ==>Verifying data for policy with id: b0c3ac48-6bee-417b-b6c5-0834f28285cf, fqn: ['default-domain', 'ctest-TestBasicPolicy-35905322', 'ctest-policy-allow-all-78284291']
2025-11-04 08:58:32,466 - INFO - VN ctest-vn-11995220 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-04 08:58:32,466 - DEBUG - Verifying the vn in opserver
2025-11-04 08:58:32,466 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-35905322:ctest-vn-11995220 virtual network link through opserver 10.0.0.48
2025-11-04 08:58:32,466 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks
2025-11-04 08:58:32,797 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks
2025-11-04 08:58:32,848 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-35905322:ctest-vn-11995220', 'href': 'http://10.0.0.48:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-35905322:ctest-vn-11995220?flat'}
2025-11-04 08:58:32,848 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-35905322:ctest-vn-11995220 is found in opserver
2025-11-04 08:58:32,858 - DEBUG - Do not have enough data to verify VN in agent
2025-11-04 08:58:32,862 - DEBUG - VRF ids for VN ctest-vn-11995220: {}
2025-11-04 08:58:32,862 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2025-11-04 08:58:32,867 - DEBUG - Requesting: http://10.0.0.48:8082/domain/d6f075c9-7c74-4650-9969-b3f1bf15d236
2025-11-04 08:58:32,877 - DEBUG - Requesting: http://10.0.0.48:8082/project/8b385b97-64ed-4ca4-a2fa-873efc3ba414
2025-11-04 08:58:32,945 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/22741d30-98d8-40e9-a1d5-70e45d53ca34
2025-11-04 08:58:32,957 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/22741d30-98d8-40e9-a1d5-70e45d53ca34
2025-11-04 08:58:32,968 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/ba366c0f-7022-4592-8f15-5cc46bcce6f2
2025-11-04 08:58:32,976 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/ba366c0f-7022-4592-8f15-5cc46bcce6f2
2025-11-04 08:58:32,982 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/e44fb000-3f64-4d30-a22d-5283d58c754d
2025-11-04 08:58:32,988 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-04 08:58:32,988 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/22741d30-98d8-40e9-a1d5-70e45d53ca34
2025-11-04 08:58:32,995 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/ba366c0f-7022-4592-8f15-5cc46bcce6f2
2025-11-04 08:58:33,008 - INFO - Verified VN network id 12 for VN 22741d30-98d8-40e9-a1d5-70e45d53ca34
2025-11-04 08:58:33,009 - INFO - Verifications in API Server for VN ctest-vn-97496766 passed
2025-11-04 08:58:33,009 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/22741d30-98d8-40e9-a1d5-70e45d53ca34
2025-11-04 08:58:33,017 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/ba366c0f-7022-4592-8f15-5cc46bcce6f2
2025-11-04 08:58:33,023 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/ba366c0f-7022-4592-8f15-5cc46bcce6f2
2025-11-04 08:58:33,028 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/e44fb000-3f64-4d30-a22d-5283d58c754d
2025-11-04 08:58:33,039 - DEBUG - Control-node 10.0.0.48 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-35905322:ctest-vn-97496766', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-35905322', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2482641389147930857', 'uuid-lslong': '11661350936266394164'}, 'enable': 'true', 'created': '2025-11-04T08:58:30', 'last-modified': '2025-11-04T08:58:31', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.432553'}
2025-11-04 08:58:33,044 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-04 08:58:33,044 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-97496766 passed
2025-11-04 08:58:33,044 - DEBUG - ====Verifying policy data for ctest-vn-97496766 in API_Server ======
2025-11-04 08:58:33,044 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2025-11-04 08:58:33,049 - DEBUG - Requesting: http://10.0.0.48:8082/domain/d6f075c9-7c74-4650-9969-b3f1bf15d236
2025-11-04 08:58:33,060 - DEBUG - Requesting: http://10.0.0.48:8082/project/8b385b97-64ed-4ca4-a2fa-873efc3ba414
2025-11-04 08:58:33,128 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/22741d30-98d8-40e9-a1d5-70e45d53ca34
2025-11-04 08:58:33,137 - DEBUG - ==>Verifying data for policy with id: b0c3ac48-6bee-417b-b6c5-0834f28285cf, fqn: ['default-domain', 'ctest-TestBasicPolicy-35905322', 'ctest-policy-allow-all-78284291']
2025-11-04 08:58:33,137 - INFO - VN ctest-vn-97496766 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-04 08:58:33,137 - DEBUG - Verifying the vn in opserver
2025-11-04 08:58:33,137 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-35905322:ctest-vn-97496766 virtual network link through opserver 10.0.0.48
2025-11-04 08:58:33,137 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks
2025-11-04 08:58:33,146 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-35905322:ctest-vn-97496766', 'href': 'http://10.0.0.48:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-35905322:ctest-vn-97496766?flat'}
2025-11-04 08:58:33,146 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-35905322:ctest-vn-97496766 is found in opserver
2025-11-04 08:58:33,155 - DEBUG - Do not have enough data to verify VN in agent
2025-11-04 08:58:33,159 - DEBUG - VRF ids for VN ctest-vn-97496766: {}
2025-11-04 08:58:33,213 - DEBUG - Services list from nova: [