2025-02-10 09:06:40,784 - INFO - Domain Default found not creating
2025-02-10 09:06:40,980 - INFO - Project ctest-TestBasicPolicy-76892168 not found, creating it
2025-02-10 09:06:41,469 - INFO - Created Project:ctest-TestBasicPolicy-76892168, ID : 12730716-e787-4d45-bc89-6e7e32552020
2025-02-10 09:06:43,142 - INFO - ================================================================================
2025-02-10 09:06:43,142 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-02-10 09:06:43,142 - 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-02-10 09:06:43,403 - DEBUG - Nothing to compare xmpp stats {'10.0.0.35': {'10.20.0.13': '0'}} with
2025-02-10 09:06:43,403 - INFO - Initial checks done. Running the testcase now
2025-02-10 09:06:43,403 - INFO -
2025-02-10 09:06:44,044 - DEBUG - Response for create_network : {'network': {'id': 'c421310b-b660-462a-9611-163a5e8b288f', 'name': 'ctest-vn-46059612', 'tenant_id': '12730716e7874d45bc896e7e32552020', 'project_id': '12730716e7874d45bc896e7e32552020', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-76892168', 'ctest-vn-46059612'], 'port_security_enabled': True, 'description': ''}}
2025-02-10 09:06:44,217 - DEBUG - Response for create_subnet : {'subnet': {'id': '1648cfac-65ea-467d-b166-2e60b9ec5a47', 'name': '', 'tenant_id': '12730716e7874d45bc896e7e32552020', 'network_id': 'c421310b-b660-462a-9611-163a5e8b288f', 'ip_version': 4, 'cidr': '156.120.164.0/26', 'allocation_pools': [{'start': '156.120.164.2', 'end': '156.120.164.62'}], 'gateway_ip': '156.120.164.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '156.120.164.2', 'tags': [], 'project_id': '12730716e7874d45bc896e7e32552020'}}
2025-02-10 09:06:44,237 - INFO - Created VN ctest-vn-46059612
2025-02-10 09:06:44,292 - DEBUG - VN ctest-vn-46059612 UUID is c421310b-b660-462a-9611-163a5e8b288f
2025-02-10 09:06:44,610 - DEBUG - Response for create_network : {'network': {'id': '348e8462-9421-4c2a-b0aa-55348953f361', 'name': 'ctest-vn-23799121', 'tenant_id': '12730716e7874d45bc896e7e32552020', 'project_id': '12730716e7874d45bc896e7e32552020', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-76892168', 'ctest-vn-23799121'], 'port_security_enabled': True, 'description': ''}}
2025-02-10 09:06:44,847 - DEBUG - Response for create_subnet : {'subnet': {'id': '4a0018f6-528d-402b-85c2-d3c512dff016', 'name': '', 'tenant_id': '12730716e7874d45bc896e7e32552020', 'network_id': '348e8462-9421-4c2a-b0aa-55348953f361', 'ip_version': 4, 'cidr': '63.122.245.192/26', 'allocation_pools': [{'start': '63.122.245.194', 'end': '63.122.245.254'}], 'gateway_ip': '63.122.245.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '63.122.245.194', 'tags': [], 'project_id': '12730716e7874d45bc896e7e32552020'}}
2025-02-10 09:06:44,867 - INFO - Created VN ctest-vn-23799121
2025-02-10 09:06:44,924 - DEBUG - VN ctest-vn-23799121 UUID is 348e8462-9421-4c2a-b0aa-55348953f361
2025-02-10 09:06:45,048 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-76892168:ctest-vn-46059612, 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-76892168:ctest-vn-23799121, 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-02-10 09:06:45,367 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c421310b-b660-462a-9611-163a5e8b288f', 'name': 'ctest-vn-46059612', 'tenant_id': '12730716e7874d45bc896e7e32552020', 'project_id': '12730716e7874d45bc896e7e32552020', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1648cfac-65ea-467d-b166-2e60b9ec5a47'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-76892168', 'ctest-vn-46059612'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-76892168', 'ctest-policy-allow-all-10706813']], 'subnet_ipam': [{'subnet_cidr': '156.120.164.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-02-10 09:06:45,649 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '348e8462-9421-4c2a-b0aa-55348953f361', 'name': 'ctest-vn-23799121', 'tenant_id': '12730716e7874d45bc896e7e32552020', 'project_id': '12730716e7874d45bc896e7e32552020', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4a0018f6-528d-402b-85c2-d3c512dff016'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-76892168', 'ctest-vn-23799121'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-76892168', 'ctest-policy-allow-all-10706813']], 'subnet_ipam': [{'subnet_cidr': '63.122.245.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-02-10 09:06:45,808 - DEBUG - Requesting: http://10.0.0.35:8082/domains
2025-02-10 09:06:46,154 - DEBUG - Requesting: http://10.0.0.35:8082/domains
2025-02-10 09:06:46,189 - DEBUG - Requesting: http://10.0.0.35:8082/domain/dd9002ba-0737-4446-a3d5-f9c183d71705
2025-02-10 09:06:46,204 - DEBUG - Requesting: http://10.0.0.35:8082/project/12730716-e787-4d45-bc89-6e7e32552020
2025-02-10 09:06:46,288 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/c421310b-b660-462a-9611-163a5e8b288f
2025-02-10 09:06:46,306 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/c421310b-b660-462a-9611-163a5e8b288f
2025-02-10 09:06:46,318 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/52451afc-a233-4f8f-a25a-d6b0ff82bc95
2025-02-10 09:06:46,329 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/52451afc-a233-4f8f-a25a-d6b0ff82bc95
2025-02-10 09:06:46,338 - DEBUG - Requesting: http://10.0.0.35:8082/route-target/49074fc8-ab23-45b3-8458-6dced0399e2b
2025-02-10 09:06:46,348 - DEBUG - Route Targets: ['target:64512:8000004']
2025-02-10 09:06:46,348 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/c421310b-b660-462a-9611-163a5e8b288f
2025-02-10 09:06:46,359 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/52451afc-a233-4f8f-a25a-d6b0ff82bc95
2025-02-10 09:06:46,378 - INFO - Verified VN network id 7 for VN c421310b-b660-462a-9611-163a5e8b288f
2025-02-10 09:06:46,378 - INFO - Verifications in API Server for VN ctest-vn-46059612 passed
2025-02-10 09:06:46,379 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/c421310b-b660-462a-9611-163a5e8b288f
2025-02-10 09:06:46,393 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/52451afc-a233-4f8f-a25a-d6b0ff82bc95
2025-02-10 09:06:46,402 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/52451afc-a233-4f8f-a25a-d6b0ff82bc95
2025-02-10 09:06:46,413 - DEBUG - Requesting: http://10.0.0.35:8082/route-target/49074fc8-ab23-45b3-8458-6dced0399e2b
2025-02-10 09:06:46,429 - DEBUG - Control-node 10.0.0.35 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-76892168:ctest-vn-46059612', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-76892168', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14132631032039491114', 'uuid-lslong': '10813448620243363983'}, 'enable': 'true', 'created': '2025-02-10T09:06:44', 'last-modified': '2025-02-10T09:06:45', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.097553'}
2025-02-10 09:06:46,437 - DEBUG - Route Targets: ['target:64512:8000004']
2025-02-10 09:06:46,437 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-46059612 passed
2025-02-10 09:06:46,438 - DEBUG - ====Verifying policy data for ctest-vn-46059612 in API_Server ======
2025-02-10 09:06:46,438 - DEBUG - Requesting: http://10.0.0.35:8082/domains
2025-02-10 09:06:46,444 - DEBUG - Requesting: http://10.0.0.35:8082/domain/dd9002ba-0737-4446-a3d5-f9c183d71705
2025-02-10 09:06:46,459 - DEBUG - Requesting: http://10.0.0.35:8082/project/12730716-e787-4d45-bc89-6e7e32552020
2025-02-10 09:06:46,548 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/c421310b-b660-462a-9611-163a5e8b288f
2025-02-10 09:06:46,563 - DEBUG - ==>Verifying data for policy with id: 61045131-778e-439b-be5f-fe44c310a114, fqn: ['default-domain', 'ctest-TestBasicPolicy-76892168', 'ctest-policy-allow-all-10706813']
2025-02-10 09:06:46,563 - INFO - VN ctest-vn-46059612 Policy verification: verify_vn_policy_in_api_server, status: True
2025-02-10 09:06:46,563 - DEBUG - Verifying the vn in opserver
2025-02-10 09:06:46,563 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-76892168:ctest-vn-46059612 virtual network link through opserver 10.0.0.35
2025-02-10 09:06:46,563 - DEBUG - Requesting: http://10.0.0.35:8081/analytics/uves/virtual-networks
2025-02-10 09:06:46,899 - DEBUG - Requesting: http://10.0.0.35:8081/analytics/uves/virtual-networks
2025-02-10 09:06:46,960 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-76892168:ctest-vn-46059612', 'href': 'http://10.0.0.35:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-76892168:ctest-vn-46059612?flat'}
2025-02-10 09:06:46,961 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-76892168:ctest-vn-46059612 is found in opserver
2025-02-10 09:06:46,974 - DEBUG - Do not have enough data to verify VN in agent
2025-02-10 09:06:46,980 - DEBUG - VRF ids for VN ctest-vn-46059612: {}
2025-02-10 09:06:46,980 - DEBUG - Requesting: http://10.0.0.35:8082/domains
2025-02-10 09:06:46,986 - DEBUG - Requesting: http://10.0.0.35:8082/domain/dd9002ba-0737-4446-a3d5-f9c183d71705
2025-02-10 09:06:46,999 - DEBUG - Requesting: http://10.0.0.35:8082/project/12730716-e787-4d45-bc89-6e7e32552020
2025-02-10 09:06:47,080 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/348e8462-9421-4c2a-b0aa-55348953f361
2025-02-10 09:06:47,095 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/348e8462-9421-4c2a-b0aa-55348953f361
2025-02-10 09:06:47,107 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/ba4fdf00-3774-4607-86c6-3c68679c5f3a
2025-02-10 09:06:47,117 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/ba4fdf00-3774-4607-86c6-3c68679c5f3a
2025-02-10 09:06:47,125 - DEBUG - Requesting: http://10.0.0.35:8082/route-target/60ccdc91-ed70-4ca3-a3c9-194aa841b37c
2025-02-10 09:06:47,134 - DEBUG - Route Targets: ['target:64512:8000005']
2025-02-10 09:06:47,134 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/348e8462-9421-4c2a-b0aa-55348953f361
2025-02-10 09:06:47,147 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/ba4fdf00-3774-4607-86c6-3c68679c5f3a
2025-02-10 09:06:47,164 - INFO - Verified VN network id 8 for VN 348e8462-9421-4c2a-b0aa-55348953f361
2025-02-10 09:06:47,165 - INFO - Verifications in API Server for VN ctest-vn-23799121 passed
2025-02-10 09:06:47,165 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/348e8462-9421-4c2a-b0aa-55348953f361
2025-02-10 09:06:47,178 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/ba4fdf00-3774-4607-86c6-3c68679c5f3a
2025-02-10 09:06:47,186 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/ba4fdf00-3774-4607-86c6-3c68679c5f3a
2025-02-10 09:06:47,195 - DEBUG - Requesting: http://10.0.0.35:8082/route-target/60ccdc91-ed70-4ca3-a3c9-194aa841b37c
2025-02-10 09:06:47,213 - DEBUG - Control-node 10.0.0.35 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-76892168:ctest-vn-23799121', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-76892168', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3787109895592037418', 'uuid-lslong': '12730080980846768993'}, 'enable': 'true', 'created': '2025-02-10T09:06:44', 'last-modified': '2025-02-10T09:06:45', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.624964'}
2025-02-10 09:06:47,222 - DEBUG - Route Targets: ['target:64512:8000005']
2025-02-10 09:06:47,222 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-23799121 passed
2025-02-10 09:06:47,222 - DEBUG - ====Verifying policy data for ctest-vn-23799121 in API_Server ======
2025-02-10 09:06:47,222 - DEBUG - Requesting: http://10.0.0.35:8082/domains
2025-02-10 09:06:47,230 - DEBUG - Requesting: http://10.0.0.35:8082/domain/dd9002ba-0737-4446-a3d5-f9c183d71705
2025-02-10 09:06:47,246 - DEBUG - Requesting: http://10.0.0.35:8082/project/12730716-e787-4d45-bc89-6e7e32552020
2025-02-10 09:06:47,322 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/348e8462-9421-4c2a-b0aa-55348953f361
2025-02-10 09:06:47,334 - DEBUG - ==>Verifying data for policy with id: 61045131-778e-439b-be5f-fe44c310a114, fqn: ['default-domain', 'ctest-TestBasicPolicy-76892168', 'ctest-policy-allow-all-10706813']
2025-02-10 09:06:47,334 - INFO - VN ctest-vn-23799121 Policy verification: verify_vn_policy_in_api_server, status: True
2025-02-10 09:06:47,334 - DEBUG - Verifying the vn in opserver
2025-02-10 09:06:47,334 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-76892168:ctest-vn-23799121 virtual network link through opserver 10.0.0.35
2025-02-10 09:06:47,334 - DEBUG - Requesting: http://10.0.0.35:8081/analytics/uves/virtual-networks
2025-02-10 09:06:47,346 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-76892168:ctest-vn-23799121', 'href': 'http://10.0.0.35:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-76892168:ctest-vn-23799121?flat'}
2025-02-10 09:06:47,346 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-76892168:ctest-vn-23799121 is found in opserver
2025-02-10 09:06:47,358 - DEBUG - Do not have enough data to verify VN in agent
2025-02-10 09:06:47,364 - DEBUG - VRF ids for VN ctest-vn-23799121: {}
2025-02-10 09:06:47,427 - DEBUG - Services list from nova: [