2025-06-25 07:41:22,298 - INFO - Domain Default found not creating
2025-06-25 07:41:22,470 - INFO - Project ctest-TestBasicPolicy-85609894 not found, creating it
2025-06-25 07:41:22,985 - INFO - Created Project:ctest-TestBasicPolicy-85609894, ID : ca4e30a2-d376-4bf4-81fa-b9887e2b4ad6
2025-06-25 07:41:24,665 - INFO - ================================================================================
2025-06-25 07:41:24,665 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-06-25 07:41:24,665 - 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-06-25 07:41:24,928 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.14': '0'}} with
2025-06-25 07:41:24,928 - INFO - Initial checks done. Running the testcase now
2025-06-25 07:41:24,928 - INFO -
2025-06-25 07:41:25,567 - DEBUG - Response for create_network : {'network': {'id': '9a52ad48-721d-4666-b0dc-af6a6aab1841', 'name': 'ctest-vn-61996114', 'tenant_id': 'ca4e30a2d3764bf481fab9887e2b4ad6', 'project_id': 'ca4e30a2d3764bf481fab9887e2b4ad6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-85609894', 'ctest-vn-61996114'], 'port_security_enabled': True, 'description': ''}}
2025-06-25 07:41:25,766 - DEBUG - Response for create_subnet : {'subnet': {'id': '94cf20a1-eafb-4829-87a4-c3b25a45b7ee', 'name': '', 'tenant_id': 'ca4e30a2d3764bf481fab9887e2b4ad6', 'network_id': '9a52ad48-721d-4666-b0dc-af6a6aab1841', 'ip_version': 4, 'cidr': '214.163.246.128/26', 'allocation_pools': [{'start': '214.163.246.130', 'end': '214.163.246.190'}], 'gateway_ip': '214.163.246.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '214.163.246.130', 'tags': [], 'project_id': 'ca4e30a2d3764bf481fab9887e2b4ad6'}}
2025-06-25 07:41:25,788 - INFO - Created VN ctest-vn-61996114
2025-06-25 07:41:25,844 - DEBUG - VN ctest-vn-61996114 UUID is 9a52ad48-721d-4666-b0dc-af6a6aab1841
2025-06-25 07:41:26,210 - DEBUG - Response for create_network : {'network': {'id': '93cda708-906b-4832-8a93-fc812d61e0e2', 'name': 'ctest-vn-23437199', 'tenant_id': 'ca4e30a2d3764bf481fab9887e2b4ad6', 'project_id': 'ca4e30a2d3764bf481fab9887e2b4ad6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-85609894', 'ctest-vn-23437199'], 'port_security_enabled': True, 'description': ''}}
2025-06-25 07:41:26,415 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f7cefbff-2836-401e-96e7-11059b00a3f1', 'name': '', 'tenant_id': 'ca4e30a2d3764bf481fab9887e2b4ad6', 'network_id': '93cda708-906b-4832-8a93-fc812d61e0e2', 'ip_version': 4, 'cidr': '76.231.169.128/26', 'allocation_pools': [{'start': '76.231.169.130', 'end': '76.231.169.190'}], 'gateway_ip': '76.231.169.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '76.231.169.130', 'tags': [], 'project_id': 'ca4e30a2d3764bf481fab9887e2b4ad6'}}
2025-06-25 07:41:26,438 - INFO - Created VN ctest-vn-23437199
2025-06-25 07:41:26,492 - DEBUG - VN ctest-vn-23437199 UUID is 93cda708-906b-4832-8a93-fc812d61e0e2
2025-06-25 07:41:26,629 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-85609894:ctest-vn-61996114, 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-85609894:ctest-vn-23437199, 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-06-25 07:41:26,952 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9a52ad48-721d-4666-b0dc-af6a6aab1841', 'name': 'ctest-vn-61996114', 'tenant_id': 'ca4e30a2d3764bf481fab9887e2b4ad6', 'project_id': 'ca4e30a2d3764bf481fab9887e2b4ad6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['94cf20a1-eafb-4829-87a4-c3b25a45b7ee'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-85609894', 'ctest-vn-61996114'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-85609894', 'ctest-policy-allow-all-54649554']], 'subnet_ipam': [{'subnet_cidr': '214.163.246.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-25 07:41:27,216 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '93cda708-906b-4832-8a93-fc812d61e0e2', 'name': 'ctest-vn-23437199', 'tenant_id': 'ca4e30a2d3764bf481fab9887e2b4ad6', 'project_id': 'ca4e30a2d3764bf481fab9887e2b4ad6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f7cefbff-2836-401e-96e7-11059b00a3f1'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-85609894', 'ctest-vn-23437199'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-85609894', 'ctest-policy-allow-all-54649554']], 'subnet_ipam': [{'subnet_cidr': '76.231.169.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-25 07:41:27,392 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-06-25 07:41:27,736 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-06-25 07:41:27,771 - DEBUG - Requesting: http://10.0.0.38:8082/domain/5430eacc-6a6d-441f-aacf-cd6b178f4e20
2025-06-25 07:41:27,789 - DEBUG - Requesting: http://10.0.0.38:8082/project/ca4e30a2-d376-4bf4-81fa-b9887e2b4ad6
2025-06-25 07:41:27,872 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/9a52ad48-721d-4666-b0dc-af6a6aab1841
2025-06-25 07:41:27,887 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/9a52ad48-721d-4666-b0dc-af6a6aab1841
2025-06-25 07:41:27,900 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5957f568-4136-4576-9def-3cc4e25a4624
2025-06-25 07:41:27,911 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5957f568-4136-4576-9def-3cc4e25a4624
2025-06-25 07:41:27,920 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/45c70eaa-25bc-4637-b9e3-79fdc03e91e8
2025-06-25 07:41:27,928 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-25 07:41:27,929 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/9a52ad48-721d-4666-b0dc-af6a6aab1841
2025-06-25 07:41:27,942 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5957f568-4136-4576-9def-3cc4e25a4624
2025-06-25 07:41:27,960 - INFO - Verified VN network id 7 for VN 9a52ad48-721d-4666-b0dc-af6a6aab1841
2025-06-25 07:41:27,961 - INFO - Verifications in API Server for VN ctest-vn-61996114 passed
2025-06-25 07:41:27,961 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/9a52ad48-721d-4666-b0dc-af6a6aab1841
2025-06-25 07:41:27,973 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5957f568-4136-4576-9def-3cc4e25a4624
2025-06-25 07:41:27,983 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5957f568-4136-4576-9def-3cc4e25a4624
2025-06-25 07:41:27,993 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/45c70eaa-25bc-4637-b9e3-79fdc03e91e8
2025-06-25 07:41:28,008 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-85609894:ctest-vn-61996114', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-85609894', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11120140956594947686', 'uuid-lslong': '12744253917142652993'}, 'enable': 'true', 'created': '2025-06-25T07:41:25', 'last-modified': '2025-06-25T07:41:26', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.086934'}
2025-06-25 07:41:28,016 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-25 07:41:28,017 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-61996114 passed
2025-06-25 07:41:28,017 - DEBUG - ====Verifying policy data for ctest-vn-61996114 in API_Server ======
2025-06-25 07:41:28,017 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-06-25 07:41:28,024 - DEBUG - Requesting: http://10.0.0.38:8082/domain/5430eacc-6a6d-441f-aacf-cd6b178f4e20
2025-06-25 07:41:28,040 - DEBUG - Requesting: http://10.0.0.38:8082/project/ca4e30a2-d376-4bf4-81fa-b9887e2b4ad6
2025-06-25 07:41:28,123 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/9a52ad48-721d-4666-b0dc-af6a6aab1841
2025-06-25 07:41:28,135 - DEBUG - ==>Verifying data for policy with id: 9197c614-9552-44a0-94b9-d36417e234c7, fqn: ['default-domain', 'ctest-TestBasicPolicy-85609894', 'ctest-policy-allow-all-54649554']
2025-06-25 07:41:28,135 - INFO - VN ctest-vn-61996114 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-25 07:41:28,135 - DEBUG - Verifying the vn in opserver
2025-06-25 07:41:28,135 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-85609894:ctest-vn-61996114 virtual network link through opserver 10.0.0.38
2025-06-25 07:41:28,135 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-06-25 07:41:28,469 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-06-25 07:41:28,537 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-85609894:ctest-vn-61996114', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-85609894:ctest-vn-61996114?flat'}
2025-06-25 07:41:28,537 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-85609894:ctest-vn-61996114 is found in opserver
2025-06-25 07:41:28,553 - DEBUG - Do not have enough data to verify VN in agent
2025-06-25 07:41:28,560 - DEBUG - VRF ids for VN ctest-vn-61996114: {}
2025-06-25 07:41:28,560 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-06-25 07:41:28,570 - DEBUG - Requesting: http://10.0.0.38:8082/domain/5430eacc-6a6d-441f-aacf-cd6b178f4e20
2025-06-25 07:41:28,586 - DEBUG - Requesting: http://10.0.0.38:8082/project/ca4e30a2-d376-4bf4-81fa-b9887e2b4ad6
2025-06-25 07:41:28,691 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/93cda708-906b-4832-8a93-fc812d61e0e2
2025-06-25 07:41:28,707 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/93cda708-906b-4832-8a93-fc812d61e0e2
2025-06-25 07:41:28,720 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/9f9638a1-f7b4-42c1-86ec-a99d93fcb0b1
2025-06-25 07:41:28,731 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/9f9638a1-f7b4-42c1-86ec-a99d93fcb0b1
2025-06-25 07:41:28,741 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/e9ae20b4-0bea-4219-a25f-2288c4102c79
2025-06-25 07:41:28,749 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-25 07:41:28,750 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/93cda708-906b-4832-8a93-fc812d61e0e2
2025-06-25 07:41:28,762 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/9f9638a1-f7b4-42c1-86ec-a99d93fcb0b1
2025-06-25 07:41:28,780 - INFO - Verified VN network id 8 for VN 93cda708-906b-4832-8a93-fc812d61e0e2
2025-06-25 07:41:28,780 - INFO - Verifications in API Server for VN ctest-vn-23437199 passed
2025-06-25 07:41:28,780 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/93cda708-906b-4832-8a93-fc812d61e0e2
2025-06-25 07:41:28,794 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/9f9638a1-f7b4-42c1-86ec-a99d93fcb0b1
2025-06-25 07:41:28,806 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/9f9638a1-f7b4-42c1-86ec-a99d93fcb0b1
2025-06-25 07:41:28,816 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/e9ae20b4-0bea-4219-a25f-2288c4102c79
2025-06-25 07:41:28,833 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-85609894:ctest-vn-23437199', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-85609894', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10650352349025617970', 'uuid-lslong': '9985602430552891618'}, 'enable': 'true', 'created': '2025-06-25T07:41:26', 'last-modified': '2025-06-25T07:41:27', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.645549'}
2025-06-25 07:41:28,842 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-25 07:41:28,842 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-23437199 passed
2025-06-25 07:41:28,842 - DEBUG - ====Verifying policy data for ctest-vn-23437199 in API_Server ======
2025-06-25 07:41:28,842 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-06-25 07:41:28,853 - DEBUG - Requesting: http://10.0.0.38:8082/domain/5430eacc-6a6d-441f-aacf-cd6b178f4e20
2025-06-25 07:41:28,869 - DEBUG - Requesting: http://10.0.0.38:8082/project/ca4e30a2-d376-4bf4-81fa-b9887e2b4ad6
2025-06-25 07:41:28,950 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/93cda708-906b-4832-8a93-fc812d61e0e2
2025-06-25 07:41:28,965 - DEBUG - ==>Verifying data for policy with id: 9197c614-9552-44a0-94b9-d36417e234c7, fqn: ['default-domain', 'ctest-TestBasicPolicy-85609894', 'ctest-policy-allow-all-54649554']
2025-06-25 07:41:28,965 - INFO - VN ctest-vn-23437199 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-25 07:41:28,965 - DEBUG - Verifying the vn in opserver
2025-06-25 07:41:28,965 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-85609894:ctest-vn-23437199 virtual network link through opserver 10.0.0.38
2025-06-25 07:41:28,965 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-06-25 07:41:28,980 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-85609894:ctest-vn-23437199', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-85609894:ctest-vn-23437199?flat'}
2025-06-25 07:41:28,980 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-85609894:ctest-vn-23437199 is found in opserver
2025-06-25 07:41:28,993 - DEBUG - Do not have enough data to verify VN in agent
2025-06-25 07:41:28,999 - DEBUG - VRF ids for VN ctest-vn-23437199: {}
2025-06-25 07:41:29,067 - DEBUG - Services list from nova: [