2025-05-14 09:55:07,468 - INFO - Domain Default found not creating
2025-05-14 09:55:07,621 - INFO - Project ctest-TestBasicPolicy-05044398 not found, creating it
2025-05-14 09:55:08,116 - INFO - Created Project:ctest-TestBasicPolicy-05044398, ID : dc0bfc31-998b-42db-9016-760debf3adb4
2025-05-14 09:55:09,905 - INFO - ================================================================================
2025-05-14 09:55:09,905 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-05-14 09:55:09,905 - 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-14 09:55:10,165 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.17': '0'}} with
2025-05-14 09:55:10,165 - INFO - Initial checks done. Running the testcase now
2025-05-14 09:55:10,165 - INFO -
2025-05-14 09:55:10,822 - DEBUG - Response for create_network : {'network': {'id': 'b327677f-a046-4c55-9bfe-23db4ba8aa7d', 'name': 'ctest-vn-78421500', 'tenant_id': 'dc0bfc31998b42db9016760debf3adb4', 'project_id': 'dc0bfc31998b42db9016760debf3adb4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-05044398', 'ctest-vn-78421500'], 'port_security_enabled': True, 'description': ''}}
2025-05-14 09:55:11,093 - DEBUG - Response for create_subnet : {'subnet': {'id': '93c612de-08c6-4809-8be6-859902d0a392', 'name': '', 'tenant_id': 'dc0bfc31998b42db9016760debf3adb4', 'network_id': 'b327677f-a046-4c55-9bfe-23db4ba8aa7d', 'ip_version': 4, 'cidr': '211.120.16.0/26', 'allocation_pools': [{'start': '211.120.16.2', 'end': '211.120.16.62'}], 'gateway_ip': '211.120.16.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '211.120.16.2', 'tags': [], 'project_id': 'dc0bfc31998b42db9016760debf3adb4'}}
2025-05-14 09:55:11,116 - INFO - Created VN ctest-vn-78421500
2025-05-14 09:55:11,174 - DEBUG - VN ctest-vn-78421500 UUID is b327677f-a046-4c55-9bfe-23db4ba8aa7d
2025-05-14 09:55:11,504 - DEBUG - Response for create_network : {'network': {'id': 'a7ddd16d-30f5-4471-9605-10890bdfbeb9', 'name': 'ctest-vn-12347904', 'tenant_id': 'dc0bfc31998b42db9016760debf3adb4', 'project_id': 'dc0bfc31998b42db9016760debf3adb4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-05044398', 'ctest-vn-12347904'], 'port_security_enabled': True, 'description': ''}}
2025-05-14 09:55:11,998 - DEBUG - Response for create_subnet : {'subnet': {'id': '180247a9-5101-470e-a496-49cb9e335239', 'name': '', 'tenant_id': 'dc0bfc31998b42db9016760debf3adb4', 'network_id': 'a7ddd16d-30f5-4471-9605-10890bdfbeb9', 'ip_version': 4, 'cidr': '1.97.180.128/26', 'allocation_pools': [{'start': '1.97.180.130', 'end': '1.97.180.190'}], 'gateway_ip': '1.97.180.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '1.97.180.130', 'tags': [], 'project_id': 'dc0bfc31998b42db9016760debf3adb4'}}
2025-05-14 09:55:12,027 - INFO - Created VN ctest-vn-12347904
2025-05-14 09:55:12,086 - DEBUG - VN ctest-vn-12347904 UUID is a7ddd16d-30f5-4471-9605-10890bdfbeb9
2025-05-14 09:55:12,254 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-05044398:ctest-vn-78421500, 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-05044398:ctest-vn-12347904, 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-14 09:55:12,675 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b327677f-a046-4c55-9bfe-23db4ba8aa7d', 'name': 'ctest-vn-78421500', 'tenant_id': 'dc0bfc31998b42db9016760debf3adb4', 'project_id': 'dc0bfc31998b42db9016760debf3adb4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['93c612de-08c6-4809-8be6-859902d0a392'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-05044398', 'ctest-vn-78421500'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-05044398', 'ctest-policy-allow-all-22592807']], 'subnet_ipam': [{'subnet_cidr': '211.120.16.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-05-14 09:55:12,914 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a7ddd16d-30f5-4471-9605-10890bdfbeb9', 'name': 'ctest-vn-12347904', 'tenant_id': 'dc0bfc31998b42db9016760debf3adb4', 'project_id': 'dc0bfc31998b42db9016760debf3adb4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['180247a9-5101-470e-a496-49cb9e335239'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-05044398', 'ctest-vn-12347904'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-05044398', 'ctest-policy-allow-all-22592807']], 'subnet_ipam': [{'subnet_cidr': '1.97.180.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-05-14 09:55:13,090 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-05-14 09:55:13,435 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-05-14 09:55:13,466 - DEBUG - Requesting: http://10.0.0.22:8082/domain/6a4f1a83-30d8-4751-90fc-27b440af6ead
2025-05-14 09:55:13,483 - DEBUG - Requesting: http://10.0.0.22:8082/project/dc0bfc31-998b-42db-9016-760debf3adb4
2025-05-14 09:55:13,566 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/b327677f-a046-4c55-9bfe-23db4ba8aa7d
2025-05-14 09:55:13,581 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/b327677f-a046-4c55-9bfe-23db4ba8aa7d
2025-05-14 09:55:13,593 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/0e8061f9-bbe7-4700-9d50-9bcaf4b6d3c2
2025-05-14 09:55:13,601 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/0e8061f9-bbe7-4700-9d50-9bcaf4b6d3c2
2025-05-14 09:55:13,610 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/0ac2ee97-4c5d-4308-87a4-fe376c5440b2
2025-05-14 09:55:13,617 - DEBUG - Route Targets: ['target:64512:8000005']
2025-05-14 09:55:13,617 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/b327677f-a046-4c55-9bfe-23db4ba8aa7d
2025-05-14 09:55:13,628 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/0e8061f9-bbe7-4700-9d50-9bcaf4b6d3c2
2025-05-14 09:55:13,644 - INFO - Verified VN network id 9 for VN b327677f-a046-4c55-9bfe-23db4ba8aa7d
2025-05-14 09:55:13,644 - INFO - Verifications in API Server for VN ctest-vn-78421500 passed
2025-05-14 09:55:13,644 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/b327677f-a046-4c55-9bfe-23db4ba8aa7d
2025-05-14 09:55:13,656 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/0e8061f9-bbe7-4700-9d50-9bcaf4b6d3c2
2025-05-14 09:55:13,664 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/0e8061f9-bbe7-4700-9d50-9bcaf4b6d3c2
2025-05-14 09:55:13,672 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/0ac2ee97-4c5d-4308-87a4-fe376c5440b2
2025-05-14 09:55:13,686 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-05044398:ctest-vn-78421500', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-05044398', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12909400654728285269', 'uuid-lslong': '11240461144737491581'}, 'enable': 'true', 'created': '2025-05-14T09:55:10', 'last-modified': '2025-05-14T09:55:12', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.039042'}
2025-05-14 09:55:13,693 - DEBUG - Route Targets: ['target:64512:8000005']
2025-05-14 09:55:13,693 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-78421500 passed
2025-05-14 09:55:13,693 - DEBUG - ====Verifying policy data for ctest-vn-78421500 in API_Server ======
2025-05-14 09:55:13,693 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-05-14 09:55:13,700 - DEBUG - Requesting: http://10.0.0.22:8082/domain/6a4f1a83-30d8-4751-90fc-27b440af6ead
2025-05-14 09:55:13,712 - DEBUG - Requesting: http://10.0.0.22:8082/project/dc0bfc31-998b-42db-9016-760debf3adb4
2025-05-14 09:55:13,810 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/b327677f-a046-4c55-9bfe-23db4ba8aa7d
2025-05-14 09:55:13,823 - DEBUG - ==>Verifying data for policy with id: be76b073-a153-4d2e-940e-1667b6a54077, fqn: ['default-domain', 'ctest-TestBasicPolicy-05044398', 'ctest-policy-allow-all-22592807']
2025-05-14 09:55:13,823 - INFO - VN ctest-vn-78421500 Policy verification: verify_vn_policy_in_api_server, status: True
2025-05-14 09:55:13,823 - DEBUG - Verifying the vn in opserver
2025-05-14 09:55:13,823 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-05044398:ctest-vn-78421500 virtual network link through opserver 10.0.0.22
2025-05-14 09:55:13,823 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-05-14 09:55:14,164 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-05-14 09:55:14,244 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-05044398:ctest-vn-78421500', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-05044398:ctest-vn-78421500?flat'}
2025-05-14 09:55:14,244 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-05044398:ctest-vn-78421500 is found in opserver
2025-05-14 09:55:14,258 - DEBUG - Do not have enough data to verify VN in agent
2025-05-14 09:55:14,265 - DEBUG - VRF ids for VN ctest-vn-78421500: {}
2025-05-14 09:55:14,265 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-05-14 09:55:14,272 - DEBUG - Requesting: http://10.0.0.22:8082/domain/6a4f1a83-30d8-4751-90fc-27b440af6ead
2025-05-14 09:55:14,285 - DEBUG - Requesting: http://10.0.0.22:8082/project/dc0bfc31-998b-42db-9016-760debf3adb4
2025-05-14 09:55:14,367 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/a7ddd16d-30f5-4471-9605-10890bdfbeb9
2025-05-14 09:55:14,382 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/a7ddd16d-30f5-4471-9605-10890bdfbeb9
2025-05-14 09:55:14,394 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/19677d08-174e-447f-8307-c6636becfada
2025-05-14 09:55:14,404 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/19677d08-174e-447f-8307-c6636becfada
2025-05-14 09:55:14,411 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/33569121-b8d8-495f-9166-23389e5e57c9
2025-05-14 09:55:14,418 - DEBUG - Route Targets: ['target:64512:8000006']
2025-05-14 09:55:14,419 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/a7ddd16d-30f5-4471-9605-10890bdfbeb9
2025-05-14 09:55:14,431 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/19677d08-174e-447f-8307-c6636becfada
2025-05-14 09:55:14,447 - INFO - Verified VN network id 10 for VN a7ddd16d-30f5-4471-9605-10890bdfbeb9
2025-05-14 09:55:14,447 - INFO - Verifications in API Server for VN ctest-vn-12347904 passed
2025-05-14 09:55:14,447 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/a7ddd16d-30f5-4471-9605-10890bdfbeb9
2025-05-14 09:55:14,460 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/19677d08-174e-447f-8307-c6636becfada
2025-05-14 09:55:14,470 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/19677d08-174e-447f-8307-c6636becfada
2025-05-14 09:55:14,480 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/33569121-b8d8-495f-9166-23389e5e57c9
2025-05-14 09:55:14,496 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-05044398:ctest-vn-12347904', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-05044398', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12096054441090040945', 'uuid-lslong': '10810064661368520377'}, 'enable': 'true', 'created': '2025-05-14T09:55:11', 'last-modified': '2025-05-14T09:55:12', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.604759'}
2025-05-14 09:55:14,503 - DEBUG - Route Targets: ['target:64512:8000006']
2025-05-14 09:55:14,503 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-12347904 passed
2025-05-14 09:55:14,504 - DEBUG - ====Verifying policy data for ctest-vn-12347904 in API_Server ======
2025-05-14 09:55:14,504 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-05-14 09:55:14,511 - DEBUG - Requesting: http://10.0.0.22:8082/domain/6a4f1a83-30d8-4751-90fc-27b440af6ead
2025-05-14 09:55:14,523 - DEBUG - Requesting: http://10.0.0.22:8082/project/dc0bfc31-998b-42db-9016-760debf3adb4
2025-05-14 09:55:14,606 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/a7ddd16d-30f5-4471-9605-10890bdfbeb9
2025-05-14 09:55:14,617 - DEBUG - ==>Verifying data for policy with id: be76b073-a153-4d2e-940e-1667b6a54077, fqn: ['default-domain', 'ctest-TestBasicPolicy-05044398', 'ctest-policy-allow-all-22592807']
2025-05-14 09:55:14,617 - INFO - VN ctest-vn-12347904 Policy verification: verify_vn_policy_in_api_server, status: True
2025-05-14 09:55:14,617 - DEBUG - Verifying the vn in opserver
2025-05-14 09:55:14,617 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-05044398:ctest-vn-12347904 virtual network link through opserver 10.0.0.22
2025-05-14 09:55:14,617 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-05-14 09:55:14,631 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-05044398:ctest-vn-12347904', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-05044398:ctest-vn-12347904?flat'}
2025-05-14 09:55:14,631 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-05044398:ctest-vn-12347904 is found in opserver
2025-05-14 09:55:14,643 - DEBUG - Do not have enough data to verify VN in agent
2025-05-14 09:55:14,648 - DEBUG - VRF ids for VN ctest-vn-12347904: {}
2025-05-14 09:55:14,708 - DEBUG - Services list from nova: [