2025-08-11 06:10:44,148 - INFO - Domain Default found not creating
2025-08-11 06:10:44,316 - INFO - Project ctest-TestBasicPolicy-82549839 not found, creating it
2025-08-11 06:10:44,769 - INFO - Created Project:ctest-TestBasicPolicy-82549839, ID : a7b074a0-0384-4abb-87f1-bcc34344db38
2025-08-11 06:10:46,313 - INFO - ================================================================================
2025-08-11 06:10:46,313 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-08-11 06:10:46,313 - 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-08-11 06:10:46,583 - DEBUG - Nothing to compare xmpp stats {'10.0.0.48': {'10.20.0.14': '0'}} with
2025-08-11 06:10:46,583 - INFO - Initial checks done. Running the testcase now
2025-08-11 06:10:46,583 - INFO -
2025-08-11 06:10:47,170 - DEBUG - Response for create_network : {'network': {'id': 'ae5bf5cc-d333-4a33-acf9-1a778ad4c54f', 'name': 'ctest-vn-68757763', 'tenant_id': 'a7b074a003844abb87f1bcc34344db38', 'project_id': 'a7b074a003844abb87f1bcc34344db38', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-82549839', 'ctest-vn-68757763'], 'port_security_enabled': True, 'description': ''}}
2025-08-11 06:10:47,373 - DEBUG - Response for create_subnet : {'subnet': {'id': '5d962ccd-7ebd-4ac1-8987-f061aadcb3ca', 'name': '', 'tenant_id': 'a7b074a003844abb87f1bcc34344db38', 'network_id': 'ae5bf5cc-d333-4a33-acf9-1a778ad4c54f', 'ip_version': 4, 'cidr': '171.249.174.0/26', 'allocation_pools': [{'start': '171.249.174.2', 'end': '171.249.174.62'}], 'gateway_ip': '171.249.174.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '171.249.174.2', 'tags': [], 'project_id': 'a7b074a003844abb87f1bcc34344db38'}}
2025-08-11 06:10:47,393 - INFO - Created VN ctest-vn-68757763
2025-08-11 06:10:47,445 - DEBUG - VN ctest-vn-68757763 UUID is ae5bf5cc-d333-4a33-acf9-1a778ad4c54f
2025-08-11 06:10:47,744 - DEBUG - Response for create_network : {'network': {'id': '23707525-427e-4d8e-a00b-ee590ea7a276', 'name': 'ctest-vn-58050940', 'tenant_id': 'a7b074a003844abb87f1bcc34344db38', 'project_id': 'a7b074a003844abb87f1bcc34344db38', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-82549839', 'ctest-vn-58050940'], 'port_security_enabled': True, 'description': ''}}
2025-08-11 06:10:47,958 - DEBUG - Response for create_subnet : {'subnet': {'id': '7e11e97f-018d-49ba-826c-c99ac47819cf', 'name': '', 'tenant_id': 'a7b074a003844abb87f1bcc34344db38', 'network_id': '23707525-427e-4d8e-a00b-ee590ea7a276', 'ip_version': 4, 'cidr': '38.154.136.192/26', 'allocation_pools': [{'start': '38.154.136.194', 'end': '38.154.136.254'}], 'gateway_ip': '38.154.136.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '38.154.136.194', 'tags': [], 'project_id': 'a7b074a003844abb87f1bcc34344db38'}}
2025-08-11 06:10:47,980 - INFO - Created VN ctest-vn-58050940
2025-08-11 06:10:48,045 - DEBUG - VN ctest-vn-58050940 UUID is 23707525-427e-4d8e-a00b-ee590ea7a276
2025-08-11 06:10:48,170 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-82549839:ctest-vn-68757763, 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-82549839:ctest-vn-58050940, 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-08-11 06:10:48,462 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ae5bf5cc-d333-4a33-acf9-1a778ad4c54f', 'name': 'ctest-vn-68757763', 'tenant_id': 'a7b074a003844abb87f1bcc34344db38', 'project_id': 'a7b074a003844abb87f1bcc34344db38', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['5d962ccd-7ebd-4ac1-8987-f061aadcb3ca'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-82549839', 'ctest-vn-68757763'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-82549839', 'ctest-policy-allow-all-20607149']], 'subnet_ipam': [{'subnet_cidr': '171.249.174.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-11 06:10:48,701 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '23707525-427e-4d8e-a00b-ee590ea7a276', 'name': 'ctest-vn-58050940', 'tenant_id': 'a7b074a003844abb87f1bcc34344db38', 'project_id': 'a7b074a003844abb87f1bcc34344db38', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7e11e97f-018d-49ba-826c-c99ac47819cf'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-82549839', 'ctest-vn-58050940'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-82549839', 'ctest-policy-allow-all-20607149']], 'subnet_ipam': [{'subnet_cidr': '38.154.136.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-11 06:10:48,885 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2025-08-11 06:10:49,181 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2025-08-11 06:10:49,210 - DEBUG - Requesting: http://10.0.0.48:8082/domain/3cf2ac91-d662-453d-96e5-e03dafd838a0
2025-08-11 06:10:49,225 - DEBUG - Requesting: http://10.0.0.48:8082/project/a7b074a0-0384-4abb-87f1-bcc34344db38
2025-08-11 06:10:49,300 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/ae5bf5cc-d333-4a33-acf9-1a778ad4c54f
2025-08-11 06:10:49,312 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/ae5bf5cc-d333-4a33-acf9-1a778ad4c54f
2025-08-11 06:10:49,323 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/85af6b58-0f77-4de5-9308-58ebd4923331
2025-08-11 06:10:49,330 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/85af6b58-0f77-4de5-9308-58ebd4923331
2025-08-11 06:10:49,338 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/aa8a5736-886f-4da6-85cf-0777265e6ada
2025-08-11 06:10:49,344 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-11 06:10:49,344 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/ae5bf5cc-d333-4a33-acf9-1a778ad4c54f
2025-08-11 06:10:49,354 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/85af6b58-0f77-4de5-9308-58ebd4923331
2025-08-11 06:10:49,368 - INFO - Verified VN network id 11 for VN ae5bf5cc-d333-4a33-acf9-1a778ad4c54f
2025-08-11 06:10:49,369 - INFO - Verifications in API Server for VN ctest-vn-68757763 passed
2025-08-11 06:10:49,369 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/ae5bf5cc-d333-4a33-acf9-1a778ad4c54f
2025-08-11 06:10:49,380 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/85af6b58-0f77-4de5-9308-58ebd4923331
2025-08-11 06:10:49,388 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/85af6b58-0f77-4de5-9308-58ebd4923331
2025-08-11 06:10:49,396 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/aa8a5736-886f-4da6-85cf-0777265e6ada
2025-08-11 06:10:49,409 - DEBUG - Control-node 10.0.0.48 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-82549839:ctest-vn-68757763', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-82549839', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12563905845545617971', 'uuid-lslong': '12464022544457188687'}, 'enable': 'true', 'created': '2025-08-11T06:10:47', 'last-modified': '2025-08-11T06:10:48', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.967179'}
2025-08-11 06:10:49,415 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-11 06:10:49,416 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-68757763 passed
2025-08-11 06:10:49,416 - DEBUG - ====Verifying policy data for ctest-vn-68757763 in API_Server ======
2025-08-11 06:10:49,416 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2025-08-11 06:10:49,422 - DEBUG - Requesting: http://10.0.0.48:8082/domain/3cf2ac91-d662-453d-96e5-e03dafd838a0
2025-08-11 06:10:49,435 - DEBUG - Requesting: http://10.0.0.48:8082/project/a7b074a0-0384-4abb-87f1-bcc34344db38
2025-08-11 06:10:49,511 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/ae5bf5cc-d333-4a33-acf9-1a778ad4c54f
2025-08-11 06:10:49,521 - DEBUG - ==>Verifying data for policy with id: 53b1c0f8-538d-4b20-99ff-7da5cfd372ea, fqn: ['default-domain', 'ctest-TestBasicPolicy-82549839', 'ctest-policy-allow-all-20607149']
2025-08-11 06:10:49,521 - INFO - VN ctest-vn-68757763 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-11 06:10:49,521 - DEBUG - Verifying the vn in opserver
2025-08-11 06:10:49,521 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-82549839:ctest-vn-68757763 virtual network link through opserver 10.0.0.48
2025-08-11 06:10:49,521 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks
2025-08-11 06:10:49,815 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks
2025-08-11 06:10:49,870 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-82549839:ctest-vn-68757763', 'href': 'http://10.0.0.48:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-82549839:ctest-vn-68757763?flat'}
2025-08-11 06:10:49,870 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-82549839:ctest-vn-68757763 is found in opserver
2025-08-11 06:10:49,882 - DEBUG - Do not have enough data to verify VN in agent
2025-08-11 06:10:49,887 - DEBUG - VRF ids for VN ctest-vn-68757763: {}
2025-08-11 06:10:49,887 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2025-08-11 06:10:49,893 - DEBUG - Requesting: http://10.0.0.48:8082/domain/3cf2ac91-d662-453d-96e5-e03dafd838a0
2025-08-11 06:10:49,904 - DEBUG - Requesting: http://10.0.0.48:8082/project/a7b074a0-0384-4abb-87f1-bcc34344db38
2025-08-11 06:10:49,974 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/23707525-427e-4d8e-a00b-ee590ea7a276
2025-08-11 06:10:49,988 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/23707525-427e-4d8e-a00b-ee590ea7a276
2025-08-11 06:10:50,000 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/ff6bb824-b0c2-4a27-9e99-bee46d4efd61
2025-08-11 06:10:50,009 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/ff6bb824-b0c2-4a27-9e99-bee46d4efd61
2025-08-11 06:10:50,018 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/c75e331c-4683-4c1f-9b5c-37f88cbc0efc
2025-08-11 06:10:50,026 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-11 06:10:50,026 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/23707525-427e-4d8e-a00b-ee590ea7a276
2025-08-11 06:10:50,036 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/ff6bb824-b0c2-4a27-9e99-bee46d4efd61
2025-08-11 06:10:50,052 - INFO - Verified VN network id 12 for VN 23707525-427e-4d8e-a00b-ee590ea7a276
2025-08-11 06:10:50,052 - INFO - Verifications in API Server for VN ctest-vn-58050940 passed
2025-08-11 06:10:50,052 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/23707525-427e-4d8e-a00b-ee590ea7a276
2025-08-11 06:10:50,062 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/ff6bb824-b0c2-4a27-9e99-bee46d4efd61
2025-08-11 06:10:50,069 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/ff6bb824-b0c2-4a27-9e99-bee46d4efd61
2025-08-11 06:10:50,077 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/c75e331c-4683-4c1f-9b5c-37f88cbc0efc
2025-08-11 06:10:50,090 - DEBUG - Control-node 10.0.0.48 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-82549839:ctest-vn-58050940', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-82549839', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2553669791608884622', 'uuid-lslong': '11532573337077654134'}, 'enable': 'true', 'created': '2025-08-11T06:10:47', 'last-modified': '2025-08-11T06:10:48', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.421611'}
2025-08-11 06:10:50,097 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-11 06:10:50,097 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-58050940 passed
2025-08-11 06:10:50,097 - DEBUG - ====Verifying policy data for ctest-vn-58050940 in API_Server ======
2025-08-11 06:10:50,097 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2025-08-11 06:10:50,104 - DEBUG - Requesting: http://10.0.0.48:8082/domain/3cf2ac91-d662-453d-96e5-e03dafd838a0
2025-08-11 06:10:50,119 - DEBUG - Requesting: http://10.0.0.48:8082/project/a7b074a0-0384-4abb-87f1-bcc34344db38
2025-08-11 06:10:50,191 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/23707525-427e-4d8e-a00b-ee590ea7a276
2025-08-11 06:10:50,202 - DEBUG - ==>Verifying data for policy with id: 53b1c0f8-538d-4b20-99ff-7da5cfd372ea, fqn: ['default-domain', 'ctest-TestBasicPolicy-82549839', 'ctest-policy-allow-all-20607149']
2025-08-11 06:10:50,203 - INFO - VN ctest-vn-58050940 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-11 06:10:50,203 - DEBUG - Verifying the vn in opserver
2025-08-11 06:10:50,203 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-82549839:ctest-vn-58050940 virtual network link through opserver 10.0.0.48
2025-08-11 06:10:50,203 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks
2025-08-11 06:10:50,213 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-82549839:ctest-vn-58050940', 'href': 'http://10.0.0.48:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-82549839:ctest-vn-58050940?flat'}
2025-08-11 06:10:50,214 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-82549839:ctest-vn-58050940 is found in opserver
2025-08-11 06:10:50,224 - DEBUG - Do not have enough data to verify VN in agent
2025-08-11 06:10:50,230 - DEBUG - VRF ids for VN ctest-vn-58050940: {}
2025-08-11 06:10:50,288 - DEBUG - Services list from nova: [