2025-04-22 12:41:37,699 - INFO - Domain Default found not creating
2025-04-22 12:41:38,104 - INFO - Project ctest-TestBasicPolicy-06922928 not found, creating it
2025-04-22 12:41:38,845 - INFO - Created Project:ctest-TestBasicPolicy-06922928, ID : b3a1cc46-a5cf-438b-8465-f4eb58ed46a6
2025-04-22 12:41:40,310 - INFO - ================================================================================
2025-04-22 12:41:40,310 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-04-22 12:41:40,310 - 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-22 12:41:40,574 - DEBUG - Nothing to compare xmpp stats {'10.0.0.41': {'10.20.0.254': '0'}} with
2025-04-22 12:41:40,574 - INFO - Initial checks done. Running the testcase now
2025-04-22 12:41:40,575 - INFO -
2025-04-22 12:41:41,104 - DEBUG - Response for create_network : {'network': {'id': '2ed3d8b0-b396-4853-9a96-985992747c46', 'name': 'ctest-vn-29219516', 'tenant_id': 'b3a1cc46a5cf438b8465f4eb58ed46a6', 'project_id': 'b3a1cc46a5cf438b8465f4eb58ed46a6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-06922928', 'ctest-vn-29219516'], 'port_security_enabled': True, 'description': ''}}
2025-04-22 12:41:41,258 - DEBUG - Response for create_subnet : {'subnet': {'id': 'fcf29b7a-afd4-4e9a-a819-bc4c144c366a', 'name': '', 'tenant_id': 'b3a1cc46a5cf438b8465f4eb58ed46a6', 'network_id': '2ed3d8b0-b396-4853-9a96-985992747c46', 'ip_version': 4, 'cidr': '130.34.254.64/26', 'allocation_pools': [{'start': '130.34.254.66', 'end': '130.34.254.126'}], 'gateway_ip': '130.34.254.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '130.34.254.66', 'tags': [], 'project_id': 'b3a1cc46a5cf438b8465f4eb58ed46a6'}}
2025-04-22 12:41:41,276 - INFO - Created VN ctest-vn-29219516
2025-04-22 12:41:41,329 - DEBUG - VN ctest-vn-29219516 UUID is 2ed3d8b0-b396-4853-9a96-985992747c46
2025-04-22 12:41:41,644 - DEBUG - Response for create_network : {'network': {'id': '95632828-2ebd-48f5-994a-8399fe7cc90d', 'name': 'ctest-vn-24399433', 'tenant_id': 'b3a1cc46a5cf438b8465f4eb58ed46a6', 'project_id': 'b3a1cc46a5cf438b8465f4eb58ed46a6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-06922928', 'ctest-vn-24399433'], 'port_security_enabled': True, 'description': ''}}
2025-04-22 12:41:41,843 - DEBUG - Response for create_subnet : {'subnet': {'id': '11c33e0f-4f80-4a7c-a623-ae4441f2b56f', 'name': '', 'tenant_id': 'b3a1cc46a5cf438b8465f4eb58ed46a6', 'network_id': '95632828-2ebd-48f5-994a-8399fe7cc90d', 'ip_version': 4, 'cidr': '63.11.93.0/26', 'allocation_pools': [{'start': '63.11.93.2', 'end': '63.11.93.62'}], 'gateway_ip': '63.11.93.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '63.11.93.2', 'tags': [], 'project_id': 'b3a1cc46a5cf438b8465f4eb58ed46a6'}}
2025-04-22 12:41:41,860 - INFO - Created VN ctest-vn-24399433
2025-04-22 12:41:41,913 - DEBUG - VN ctest-vn-24399433 UUID is 95632828-2ebd-48f5-994a-8399fe7cc90d
2025-04-22 12:41:42,065 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-06922928:ctest-vn-29219516, 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-06922928:ctest-vn-24399433, 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-22 12:41:42,373 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2ed3d8b0-b396-4853-9a96-985992747c46', 'name': 'ctest-vn-29219516', 'tenant_id': 'b3a1cc46a5cf438b8465f4eb58ed46a6', 'project_id': 'b3a1cc46a5cf438b8465f4eb58ed46a6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['fcf29b7a-afd4-4e9a-a819-bc4c144c366a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-06922928', 'ctest-vn-29219516'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-06922928', 'ctest-policy-allow-all-71108419']], 'subnet_ipam': [{'subnet_cidr': '130.34.254.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-22 12:41:42,626 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '95632828-2ebd-48f5-994a-8399fe7cc90d', 'name': 'ctest-vn-24399433', 'tenant_id': 'b3a1cc46a5cf438b8465f4eb58ed46a6', 'project_id': 'b3a1cc46a5cf438b8465f4eb58ed46a6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['11c33e0f-4f80-4a7c-a623-ae4441f2b56f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-06922928', 'ctest-vn-24399433'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-06922928', 'ctest-policy-allow-all-71108419']], 'subnet_ipam': [{'subnet_cidr': '63.11.93.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-22 12:41:42,777 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2025-04-22 12:41:43,082 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2025-04-22 12:41:43,110 - DEBUG - Requesting: http://10.0.0.41:8082/domain/52ce1fb0-a48e-4993-93cf-9ba42c20fcb6
2025-04-22 12:41:43,123 - DEBUG - Requesting: http://10.0.0.41:8082/project/b3a1cc46-a5cf-438b-8465-f4eb58ed46a6
2025-04-22 12:41:43,210 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/2ed3d8b0-b396-4853-9a96-985992747c46
2025-04-22 12:41:43,221 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/2ed3d8b0-b396-4853-9a96-985992747c46
2025-04-22 12:41:43,232 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/f8b213bd-a26a-4a6a-aeef-6b3105b1e88b
2025-04-22 12:41:43,240 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/f8b213bd-a26a-4a6a-aeef-6b3105b1e88b
2025-04-22 12:41:43,247 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/911e8719-66ab-4677-8ee7-6aea4b34a7ba
2025-04-22 12:41:43,254 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-22 12:41:43,254 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/2ed3d8b0-b396-4853-9a96-985992747c46
2025-04-22 12:41:43,263 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/f8b213bd-a26a-4a6a-aeef-6b3105b1e88b
2025-04-22 12:41:43,277 - INFO - Verified VN network id 8 for VN 2ed3d8b0-b396-4853-9a96-985992747c46
2025-04-22 12:41:43,277 - INFO - Verifications in API Server for VN ctest-vn-29219516 passed
2025-04-22 12:41:43,277 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/2ed3d8b0-b396-4853-9a96-985992747c46
2025-04-22 12:41:43,286 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/f8b213bd-a26a-4a6a-aeef-6b3105b1e88b
2025-04-22 12:41:43,294 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/f8b213bd-a26a-4a6a-aeef-6b3105b1e88b
2025-04-22 12:41:43,300 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/911e8719-66ab-4677-8ee7-6aea4b34a7ba
2025-04-22 12:41:43,312 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-06922928:ctest-vn-29219516', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-06922928', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3374278799269447763', 'uuid-lslong': '11139258238824119366'}, 'enable': 'true', 'created': '2025-04-22T12:41:41', 'last-modified': '2025-04-22T12:41:42', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.968752'}
2025-04-22 12:41:43,318 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-22 12:41:43,318 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-29219516 passed
2025-04-22 12:41:43,318 - DEBUG - ====Verifying policy data for ctest-vn-29219516 in API_Server ======
2025-04-22 12:41:43,318 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2025-04-22 12:41:43,324 - DEBUG - Requesting: http://10.0.0.41:8082/domain/52ce1fb0-a48e-4993-93cf-9ba42c20fcb6
2025-04-22 12:41:43,335 - DEBUG - Requesting: http://10.0.0.41:8082/project/b3a1cc46-a5cf-438b-8465-f4eb58ed46a6
2025-04-22 12:41:43,411 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/2ed3d8b0-b396-4853-9a96-985992747c46
2025-04-22 12:41:43,422 - DEBUG - ==>Verifying data for policy with id: 171900dc-a3f6-46a8-a7b0-414e149be465, fqn: ['default-domain', 'ctest-TestBasicPolicy-06922928', 'ctest-policy-allow-all-71108419']
2025-04-22 12:41:43,422 - INFO - VN ctest-vn-29219516 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-22 12:41:43,422 - DEBUG - Verifying the vn in opserver
2025-04-22 12:41:43,422 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-06922928:ctest-vn-29219516 virtual network link through opserver 10.0.0.41
2025-04-22 12:41:43,422 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks
2025-04-22 12:41:43,711 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks
2025-04-22 12:41:43,762 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-06922928:ctest-vn-29219516', 'href': 'http://10.0.0.41:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-06922928:ctest-vn-29219516?flat'}
2025-04-22 12:41:43,763 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-06922928:ctest-vn-29219516 is found in opserver
2025-04-22 12:41:43,773 - DEBUG - Do not have enough data to verify VN in agent
2025-04-22 12:41:43,778 - DEBUG - VRF ids for VN ctest-vn-29219516: {}
2025-04-22 12:41:43,778 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2025-04-22 12:41:43,784 - DEBUG - Requesting: http://10.0.0.41:8082/domain/52ce1fb0-a48e-4993-93cf-9ba42c20fcb6
2025-04-22 12:41:43,795 - DEBUG - Requesting: http://10.0.0.41:8082/project/b3a1cc46-a5cf-438b-8465-f4eb58ed46a6
2025-04-22 12:41:43,870 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/95632828-2ebd-48f5-994a-8399fe7cc90d
2025-04-22 12:41:43,884 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/95632828-2ebd-48f5-994a-8399fe7cc90d
2025-04-22 12:41:43,894 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/139df810-4f81-469e-ae9b-03c6e1604f1b
2025-04-22 12:41:43,901 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/139df810-4f81-469e-ae9b-03c6e1604f1b
2025-04-22 12:41:43,908 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/05516cc0-baa3-4093-9414-3bf161e33175
2025-04-22 12:41:43,915 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-22 12:41:43,915 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/95632828-2ebd-48f5-994a-8399fe7cc90d
2025-04-22 12:41:43,924 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/139df810-4f81-469e-ae9b-03c6e1604f1b
2025-04-22 12:41:43,937 - INFO - Verified VN network id 9 for VN 95632828-2ebd-48f5-994a-8399fe7cc90d
2025-04-22 12:41:43,938 - INFO - Verifications in API Server for VN ctest-vn-24399433 passed
2025-04-22 12:41:43,938 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/95632828-2ebd-48f5-994a-8399fe7cc90d
2025-04-22 12:41:43,947 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/139df810-4f81-469e-ae9b-03c6e1604f1b
2025-04-22 12:41:43,953 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/139df810-4f81-469e-ae9b-03c6e1604f1b
2025-04-22 12:41:43,960 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/05516cc0-baa3-4093-9414-3bf161e33175
2025-04-22 12:41:43,972 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-06922928:ctest-vn-24399433', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-06922928', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10764491687393577205', 'uuid-lslong': '11045785733502388493'}, 'enable': 'true', 'created': '2025-04-22T12:41:41', 'last-modified': '2025-04-22T12:41:42', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.368274'}
2025-04-22 12:41:43,978 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-22 12:41:43,978 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-24399433 passed
2025-04-22 12:41:43,978 - DEBUG - ====Verifying policy data for ctest-vn-24399433 in API_Server ======
2025-04-22 12:41:43,978 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2025-04-22 12:41:43,983 - DEBUG - Requesting: http://10.0.0.41:8082/domain/52ce1fb0-a48e-4993-93cf-9ba42c20fcb6
2025-04-22 12:41:43,994 - DEBUG - Requesting: http://10.0.0.41:8082/project/b3a1cc46-a5cf-438b-8465-f4eb58ed46a6
2025-04-22 12:41:44,066 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/95632828-2ebd-48f5-994a-8399fe7cc90d
2025-04-22 12:41:44,075 - DEBUG - ==>Verifying data for policy with id: 171900dc-a3f6-46a8-a7b0-414e149be465, fqn: ['default-domain', 'ctest-TestBasicPolicy-06922928', 'ctest-policy-allow-all-71108419']
2025-04-22 12:41:44,076 - INFO - VN ctest-vn-24399433 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-22 12:41:44,076 - DEBUG - Verifying the vn in opserver
2025-04-22 12:41:44,076 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-06922928:ctest-vn-24399433 virtual network link through opserver 10.0.0.41
2025-04-22 12:41:44,076 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks
2025-04-22 12:41:44,086 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-06922928:ctest-vn-24399433', 'href': 'http://10.0.0.41:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-06922928:ctest-vn-24399433?flat'}
2025-04-22 12:41:44,086 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-06922928:ctest-vn-24399433 is found in opserver
2025-04-22 12:41:44,097 - DEBUG - Do not have enough data to verify VN in agent
2025-04-22 12:41:44,102 - DEBUG - VRF ids for VN ctest-vn-24399433: {}
2025-04-22 12:41:44,155 - DEBUG - Services list from nova: [