2025-05-15 02:10:30,106 - INFO - Domain Default found not creating
2025-05-15 02:10:30,264 - INFO - Project ctest-TestBasicPolicy-61862760 not found, creating it
2025-05-15 02:10:30,784 - INFO - Created Project:ctest-TestBasicPolicy-61862760, ID : f15d9820-94a7-44d7-9027-007e9b882bcc
2025-05-15 02:10:32,190 - INFO - ================================================================================
2025-05-15 02:10:32,191 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-05-15 02:10:32,191 - 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-05-15 02:10:32,447 - DEBUG - Nothing to compare xmpp stats {'10.0.0.130': {'10.20.0.254': '0'}} with
2025-05-15 02:10:32,447 - INFO - Initial checks done. Running the testcase now
2025-05-15 02:10:32,447 - INFO -
2025-05-15 02:10:32,979 - DEBUG - Response for create_network : {'network': {'id': '69b6ab0c-dc5e-458e-bfc5-aa8409713447', 'name': 'ctest-vn-93549286', 'tenant_id': 'f15d982094a744d79027007e9b882bcc', 'project_id': 'f15d982094a744d79027007e9b882bcc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-61862760', 'ctest-vn-93549286'], 'port_security_enabled': True, 'description': ''}}
2025-05-15 02:10:33,178 - DEBUG - Response for create_subnet : {'subnet': {'id': '7cfc9064-417c-46db-97ba-359d92dd021c', 'name': '', 'tenant_id': 'f15d982094a744d79027007e9b882bcc', 'network_id': '69b6ab0c-dc5e-458e-bfc5-aa8409713447', 'ip_version': 4, 'cidr': '144.88.131.0/26', 'allocation_pools': [{'start': '144.88.131.2', 'end': '144.88.131.62'}], 'gateway_ip': '144.88.131.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '144.88.131.2', 'tags': [], 'project_id': 'f15d982094a744d79027007e9b882bcc'}}
2025-05-15 02:10:33,196 - INFO - Created VN ctest-vn-93549286
2025-05-15 02:10:33,248 - DEBUG - VN ctest-vn-93549286 UUID is 69b6ab0c-dc5e-458e-bfc5-aa8409713447
2025-05-15 02:10:33,554 - DEBUG - Response for create_network : {'network': {'id': '088cfdce-3746-4874-9532-6d64400d88b1', 'name': 'ctest-vn-34010837', 'tenant_id': 'f15d982094a744d79027007e9b882bcc', 'project_id': 'f15d982094a744d79027007e9b882bcc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-61862760', 'ctest-vn-34010837'], 'port_security_enabled': True, 'description': ''}}
2025-05-15 02:10:33,740 - DEBUG - Response for create_subnet : {'subnet': {'id': '8f535614-7416-44e2-a37b-b516c67cfe58', 'name': '', 'tenant_id': 'f15d982094a744d79027007e9b882bcc', 'network_id': '088cfdce-3746-4874-9532-6d64400d88b1', 'ip_version': 4, 'cidr': '91.178.61.64/26', 'allocation_pools': [{'start': '91.178.61.66', 'end': '91.178.61.126'}], 'gateway_ip': '91.178.61.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '91.178.61.66', 'tags': [], 'project_id': 'f15d982094a744d79027007e9b882bcc'}}
2025-05-15 02:10:33,760 - INFO - Created VN ctest-vn-34010837
2025-05-15 02:10:33,816 - DEBUG - VN ctest-vn-34010837 UUID is 088cfdce-3746-4874-9532-6d64400d88b1
2025-05-15 02:10:33,931 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-61862760:ctest-vn-93549286, 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-61862760:ctest-vn-34010837, 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-05-15 02:10:34,231 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '69b6ab0c-dc5e-458e-bfc5-aa8409713447', 'name': 'ctest-vn-93549286', 'tenant_id': 'f15d982094a744d79027007e9b882bcc', 'project_id': 'f15d982094a744d79027007e9b882bcc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7cfc9064-417c-46db-97ba-359d92dd021c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-61862760', 'ctest-vn-93549286'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-61862760', 'ctest-policy-allow-all-49211342']], 'subnet_ipam': [{'subnet_cidr': '144.88.131.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-05-15 02:10:34,477 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '088cfdce-3746-4874-9532-6d64400d88b1', 'name': 'ctest-vn-34010837', 'tenant_id': 'f15d982094a744d79027007e9b882bcc', 'project_id': 'f15d982094a744d79027007e9b882bcc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8f535614-7416-44e2-a37b-b516c67cfe58'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-61862760', 'ctest-vn-34010837'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-61862760', 'ctest-policy-allow-all-49211342']], 'subnet_ipam': [{'subnet_cidr': '91.178.61.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-05-15 02:10:34,644 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2025-05-15 02:10:34,940 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2025-05-15 02:10:34,974 - DEBUG - Requesting: http://10.0.0.130:8082/domain/b1f37d3e-907a-4fa2-80e1-9a265beb35e1
2025-05-15 02:10:34,993 - DEBUG - Requesting: http://10.0.0.130:8082/project/f15d9820-94a7-44d7-9027-007e9b882bcc
2025-05-15 02:10:35,070 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/69b6ab0c-dc5e-458e-bfc5-aa8409713447
2025-05-15 02:10:35,083 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/69b6ab0c-dc5e-458e-bfc5-aa8409713447
2025-05-15 02:10:35,094 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/31bf3fac-75ac-415a-9d2f-a0bd35e57268
2025-05-15 02:10:35,102 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/31bf3fac-75ac-415a-9d2f-a0bd35e57268
2025-05-15 02:10:35,111 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/1caf8859-2e9e-451a-b578-14c8c23f9cf5
2025-05-15 02:10:35,118 - DEBUG - Route Targets: ['target:64512:8000005']
2025-05-15 02:10:35,118 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/69b6ab0c-dc5e-458e-bfc5-aa8409713447
2025-05-15 02:10:35,129 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/31bf3fac-75ac-415a-9d2f-a0bd35e57268
2025-05-15 02:10:35,145 - INFO - Verified VN network id 8 for VN 69b6ab0c-dc5e-458e-bfc5-aa8409713447
2025-05-15 02:10:35,145 - INFO - Verifications in API Server for VN ctest-vn-93549286 passed
2025-05-15 02:10:35,145 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/69b6ab0c-dc5e-458e-bfc5-aa8409713447
2025-05-15 02:10:35,157 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/31bf3fac-75ac-415a-9d2f-a0bd35e57268
2025-05-15 02:10:35,167 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/31bf3fac-75ac-415a-9d2f-a0bd35e57268
2025-05-15 02:10:35,176 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/1caf8859-2e9e-451a-b578-14c8c23f9cf5
2025-05-15 02:10:35,192 - DEBUG - Control-node 10.0.0.130 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-61862760:ctest-vn-93549286', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-61862760', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7617463891468895630', 'uuid-lslong': '13818638515727053895'}, 'enable': 'true', 'created': '2025-05-15T02:10:32', 'last-modified': '2025-05-15T02:10:34', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.981619'}
2025-05-15 02:10:35,199 - DEBUG - Route Targets: ['target:64512:8000005']
2025-05-15 02:10:35,199 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-93549286 passed
2025-05-15 02:10:35,199 - DEBUG - ====Verifying policy data for ctest-vn-93549286 in API_Server ======
2025-05-15 02:10:35,199 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2025-05-15 02:10:35,205 - DEBUG - Requesting: http://10.0.0.130:8082/domain/b1f37d3e-907a-4fa2-80e1-9a265beb35e1
2025-05-15 02:10:35,218 - DEBUG - Requesting: http://10.0.0.130:8082/project/f15d9820-94a7-44d7-9027-007e9b882bcc
2025-05-15 02:10:35,297 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/69b6ab0c-dc5e-458e-bfc5-aa8409713447
2025-05-15 02:10:35,310 - DEBUG - ==>Verifying data for policy with id: 336a0bf1-80b8-4567-906e-543c2f7f10a4, fqn: ['default-domain', 'ctest-TestBasicPolicy-61862760', 'ctest-policy-allow-all-49211342']
2025-05-15 02:10:35,310 - INFO - VN ctest-vn-93549286 Policy verification: verify_vn_policy_in_api_server, status: True
2025-05-15 02:10:35,310 - DEBUG - Verifying the vn in opserver
2025-05-15 02:10:35,310 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-61862760:ctest-vn-93549286 virtual network link through opserver 10.0.0.130
2025-05-15 02:10:35,310 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks
2025-05-15 02:10:35,603 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks
2025-05-15 02:10:35,663 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-61862760:ctest-vn-93549286', 'href': 'http://10.0.0.130:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-61862760:ctest-vn-93549286?flat'}
2025-05-15 02:10:35,664 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-61862760:ctest-vn-93549286 is found in opserver
2025-05-15 02:10:35,675 - DEBUG - Do not have enough data to verify VN in agent
2025-05-15 02:10:35,681 - DEBUG - VRF ids for VN ctest-vn-93549286: {}
2025-05-15 02:10:35,681 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2025-05-15 02:10:35,687 - DEBUG - Requesting: http://10.0.0.130:8082/domain/b1f37d3e-907a-4fa2-80e1-9a265beb35e1
2025-05-15 02:10:35,701 - DEBUG - Requesting: http://10.0.0.130:8082/project/f15d9820-94a7-44d7-9027-007e9b882bcc
2025-05-15 02:10:35,782 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/088cfdce-3746-4874-9532-6d64400d88b1
2025-05-15 02:10:35,797 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/088cfdce-3746-4874-9532-6d64400d88b1
2025-05-15 02:10:35,809 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/f72fd835-122f-4969-8f8c-8f56c8c346ba
2025-05-15 02:10:35,817 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/f72fd835-122f-4969-8f8c-8f56c8c346ba
2025-05-15 02:10:35,825 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/8ea3e822-b64d-4850-9f10-3c4ddd63c3e3
2025-05-15 02:10:35,833 - DEBUG - Route Targets: ['target:64512:8000006']
2025-05-15 02:10:35,833 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/088cfdce-3746-4874-9532-6d64400d88b1
2025-05-15 02:10:35,847 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/f72fd835-122f-4969-8f8c-8f56c8c346ba
2025-05-15 02:10:35,866 - INFO - Verified VN network id 9 for VN 088cfdce-3746-4874-9532-6d64400d88b1
2025-05-15 02:10:35,866 - INFO - Verifications in API Server for VN ctest-vn-34010837 passed
2025-05-15 02:10:35,866 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/088cfdce-3746-4874-9532-6d64400d88b1
2025-05-15 02:10:35,877 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/f72fd835-122f-4969-8f8c-8f56c8c346ba
2025-05-15 02:10:35,885 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/f72fd835-122f-4969-8f8c-8f56c8c346ba
2025-05-15 02:10:35,892 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/8ea3e822-b64d-4850-9f10-3c4ddd63c3e3
2025-05-15 02:10:35,907 - DEBUG - Control-node 10.0.0.130 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-61862760:ctest-vn-34010837', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-61862760', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '616146311175358580', 'uuid-lslong': '10750775537825581233'}, 'enable': 'true', 'created': '2025-05-15T02:10:33', 'last-modified': '2025-05-15T02:10:34', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.452668'}
2025-05-15 02:10:35,914 - DEBUG - Route Targets: ['target:64512:8000006']
2025-05-15 02:10:35,914 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-34010837 passed
2025-05-15 02:10:35,914 - DEBUG - ====Verifying policy data for ctest-vn-34010837 in API_Server ======
2025-05-15 02:10:35,914 - DEBUG - Requesting: http://10.0.0.130:8082/domains
2025-05-15 02:10:35,921 - DEBUG - Requesting: http://10.0.0.130:8082/domain/b1f37d3e-907a-4fa2-80e1-9a265beb35e1
2025-05-15 02:10:35,935 - DEBUG - Requesting: http://10.0.0.130:8082/project/f15d9820-94a7-44d7-9027-007e9b882bcc
2025-05-15 02:10:36,012 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/088cfdce-3746-4874-9532-6d64400d88b1
2025-05-15 02:10:36,025 - DEBUG - ==>Verifying data for policy with id: 336a0bf1-80b8-4567-906e-543c2f7f10a4, fqn: ['default-domain', 'ctest-TestBasicPolicy-61862760', 'ctest-policy-allow-all-49211342']
2025-05-15 02:10:36,025 - INFO - VN ctest-vn-34010837 Policy verification: verify_vn_policy_in_api_server, status: True
2025-05-15 02:10:36,025 - DEBUG - Verifying the vn in opserver
2025-05-15 02:10:36,025 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-61862760:ctest-vn-34010837 virtual network link through opserver 10.0.0.130
2025-05-15 02:10:36,025 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks
2025-05-15 02:10:36,038 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-61862760:ctest-vn-34010837', 'href': 'http://10.0.0.130:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-61862760:ctest-vn-34010837?flat'}
2025-05-15 02:10:36,038 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-61862760:ctest-vn-34010837 is found in opserver
2025-05-15 02:10:36,050 - DEBUG - Do not have enough data to verify VN in agent
2025-05-15 02:10:36,056 - DEBUG - VRF ids for VN ctest-vn-34010837: {}
2025-05-15 02:10:36,118 - DEBUG - Services list from nova: [