2025-10-22 20:26:12,269 - INFO - Domain Default found not creating
2025-10-22 20:26:12,401 - INFO - Project ctest-TestBasicPolicy-87620059 not found, creating it
2025-10-22 20:26:12,835 - INFO - Created Project:ctest-TestBasicPolicy-87620059, ID : cabff358-0127-42d3-a5ea-efbf0012902f
2025-10-22 20:26:14,200 - INFO - ================================================================================
2025-10-22 20:26:14,200 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-22 20:26:14,200 - 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-10-22 20:26:14,454 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with
2025-10-22 20:26:14,454 - INFO - Initial checks done. Running the testcase now
2025-10-22 20:26:14,454 - INFO -
2025-10-22 20:26:14,995 - DEBUG - Response for create_network : {'network': {'id': '809f2ec4-b55c-4916-87d6-bec0847dd4b6', 'name': 'ctest-vn-04156465', 'tenant_id': 'cabff358012742d3a5eaefbf0012902f', 'project_id': 'cabff358012742d3a5eaefbf0012902f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-87620059', 'ctest-vn-04156465'], 'port_security_enabled': True, 'description': ''}}
2025-10-22 20:26:15,176 - DEBUG - Response for create_subnet : {'subnet': {'id': 'efd3ab32-b580-4fdf-8710-4a78b882763c', 'name': '', 'tenant_id': 'cabff358012742d3a5eaefbf0012902f', 'network_id': '809f2ec4-b55c-4916-87d6-bec0847dd4b6', 'ip_version': 4, 'cidr': '70.133.74.192/26', 'allocation_pools': [{'start': '70.133.74.194', 'end': '70.133.74.254'}], 'gateway_ip': '70.133.74.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '70.133.74.194', 'tags': [], 'project_id': 'cabff358012742d3a5eaefbf0012902f'}}
2025-10-22 20:26:15,195 - INFO - Created VN ctest-vn-04156465
2025-10-22 20:26:15,244 - DEBUG - VN ctest-vn-04156465 UUID is 809f2ec4-b55c-4916-87d6-bec0847dd4b6
2025-10-22 20:26:15,551 - DEBUG - Response for create_network : {'network': {'id': 'fb2b6c83-31e5-4c8d-b204-856d4e7099a8', 'name': 'ctest-vn-87370389', 'tenant_id': 'cabff358012742d3a5eaefbf0012902f', 'project_id': 'cabff358012742d3a5eaefbf0012902f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-87620059', 'ctest-vn-87370389'], 'port_security_enabled': True, 'description': ''}}
2025-10-22 20:26:15,742 - DEBUG - Response for create_subnet : {'subnet': {'id': '0a13d14f-cd44-47ab-a6dd-0b1dc6af7872', 'name': '', 'tenant_id': 'cabff358012742d3a5eaefbf0012902f', 'network_id': 'fb2b6c83-31e5-4c8d-b204-856d4e7099a8', 'ip_version': 4, 'cidr': '161.165.94.64/26', 'allocation_pools': [{'start': '161.165.94.66', 'end': '161.165.94.126'}], 'gateway_ip': '161.165.94.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '161.165.94.66', 'tags': [], 'project_id': 'cabff358012742d3a5eaefbf0012902f'}}
2025-10-22 20:26:15,769 - INFO - Created VN ctest-vn-87370389
2025-10-22 20:26:15,820 - DEBUG - VN ctest-vn-87370389 UUID is fb2b6c83-31e5-4c8d-b204-856d4e7099a8
2025-10-22 20:26:15,972 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-87620059:ctest-vn-04156465, 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-87620059:ctest-vn-87370389, 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-10-22 20:26:16,255 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '809f2ec4-b55c-4916-87d6-bec0847dd4b6', 'name': 'ctest-vn-04156465', 'tenant_id': 'cabff358012742d3a5eaefbf0012902f', 'project_id': 'cabff358012742d3a5eaefbf0012902f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['efd3ab32-b580-4fdf-8710-4a78b882763c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-87620059', 'ctest-vn-04156465'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-87620059', 'ctest-policy-allow-all-30122533']], 'subnet_ipam': [{'subnet_cidr': '70.133.74.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-22 20:26:16,517 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'fb2b6c83-31e5-4c8d-b204-856d4e7099a8', 'name': 'ctest-vn-87370389', 'tenant_id': 'cabff358012742d3a5eaefbf0012902f', 'project_id': 'cabff358012742d3a5eaefbf0012902f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0a13d14f-cd44-47ab-a6dd-0b1dc6af7872'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-87620059', 'ctest-vn-87370389'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-87620059', 'ctest-policy-allow-all-30122533']], 'subnet_ipam': [{'subnet_cidr': '161.165.94.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-22 20:26:16,660 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-10-22 20:26:16,953 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-10-22 20:26:16,977 - DEBUG - Requesting: http://10.0.0.38:8082/domain/d5657770-164f-4b23-b68a-38e287d8fbfe
2025-10-22 20:26:16,988 - DEBUG - Requesting: http://10.0.0.38:8082/project/cabff358-0127-42d3-a5ea-efbf0012902f
2025-10-22 20:26:17,063 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/809f2ec4-b55c-4916-87d6-bec0847dd4b6
2025-10-22 20:26:17,072 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/809f2ec4-b55c-4916-87d6-bec0847dd4b6
2025-10-22 20:26:17,080 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/2332a732-3a70-4763-8439-9b32c122d69a
2025-10-22 20:26:17,086 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/2332a732-3a70-4763-8439-9b32c122d69a
2025-10-22 20:26:17,092 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/a92b43c1-7136-4fe1-97f3-80b7a03f8d2d
2025-10-22 20:26:17,098 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-22 20:26:17,098 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/809f2ec4-b55c-4916-87d6-bec0847dd4b6
2025-10-22 20:26:17,105 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/2332a732-3a70-4763-8439-9b32c122d69a
2025-10-22 20:26:17,118 - INFO - Verified VN network id 12 for VN 809f2ec4-b55c-4916-87d6-bec0847dd4b6
2025-10-22 20:26:17,119 - INFO - Verifications in API Server for VN ctest-vn-04156465 passed
2025-10-22 20:26:17,119 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/809f2ec4-b55c-4916-87d6-bec0847dd4b6
2025-10-22 20:26:17,127 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/2332a732-3a70-4763-8439-9b32c122d69a
2025-10-22 20:26:17,133 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/2332a732-3a70-4763-8439-9b32c122d69a
2025-10-22 20:26:17,139 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/a92b43c1-7136-4fe1-97f3-80b7a03f8d2d
2025-10-22 20:26:17,149 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-87620059:ctest-vn-04156465', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-87620059', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9268177980542961942', 'uuid-lslong': '9788220574202188982'}, 'enable': 'true', 'created': '2025-10-22T20:26:14', 'last-modified': '2025-10-22T20:26:16', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.913655'}
2025-10-22 20:26:17,154 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-22 20:26:17,154 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-04156465 passed
2025-10-22 20:26:17,154 - DEBUG - ====Verifying policy data for ctest-vn-04156465 in API_Server ======
2025-10-22 20:26:17,154 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-10-22 20:26:17,162 - DEBUG - Requesting: http://10.0.0.38:8082/domain/d5657770-164f-4b23-b68a-38e287d8fbfe
2025-10-22 20:26:17,172 - DEBUG - Requesting: http://10.0.0.38:8082/project/cabff358-0127-42d3-a5ea-efbf0012902f
2025-10-22 20:26:17,240 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/809f2ec4-b55c-4916-87d6-bec0847dd4b6
2025-10-22 20:26:17,250 - DEBUG - ==>Verifying data for policy with id: b2d5982d-fc5b-4e2e-bfda-7ecfa3b31b70, fqn: ['default-domain', 'ctest-TestBasicPolicy-87620059', 'ctest-policy-allow-all-30122533']
2025-10-22 20:26:17,250 - INFO - VN ctest-vn-04156465 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-22 20:26:17,250 - DEBUG - Verifying the vn in opserver
2025-10-22 20:26:17,250 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-87620059:ctest-vn-04156465 virtual network link through opserver 10.0.0.38
2025-10-22 20:26:17,250 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-10-22 20:26:17,551 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-10-22 20:26:17,598 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-87620059:ctest-vn-04156465', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-87620059:ctest-vn-04156465?flat'}
2025-10-22 20:26:17,598 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-87620059:ctest-vn-04156465 is found in opserver
2025-10-22 20:26:17,607 - DEBUG - Do not have enough data to verify VN in agent
2025-10-22 20:26:17,611 - DEBUG - VRF ids for VN ctest-vn-04156465: {}
2025-10-22 20:26:17,612 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-10-22 20:26:17,617 - DEBUG - Requesting: http://10.0.0.38:8082/domain/d5657770-164f-4b23-b68a-38e287d8fbfe
2025-10-22 20:26:17,627 - DEBUG - Requesting: http://10.0.0.38:8082/project/cabff358-0127-42d3-a5ea-efbf0012902f
2025-10-22 20:26:17,696 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/fb2b6c83-31e5-4c8d-b204-856d4e7099a8
2025-10-22 20:26:17,706 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/fb2b6c83-31e5-4c8d-b204-856d4e7099a8
2025-10-22 20:26:17,714 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d0057274-e521-49b0-bebe-9bfc06fb4c5d
2025-10-22 20:26:17,720 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d0057274-e521-49b0-bebe-9bfc06fb4c5d
2025-10-22 20:26:17,725 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/0e183afd-84d3-4d9e-850d-f1a83ef06759
2025-10-22 20:26:17,731 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-22 20:26:17,731 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/fb2b6c83-31e5-4c8d-b204-856d4e7099a8
2025-10-22 20:26:17,738 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d0057274-e521-49b0-bebe-9bfc06fb4c5d
2025-10-22 20:26:17,750 - INFO - Verified VN network id 13 for VN fb2b6c83-31e5-4c8d-b204-856d4e7099a8
2025-10-22 20:26:17,750 - INFO - Verifications in API Server for VN ctest-vn-87370389 passed
2025-10-22 20:26:17,750 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/fb2b6c83-31e5-4c8d-b204-856d4e7099a8
2025-10-22 20:26:17,757 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d0057274-e521-49b0-bebe-9bfc06fb4c5d
2025-10-22 20:26:17,762 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d0057274-e521-49b0-bebe-9bfc06fb4c5d
2025-10-22 20:26:17,767 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/0e183afd-84d3-4d9e-850d-f1a83ef06759
2025-10-22 20:26:17,777 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-87620059:ctest-vn-87370389', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-87620059', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18098678838252096653', 'uuid-lslong': '12827524343171946920'}, 'enable': 'true', 'created': '2025-10-22T20:26:15', 'last-modified': '2025-10-22T20:26:16', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.322855'}
2025-10-22 20:26:17,782 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-22 20:26:17,782 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-87370389 passed
2025-10-22 20:26:17,782 - DEBUG - ====Verifying policy data for ctest-vn-87370389 in API_Server ======
2025-10-22 20:26:17,782 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-10-22 20:26:17,787 - DEBUG - Requesting: http://10.0.0.38:8082/domain/d5657770-164f-4b23-b68a-38e287d8fbfe
2025-10-22 20:26:17,797 - DEBUG - Requesting: http://10.0.0.38:8082/project/cabff358-0127-42d3-a5ea-efbf0012902f
2025-10-22 20:26:17,867 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/fb2b6c83-31e5-4c8d-b204-856d4e7099a8
2025-10-22 20:26:17,876 - DEBUG - ==>Verifying data for policy with id: b2d5982d-fc5b-4e2e-bfda-7ecfa3b31b70, fqn: ['default-domain', 'ctest-TestBasicPolicy-87620059', 'ctest-policy-allow-all-30122533']
2025-10-22 20:26:17,877 - INFO - VN ctest-vn-87370389 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-22 20:26:17,877 - DEBUG - Verifying the vn in opserver
2025-10-22 20:26:17,877 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-87620059:ctest-vn-87370389 virtual network link through opserver 10.0.0.38
2025-10-22 20:26:17,877 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-10-22 20:26:17,885 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-87620059:ctest-vn-87370389', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-87620059:ctest-vn-87370389?flat'}
2025-10-22 20:26:17,885 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-87620059:ctest-vn-87370389 is found in opserver
2025-10-22 20:26:17,894 - DEBUG - Do not have enough data to verify VN in agent
2025-10-22 20:26:17,899 - DEBUG - VRF ids for VN ctest-vn-87370389: {}
2025-10-22 20:26:17,946 - DEBUG - Services list from nova: [