2025-07-16 12:31:39,276 - INFO - Domain Default found not creating
2025-07-16 12:31:39,522 - INFO - Project ctest-TestBasicPolicy-15338498 not found, creating it
2025-07-16 12:31:40,104 - INFO - Created Project:ctest-TestBasicPolicy-15338498, ID : 3202ee06-a9cd-435b-bae2-59200c87006e
2025-07-16 12:31:42,033 - INFO - ================================================================================
2025-07-16 12:31:42,034 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-07-16 12:31:42,034 - 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-07-16 12:31:42,341 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.14': '0'}} with
2025-07-16 12:31:42,342 - INFO - Initial checks done. Running the testcase now
2025-07-16 12:31:42,342 - INFO -
2025-07-16 12:31:43,146 - DEBUG - Response for create_network : {'network': {'id': 'e970a07c-f324-4245-8772-404904c83bff', 'name': 'ctest-vn-50629672', 'tenant_id': '3202ee06a9cd435bbae259200c87006e', 'project_id': '3202ee06a9cd435bbae259200c87006e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-15338498', 'ctest-vn-50629672'], 'port_security_enabled': True, 'description': ''}}
2025-07-16 12:31:43,364 - DEBUG - Response for create_subnet : {'subnet': {'id': '382c1af1-36ea-4062-a30e-403cf533697e', 'name': '', 'tenant_id': '3202ee06a9cd435bbae259200c87006e', 'network_id': 'e970a07c-f324-4245-8772-404904c83bff', 'ip_version': 4, 'cidr': '25.128.85.64/26', 'allocation_pools': [{'start': '25.128.85.66', 'end': '25.128.85.126'}], 'gateway_ip': '25.128.85.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '25.128.85.66', 'tags': [], 'project_id': '3202ee06a9cd435bbae259200c87006e'}}
2025-07-16 12:31:43,382 - INFO - Created VN ctest-vn-50629672
2025-07-16 12:31:43,439 - DEBUG - VN ctest-vn-50629672 UUID is e970a07c-f324-4245-8772-404904c83bff
2025-07-16 12:31:43,891 - DEBUG - Response for create_network : {'network': {'id': '8e107633-6e67-4c42-b6d0-667ad5d5e2e1', 'name': 'ctest-vn-68194970', 'tenant_id': '3202ee06a9cd435bbae259200c87006e', 'project_id': '3202ee06a9cd435bbae259200c87006e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-15338498', 'ctest-vn-68194970'], 'port_security_enabled': True, 'description': ''}}
2025-07-16 12:31:44,072 - DEBUG - Response for create_subnet : {'subnet': {'id': '0c2fe231-1214-4bb7-a959-3c2416ccaf24', 'name': '', 'tenant_id': '3202ee06a9cd435bbae259200c87006e', 'network_id': '8e107633-6e67-4c42-b6d0-667ad5d5e2e1', 'ip_version': 4, 'cidr': '96.207.20.0/26', 'allocation_pools': [{'start': '96.207.20.2', 'end': '96.207.20.62'}], 'gateway_ip': '96.207.20.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '96.207.20.2', 'tags': [], 'project_id': '3202ee06a9cd435bbae259200c87006e'}}
2025-07-16 12:31:44,096 - INFO - Created VN ctest-vn-68194970
2025-07-16 12:31:44,154 - DEBUG - VN ctest-vn-68194970 UUID is 8e107633-6e67-4c42-b6d0-667ad5d5e2e1
2025-07-16 12:31:44,327 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-15338498:ctest-vn-50629672, 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-15338498:ctest-vn-68194970, 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-07-16 12:31:44,771 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e970a07c-f324-4245-8772-404904c83bff', 'name': 'ctest-vn-50629672', 'tenant_id': '3202ee06a9cd435bbae259200c87006e', 'project_id': '3202ee06a9cd435bbae259200c87006e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['382c1af1-36ea-4062-a30e-403cf533697e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-15338498', 'ctest-vn-50629672'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-15338498', 'ctest-policy-allow-all-26623822']], 'subnet_ipam': [{'subnet_cidr': '25.128.85.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-16 12:31:45,061 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8e107633-6e67-4c42-b6d0-667ad5d5e2e1', 'name': 'ctest-vn-68194970', 'tenant_id': '3202ee06a9cd435bbae259200c87006e', 'project_id': '3202ee06a9cd435bbae259200c87006e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0c2fe231-1214-4bb7-a959-3c2416ccaf24'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-15338498', 'ctest-vn-68194970'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-15338498', 'ctest-policy-allow-all-26623822']], 'subnet_ipam': [{'subnet_cidr': '96.207.20.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-16 12:31:45,234 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-07-16 12:31:45,563 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-07-16 12:31:45,646 - DEBUG - Requesting: http://10.0.0.50:8082/domain/11823ae5-c42b-4c8f-982a-d4d8a107457e
2025-07-16 12:31:45,690 - DEBUG - Requesting: http://10.0.0.50:8082/project/3202ee06-a9cd-435b-bae2-59200c87006e
2025-07-16 12:31:45,780 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/e970a07c-f324-4245-8772-404904c83bff
2025-07-16 12:31:45,820 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/e970a07c-f324-4245-8772-404904c83bff
2025-07-16 12:31:45,853 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/2bb0c21d-96a5-4002-b695-6d405f7d48f9
2025-07-16 12:31:45,871 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/2bb0c21d-96a5-4002-b695-6d405f7d48f9
2025-07-16 12:31:45,883 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/48e2feed-ebf5-4da8-bcb9-6fe4ab9c5c2d
2025-07-16 12:31:45,893 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-16 12:31:45,893 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/e970a07c-f324-4245-8772-404904c83bff
2025-07-16 12:31:45,921 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/2bb0c21d-96a5-4002-b695-6d405f7d48f9
2025-07-16 12:31:45,957 - INFO - Verified VN network id 8 for VN e970a07c-f324-4245-8772-404904c83bff
2025-07-16 12:31:45,957 - INFO - Verifications in API Server for VN ctest-vn-50629672 passed
2025-07-16 12:31:45,957 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/e970a07c-f324-4245-8772-404904c83bff
2025-07-16 12:31:45,982 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/2bb0c21d-96a5-4002-b695-6d405f7d48f9
2025-07-16 12:31:45,999 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/2bb0c21d-96a5-4002-b695-6d405f7d48f9
2025-07-16 12:31:46,014 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/48e2feed-ebf5-4da8-bcb9-6fe4ab9c5c2d
2025-07-16 12:31:46,041 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-15338498:ctest-vn-50629672', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-15338498', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16821121066744431173', 'uuid-lslong': '9759934024822307839'}, 'enable': 'true', 'created': '2025-07-16T12:31:43', 'last-modified': '2025-07-16T12:31:44', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.306701'}
2025-07-16 12:31:46,059 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-16 12:31:46,059 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-50629672 passed
2025-07-16 12:31:46,060 - DEBUG - ====Verifying policy data for ctest-vn-50629672 in API_Server ======
2025-07-16 12:31:46,060 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-07-16 12:31:46,073 - DEBUG - Requesting: http://10.0.0.50:8082/domain/11823ae5-c42b-4c8f-982a-d4d8a107457e
2025-07-16 12:31:46,092 - DEBUG - Requesting: http://10.0.0.50:8082/project/3202ee06-a9cd-435b-bae2-59200c87006e
2025-07-16 12:31:46,195 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/e970a07c-f324-4245-8772-404904c83bff
2025-07-16 12:31:46,212 - DEBUG - ==>Verifying data for policy with id: 045dcdf8-cc92-4ba3-9f59-13e72b511126, fqn: ['default-domain', 'ctest-TestBasicPolicy-15338498', 'ctest-policy-allow-all-26623822']
2025-07-16 12:31:46,212 - INFO - VN ctest-vn-50629672 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-16 12:31:46,212 - DEBUG - Verifying the vn in opserver
2025-07-16 12:31:46,212 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-15338498:ctest-vn-50629672 virtual network link through opserver 10.0.0.50
2025-07-16 12:31:46,212 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-07-16 12:31:46,529 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-07-16 12:31:46,613 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-15338498:ctest-vn-50629672', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-15338498:ctest-vn-50629672?flat'}
2025-07-16 12:31:46,613 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-15338498:ctest-vn-50629672 is found in opserver
2025-07-16 12:31:46,632 - DEBUG - Do not have enough data to verify VN in agent
2025-07-16 12:31:46,643 - DEBUG - VRF ids for VN ctest-vn-50629672: {}
2025-07-16 12:31:46,643 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-07-16 12:31:46,654 - DEBUG - Requesting: http://10.0.0.50:8082/domain/11823ae5-c42b-4c8f-982a-d4d8a107457e
2025-07-16 12:31:46,680 - DEBUG - Requesting: http://10.0.0.50:8082/project/3202ee06-a9cd-435b-bae2-59200c87006e
2025-07-16 12:31:46,796 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/8e107633-6e67-4c42-b6d0-667ad5d5e2e1
2025-07-16 12:31:46,817 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/8e107633-6e67-4c42-b6d0-667ad5d5e2e1
2025-07-16 12:31:46,830 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/5c8acb4c-6f7d-4996-b528-67756a4deced
2025-07-16 12:31:46,840 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/5c8acb4c-6f7d-4996-b528-67756a4deced
2025-07-16 12:31:46,852 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/14af2572-85e5-46d7-8296-97f9440cce33
2025-07-16 12:31:46,863 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-16 12:31:46,863 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/8e107633-6e67-4c42-b6d0-667ad5d5e2e1
2025-07-16 12:31:46,877 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/5c8acb4c-6f7d-4996-b528-67756a4deced
2025-07-16 12:31:46,898 - INFO - Verified VN network id 9 for VN 8e107633-6e67-4c42-b6d0-667ad5d5e2e1
2025-07-16 12:31:46,898 - INFO - Verifications in API Server for VN ctest-vn-68194970 passed
2025-07-16 12:31:46,899 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/8e107633-6e67-4c42-b6d0-667ad5d5e2e1
2025-07-16 12:31:46,915 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/5c8acb4c-6f7d-4996-b528-67756a4deced
2025-07-16 12:31:46,926 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/5c8acb4c-6f7d-4996-b528-67756a4deced
2025-07-16 12:31:46,937 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/14af2572-85e5-46d7-8296-97f9440cce33
2025-07-16 12:31:46,957 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-15338498:ctest-vn-68194970', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-15338498', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10236811916280810562', 'uuid-lslong': '13173141587818308321'}, 'enable': 'true', 'created': '2025-07-16T12:31:43', 'last-modified': '2025-07-16T12:31:45', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.927704'}
2025-07-16 12:31:46,969 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-16 12:31:46,969 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-68194970 passed
2025-07-16 12:31:46,969 - DEBUG - ====Verifying policy data for ctest-vn-68194970 in API_Server ======
2025-07-16 12:31:46,969 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-07-16 12:31:46,978 - DEBUG - Requesting: http://10.0.0.50:8082/domain/11823ae5-c42b-4c8f-982a-d4d8a107457e
2025-07-16 12:31:47,000 - DEBUG - Requesting: http://10.0.0.50:8082/project/3202ee06-a9cd-435b-bae2-59200c87006e
2025-07-16 12:31:47,118 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/8e107633-6e67-4c42-b6d0-667ad5d5e2e1
2025-07-16 12:31:47,139 - DEBUG - ==>Verifying data for policy with id: 045dcdf8-cc92-4ba3-9f59-13e72b511126, fqn: ['default-domain', 'ctest-TestBasicPolicy-15338498', 'ctest-policy-allow-all-26623822']
2025-07-16 12:31:47,139 - INFO - VN ctest-vn-68194970 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-16 12:31:47,139 - DEBUG - Verifying the vn in opserver
2025-07-16 12:31:47,139 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-15338498:ctest-vn-68194970 virtual network link through opserver 10.0.0.50
2025-07-16 12:31:47,139 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-07-16 12:31:47,156 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-15338498:ctest-vn-68194970', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-15338498:ctest-vn-68194970?flat'}
2025-07-16 12:31:47,156 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-15338498:ctest-vn-68194970 is found in opserver
2025-07-16 12:31:47,181 - DEBUG - Do not have enough data to verify VN in agent
2025-07-16 12:31:47,192 - DEBUG - VRF ids for VN ctest-vn-68194970: {}
2025-07-16 12:31:47,267 - DEBUG - Services list from nova: [