2025-11-13 18:25:30,356 - INFO - Domain Default found not creating
2025-11-13 18:25:30,645 - INFO - Project ctest-TestBasicPolicy-79849974 not found, creating it
2025-11-13 18:25:31,388 - INFO - Created Project:ctest-TestBasicPolicy-79849974, ID : 34382d73-0c85-4c4f-b756-de3c19366cee
2025-11-13 18:25:33,589 - INFO - ================================================================================
2025-11-13 18:25:33,589 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-11-13 18:25:33,589 - 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-13 18:25:33,910 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.254': '0'}} with
2025-11-13 18:25:33,910 - INFO - Initial checks done. Running the testcase now
2025-11-13 18:25:33,910 - INFO -
2025-11-13 18:25:34,722 - DEBUG - Response for create_network : {'network': {'id': '54ad98c0-356b-4838-839f-9b8bcd4a571c', 'name': 'ctest-vn-90456243', 'tenant_id': '34382d730c854c4fb756de3c19366cee', 'project_id': '34382d730c854c4fb756de3c19366cee', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-79849974', 'ctest-vn-90456243'], 'port_security_enabled': True, 'description': ''}}
2025-11-13 18:25:34,965 - DEBUG - Response for create_subnet : {'subnet': {'id': 'cde1ac50-1e5c-4b92-845a-a0b2979093a5', 'name': '', 'tenant_id': '34382d730c854c4fb756de3c19366cee', 'network_id': '54ad98c0-356b-4838-839f-9b8bcd4a571c', 'ip_version': 4, 'cidr': '187.24.134.128/26', 'allocation_pools': [{'start': '187.24.134.130', 'end': '187.24.134.190'}], 'gateway_ip': '187.24.134.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '187.24.134.130', 'tags': [], 'project_id': '34382d730c854c4fb756de3c19366cee'}}
2025-11-13 18:25:34,983 - INFO - Created VN ctest-vn-90456243
2025-11-13 18:25:35,040 - DEBUG - VN ctest-vn-90456243 UUID is 54ad98c0-356b-4838-839f-9b8bcd4a571c
2025-11-13 18:25:35,507 - DEBUG - Response for create_network : {'network': {'id': '1e6773ad-09d8-404a-9c78-8c8f10427d09', 'name': 'ctest-vn-85108346', 'tenant_id': '34382d730c854c4fb756de3c19366cee', 'project_id': '34382d730c854c4fb756de3c19366cee', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-79849974', 'ctest-vn-85108346'], 'port_security_enabled': True, 'description': ''}}
2025-11-13 18:25:35,670 - DEBUG - Response for create_subnet : {'subnet': {'id': '8784f9e5-0fe3-424e-8d37-d64c07e22b42', 'name': '', 'tenant_id': '34382d730c854c4fb756de3c19366cee', 'network_id': '1e6773ad-09d8-404a-9c78-8c8f10427d09', 'ip_version': 4, 'cidr': '169.48.106.192/26', 'allocation_pools': [{'start': '169.48.106.194', 'end': '169.48.106.254'}], 'gateway_ip': '169.48.106.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '169.48.106.194', 'tags': [], 'project_id': '34382d730c854c4fb756de3c19366cee'}}
2025-11-13 18:25:35,687 - INFO - Created VN ctest-vn-85108346
2025-11-13 18:25:35,740 - DEBUG - VN ctest-vn-85108346 UUID is 1e6773ad-09d8-404a-9c78-8c8f10427d09
2025-11-13 18:25:35,905 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-79849974:ctest-vn-90456243, 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-79849974:ctest-vn-85108346, 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-13 18:25:36,303 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '54ad98c0-356b-4838-839f-9b8bcd4a571c', 'name': 'ctest-vn-90456243', 'tenant_id': '34382d730c854c4fb756de3c19366cee', 'project_id': '34382d730c854c4fb756de3c19366cee', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['cde1ac50-1e5c-4b92-845a-a0b2979093a5'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-79849974', 'ctest-vn-90456243'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-79849974', 'ctest-policy-allow-all-73925140']], 'subnet_ipam': [{'subnet_cidr': '187.24.134.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-13 18:25:36,630 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1e6773ad-09d8-404a-9c78-8c8f10427d09', 'name': 'ctest-vn-85108346', 'tenant_id': '34382d730c854c4fb756de3c19366cee', 'project_id': '34382d730c854c4fb756de3c19366cee', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8784f9e5-0fe3-424e-8d37-d64c07e22b42'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-79849974', 'ctest-vn-85108346'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-79849974', 'ctest-policy-allow-all-73925140']], 'subnet_ipam': [{'subnet_cidr': '169.48.106.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-13 18:25:36,760 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-11-13 18:25:37,113 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-11-13 18:25:37,157 - DEBUG - Requesting: http://10.0.0.50:8082/domain/61df48a7-c740-49da-8068-99db5a679ca7
2025-11-13 18:25:37,184 - DEBUG - Requesting: http://10.0.0.50:8082/project/34382d73-0c85-4c4f-b756-de3c19366cee
2025-11-13 18:25:37,288 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/54ad98c0-356b-4838-839f-9b8bcd4a571c
2025-11-13 18:25:37,312 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/54ad98c0-356b-4838-839f-9b8bcd4a571c
2025-11-13 18:25:37,333 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/ec3516e2-3cf6-4c62-b6d9-978405d86eff
2025-11-13 18:25:37,346 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/ec3516e2-3cf6-4c62-b6d9-978405d86eff
2025-11-13 18:25:37,360 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/511084a5-3fe3-4ace-923e-f08ae4d9de06
2025-11-13 18:25:37,373 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-13 18:25:37,373 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/54ad98c0-356b-4838-839f-9b8bcd4a571c
2025-11-13 18:25:37,403 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/ec3516e2-3cf6-4c62-b6d9-978405d86eff
2025-11-13 18:25:37,440 - INFO - Verified VN network id 11 for VN 54ad98c0-356b-4838-839f-9b8bcd4a571c
2025-11-13 18:25:37,440 - INFO - Verifications in API Server for VN ctest-vn-90456243 passed
2025-11-13 18:25:37,441 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/54ad98c0-356b-4838-839f-9b8bcd4a571c
2025-11-13 18:25:37,464 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/ec3516e2-3cf6-4c62-b6d9-978405d86eff
2025-11-13 18:25:37,482 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/ec3516e2-3cf6-4c62-b6d9-978405d86eff
2025-11-13 18:25:37,501 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/511084a5-3fe3-4ace-923e-f08ae4d9de06
2025-11-13 18:25:37,525 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-79849974:ctest-vn-90456243', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-79849974', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6101701021454256184', 'uuid-lslong': '9484470365012514588'}, 'enable': 'true', 'created': '2025-11-13T18:25:34', 'last-modified': '2025-11-13T18:25:36', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.275562'}
2025-11-13 18:25:37,535 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-13 18:25:37,535 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-90456243 passed
2025-11-13 18:25:37,535 - DEBUG - ====Verifying policy data for ctest-vn-90456243 in API_Server ======
2025-11-13 18:25:37,536 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-11-13 18:25:37,546 - DEBUG - Requesting: http://10.0.0.50:8082/domain/61df48a7-c740-49da-8068-99db5a679ca7
2025-11-13 18:25:37,569 - DEBUG - Requesting: http://10.0.0.50:8082/project/34382d73-0c85-4c4f-b756-de3c19366cee
2025-11-13 18:25:37,683 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/54ad98c0-356b-4838-839f-9b8bcd4a571c
2025-11-13 18:25:37,705 - DEBUG - ==>Verifying data for policy with id: a887d9e9-01a6-44be-a67e-be95faffdfa0, fqn: ['default-domain', 'ctest-TestBasicPolicy-79849974', 'ctest-policy-allow-all-73925140']
2025-11-13 18:25:37,705 - INFO - VN ctest-vn-90456243 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-13 18:25:37,706 - DEBUG - Verifying the vn in opserver
2025-11-13 18:25:37,706 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-79849974:ctest-vn-90456243 virtual network link through opserver 10.0.0.50
2025-11-13 18:25:37,706 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-11-13 18:25:38,073 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-11-13 18:25:38,180 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-79849974:ctest-vn-90456243', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-79849974:ctest-vn-90456243?flat'}
2025-11-13 18:25:38,180 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-79849974:ctest-vn-90456243 is found in opserver
2025-11-13 18:25:38,199 - DEBUG - Do not have enough data to verify VN in agent
2025-11-13 18:25:38,209 - DEBUG - VRF ids for VN ctest-vn-90456243: {}
2025-11-13 18:25:38,209 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-11-13 18:25:38,216 - DEBUG - Requesting: http://10.0.0.50:8082/domain/61df48a7-c740-49da-8068-99db5a679ca7
2025-11-13 18:25:38,237 - DEBUG - Requesting: http://10.0.0.50:8082/project/34382d73-0c85-4c4f-b756-de3c19366cee
2025-11-13 18:25:38,321 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/1e6773ad-09d8-404a-9c78-8c8f10427d09
2025-11-13 18:25:38,344 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/1e6773ad-09d8-404a-9c78-8c8f10427d09
2025-11-13 18:25:38,356 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/d3ff43a2-a882-4dcf-89a6-0dd9b1460219
2025-11-13 18:25:38,365 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/d3ff43a2-a882-4dcf-89a6-0dd9b1460219
2025-11-13 18:25:38,374 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/ea3a85c9-6c37-4d83-a2a8-e279dd689533
2025-11-13 18:25:38,382 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-13 18:25:38,382 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/1e6773ad-09d8-404a-9c78-8c8f10427d09
2025-11-13 18:25:38,393 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/d3ff43a2-a882-4dcf-89a6-0dd9b1460219
2025-11-13 18:25:38,409 - INFO - Verified VN network id 12 for VN 1e6773ad-09d8-404a-9c78-8c8f10427d09
2025-11-13 18:25:38,409 - INFO - Verifications in API Server for VN ctest-vn-85108346 passed
2025-11-13 18:25:38,410 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/1e6773ad-09d8-404a-9c78-8c8f10427d09
2025-11-13 18:25:38,422 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/d3ff43a2-a882-4dcf-89a6-0dd9b1460219
2025-11-13 18:25:38,429 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/d3ff43a2-a882-4dcf-89a6-0dd9b1460219
2025-11-13 18:25:38,437 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/ea3a85c9-6c37-4d83-a2a8-e279dd689533
2025-11-13 18:25:38,452 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-79849974:ctest-vn-85108346', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-79849974', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2190846930770739274', 'uuid-lslong': '11274916213203041545'}, 'enable': 'true', 'created': '2025-11-13T18:25:35', 'last-modified': '2025-11-13T18:25:36', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.902438'}
2025-11-13 18:25:38,462 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-13 18:25:38,462 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-85108346 passed
2025-11-13 18:25:38,463 - DEBUG - ====Verifying policy data for ctest-vn-85108346 in API_Server ======
2025-11-13 18:25:38,463 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-11-13 18:25:38,472 - DEBUG - Requesting: http://10.0.0.50:8082/domain/61df48a7-c740-49da-8068-99db5a679ca7
2025-11-13 18:25:38,485 - DEBUG - Requesting: http://10.0.0.50:8082/project/34382d73-0c85-4c4f-b756-de3c19366cee
2025-11-13 18:25:38,566 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/1e6773ad-09d8-404a-9c78-8c8f10427d09
2025-11-13 18:25:38,577 - DEBUG - ==>Verifying data for policy with id: a887d9e9-01a6-44be-a67e-be95faffdfa0, fqn: ['default-domain', 'ctest-TestBasicPolicy-79849974', 'ctest-policy-allow-all-73925140']
2025-11-13 18:25:38,577 - INFO - VN ctest-vn-85108346 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-13 18:25:38,577 - DEBUG - Verifying the vn in opserver
2025-11-13 18:25:38,577 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-79849974:ctest-vn-85108346 virtual network link through opserver 10.0.0.50
2025-11-13 18:25:38,577 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-11-13 18:25:38,589 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-79849974:ctest-vn-85108346', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-79849974:ctest-vn-85108346?flat'}
2025-11-13 18:25:38,589 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-79849974:ctest-vn-85108346 is found in opserver
2025-11-13 18:25:38,600 - DEBUG - Do not have enough data to verify VN in agent
2025-11-13 18:25:38,605 - DEBUG - VRF ids for VN ctest-vn-85108346: {}
2025-11-13 18:25:38,701 - DEBUG - Services list from nova: [