2025-09-21 08:59:07,785 - INFO - Domain Default found not creating
2025-09-21 08:59:07,924 - INFO - Project ctest-TestBasicPolicy-93407672 not found, creating it
2025-09-21 08:59:08,371 - INFO - Created Project:ctest-TestBasicPolicy-93407672, ID : dbe459c6-a956-4917-a558-b4e58c84e612
2025-09-21 08:59:09,735 - INFO - ================================================================================
2025-09-21 08:59:09,735 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-09-21 08:59:09,735 - 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-09-21 08:59:09,994 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with
2025-09-21 08:59:09,994 - INFO - Initial checks done. Running the testcase now
2025-09-21 08:59:09,994 - INFO -
2025-09-21 08:59:10,515 - DEBUG - Response for create_network : {'network': {'id': 'f4926963-37ff-4dd4-8385-416a2a90a91a', 'name': 'ctest-vn-96320207', 'tenant_id': 'dbe459c6a9564917a558b4e58c84e612', 'project_id': 'dbe459c6a9564917a558b4e58c84e612', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-93407672', 'ctest-vn-96320207'], 'port_security_enabled': True, 'description': ''}}
2025-09-21 08:59:10,682 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b5525e5e-89b8-4d5e-97f3-a35b676bde52', 'name': '', 'tenant_id': 'dbe459c6a9564917a558b4e58c84e612', 'network_id': 'f4926963-37ff-4dd4-8385-416a2a90a91a', 'ip_version': 4, 'cidr': '145.61.29.192/26', 'allocation_pools': [{'start': '145.61.29.194', 'end': '145.61.29.254'}], 'gateway_ip': '145.61.29.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '145.61.29.194', 'tags': [], 'project_id': 'dbe459c6a9564917a558b4e58c84e612'}}
2025-09-21 08:59:10,698 - INFO - Created VN ctest-vn-96320207
2025-09-21 08:59:10,749 - DEBUG - VN ctest-vn-96320207 UUID is f4926963-37ff-4dd4-8385-416a2a90a91a
2025-09-21 08:59:11,030 - DEBUG - Response for create_network : {'network': {'id': 'b51cef9d-2cfb-4403-913f-9dc3b6c80ca8', 'name': 'ctest-vn-67599559', 'tenant_id': 'dbe459c6a9564917a558b4e58c84e612', 'project_id': 'dbe459c6a9564917a558b4e58c84e612', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-93407672', 'ctest-vn-67599559'], 'port_security_enabled': True, 'description': ''}}
2025-09-21 08:59:11,171 - DEBUG - Response for create_subnet : {'subnet': {'id': '53cf7f44-d92b-42fb-8e4b-6d71e6644341', 'name': '', 'tenant_id': 'dbe459c6a9564917a558b4e58c84e612', 'network_id': 'b51cef9d-2cfb-4403-913f-9dc3b6c80ca8', 'ip_version': 4, 'cidr': '9.12.69.0/26', 'allocation_pools': [{'start': '9.12.69.2', 'end': '9.12.69.62'}], 'gateway_ip': '9.12.69.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '9.12.69.2', 'tags': [], 'project_id': 'dbe459c6a9564917a558b4e58c84e612'}}
2025-09-21 08:59:11,188 - INFO - Created VN ctest-vn-67599559
2025-09-21 08:59:11,237 - DEBUG - VN ctest-vn-67599559 UUID is b51cef9d-2cfb-4403-913f-9dc3b6c80ca8
2025-09-21 08:59:11,389 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-93407672:ctest-vn-96320207, 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-93407672:ctest-vn-67599559, 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-09-21 08:59:11,676 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f4926963-37ff-4dd4-8385-416a2a90a91a', 'name': 'ctest-vn-96320207', 'tenant_id': 'dbe459c6a9564917a558b4e58c84e612', 'project_id': 'dbe459c6a9564917a558b4e58c84e612', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b5525e5e-89b8-4d5e-97f3-a35b676bde52'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-93407672', 'ctest-vn-96320207'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-93407672', 'ctest-policy-allow-all-15701981']], 'subnet_ipam': [{'subnet_cidr': '145.61.29.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-21 08:59:11,910 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b51cef9d-2cfb-4403-913f-9dc3b6c80ca8', 'name': 'ctest-vn-67599559', 'tenant_id': 'dbe459c6a9564917a558b4e58c84e612', 'project_id': 'dbe459c6a9564917a558b4e58c84e612', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['53cf7f44-d92b-42fb-8e4b-6d71e6644341'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-93407672', 'ctest-vn-67599559'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-93407672', 'ctest-policy-allow-all-15701981']], 'subnet_ipam': [{'subnet_cidr': '9.12.69.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-21 08:59:12,053 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-09-21 08:59:12,345 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-09-21 08:59:12,371 - DEBUG - Requesting: http://10.0.0.254:8082/domain/c41d3cc5-b86c-4895-a393-223ab88c8f4f
2025-09-21 08:59:12,382 - DEBUG - Requesting: http://10.0.0.254:8082/project/dbe459c6-a956-4917-a558-b4e58c84e612
2025-09-21 08:59:12,452 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/f4926963-37ff-4dd4-8385-416a2a90a91a
2025-09-21 08:59:12,462 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/f4926963-37ff-4dd4-8385-416a2a90a91a
2025-09-21 08:59:12,470 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/33fea18c-182a-420f-a08a-2b26c7297086
2025-09-21 08:59:12,476 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/33fea18c-182a-420f-a08a-2b26c7297086
2025-09-21 08:59:12,482 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/c05a04af-9e35-4915-82ab-2a8003fa3224
2025-09-21 08:59:12,488 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-21 08:59:12,488 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/f4926963-37ff-4dd4-8385-416a2a90a91a
2025-09-21 08:59:12,496 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/33fea18c-182a-420f-a08a-2b26c7297086
2025-09-21 08:59:12,508 - INFO - Verified VN network id 12 for VN f4926963-37ff-4dd4-8385-416a2a90a91a
2025-09-21 08:59:12,508 - INFO - Verifications in API Server for VN ctest-vn-96320207 passed
2025-09-21 08:59:12,508 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/f4926963-37ff-4dd4-8385-416a2a90a91a
2025-09-21 08:59:12,516 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/33fea18c-182a-420f-a08a-2b26c7297086
2025-09-21 08:59:12,522 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/33fea18c-182a-420f-a08a-2b26c7297086
2025-09-21 08:59:12,528 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/c05a04af-9e35-4915-82ab-2a8003fa3224
2025-09-21 08:59:12,539 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-93407672:ctest-vn-96320207', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-93407672', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17623264166716329428', 'uuid-lslong': '9477052915107539226'}, 'enable': 'true', 'created': '2025-09-21T08:59:10', 'last-modified': '2025-09-21T08:59:11', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.886495'}
2025-09-21 08:59:12,544 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-21 08:59:12,545 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-96320207 passed
2025-09-21 08:59:12,545 - DEBUG - ====Verifying policy data for ctest-vn-96320207 in API_Server ======
2025-09-21 08:59:12,545 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-09-21 08:59:12,550 - DEBUG - Requesting: http://10.0.0.254:8082/domain/c41d3cc5-b86c-4895-a393-223ab88c8f4f
2025-09-21 08:59:12,560 - DEBUG - Requesting: http://10.0.0.254:8082/project/dbe459c6-a956-4917-a558-b4e58c84e612
2025-09-21 08:59:12,624 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/f4926963-37ff-4dd4-8385-416a2a90a91a
2025-09-21 08:59:12,632 - DEBUG - ==>Verifying data for policy with id: 8eabaa01-4dec-4f9b-8d96-d3d2bdb67f41, fqn: ['default-domain', 'ctest-TestBasicPolicy-93407672', 'ctest-policy-allow-all-15701981']
2025-09-21 08:59:12,632 - INFO - VN ctest-vn-96320207 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-21 08:59:12,632 - DEBUG - Verifying the vn in opserver
2025-09-21 08:59:12,632 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-93407672:ctest-vn-96320207 virtual network link through opserver 10.0.0.254
2025-09-21 08:59:12,632 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-09-21 08:59:12,924 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-09-21 08:59:12,973 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-93407672:ctest-vn-96320207', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-93407672:ctest-vn-96320207?flat'}
2025-09-21 08:59:12,973 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-93407672:ctest-vn-96320207 is found in opserver
2025-09-21 08:59:12,982 - DEBUG - Do not have enough data to verify VN in agent
2025-09-21 08:59:12,986 - DEBUG - VRF ids for VN ctest-vn-96320207: {}
2025-09-21 08:59:12,986 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-09-21 08:59:12,991 - DEBUG - Requesting: http://10.0.0.254:8082/domain/c41d3cc5-b86c-4895-a393-223ab88c8f4f
2025-09-21 08:59:13,001 - DEBUG - Requesting: http://10.0.0.254:8082/project/dbe459c6-a956-4917-a558-b4e58c84e612
2025-09-21 08:59:13,071 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/b51cef9d-2cfb-4403-913f-9dc3b6c80ca8
2025-09-21 08:59:13,082 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/b51cef9d-2cfb-4403-913f-9dc3b6c80ca8
2025-09-21 08:59:13,090 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/69c124b4-5b3f-471b-9665-ebb9a8348925
2025-09-21 08:59:13,096 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/69c124b4-5b3f-471b-9665-ebb9a8348925
2025-09-21 08:59:13,102 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/c9533af1-7703-47f1-bf57-a3c82d5e41b8
2025-09-21 08:59:13,107 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-21 08:59:13,107 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/b51cef9d-2cfb-4403-913f-9dc3b6c80ca8
2025-09-21 08:59:13,115 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/69c124b4-5b3f-471b-9665-ebb9a8348925
2025-09-21 08:59:13,127 - INFO - Verified VN network id 13 for VN b51cef9d-2cfb-4403-913f-9dc3b6c80ca8
2025-09-21 08:59:13,127 - INFO - Verifications in API Server for VN ctest-vn-67599559 passed
2025-09-21 08:59:13,127 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/b51cef9d-2cfb-4403-913f-9dc3b6c80ca8
2025-09-21 08:59:13,135 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/69c124b4-5b3f-471b-9665-ebb9a8348925
2025-09-21 08:59:13,142 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/69c124b4-5b3f-471b-9665-ebb9a8348925
2025-09-21 08:59:13,148 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/c9533af1-7703-47f1-bf57-a3c82d5e41b8
2025-09-21 08:59:13,158 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-93407672:ctest-vn-67599559', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-93407672', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13050569278556423171', 'uuid-lslong': '10466257522943069352'}, 'enable': 'true', 'created': '2025-09-21T08:59:10', 'last-modified': '2025-09-21T08:59:11', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.273073'}
2025-09-21 08:59:13,164 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-21 08:59:13,164 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-67599559 passed
2025-09-21 08:59:13,164 - DEBUG - ====Verifying policy data for ctest-vn-67599559 in API_Server ======
2025-09-21 08:59:13,164 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-09-21 08:59:13,171 - DEBUG - Requesting: http://10.0.0.254:8082/domain/c41d3cc5-b86c-4895-a393-223ab88c8f4f
2025-09-21 08:59:13,181 - DEBUG - Requesting: http://10.0.0.254:8082/project/dbe459c6-a956-4917-a558-b4e58c84e612
2025-09-21 08:59:13,248 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/b51cef9d-2cfb-4403-913f-9dc3b6c80ca8
2025-09-21 08:59:13,256 - DEBUG - ==>Verifying data for policy with id: 8eabaa01-4dec-4f9b-8d96-d3d2bdb67f41, fqn: ['default-domain', 'ctest-TestBasicPolicy-93407672', 'ctest-policy-allow-all-15701981']
2025-09-21 08:59:13,257 - INFO - VN ctest-vn-67599559 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-21 08:59:13,257 - DEBUG - Verifying the vn in opserver
2025-09-21 08:59:13,257 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-93407672:ctest-vn-67599559 virtual network link through opserver 10.0.0.254
2025-09-21 08:59:13,257 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-09-21 08:59:13,265 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-93407672:ctest-vn-67599559', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-93407672:ctest-vn-67599559?flat'}
2025-09-21 08:59:13,265 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-93407672:ctest-vn-67599559 is found in opserver
2025-09-21 08:59:13,274 - DEBUG - Do not have enough data to verify VN in agent
2025-09-21 08:59:13,277 - DEBUG - VRF ids for VN ctest-vn-67599559: {}
2025-09-21 08:59:13,331 - DEBUG - Services list from nova: [