2025-04-08 16:56:26,016 - INFO - Domain Default found not creating
2025-04-08 16:56:26,170 - INFO - Project ctest-TestBasicPolicy-31351833 not found, creating it
2025-04-08 16:56:26,635 - INFO - Created Project:ctest-TestBasicPolicy-31351833, ID : 9b823b33-910c-4ae3-96e2-8321d16c9719
2025-04-08 16:56:28,066 - INFO - ================================================================================
2025-04-08 16:56:28,066 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-04-08 16:56:28,066 - 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-08 16:56:28,322 - DEBUG - Nothing to compare xmpp stats {'10.0.0.32': {'10.20.0.8': '0'}} with
2025-04-08 16:56:28,322 - INFO - Initial checks done. Running the testcase now
2025-04-08 16:56:28,322 - INFO -
2025-04-08 16:56:28,881 - DEBUG - Response for create_network : {'network': {'id': '0f6e200b-1cc6-4178-9c68-cecc8e647c97', 'name': 'ctest-vn-44325260', 'tenant_id': '9b823b33910c4ae396e28321d16c9719', 'project_id': '9b823b33910c4ae396e28321d16c9719', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-31351833', 'ctest-vn-44325260'], 'port_security_enabled': True, 'description': ''}}
2025-04-08 16:56:29,071 - DEBUG - Response for create_subnet : {'subnet': {'id': '19065fbc-490a-4737-bfbd-be23ca8da789', 'name': '', 'tenant_id': '9b823b33910c4ae396e28321d16c9719', 'network_id': '0f6e200b-1cc6-4178-9c68-cecc8e647c97', 'ip_version': 4, 'cidr': '42.247.115.64/26', 'allocation_pools': [{'start': '42.247.115.66', 'end': '42.247.115.126'}], 'gateway_ip': '42.247.115.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '42.247.115.66', 'tags': [], 'project_id': '9b823b33910c4ae396e28321d16c9719'}}
2025-04-08 16:56:29,089 - INFO - Created VN ctest-vn-44325260
2025-04-08 16:56:29,144 - DEBUG - VN ctest-vn-44325260 UUID is 0f6e200b-1cc6-4178-9c68-cecc8e647c97
2025-04-08 16:56:29,447 - DEBUG - Response for create_network : {'network': {'id': '21ab75d2-8009-401f-af0b-9702bc845f3c', 'name': 'ctest-vn-71523594', 'tenant_id': '9b823b33910c4ae396e28321d16c9719', 'project_id': '9b823b33910c4ae396e28321d16c9719', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-31351833', 'ctest-vn-71523594'], 'port_security_enabled': True, 'description': ''}}
2025-04-08 16:56:29,625 - DEBUG - Response for create_subnet : {'subnet': {'id': '50c38686-739e-414a-a1c6-719a64471c05', 'name': '', 'tenant_id': '9b823b33910c4ae396e28321d16c9719', 'network_id': '21ab75d2-8009-401f-af0b-9702bc845f3c', 'ip_version': 4, 'cidr': '138.151.57.64/26', 'allocation_pools': [{'start': '138.151.57.66', 'end': '138.151.57.126'}], 'gateway_ip': '138.151.57.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '138.151.57.66', 'tags': [], 'project_id': '9b823b33910c4ae396e28321d16c9719'}}
2025-04-08 16:56:29,643 - INFO - Created VN ctest-vn-71523594
2025-04-08 16:56:29,695 - DEBUG - VN ctest-vn-71523594 UUID is 21ab75d2-8009-401f-af0b-9702bc845f3c
2025-04-08 16:56:29,847 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-31351833:ctest-vn-44325260, 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-31351833:ctest-vn-71523594, 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-08 16:56:30,146 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0f6e200b-1cc6-4178-9c68-cecc8e647c97', 'name': 'ctest-vn-44325260', 'tenant_id': '9b823b33910c4ae396e28321d16c9719', 'project_id': '9b823b33910c4ae396e28321d16c9719', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['19065fbc-490a-4737-bfbd-be23ca8da789'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-31351833', 'ctest-vn-44325260'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-31351833', 'ctest-policy-allow-all-73026772']], 'subnet_ipam': [{'subnet_cidr': '42.247.115.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-08 16:56:30,426 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '21ab75d2-8009-401f-af0b-9702bc845f3c', 'name': 'ctest-vn-71523594', 'tenant_id': '9b823b33910c4ae396e28321d16c9719', 'project_id': '9b823b33910c4ae396e28321d16c9719', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['50c38686-739e-414a-a1c6-719a64471c05'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-31351833', 'ctest-vn-71523594'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-31351833', 'ctest-policy-allow-all-73026772']], 'subnet_ipam': [{'subnet_cidr': '138.151.57.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-08 16:56:30,572 - DEBUG - Requesting: http://10.0.0.32:8082/domains
2025-04-08 16:56:30,911 - DEBUG - Requesting: http://10.0.0.32:8082/domains
2025-04-08 16:56:30,964 - DEBUG - Requesting: http://10.0.0.32:8082/domain/5cbac752-aeba-45b0-b15c-0c7907fecdd1
2025-04-08 16:56:31,038 - DEBUG - Requesting: http://10.0.0.32:8082/project/9b823b33-910c-4ae3-96e2-8321d16c9719
2025-04-08 16:56:31,161 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/0f6e200b-1cc6-4178-9c68-cecc8e647c97
2025-04-08 16:56:31,180 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/0f6e200b-1cc6-4178-9c68-cecc8e647c97
2025-04-08 16:56:31,196 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/1f94ad7a-1eb7-486f-8193-34ef2fa39505
2025-04-08 16:56:31,205 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/1f94ad7a-1eb7-486f-8193-34ef2fa39505
2025-04-08 16:56:31,213 - DEBUG - Requesting: http://10.0.0.32:8082/route-target/058b3741-c453-4059-8f18-ec3196c635af
2025-04-08 16:56:31,219 - DEBUG - Route Targets: ['target:64512:8000004']
2025-04-08 16:56:31,219 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/0f6e200b-1cc6-4178-9c68-cecc8e647c97
2025-04-08 16:56:31,233 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/1f94ad7a-1eb7-486f-8193-34ef2fa39505
2025-04-08 16:56:31,250 - INFO - Verified VN network id 9 for VN 0f6e200b-1cc6-4178-9c68-cecc8e647c97
2025-04-08 16:56:31,250 - INFO - Verifications in API Server for VN ctest-vn-44325260 passed
2025-04-08 16:56:31,252 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/0f6e200b-1cc6-4178-9c68-cecc8e647c97
2025-04-08 16:56:31,269 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/1f94ad7a-1eb7-486f-8193-34ef2fa39505
2025-04-08 16:56:31,278 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/1f94ad7a-1eb7-486f-8193-34ef2fa39505
2025-04-08 16:56:31,289 - DEBUG - Requesting: http://10.0.0.32:8082/route-target/058b3741-c453-4059-8f18-ec3196c635af
2025-04-08 16:56:31,308 - DEBUG - Control-node 10.0.0.32 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-31351833:ctest-vn-44325260', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-31351833', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1111861390106575224', 'uuid-lslong': '11270485445452266647'}, 'enable': 'true', 'created': '2025-04-08T16:56:28', 'last-modified': '2025-04-08T16:56:30', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.181589'}
2025-04-08 16:56:31,320 - DEBUG - Route Targets: ['target:64512:8000004']
2025-04-08 16:56:31,320 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-44325260 passed
2025-04-08 16:56:31,320 - DEBUG - ====Verifying policy data for ctest-vn-44325260 in API_Server ======
2025-04-08 16:56:31,320 - DEBUG - Requesting: http://10.0.0.32:8082/domains
2025-04-08 16:56:31,327 - DEBUG - Requesting: http://10.0.0.32:8082/domain/5cbac752-aeba-45b0-b15c-0c7907fecdd1
2025-04-08 16:56:31,349 - DEBUG - Requesting: http://10.0.0.32:8082/project/9b823b33-910c-4ae3-96e2-8321d16c9719
2025-04-08 16:56:31,427 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/0f6e200b-1cc6-4178-9c68-cecc8e647c97
2025-04-08 16:56:31,440 - DEBUG - ==>Verifying data for policy with id: 88463028-8fda-4290-8821-72edb39a4fdc, fqn: ['default-domain', 'ctest-TestBasicPolicy-31351833', 'ctest-policy-allow-all-73026772']
2025-04-08 16:56:31,440 - INFO - VN ctest-vn-44325260 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-08 16:56:31,440 - DEBUG - Verifying the vn in opserver
2025-04-08 16:56:31,440 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-31351833:ctest-vn-44325260 virtual network link through opserver 10.0.0.32
2025-04-08 16:56:31,441 - DEBUG - Requesting: http://10.0.0.32:8081/analytics/uves/virtual-networks
2025-04-08 16:56:31,731 - DEBUG - Requesting: http://10.0.0.32:8081/analytics/uves/virtual-networks
2025-04-08 16:56:31,789 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-31351833:ctest-vn-44325260', 'href': 'http://10.0.0.32:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-31351833:ctest-vn-44325260?flat'}
2025-04-08 16:56:31,790 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-31351833:ctest-vn-44325260 is found in opserver
2025-04-08 16:56:31,800 - DEBUG - Do not have enough data to verify VN in agent
2025-04-08 16:56:31,807 - DEBUG - VRF ids for VN ctest-vn-44325260: {}
2025-04-08 16:56:31,807 - DEBUG - Requesting: http://10.0.0.32:8082/domains
2025-04-08 16:56:31,817 - DEBUG - Requesting: http://10.0.0.32:8082/domain/5cbac752-aeba-45b0-b15c-0c7907fecdd1
2025-04-08 16:56:31,831 - DEBUG - Requesting: http://10.0.0.32:8082/project/9b823b33-910c-4ae3-96e2-8321d16c9719
2025-04-08 16:56:31,910 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/21ab75d2-8009-401f-af0b-9702bc845f3c
2025-04-08 16:56:31,924 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/21ab75d2-8009-401f-af0b-9702bc845f3c
2025-04-08 16:56:31,935 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/178716e5-04c7-478d-92bd-3ccded0329d4
2025-04-08 16:56:31,943 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/178716e5-04c7-478d-92bd-3ccded0329d4
2025-04-08 16:56:31,953 - DEBUG - Requesting: http://10.0.0.32:8082/route-target/a86b36bc-c1fa-4a33-bc4a-862a0e5b2dee
2025-04-08 16:56:31,962 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-08 16:56:31,962 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/21ab75d2-8009-401f-af0b-9702bc845f3c
2025-04-08 16:56:31,974 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/178716e5-04c7-478d-92bd-3ccded0329d4
2025-04-08 16:56:31,989 - INFO - Verified VN network id 10 for VN 21ab75d2-8009-401f-af0b-9702bc845f3c
2025-04-08 16:56:31,990 - INFO - Verifications in API Server for VN ctest-vn-71523594 passed
2025-04-08 16:56:31,990 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/21ab75d2-8009-401f-af0b-9702bc845f3c
2025-04-08 16:56:32,002 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/178716e5-04c7-478d-92bd-3ccded0329d4
2025-04-08 16:56:32,010 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/178716e5-04c7-478d-92bd-3ccded0329d4
2025-04-08 16:56:32,018 - DEBUG - Requesting: http://10.0.0.32:8082/route-target/a86b36bc-c1fa-4a33-bc4a-862a0e5b2dee
2025-04-08 16:56:32,031 - DEBUG - Control-node 10.0.0.32 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-31351833:ctest-vn-71523594', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-31351833', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2426162371220815903', 'uuid-lslong': '12613341219389726524'}, 'enable': 'true', 'created': '2025-04-08T16:56:29', 'last-modified': '2025-04-08T16:56:30', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.677814'}
2025-04-08 16:56:32,038 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-08 16:56:32,038 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-71523594 passed
2025-04-08 16:56:32,038 - DEBUG - ====Verifying policy data for ctest-vn-71523594 in API_Server ======
2025-04-08 16:56:32,039 - DEBUG - Requesting: http://10.0.0.32:8082/domains
2025-04-08 16:56:32,044 - DEBUG - Requesting: http://10.0.0.32:8082/domain/5cbac752-aeba-45b0-b15c-0c7907fecdd1
2025-04-08 16:56:32,056 - DEBUG - Requesting: http://10.0.0.32:8082/project/9b823b33-910c-4ae3-96e2-8321d16c9719
2025-04-08 16:56:32,131 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/21ab75d2-8009-401f-af0b-9702bc845f3c
2025-04-08 16:56:32,141 - DEBUG - ==>Verifying data for policy with id: 88463028-8fda-4290-8821-72edb39a4fdc, fqn: ['default-domain', 'ctest-TestBasicPolicy-31351833', 'ctest-policy-allow-all-73026772']
2025-04-08 16:56:32,141 - INFO - VN ctest-vn-71523594 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-08 16:56:32,141 - DEBUG - Verifying the vn in opserver
2025-04-08 16:56:32,141 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-31351833:ctest-vn-71523594 virtual network link through opserver 10.0.0.32
2025-04-08 16:56:32,141 - DEBUG - Requesting: http://10.0.0.32:8081/analytics/uves/virtual-networks
2025-04-08 16:56:32,152 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-31351833:ctest-vn-71523594', 'href': 'http://10.0.0.32:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-31351833:ctest-vn-71523594?flat'}
2025-04-08 16:56:32,152 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-31351833:ctest-vn-71523594 is found in opserver
2025-04-08 16:56:32,163 - DEBUG - Do not have enough data to verify VN in agent
2025-04-08 16:56:32,168 - DEBUG - VRF ids for VN ctest-vn-71523594: {}
2025-04-08 16:56:32,226 - DEBUG - Services list from nova: [