2025-08-11 21:34:19,979 - INFO - Domain Default found not creating
2025-08-11 21:34:20,100 - INFO - Project ctest-TestBasicPolicy-37253723 not found, creating it
2025-08-11 21:34:20,520 - INFO - Created Project:ctest-TestBasicPolicy-37253723, ID : b6c4b3a3-3c93-4115-8c96-1a4b04224190
2025-08-11 21:34:21,832 - INFO - ================================================================================
2025-08-11 21:34:21,833 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-08-11 21:34:21,833 - 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-08-11 21:34:22,087 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with
2025-08-11 21:34:22,087 - INFO - Initial checks done. Running the testcase now
2025-08-11 21:34:22,087 - INFO -
2025-08-11 21:34:22,596 - DEBUG - Response for create_network : {'network': {'id': '2105add9-71b8-4641-8db8-86d51f09d6e1', 'name': 'ctest-vn-01457701', 'tenant_id': 'b6c4b3a33c9341158c961a4b04224190', 'project_id': 'b6c4b3a33c9341158c961a4b04224190', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-37253723', 'ctest-vn-01457701'], 'port_security_enabled': True, 'description': ''}}
2025-08-11 21:34:22,732 - DEBUG - Response for create_subnet : {'subnet': {'id': '1e755535-4bc5-44c3-9fda-1a52634c2c61', 'name': '', 'tenant_id': 'b6c4b3a33c9341158c961a4b04224190', 'network_id': '2105add9-71b8-4641-8db8-86d51f09d6e1', 'ip_version': 4, 'cidr': '60.31.250.128/26', 'allocation_pools': [{'start': '60.31.250.130', 'end': '60.31.250.190'}], 'gateway_ip': '60.31.250.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '60.31.250.130', 'tags': [], 'project_id': 'b6c4b3a33c9341158c961a4b04224190'}}
2025-08-11 21:34:22,747 - INFO - Created VN ctest-vn-01457701
2025-08-11 21:34:22,798 - DEBUG - VN ctest-vn-01457701 UUID is 2105add9-71b8-4641-8db8-86d51f09d6e1
2025-08-11 21:34:23,092 - DEBUG - Response for create_network : {'network': {'id': '1e46e674-7cc8-4184-8520-f15f8a747539', 'name': 'ctest-vn-25735011', 'tenant_id': 'b6c4b3a33c9341158c961a4b04224190', 'project_id': 'b6c4b3a33c9341158c961a4b04224190', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-37253723', 'ctest-vn-25735011'], 'port_security_enabled': True, 'description': ''}}
2025-08-11 21:34:23,303 - DEBUG - Response for create_subnet : {'subnet': {'id': '67572f55-7d89-412d-97fa-45e256137810', 'name': '', 'tenant_id': 'b6c4b3a33c9341158c961a4b04224190', 'network_id': '1e46e674-7cc8-4184-8520-f15f8a747539', 'ip_version': 4, 'cidr': '208.147.188.128/26', 'allocation_pools': [{'start': '208.147.188.130', 'end': '208.147.188.190'}], 'gateway_ip': '208.147.188.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '208.147.188.130', 'tags': [], 'project_id': 'b6c4b3a33c9341158c961a4b04224190'}}
2025-08-11 21:34:23,318 - INFO - Created VN ctest-vn-25735011
2025-08-11 21:34:23,370 - DEBUG - VN ctest-vn-25735011 UUID is 1e46e674-7cc8-4184-8520-f15f8a747539
2025-08-11 21:34:23,518 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-37253723:ctest-vn-01457701, 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-37253723:ctest-vn-25735011, 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-08-11 21:34:23,799 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2105add9-71b8-4641-8db8-86d51f09d6e1', 'name': 'ctest-vn-01457701', 'tenant_id': 'b6c4b3a33c9341158c961a4b04224190', 'project_id': 'b6c4b3a33c9341158c961a4b04224190', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1e755535-4bc5-44c3-9fda-1a52634c2c61'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-37253723', 'ctest-vn-01457701'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-37253723', 'ctest-policy-allow-all-31411629']], 'subnet_ipam': [{'subnet_cidr': '60.31.250.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-11 21:34:24,026 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1e46e674-7cc8-4184-8520-f15f8a747539', 'name': 'ctest-vn-25735011', 'tenant_id': 'b6c4b3a33c9341158c961a4b04224190', 'project_id': 'b6c4b3a33c9341158c961a4b04224190', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['67572f55-7d89-412d-97fa-45e256137810'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-37253723', 'ctest-vn-25735011'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-37253723', 'ctest-policy-allow-all-31411629']], 'subnet_ipam': [{'subnet_cidr': '208.147.188.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-11 21:34:24,198 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-08-11 21:34:24,484 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-08-11 21:34:24,509 - DEBUG - Requesting: http://10.0.0.254:8082/domain/bac6c050-28c2-4648-b2b0-3ea97e2c40c5
2025-08-11 21:34:24,522 - DEBUG - Requesting: http://10.0.0.254:8082/project/b6c4b3a3-3c93-4115-8c96-1a4b04224190
2025-08-11 21:34:24,590 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/2105add9-71b8-4641-8db8-86d51f09d6e1
2025-08-11 21:34:24,600 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/2105add9-71b8-4641-8db8-86d51f09d6e1
2025-08-11 21:34:24,609 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/3ea4f3d3-f929-435c-a328-c876f33ffe37
2025-08-11 21:34:24,616 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/3ea4f3d3-f929-435c-a328-c876f33ffe37
2025-08-11 21:34:24,621 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/fddfb203-663d-4b5d-bae3-9a9f5489e383
2025-08-11 21:34:24,627 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-11 21:34:24,627 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/2105add9-71b8-4641-8db8-86d51f09d6e1
2025-08-11 21:34:24,635 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/3ea4f3d3-f929-435c-a328-c876f33ffe37
2025-08-11 21:34:24,647 - INFO - Verified VN network id 11 for VN 2105add9-71b8-4641-8db8-86d51f09d6e1
2025-08-11 21:34:24,647 - INFO - Verifications in API Server for VN ctest-vn-01457701 passed
2025-08-11 21:34:24,647 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/2105add9-71b8-4641-8db8-86d51f09d6e1
2025-08-11 21:34:24,656 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/3ea4f3d3-f929-435c-a328-c876f33ffe37
2025-08-11 21:34:24,662 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/3ea4f3d3-f929-435c-a328-c876f33ffe37
2025-08-11 21:34:24,668 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/fddfb203-663d-4b5d-bae3-9a9f5489e383
2025-08-11 21:34:24,679 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-37253723:ctest-vn-01457701', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-37253723', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2379499127562585665', 'uuid-lslong': '10212060404969494241'}, 'enable': 'true', 'created': '2025-08-11T21:34:22', 'last-modified': '2025-08-11T21:34:23', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.896122'}
2025-08-11 21:34:24,686 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-11 21:34:24,686 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-01457701 passed
2025-08-11 21:34:24,686 - DEBUG - ====Verifying policy data for ctest-vn-01457701 in API_Server ======
2025-08-11 21:34:24,686 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-08-11 21:34:24,691 - DEBUG - Requesting: http://10.0.0.254:8082/domain/bac6c050-28c2-4648-b2b0-3ea97e2c40c5
2025-08-11 21:34:24,701 - DEBUG - Requesting: http://10.0.0.254:8082/project/b6c4b3a3-3c93-4115-8c96-1a4b04224190
2025-08-11 21:34:24,769 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/2105add9-71b8-4641-8db8-86d51f09d6e1
2025-08-11 21:34:24,777 - DEBUG - ==>Verifying data for policy with id: 474957cb-f83b-4d8b-98ca-19fc672beb14, fqn: ['default-domain', 'ctest-TestBasicPolicy-37253723', 'ctest-policy-allow-all-31411629']
2025-08-11 21:34:24,778 - INFO - VN ctest-vn-01457701 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-11 21:34:24,778 - DEBUG - Verifying the vn in opserver
2025-08-11 21:34:24,778 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-37253723:ctest-vn-01457701 virtual network link through opserver 10.0.0.254
2025-08-11 21:34:24,778 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-08-11 21:34:25,064 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-08-11 21:34:25,116 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-37253723:ctest-vn-01457701', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-37253723:ctest-vn-01457701?flat'}
2025-08-11 21:34:25,116 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-37253723:ctest-vn-01457701 is found in opserver
2025-08-11 21:34:25,126 - DEBUG - Do not have enough data to verify VN in agent
2025-08-11 21:34:25,131 - DEBUG - VRF ids for VN ctest-vn-01457701: {}
2025-08-11 21:34:25,131 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-08-11 21:34:25,136 - DEBUG - Requesting: http://10.0.0.254:8082/domain/bac6c050-28c2-4648-b2b0-3ea97e2c40c5
2025-08-11 21:34:25,146 - DEBUG - Requesting: http://10.0.0.254:8082/project/b6c4b3a3-3c93-4115-8c96-1a4b04224190
2025-08-11 21:34:25,218 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/1e46e674-7cc8-4184-8520-f15f8a747539
2025-08-11 21:34:25,228 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/1e46e674-7cc8-4184-8520-f15f8a747539
2025-08-11 21:34:25,237 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/1ea3cc58-d3f5-40ed-80cf-9ea0ee6c3d0a
2025-08-11 21:34:25,243 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/1ea3cc58-d3f5-40ed-80cf-9ea0ee6c3d0a
2025-08-11 21:34:25,249 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/536ea5cf-3e78-4480-bb64-f44a2d1aa33a
2025-08-11 21:34:25,255 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-11 21:34:25,255 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/1e46e674-7cc8-4184-8520-f15f8a747539
2025-08-11 21:34:25,265 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/1ea3cc58-d3f5-40ed-80cf-9ea0ee6c3d0a
2025-08-11 21:34:25,280 - INFO - Verified VN network id 12 for VN 1e46e674-7cc8-4184-8520-f15f8a747539
2025-08-11 21:34:25,280 - INFO - Verifications in API Server for VN ctest-vn-25735011 passed
2025-08-11 21:34:25,280 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/1e46e674-7cc8-4184-8520-f15f8a747539
2025-08-11 21:34:25,290 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/1ea3cc58-d3f5-40ed-80cf-9ea0ee6c3d0a
2025-08-11 21:34:25,297 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/1ea3cc58-d3f5-40ed-80cf-9ea0ee6c3d0a
2025-08-11 21:34:25,304 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/536ea5cf-3e78-4480-bb64-f44a2d1aa33a
2025-08-11 21:34:25,316 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-37253723:ctest-vn-25735011', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-37253723', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2181684457491677572', 'uuid-lslong': '9592932598946231609'}, 'enable': 'true', 'created': '2025-08-11T21:34:23', 'last-modified': '2025-08-11T21:34:24', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.304125'}
2025-08-11 21:34:25,321 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-11 21:34:25,322 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-25735011 passed
2025-08-11 21:34:25,322 - DEBUG - ====Verifying policy data for ctest-vn-25735011 in API_Server ======
2025-08-11 21:34:25,322 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-08-11 21:34:25,326 - DEBUG - Requesting: http://10.0.0.254:8082/domain/bac6c050-28c2-4648-b2b0-3ea97e2c40c5
2025-08-11 21:34:25,336 - DEBUG - Requesting: http://10.0.0.254:8082/project/b6c4b3a3-3c93-4115-8c96-1a4b04224190
2025-08-11 21:34:25,405 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/1e46e674-7cc8-4184-8520-f15f8a747539
2025-08-11 21:34:25,414 - DEBUG - ==>Verifying data for policy with id: 474957cb-f83b-4d8b-98ca-19fc672beb14, fqn: ['default-domain', 'ctest-TestBasicPolicy-37253723', 'ctest-policy-allow-all-31411629']
2025-08-11 21:34:25,414 - INFO - VN ctest-vn-25735011 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-11 21:34:25,414 - DEBUG - Verifying the vn in opserver
2025-08-11 21:34:25,414 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-37253723:ctest-vn-25735011 virtual network link through opserver 10.0.0.254
2025-08-11 21:34:25,414 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-08-11 21:34:25,423 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-37253723:ctest-vn-25735011', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-37253723:ctest-vn-25735011?flat'}
2025-08-11 21:34:25,423 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-37253723:ctest-vn-25735011 is found in opserver
2025-08-11 21:34:25,433 - DEBUG - Do not have enough data to verify VN in agent
2025-08-11 21:34:25,437 - DEBUG - VRF ids for VN ctest-vn-25735011: {}
2025-08-11 21:34:25,485 - DEBUG - Services list from nova: [