2025-11-05 14:05:43,986 - INFO - Domain Default found not creating
2025-11-05 14:05:44,164 - INFO - Project ctest-TestBasicPolicy-79865238 not found, creating it
2025-11-05 14:05:44,632 - INFO - Created Project:ctest-TestBasicPolicy-79865238, ID : 5646908a-c951-4838-bfc8-ff3ad594190c
2025-11-05 14:05:46,210 - INFO - ================================================================================
2025-11-05 14:05:46,210 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-11-05 14:05:46,210 - 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-05 14:05:46,469 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.201': '0'}} with
2025-11-05 14:05:46,469 - INFO - Initial checks done. Running the testcase now
2025-11-05 14:05:46,469 - INFO -
2025-11-05 14:05:47,088 - DEBUG - Response for create_network : {'network': {'id': 'e0f6572b-86cf-4961-8cb8-aa1f1b1f6549', 'name': 'ctest-vn-18481777', 'tenant_id': '5646908ac9514838bfc8ff3ad594190c', 'project_id': '5646908ac9514838bfc8ff3ad594190c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-79865238', 'ctest-vn-18481777'], 'port_security_enabled': True, 'description': ''}}
2025-11-05 14:05:47,236 - DEBUG - Response for create_subnet : {'subnet': {'id': 'eb100fab-bb69-4a4e-891d-dd88392eb2db', 'name': '', 'tenant_id': '5646908ac9514838bfc8ff3ad594190c', 'network_id': 'e0f6572b-86cf-4961-8cb8-aa1f1b1f6549', 'ip_version': 4, 'cidr': '121.225.214.64/26', 'allocation_pools': [{'start': '121.225.214.66', 'end': '121.225.214.126'}], 'gateway_ip': '121.225.214.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '121.225.214.66', 'tags': [], 'project_id': '5646908ac9514838bfc8ff3ad594190c'}}
2025-11-05 14:05:47,255 - INFO - Created VN ctest-vn-18481777
2025-11-05 14:05:47,310 - DEBUG - VN ctest-vn-18481777 UUID is e0f6572b-86cf-4961-8cb8-aa1f1b1f6549
2025-11-05 14:05:47,609 - DEBUG - Response for create_network : {'network': {'id': '31047f2a-918d-44cb-a234-e535ed946f11', 'name': 'ctest-vn-76639290', 'tenant_id': '5646908ac9514838bfc8ff3ad594190c', 'project_id': '5646908ac9514838bfc8ff3ad594190c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-79865238', 'ctest-vn-76639290'], 'port_security_enabled': True, 'description': ''}}
2025-11-05 14:05:47,804 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd42c9078-3477-4373-a9c5-0432697ea62f', 'name': '', 'tenant_id': '5646908ac9514838bfc8ff3ad594190c', 'network_id': '31047f2a-918d-44cb-a234-e535ed946f11', 'ip_version': 4, 'cidr': '15.226.81.128/26', 'allocation_pools': [{'start': '15.226.81.130', 'end': '15.226.81.190'}], 'gateway_ip': '15.226.81.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '15.226.81.130', 'tags': [], 'project_id': '5646908ac9514838bfc8ff3ad594190c'}}
2025-11-05 14:05:47,825 - INFO - Created VN ctest-vn-76639290
2025-11-05 14:05:47,882 - DEBUG - VN ctest-vn-76639290 UUID is 31047f2a-918d-44cb-a234-e535ed946f11
2025-11-05 14:05:48,000 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-79865238:ctest-vn-18481777, 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-79865238:ctest-vn-76639290, 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-05 14:05:48,293 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e0f6572b-86cf-4961-8cb8-aa1f1b1f6549', 'name': 'ctest-vn-18481777', 'tenant_id': '5646908ac9514838bfc8ff3ad594190c', 'project_id': '5646908ac9514838bfc8ff3ad594190c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['eb100fab-bb69-4a4e-891d-dd88392eb2db'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-79865238', 'ctest-vn-18481777'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-79865238', 'ctest-policy-allow-all-36804037']], 'subnet_ipam': [{'subnet_cidr': '121.225.214.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-05 14:05:48,524 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '31047f2a-918d-44cb-a234-e535ed946f11', 'name': 'ctest-vn-76639290', 'tenant_id': '5646908ac9514838bfc8ff3ad594190c', 'project_id': '5646908ac9514838bfc8ff3ad594190c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d42c9078-3477-4373-a9c5-0432697ea62f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-79865238', 'ctest-vn-76639290'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-79865238', 'ctest-policy-allow-all-36804037']], 'subnet_ipam': [{'subnet_cidr': '15.226.81.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-05 14:05:48,694 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-11-05 14:05:49,029 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-11-05 14:05:49,061 - DEBUG - Requesting: http://10.0.0.50:8082/domain/edecd6db-a493-4861-a269-342e9ca227a3
2025-11-05 14:05:49,078 - DEBUG - Requesting: http://10.0.0.50:8082/project/5646908a-c951-4838-bfc8-ff3ad594190c
2025-11-05 14:05:49,158 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/e0f6572b-86cf-4961-8cb8-aa1f1b1f6549
2025-11-05 14:05:49,172 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/e0f6572b-86cf-4961-8cb8-aa1f1b1f6549
2025-11-05 14:05:49,184 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/fcdc9ba0-16af-4a41-a256-4694cc3b65fd
2025-11-05 14:05:49,194 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/fcdc9ba0-16af-4a41-a256-4694cc3b65fd
2025-11-05 14:05:49,202 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/c4cc513a-bc0e-449a-bbc7-60fdcffafa71
2025-11-05 14:05:49,209 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-05 14:05:49,209 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/e0f6572b-86cf-4961-8cb8-aa1f1b1f6549
2025-11-05 14:05:49,219 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/fcdc9ba0-16af-4a41-a256-4694cc3b65fd
2025-11-05 14:05:49,236 - INFO - Verified VN network id 11 for VN e0f6572b-86cf-4961-8cb8-aa1f1b1f6549
2025-11-05 14:05:49,236 - INFO - Verifications in API Server for VN ctest-vn-18481777 passed
2025-11-05 14:05:49,236 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/e0f6572b-86cf-4961-8cb8-aa1f1b1f6549
2025-11-05 14:05:49,246 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/fcdc9ba0-16af-4a41-a256-4694cc3b65fd
2025-11-05 14:05:49,254 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/fcdc9ba0-16af-4a41-a256-4694cc3b65fd
2025-11-05 14:05:49,262 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/c4cc513a-bc0e-449a-bbc7-60fdcffafa71
2025-11-05 14:05:49,274 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-79865238:ctest-vn-18481777', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-79865238', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16210239753223620961', 'uuid-lslong': '10140041611600422217'}, 'enable': 'true', 'created': '2025-11-05T14:05:47', 'last-modified': '2025-11-05T14:05:48', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.001593'}
2025-11-05 14:05:49,279 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-05 14:05:49,279 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-18481777 passed
2025-11-05 14:05:49,279 - DEBUG - ====Verifying policy data for ctest-vn-18481777 in API_Server ======
2025-11-05 14:05:49,280 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-11-05 14:05:49,285 - DEBUG - Requesting: http://10.0.0.50:8082/domain/edecd6db-a493-4861-a269-342e9ca227a3
2025-11-05 14:05:49,298 - DEBUG - Requesting: http://10.0.0.50:8082/project/5646908a-c951-4838-bfc8-ff3ad594190c
2025-11-05 14:05:49,377 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/e0f6572b-86cf-4961-8cb8-aa1f1b1f6549
2025-11-05 14:05:49,388 - DEBUG - ==>Verifying data for policy with id: 10faeeab-afbe-4f74-874b-8e9682951fc0, fqn: ['default-domain', 'ctest-TestBasicPolicy-79865238', 'ctest-policy-allow-all-36804037']
2025-11-05 14:05:49,388 - INFO - VN ctest-vn-18481777 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-05 14:05:49,388 - DEBUG - Verifying the vn in opserver
2025-11-05 14:05:49,388 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-79865238:ctest-vn-18481777 virtual network link through opserver 10.0.0.50
2025-11-05 14:05:49,388 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-11-05 14:05:49,724 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-11-05 14:05:49,793 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-79865238:ctest-vn-18481777', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-79865238:ctest-vn-18481777?flat'}
2025-11-05 14:05:49,793 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-79865238:ctest-vn-18481777 is found in opserver
2025-11-05 14:05:49,805 - DEBUG - Do not have enough data to verify VN in agent
2025-11-05 14:05:49,810 - DEBUG - VRF ids for VN ctest-vn-18481777: {}
2025-11-05 14:05:49,810 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-11-05 14:05:49,816 - DEBUG - Requesting: http://10.0.0.50:8082/domain/edecd6db-a493-4861-a269-342e9ca227a3
2025-11-05 14:05:49,829 - DEBUG - Requesting: http://10.0.0.50:8082/project/5646908a-c951-4838-bfc8-ff3ad594190c
2025-11-05 14:05:49,907 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/31047f2a-918d-44cb-a234-e535ed946f11
2025-11-05 14:05:49,924 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/31047f2a-918d-44cb-a234-e535ed946f11
2025-11-05 14:05:49,935 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/f38c613b-b5d0-45f6-8c05-3ebcc7efa5d4
2025-11-05 14:05:49,943 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/f38c613b-b5d0-45f6-8c05-3ebcc7efa5d4
2025-11-05 14:05:49,952 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/3fdb2e9f-15c5-45db-a0b9-7bb179213f3a
2025-11-05 14:05:49,960 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-05 14:05:49,960 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/31047f2a-918d-44cb-a234-e535ed946f11
2025-11-05 14:05:49,969 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/f38c613b-b5d0-45f6-8c05-3ebcc7efa5d4
2025-11-05 14:05:49,984 - INFO - Verified VN network id 12 for VN 31047f2a-918d-44cb-a234-e535ed946f11
2025-11-05 14:05:49,984 - INFO - Verifications in API Server for VN ctest-vn-76639290 passed
2025-11-05 14:05:49,984 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/31047f2a-918d-44cb-a234-e535ed946f11
2025-11-05 14:05:49,996 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/f38c613b-b5d0-45f6-8c05-3ebcc7efa5d4
2025-11-05 14:05:50,007 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/f38c613b-b5d0-45f6-8c05-3ebcc7efa5d4
2025-11-05 14:05:50,016 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/3fdb2e9f-15c5-45db-a0b9-7bb179213f3a
2025-11-05 14:05:50,031 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-79865238:ctest-vn-76639290', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-79865238', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3532087828572619979', 'uuid-lslong': '11688218952715235089'}, 'enable': 'true', 'created': '2025-11-05T14:05:47', 'last-modified': '2025-11-05T14:05:48', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.529869'}
2025-11-05 14:05:50,038 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-05 14:05:50,038 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-76639290 passed
2025-11-05 14:05:50,039 - DEBUG - ====Verifying policy data for ctest-vn-76639290 in API_Server ======
2025-11-05 14:05:50,039 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-11-05 14:05:50,045 - DEBUG - Requesting: http://10.0.0.50:8082/domain/edecd6db-a493-4861-a269-342e9ca227a3
2025-11-05 14:05:50,058 - DEBUG - Requesting: http://10.0.0.50:8082/project/5646908a-c951-4838-bfc8-ff3ad594190c
2025-11-05 14:05:50,138 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/31047f2a-918d-44cb-a234-e535ed946f11
2025-11-05 14:05:50,149 - DEBUG - ==>Verifying data for policy with id: 10faeeab-afbe-4f74-874b-8e9682951fc0, fqn: ['default-domain', 'ctest-TestBasicPolicy-79865238', 'ctest-policy-allow-all-36804037']
2025-11-05 14:05:50,149 - INFO - VN ctest-vn-76639290 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-05 14:05:50,150 - DEBUG - Verifying the vn in opserver
2025-11-05 14:05:50,150 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-79865238:ctest-vn-76639290 virtual network link through opserver 10.0.0.50
2025-11-05 14:05:50,150 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-11-05 14:05:50,162 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-79865238:ctest-vn-76639290', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-79865238:ctest-vn-76639290?flat'}
2025-11-05 14:05:50,162 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-79865238:ctest-vn-76639290 is found in opserver
2025-11-05 14:05:50,175 - DEBUG - Do not have enough data to verify VN in agent
2025-11-05 14:05:50,183 - DEBUG - VRF ids for VN ctest-vn-76639290: {}
2025-11-05 14:05:50,258 - DEBUG - Services list from nova: [