2025-04-14 15:42:09,046 - INFO - Domain Default found not creating
2025-04-14 15:42:09,217 - INFO - Project ctest-TestBasicPolicy-94985769 not found, creating it
2025-04-14 15:42:09,675 - INFO - Created Project:ctest-TestBasicPolicy-94985769, ID : 24e3c5be-ac26-4011-9e92-0bd7b6201f24
2025-04-14 15:42:11,149 - INFO - ================================================================================
2025-04-14 15:42:11,149 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-04-14 15:42:11,149 - 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-14 15:42:11,404 - DEBUG - Nothing to compare xmpp stats {'10.0.0.19': {'10.20.0.17': '0'}} with
2025-04-14 15:42:11,404 - INFO - Initial checks done. Running the testcase now
2025-04-14 15:42:11,404 - INFO -
2025-04-14 15:42:11,968 - DEBUG - Response for create_network : {'network': {'id': '64bd8fad-31ac-41c4-baa3-21d67a5d3f97', 'name': 'ctest-vn-39313176', 'tenant_id': '24e3c5beac2640119e920bd7b6201f24', 'project_id': '24e3c5beac2640119e920bd7b6201f24', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-94985769', 'ctest-vn-39313176'], 'port_security_enabled': True, 'description': ''}}
2025-04-14 15:42:12,195 - DEBUG - Response for create_subnet : {'subnet': {'id': '2a976609-31df-4ae5-a129-f9eaf7e06d83', 'name': '', 'tenant_id': '24e3c5beac2640119e920bd7b6201f24', 'network_id': '64bd8fad-31ac-41c4-baa3-21d67a5d3f97', 'ip_version': 4, 'cidr': '113.161.113.128/26', 'allocation_pools': [{'start': '113.161.113.130', 'end': '113.161.113.190'}], 'gateway_ip': '113.161.113.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '113.161.113.130', 'tags': [], 'project_id': '24e3c5beac2640119e920bd7b6201f24'}}
2025-04-14 15:42:12,217 - INFO - Created VN ctest-vn-39313176
2025-04-14 15:42:12,274 - DEBUG - VN ctest-vn-39313176 UUID is 64bd8fad-31ac-41c4-baa3-21d67a5d3f97
2025-04-14 15:42:12,582 - DEBUG - Response for create_network : {'network': {'id': 'e5c663fd-8eb6-4a63-b6a9-bcfb1a86d535', 'name': 'ctest-vn-33617583', 'tenant_id': '24e3c5beac2640119e920bd7b6201f24', 'project_id': '24e3c5beac2640119e920bd7b6201f24', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-94985769', 'ctest-vn-33617583'], 'port_security_enabled': True, 'description': ''}}
2025-04-14 15:42:12,775 - DEBUG - Response for create_subnet : {'subnet': {'id': 'bf581c58-1ae4-4fc3-b3ed-126f420a8ed0', 'name': '', 'tenant_id': '24e3c5beac2640119e920bd7b6201f24', 'network_id': 'e5c663fd-8eb6-4a63-b6a9-bcfb1a86d535', 'ip_version': 4, 'cidr': '185.175.63.128/26', 'allocation_pools': [{'start': '185.175.63.130', 'end': '185.175.63.190'}], 'gateway_ip': '185.175.63.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '185.175.63.130', 'tags': [], 'project_id': '24e3c5beac2640119e920bd7b6201f24'}}
2025-04-14 15:42:12,794 - INFO - Created VN ctest-vn-33617583
2025-04-14 15:42:12,850 - DEBUG - VN ctest-vn-33617583 UUID is e5c663fd-8eb6-4a63-b6a9-bcfb1a86d535
2025-04-14 15:42:12,967 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-94985769:ctest-vn-39313176, 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-94985769:ctest-vn-33617583, 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-14 15:42:13,285 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '64bd8fad-31ac-41c4-baa3-21d67a5d3f97', 'name': 'ctest-vn-39313176', 'tenant_id': '24e3c5beac2640119e920bd7b6201f24', 'project_id': '24e3c5beac2640119e920bd7b6201f24', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2a976609-31df-4ae5-a129-f9eaf7e06d83'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-94985769', 'ctest-vn-39313176'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-94985769', 'ctest-policy-allow-all-47969501']], 'subnet_ipam': [{'subnet_cidr': '113.161.113.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-14 15:42:13,535 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e5c663fd-8eb6-4a63-b6a9-bcfb1a86d535', 'name': 'ctest-vn-33617583', 'tenant_id': '24e3c5beac2640119e920bd7b6201f24', 'project_id': '24e3c5beac2640119e920bd7b6201f24', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['bf581c58-1ae4-4fc3-b3ed-126f420a8ed0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-94985769', 'ctest-vn-33617583'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-94985769', 'ctest-policy-allow-all-47969501']], 'subnet_ipam': [{'subnet_cidr': '185.175.63.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-14 15:42:13,702 - DEBUG - Requesting: http://10.0.0.19:8082/domains
2025-04-14 15:42:13,995 - DEBUG - Requesting: http://10.0.0.19:8082/domains
2025-04-14 15:42:14,031 - DEBUG - Requesting: http://10.0.0.19:8082/domain/47d5a4c8-5681-471f-8ba9-0c70355be5bd
2025-04-14 15:42:14,046 - DEBUG - Requesting: http://10.0.0.19:8082/project/24e3c5be-ac26-4011-9e92-0bd7b6201f24
2025-04-14 15:42:14,120 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/64bd8fad-31ac-41c4-baa3-21d67a5d3f97
2025-04-14 15:42:14,133 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/64bd8fad-31ac-41c4-baa3-21d67a5d3f97
2025-04-14 15:42:14,146 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/48152f64-ee55-4c5c-b410-e8070d5c0e47
2025-04-14 15:42:14,154 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/48152f64-ee55-4c5c-b410-e8070d5c0e47
2025-04-14 15:42:14,162 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/ade5d502-196e-4f64-a98c-069310a85145
2025-04-14 15:42:14,170 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-14 15:42:14,170 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/64bd8fad-31ac-41c4-baa3-21d67a5d3f97
2025-04-14 15:42:14,180 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/48152f64-ee55-4c5c-b410-e8070d5c0e47
2025-04-14 15:42:14,196 - INFO - Verified VN network id 7 for VN 64bd8fad-31ac-41c4-baa3-21d67a5d3f97
2025-04-14 15:42:14,196 - INFO - Verifications in API Server for VN ctest-vn-39313176 passed
2025-04-14 15:42:14,196 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/64bd8fad-31ac-41c4-baa3-21d67a5d3f97
2025-04-14 15:42:14,206 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/48152f64-ee55-4c5c-b410-e8070d5c0e47
2025-04-14 15:42:14,215 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/48152f64-ee55-4c5c-b410-e8070d5c0e47
2025-04-14 15:42:14,223 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/ade5d502-196e-4f64-a98c-069310a85145
2025-04-14 15:42:14,236 - DEBUG - Control-node 10.0.0.19 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-94985769:ctest-vn-39313176', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-94985769', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7259116148416594372', 'uuid-lslong': '13448630117318082455'}, 'enable': 'true', 'created': '2025-04-14T15:42:11', 'last-modified': '2025-04-14T15:42:13', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.982459'}
2025-04-14 15:42:14,243 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-14 15:42:14,243 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-39313176 passed
2025-04-14 15:42:14,244 - DEBUG - ====Verifying policy data for ctest-vn-39313176 in API_Server ======
2025-04-14 15:42:14,244 - DEBUG - Requesting: http://10.0.0.19:8082/domains
2025-04-14 15:42:14,250 - DEBUG - Requesting: http://10.0.0.19:8082/domain/47d5a4c8-5681-471f-8ba9-0c70355be5bd
2025-04-14 15:42:14,263 - DEBUG - Requesting: http://10.0.0.19:8082/project/24e3c5be-ac26-4011-9e92-0bd7b6201f24
2025-04-14 15:42:14,342 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/64bd8fad-31ac-41c4-baa3-21d67a5d3f97
2025-04-14 15:42:14,355 - DEBUG - ==>Verifying data for policy with id: 52496ceb-5eda-4961-a74a-a2db1fda4586, fqn: ['default-domain', 'ctest-TestBasicPolicy-94985769', 'ctest-policy-allow-all-47969501']
2025-04-14 15:42:14,355 - INFO - VN ctest-vn-39313176 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-14 15:42:14,355 - DEBUG - Verifying the vn in opserver
2025-04-14 15:42:14,355 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-94985769:ctest-vn-39313176 virtual network link through opserver 10.0.0.19
2025-04-14 15:42:14,355 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks
2025-04-14 15:42:14,646 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks
2025-04-14 15:42:14,703 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-94985769:ctest-vn-39313176', 'href': 'http://10.0.0.19:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-94985769:ctest-vn-39313176?flat'}
2025-04-14 15:42:14,703 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-94985769:ctest-vn-39313176 is found in opserver
2025-04-14 15:42:14,716 - DEBUG - Do not have enough data to verify VN in agent
2025-04-14 15:42:14,722 - DEBUG - VRF ids for VN ctest-vn-39313176: {}
2025-04-14 15:42:14,722 - DEBUG - Requesting: http://10.0.0.19:8082/domains
2025-04-14 15:42:14,728 - DEBUG - Requesting: http://10.0.0.19:8082/domain/47d5a4c8-5681-471f-8ba9-0c70355be5bd
2025-04-14 15:42:14,740 - DEBUG - Requesting: http://10.0.0.19:8082/project/24e3c5be-ac26-4011-9e92-0bd7b6201f24
2025-04-14 15:42:14,816 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/e5c663fd-8eb6-4a63-b6a9-bcfb1a86d535
2025-04-14 15:42:14,829 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/e5c663fd-8eb6-4a63-b6a9-bcfb1a86d535
2025-04-14 15:42:14,840 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/be84ef23-7f3d-4c83-b30e-cef4d6e849f0
2025-04-14 15:42:14,848 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/be84ef23-7f3d-4c83-b30e-cef4d6e849f0
2025-04-14 15:42:14,855 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/6848a65f-cddd-49b2-9dc9-51925ca77be1
2025-04-14 15:42:14,862 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-14 15:42:14,862 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/e5c663fd-8eb6-4a63-b6a9-bcfb1a86d535
2025-04-14 15:42:14,871 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/be84ef23-7f3d-4c83-b30e-cef4d6e849f0
2025-04-14 15:42:14,887 - INFO - Verified VN network id 8 for VN e5c663fd-8eb6-4a63-b6a9-bcfb1a86d535
2025-04-14 15:42:14,887 - INFO - Verifications in API Server for VN ctest-vn-33617583 passed
2025-04-14 15:42:14,887 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/e5c663fd-8eb6-4a63-b6a9-bcfb1a86d535
2025-04-14 15:42:14,898 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/be84ef23-7f3d-4c83-b30e-cef4d6e849f0
2025-04-14 15:42:14,906 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/be84ef23-7f3d-4c83-b30e-cef4d6e849f0
2025-04-14 15:42:14,913 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/6848a65f-cddd-49b2-9dc9-51925ca77be1
2025-04-14 15:42:14,925 - DEBUG - Control-node 10.0.0.19 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-94985769:ctest-vn-33617583', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-94985769', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16557031020746394211', 'uuid-lslong': '13162259172634842421'}, 'enable': 'true', 'created': '2025-04-14T15:42:12', 'last-modified': '2025-04-14T15:42:13', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.413081'}
2025-04-14 15:42:14,932 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-14 15:42:14,932 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-33617583 passed
2025-04-14 15:42:14,932 - DEBUG - ====Verifying policy data for ctest-vn-33617583 in API_Server ======
2025-04-14 15:42:14,932 - DEBUG - Requesting: http://10.0.0.19:8082/domains
2025-04-14 15:42:14,938 - DEBUG - Requesting: http://10.0.0.19:8082/domain/47d5a4c8-5681-471f-8ba9-0c70355be5bd
2025-04-14 15:42:14,950 - DEBUG - Requesting: http://10.0.0.19:8082/project/24e3c5be-ac26-4011-9e92-0bd7b6201f24
2025-04-14 15:42:15,027 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/e5c663fd-8eb6-4a63-b6a9-bcfb1a86d535
2025-04-14 15:42:15,039 - DEBUG - ==>Verifying data for policy with id: 52496ceb-5eda-4961-a74a-a2db1fda4586, fqn: ['default-domain', 'ctest-TestBasicPolicy-94985769', 'ctest-policy-allow-all-47969501']
2025-04-14 15:42:15,039 - INFO - VN ctest-vn-33617583 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-14 15:42:15,039 - DEBUG - Verifying the vn in opserver
2025-04-14 15:42:15,040 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-94985769:ctest-vn-33617583 virtual network link through opserver 10.0.0.19
2025-04-14 15:42:15,040 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks
2025-04-14 15:42:15,052 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-94985769:ctest-vn-33617583', 'href': 'http://10.0.0.19:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-94985769:ctest-vn-33617583?flat'}
2025-04-14 15:42:15,052 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-94985769:ctest-vn-33617583 is found in opserver
2025-04-14 15:42:15,066 - DEBUG - Do not have enough data to verify VN in agent
2025-04-14 15:42:15,072 - DEBUG - VRF ids for VN ctest-vn-33617583: {}
2025-04-14 15:42:15,130 - DEBUG - Services list from nova: [