2025-09-05 20:17:03,862 - INFO - Domain Default found not creating
2025-09-05 20:17:04,128 - INFO - Project ctest-TestBasicPolicy-58342815 not found, creating it
2025-09-05 20:17:04,714 - INFO - Created Project:ctest-TestBasicPolicy-58342815, ID : 136d03cd-f3ae-4f61-8519-349943ca7a19
2025-09-05 20:17:06,707 - INFO - ================================================================================
2025-09-05 20:17:06,708 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-09-05 20:17:06,708 - 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-09-05 20:17:07,045 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0'}} with
2025-09-05 20:17:07,045 - INFO - Initial checks done. Running the testcase now
2025-09-05 20:17:07,045 - INFO -
2025-09-05 20:17:07,843 - DEBUG - Response for create_network : {'network': {'id': '42383dba-3a0b-44ed-9056-53b7505426f9', 'name': 'ctest-vn-75178593', 'tenant_id': '136d03cdf3ae4f618519349943ca7a19', 'project_id': '136d03cdf3ae4f618519349943ca7a19', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-58342815', 'ctest-vn-75178593'], 'port_security_enabled': True, 'description': ''}}
2025-09-05 20:17:08,031 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e1a93bb6-9c6e-419f-a434-058701cfa040', 'name': '', 'tenant_id': '136d03cdf3ae4f618519349943ca7a19', 'network_id': '42383dba-3a0b-44ed-9056-53b7505426f9', 'ip_version': 4, 'cidr': '158.189.141.128/26', 'allocation_pools': [{'start': '158.189.141.130', 'end': '158.189.141.190'}], 'gateway_ip': '158.189.141.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '158.189.141.130', 'tags': [], 'project_id': '136d03cdf3ae4f618519349943ca7a19'}}
2025-09-05 20:17:08,053 - INFO - Created VN ctest-vn-75178593
2025-09-05 20:17:08,106 - DEBUG - VN ctest-vn-75178593 UUID is 42383dba-3a0b-44ed-9056-53b7505426f9
2025-09-05 20:17:08,650 - DEBUG - Response for create_network : {'network': {'id': '72284269-4ca1-4b47-a590-cefc713c22cc', 'name': 'ctest-vn-44019136', 'tenant_id': '136d03cdf3ae4f618519349943ca7a19', 'project_id': '136d03cdf3ae4f618519349943ca7a19', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-58342815', 'ctest-vn-44019136'], 'port_security_enabled': True, 'description': ''}}
2025-09-05 20:17:08,873 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd5446dad-7e87-4d3f-8ec2-4f558a130c93', 'name': '', 'tenant_id': '136d03cdf3ae4f618519349943ca7a19', 'network_id': '72284269-4ca1-4b47-a590-cefc713c22cc', 'ip_version': 4, 'cidr': '159.38.245.0/26', 'allocation_pools': [{'start': '159.38.245.2', 'end': '159.38.245.62'}], 'gateway_ip': '159.38.245.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '159.38.245.2', 'tags': [], 'project_id': '136d03cdf3ae4f618519349943ca7a19'}}
2025-09-05 20:17:08,895 - INFO - Created VN ctest-vn-44019136
2025-09-05 20:17:08,951 - DEBUG - VN ctest-vn-44019136 UUID is 72284269-4ca1-4b47-a590-cefc713c22cc
2025-09-05 20:17:09,117 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-58342815:ctest-vn-75178593, 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-58342815:ctest-vn-44019136, 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-09-05 20:17:09,605 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '42383dba-3a0b-44ed-9056-53b7505426f9', 'name': 'ctest-vn-75178593', 'tenant_id': '136d03cdf3ae4f618519349943ca7a19', 'project_id': '136d03cdf3ae4f618519349943ca7a19', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e1a93bb6-9c6e-419f-a434-058701cfa040'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-58342815', 'ctest-vn-75178593'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-58342815', 'ctest-policy-allow-all-18940242']], 'subnet_ipam': [{'subnet_cidr': '158.189.141.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-05 20:17:09,923 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '72284269-4ca1-4b47-a590-cefc713c22cc', 'name': 'ctest-vn-44019136', 'tenant_id': '136d03cdf3ae4f618519349943ca7a19', 'project_id': '136d03cdf3ae4f618519349943ca7a19', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d5446dad-7e87-4d3f-8ec2-4f558a130c93'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-58342815', 'ctest-vn-44019136'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-58342815', 'ctest-policy-allow-all-18940242']], 'subnet_ipam': [{'subnet_cidr': '159.38.245.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-05 20:17:10,114 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-09-05 20:17:10,457 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-09-05 20:17:10,481 - DEBUG - Requesting: http://10.0.0.38:8082/domain/a220d87a-df46-4ec0-8dde-a7b39f0ead8d
2025-09-05 20:17:10,492 - DEBUG - Requesting: http://10.0.0.38:8082/project/136d03cd-f3ae-4f61-8519-349943ca7a19
2025-09-05 20:17:10,582 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/42383dba-3a0b-44ed-9056-53b7505426f9
2025-09-05 20:17:10,596 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/42383dba-3a0b-44ed-9056-53b7505426f9
2025-09-05 20:17:10,611 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/69972e09-e5cf-4a36-8b46-f94fc24316a3
2025-09-05 20:17:10,623 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/69972e09-e5cf-4a36-8b46-f94fc24316a3
2025-09-05 20:17:10,636 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/2d9a38c2-ca41-4aa1-87e1-c4f9ff0f44a0
2025-09-05 20:17:10,648 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-05 20:17:10,648 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/42383dba-3a0b-44ed-9056-53b7505426f9
2025-09-05 20:17:10,669 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/69972e09-e5cf-4a36-8b46-f94fc24316a3
2025-09-05 20:17:10,694 - INFO - Verified VN network id 11 for VN 42383dba-3a0b-44ed-9056-53b7505426f9
2025-09-05 20:17:10,695 - INFO - Verifications in API Server for VN ctest-vn-75178593 passed
2025-09-05 20:17:10,695 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/42383dba-3a0b-44ed-9056-53b7505426f9
2025-09-05 20:17:10,715 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/69972e09-e5cf-4a36-8b46-f94fc24316a3
2025-09-05 20:17:10,733 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/69972e09-e5cf-4a36-8b46-f94fc24316a3
2025-09-05 20:17:10,749 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/2d9a38c2-ca41-4aa1-87e1-c4f9ff0f44a0
2025-09-05 20:17:10,778 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-58342815:ctest-vn-75178593', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-58342815', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4771631675246068973', 'uuid-lslong': '10400592436250552057'}, 'enable': 'true', 'created': '2025-09-05T20:17:07', 'last-modified': '2025-09-05T20:17:09', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.250137'}
2025-09-05 20:17:10,794 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-05 20:17:10,795 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-75178593 passed
2025-09-05 20:17:10,795 - DEBUG - ====Verifying policy data for ctest-vn-75178593 in API_Server ======
2025-09-05 20:17:10,795 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-09-05 20:17:10,809 - DEBUG - Requesting: http://10.0.0.38:8082/domain/a220d87a-df46-4ec0-8dde-a7b39f0ead8d
2025-09-05 20:17:10,838 - DEBUG - Requesting: http://10.0.0.38:8082/project/136d03cd-f3ae-4f61-8519-349943ca7a19
2025-09-05 20:17:10,924 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/42383dba-3a0b-44ed-9056-53b7505426f9
2025-09-05 20:17:10,947 - DEBUG - ==>Verifying data for policy with id: dfc6a034-c9be-4464-9c9d-2a689300afa1, fqn: ['default-domain', 'ctest-TestBasicPolicy-58342815', 'ctest-policy-allow-all-18940242']
2025-09-05 20:17:10,947 - INFO - VN ctest-vn-75178593 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-05 20:17:10,947 - DEBUG - Verifying the vn in opserver
2025-09-05 20:17:10,947 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-58342815:ctest-vn-75178593 virtual network link through opserver 10.0.0.38
2025-09-05 20:17:10,948 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-09-05 20:17:11,264 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-09-05 20:17:11,328 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-58342815:ctest-vn-75178593', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-58342815:ctest-vn-75178593?flat'}
2025-09-05 20:17:11,328 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-58342815:ctest-vn-75178593 is found in opserver
2025-09-05 20:17:11,352 - DEBUG - Do not have enough data to verify VN in agent
2025-09-05 20:17:11,363 - DEBUG - VRF ids for VN ctest-vn-75178593: {}
2025-09-05 20:17:11,363 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-09-05 20:17:11,374 - DEBUG - Requesting: http://10.0.0.38:8082/domain/a220d87a-df46-4ec0-8dde-a7b39f0ead8d
2025-09-05 20:17:11,391 - DEBUG - Requesting: http://10.0.0.38:8082/project/136d03cd-f3ae-4f61-8519-349943ca7a19
2025-09-05 20:17:11,517 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/72284269-4ca1-4b47-a590-cefc713c22cc
2025-09-05 20:17:11,544 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/72284269-4ca1-4b47-a590-cefc713c22cc
2025-09-05 20:17:11,559 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/69d4fa80-f337-4cc1-bf96-6021b2db540e
2025-09-05 20:17:11,574 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/69d4fa80-f337-4cc1-bf96-6021b2db540e
2025-09-05 20:17:11,592 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/fe7182e2-8ddc-4267-976b-c63f34a14edd
2025-09-05 20:17:11,604 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-05 20:17:11,604 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/72284269-4ca1-4b47-a590-cefc713c22cc
2025-09-05 20:17:11,622 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/69d4fa80-f337-4cc1-bf96-6021b2db540e
2025-09-05 20:17:11,645 - INFO - Verified VN network id 12 for VN 72284269-4ca1-4b47-a590-cefc713c22cc
2025-09-05 20:17:11,645 - INFO - Verifications in API Server for VN ctest-vn-44019136 passed
2025-09-05 20:17:11,645 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/72284269-4ca1-4b47-a590-cefc713c22cc
2025-09-05 20:17:11,661 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/69d4fa80-f337-4cc1-bf96-6021b2db540e
2025-09-05 20:17:11,671 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/69d4fa80-f337-4cc1-bf96-6021b2db540e
2025-09-05 20:17:11,682 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/fe7182e2-8ddc-4267-976b-c63f34a14edd
2025-09-05 20:17:11,703 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-58342815:ctest-vn-44019136', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-58342815', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8225897739416849223', 'uuid-lslong': '11930262996531290828'}, 'enable': 'true', 'created': '2025-09-05T20:17:08', 'last-modified': '2025-09-05T20:17:09', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.831239'}
2025-09-05 20:17:11,717 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-05 20:17:11,717 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-44019136 passed
2025-09-05 20:17:11,717 - DEBUG - ====Verifying policy data for ctest-vn-44019136 in API_Server ======
2025-09-05 20:17:11,718 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-09-05 20:17:11,728 - DEBUG - Requesting: http://10.0.0.38:8082/domain/a220d87a-df46-4ec0-8dde-a7b39f0ead8d
2025-09-05 20:17:11,744 - DEBUG - Requesting: http://10.0.0.38:8082/project/136d03cd-f3ae-4f61-8519-349943ca7a19
2025-09-05 20:17:11,828 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/72284269-4ca1-4b47-a590-cefc713c22cc
2025-09-05 20:17:11,838 - DEBUG - ==>Verifying data for policy with id: dfc6a034-c9be-4464-9c9d-2a689300afa1, fqn: ['default-domain', 'ctest-TestBasicPolicy-58342815', 'ctest-policy-allow-all-18940242']
2025-09-05 20:17:11,838 - INFO - VN ctest-vn-44019136 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-05 20:17:11,838 - DEBUG - Verifying the vn in opserver
2025-09-05 20:17:11,838 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-58342815:ctest-vn-44019136 virtual network link through opserver 10.0.0.38
2025-09-05 20:17:11,838 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-09-05 20:17:11,847 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-58342815:ctest-vn-44019136', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-58342815:ctest-vn-44019136?flat'}
2025-09-05 20:17:11,848 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-58342815:ctest-vn-44019136 is found in opserver
2025-09-05 20:17:11,864 - DEBUG - Do not have enough data to verify VN in agent
2025-09-05 20:17:11,869 - DEBUG - VRF ids for VN ctest-vn-44019136: {}
2025-09-05 20:17:11,965 - DEBUG - Services list from nova: [