2025-04-23 08:57:04,566 - INFO - Domain Default found not creating
2025-04-23 08:57:04,739 - INFO - Project ctest-TestBasicPolicy-71039918 not found, creating it
2025-04-23 08:57:05,231 - INFO - Created Project:ctest-TestBasicPolicy-71039918, ID : 3d71ec51-50f1-4037-8846-ba3f2a8a6a7a
2025-04-23 08:57:06,804 - INFO - ================================================================================
2025-04-23 08:57:06,804 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-04-23 08:57:06,804 - 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-04-23 08:57:07,060 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with
2025-04-23 08:57:07,060 - INFO - Initial checks done. Running the testcase now
2025-04-23 08:57:07,060 - INFO -
2025-04-23 08:57:07,676 - DEBUG - Response for create_network : {'network': {'id': 'b104817f-79d7-4673-8b1b-6fac2f1f4145', 'name': 'ctest-vn-87473102', 'tenant_id': '3d71ec5150f140378846ba3f2a8a6a7a', 'project_id': '3d71ec5150f140378846ba3f2a8a6a7a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-71039918', 'ctest-vn-87473102'], 'port_security_enabled': True, 'description': ''}}
2025-04-23 08:57:07,929 - DEBUG - Response for create_subnet : {'subnet': {'id': '1b288976-60c4-442c-a740-4d5bec20d435', 'name': '', 'tenant_id': '3d71ec5150f140378846ba3f2a8a6a7a', 'network_id': 'b104817f-79d7-4673-8b1b-6fac2f1f4145', 'ip_version': 4, 'cidr': '199.52.219.128/26', 'allocation_pools': [{'start': '199.52.219.130', 'end': '199.52.219.190'}], 'gateway_ip': '199.52.219.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '199.52.219.130', 'tags': [], 'project_id': '3d71ec5150f140378846ba3f2a8a6a7a'}}
2025-04-23 08:57:07,951 - INFO - Created VN ctest-vn-87473102
2025-04-23 08:57:08,010 - DEBUG - VN ctest-vn-87473102 UUID is b104817f-79d7-4673-8b1b-6fac2f1f4145
2025-04-23 08:57:08,320 - DEBUG - Response for create_network : {'network': {'id': 'e235a912-43ea-41c6-b146-8cac1366568d', 'name': 'ctest-vn-29417934', 'tenant_id': '3d71ec5150f140378846ba3f2a8a6a7a', 'project_id': '3d71ec5150f140378846ba3f2a8a6a7a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-71039918', 'ctest-vn-29417934'], 'port_security_enabled': True, 'description': ''}}
2025-04-23 08:57:08,502 - DEBUG - Response for create_subnet : {'subnet': {'id': '2c4db83e-f62d-429d-924e-89d12930d274', 'name': '', 'tenant_id': '3d71ec5150f140378846ba3f2a8a6a7a', 'network_id': 'e235a912-43ea-41c6-b146-8cac1366568d', 'ip_version': 4, 'cidr': '201.135.106.128/26', 'allocation_pools': [{'start': '201.135.106.130', 'end': '201.135.106.190'}], 'gateway_ip': '201.135.106.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '201.135.106.130', 'tags': [], 'project_id': '3d71ec5150f140378846ba3f2a8a6a7a'}}
2025-04-23 08:57:08,523 - INFO - Created VN ctest-vn-29417934
2025-04-23 08:57:08,578 - DEBUG - VN ctest-vn-29417934 UUID is e235a912-43ea-41c6-b146-8cac1366568d
2025-04-23 08:57:08,701 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-71039918:ctest-vn-87473102, 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-71039918:ctest-vn-29417934, 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-04-23 08:57:09,016 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b104817f-79d7-4673-8b1b-6fac2f1f4145', 'name': 'ctest-vn-87473102', 'tenant_id': '3d71ec5150f140378846ba3f2a8a6a7a', 'project_id': '3d71ec5150f140378846ba3f2a8a6a7a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1b288976-60c4-442c-a740-4d5bec20d435'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-71039918', 'ctest-vn-87473102'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-71039918', 'ctest-policy-allow-all-68146837']], 'subnet_ipam': [{'subnet_cidr': '199.52.219.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-23 08:57:09,318 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e235a912-43ea-41c6-b146-8cac1366568d', 'name': 'ctest-vn-29417934', 'tenant_id': '3d71ec5150f140378846ba3f2a8a6a7a', 'project_id': '3d71ec5150f140378846ba3f2a8a6a7a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2c4db83e-f62d-429d-924e-89d12930d274'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-71039918', 'ctest-vn-29417934'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-71039918', 'ctest-policy-allow-all-68146837']], 'subnet_ipam': [{'subnet_cidr': '201.135.106.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-23 08:57:09,466 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-04-23 08:57:09,810 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-04-23 08:57:09,841 - DEBUG - Requesting: http://10.0.0.38:8082/domain/36b78879-056e-4572-8031-3a633bc9746a
2025-04-23 08:57:09,855 - DEBUG - Requesting: http://10.0.0.38:8082/project/3d71ec51-50f1-4037-8846-ba3f2a8a6a7a
2025-04-23 08:57:09,932 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b104817f-79d7-4673-8b1b-6fac2f1f4145
2025-04-23 08:57:09,943 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b104817f-79d7-4673-8b1b-6fac2f1f4145
2025-04-23 08:57:09,954 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c3ebc22f-45fc-4a8c-b8b7-4200982d68ea
2025-04-23 08:57:09,961 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c3ebc22f-45fc-4a8c-b8b7-4200982d68ea
2025-04-23 08:57:09,968 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/37ec1652-c5c0-4d16-841b-1b186b32b65e
2025-04-23 08:57:09,975 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-23 08:57:09,975 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b104817f-79d7-4673-8b1b-6fac2f1f4145
2025-04-23 08:57:09,985 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c3ebc22f-45fc-4a8c-b8b7-4200982d68ea
2025-04-23 08:57:09,999 - INFO - Verified VN network id 7 for VN b104817f-79d7-4673-8b1b-6fac2f1f4145
2025-04-23 08:57:09,999 - INFO - Verifications in API Server for VN ctest-vn-87473102 passed
2025-04-23 08:57:09,999 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b104817f-79d7-4673-8b1b-6fac2f1f4145
2025-04-23 08:57:10,011 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c3ebc22f-45fc-4a8c-b8b7-4200982d68ea
2025-04-23 08:57:10,019 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c3ebc22f-45fc-4a8c-b8b7-4200982d68ea
2025-04-23 08:57:10,027 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/37ec1652-c5c0-4d16-841b-1b186b32b65e
2025-04-23 08:57:10,042 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-71039918:ctest-vn-87473102', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-71039918', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12755462429125068403', 'uuid-lslong': '10023728180958806341'}, 'enable': 'true', 'created': '2025-04-23T08:57:07', 'last-modified': '2025-04-23T08:57:08', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.054640'}
2025-04-23 08:57:10,049 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-23 08:57:10,049 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-87473102 passed
2025-04-23 08:57:10,049 - DEBUG - ====Verifying policy data for ctest-vn-87473102 in API_Server ======
2025-04-23 08:57:10,049 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-04-23 08:57:10,056 - DEBUG - Requesting: http://10.0.0.38:8082/domain/36b78879-056e-4572-8031-3a633bc9746a
2025-04-23 08:57:10,072 - DEBUG - Requesting: http://10.0.0.38:8082/project/3d71ec51-50f1-4037-8846-ba3f2a8a6a7a
2025-04-23 08:57:10,146 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b104817f-79d7-4673-8b1b-6fac2f1f4145
2025-04-23 08:57:10,161 - DEBUG - ==>Verifying data for policy with id: ebe4103c-4a0d-4d22-a248-5cbdc7e18364, fqn: ['default-domain', 'ctest-TestBasicPolicy-71039918', 'ctest-policy-allow-all-68146837']
2025-04-23 08:57:10,161 - INFO - VN ctest-vn-87473102 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-23 08:57:10,161 - DEBUG - Verifying the vn in opserver
2025-04-23 08:57:10,161 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-71039918:ctest-vn-87473102 virtual network link through opserver 10.0.0.38
2025-04-23 08:57:10,161 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-04-23 08:57:10,497 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-04-23 08:57:10,555 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-71039918:ctest-vn-87473102', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-71039918:ctest-vn-87473102?flat'}
2025-04-23 08:57:10,555 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-71039918:ctest-vn-87473102 is found in opserver
2025-04-23 08:57:10,568 - DEBUG - Do not have enough data to verify VN in agent
2025-04-23 08:57:10,574 - DEBUG - VRF ids for VN ctest-vn-87473102: {}
2025-04-23 08:57:10,574 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-04-23 08:57:10,580 - DEBUG - Requesting: http://10.0.0.38:8082/domain/36b78879-056e-4572-8031-3a633bc9746a
2025-04-23 08:57:10,594 - DEBUG - Requesting: http://10.0.0.38:8082/project/3d71ec51-50f1-4037-8846-ba3f2a8a6a7a
2025-04-23 08:57:10,666 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/e235a912-43ea-41c6-b146-8cac1366568d
2025-04-23 08:57:10,679 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/e235a912-43ea-41c6-b146-8cac1366568d
2025-04-23 08:57:10,690 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/8394f062-982c-4425-ac2f-a2d1120f8049
2025-04-23 08:57:10,699 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/8394f062-982c-4425-ac2f-a2d1120f8049
2025-04-23 08:57:10,707 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/6e90f68e-b19c-4c64-b4dc-76ad26161299
2025-04-23 08:57:10,714 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-23 08:57:10,714 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/e235a912-43ea-41c6-b146-8cac1366568d
2025-04-23 08:57:10,724 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/8394f062-982c-4425-ac2f-a2d1120f8049
2025-04-23 08:57:10,742 - INFO - Verified VN network id 8 for VN e235a912-43ea-41c6-b146-8cac1366568d
2025-04-23 08:57:10,742 - INFO - Verifications in API Server for VN ctest-vn-29417934 passed
2025-04-23 08:57:10,742 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/e235a912-43ea-41c6-b146-8cac1366568d
2025-04-23 08:57:10,752 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/8394f062-982c-4425-ac2f-a2d1120f8049
2025-04-23 08:57:10,760 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/8394f062-982c-4425-ac2f-a2d1120f8049
2025-04-23 08:57:10,767 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/6e90f68e-b19c-4c64-b4dc-76ad26161299
2025-04-23 08:57:10,781 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-71039918:ctest-vn-29417934', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-71039918', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16300120322251309510', 'uuid-lslong': '12774052063770728077'}, 'enable': 'true', 'created': '2025-04-23T08:57:08', 'last-modified': '2025-04-23T08:57:09', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.540391'}
2025-04-23 08:57:10,787 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-23 08:57:10,787 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-29417934 passed
2025-04-23 08:57:10,788 - DEBUG - ====Verifying policy data for ctest-vn-29417934 in API_Server ======
2025-04-23 08:57:10,788 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-04-23 08:57:10,793 - DEBUG - Requesting: http://10.0.0.38:8082/domain/36b78879-056e-4572-8031-3a633bc9746a
2025-04-23 08:57:10,808 - DEBUG - Requesting: http://10.0.0.38:8082/project/3d71ec51-50f1-4037-8846-ba3f2a8a6a7a
2025-04-23 08:57:10,888 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/e235a912-43ea-41c6-b146-8cac1366568d
2025-04-23 08:57:10,900 - DEBUG - ==>Verifying data for policy with id: ebe4103c-4a0d-4d22-a248-5cbdc7e18364, fqn: ['default-domain', 'ctest-TestBasicPolicy-71039918', 'ctest-policy-allow-all-68146837']
2025-04-23 08:57:10,901 - INFO - VN ctest-vn-29417934 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-23 08:57:10,901 - DEBUG - Verifying the vn in opserver
2025-04-23 08:57:10,901 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-71039918:ctest-vn-29417934 virtual network link through opserver 10.0.0.38
2025-04-23 08:57:10,901 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-04-23 08:57:10,913 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-71039918:ctest-vn-29417934', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-71039918:ctest-vn-29417934?flat'}
2025-04-23 08:57:10,913 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-71039918:ctest-vn-29417934 is found in opserver
2025-04-23 08:57:10,925 - DEBUG - Do not have enough data to verify VN in agent
2025-04-23 08:57:10,930 - DEBUG - VRF ids for VN ctest-vn-29417934: {}
2025-04-23 08:57:10,993 - DEBUG - Services list from nova: [