2025-11-17 18:16:04,831 - INFO - Domain Default found not creating
2025-11-17 18:16:05,047 - INFO - Project ctest-TestBasicPolicy-21744318 not found, creating it
2025-11-17 18:16:05,549 - INFO - Created Project:ctest-TestBasicPolicy-21744318, ID : 9780b061-a0f1-4c86-9bb9-fc6cdc3a85b4
2025-11-17 18:16:07,272 - INFO - ================================================================================
2025-11-17 18:16:07,272 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-11-17 18:16:07,272 - 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-11-17 18:16:07,547 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.17': '0'}} with
2025-11-17 18:16:07,547 - INFO - Initial checks done. Running the testcase now
2025-11-17 18:16:07,548 - INFO -
2025-11-17 18:16:08,206 - DEBUG - Response for create_network : {'network': {'id': 'b3850ca5-d64f-4478-80d9-87770782ef3b', 'name': 'ctest-vn-09018626', 'tenant_id': '9780b061a0f14c869bb9fc6cdc3a85b4', 'project_id': '9780b061a0f14c869bb9fc6cdc3a85b4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-21744318', 'ctest-vn-09018626'], 'port_security_enabled': True, 'description': ''}}
2025-11-17 18:16:08,398 - DEBUG - Response for create_subnet : {'subnet': {'id': '9524d9ce-1619-4874-b979-c71814b051b0', 'name': '', 'tenant_id': '9780b061a0f14c869bb9fc6cdc3a85b4', 'network_id': 'b3850ca5-d64f-4478-80d9-87770782ef3b', 'ip_version': 4, 'cidr': '195.139.249.192/26', 'allocation_pools': [{'start': '195.139.249.194', 'end': '195.139.249.254'}], 'gateway_ip': '195.139.249.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '195.139.249.194', 'tags': [], 'project_id': '9780b061a0f14c869bb9fc6cdc3a85b4'}}
2025-11-17 18:16:08,422 - INFO - Created VN ctest-vn-09018626
2025-11-17 18:16:08,475 - DEBUG - VN ctest-vn-09018626 UUID is b3850ca5-d64f-4478-80d9-87770782ef3b
2025-11-17 18:16:08,792 - DEBUG - Response for create_network : {'network': {'id': '076bd479-3e2d-495b-8ddf-bdb7696af3fa', 'name': 'ctest-vn-42695594', 'tenant_id': '9780b061a0f14c869bb9fc6cdc3a85b4', 'project_id': '9780b061a0f14c869bb9fc6cdc3a85b4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-21744318', 'ctest-vn-42695594'], 'port_security_enabled': True, 'description': ''}}
2025-11-17 18:16:09,020 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c254a0ce-6753-478c-ba32-c18592920302', 'name': '', 'tenant_id': '9780b061a0f14c869bb9fc6cdc3a85b4', 'network_id': '076bd479-3e2d-495b-8ddf-bdb7696af3fa', 'ip_version': 4, 'cidr': '139.138.53.192/26', 'allocation_pools': [{'start': '139.138.53.194', 'end': '139.138.53.254'}], 'gateway_ip': '139.138.53.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '139.138.53.194', 'tags': [], 'project_id': '9780b061a0f14c869bb9fc6cdc3a85b4'}}
2025-11-17 18:16:09,041 - INFO - Created VN ctest-vn-42695594
2025-11-17 18:16:09,095 - DEBUG - VN ctest-vn-42695594 UUID is 076bd479-3e2d-495b-8ddf-bdb7696af3fa
2025-11-17 18:16:09,224 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-21744318:ctest-vn-09018626, 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-21744318:ctest-vn-42695594, 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-11-17 18:16:09,529 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b3850ca5-d64f-4478-80d9-87770782ef3b', 'name': 'ctest-vn-09018626', 'tenant_id': '9780b061a0f14c869bb9fc6cdc3a85b4', 'project_id': '9780b061a0f14c869bb9fc6cdc3a85b4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9524d9ce-1619-4874-b979-c71814b051b0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-21744318', 'ctest-vn-09018626'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-21744318', 'ctest-policy-allow-all-00294357']], 'subnet_ipam': [{'subnet_cidr': '195.139.249.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-17 18:16:09,789 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '076bd479-3e2d-495b-8ddf-bdb7696af3fa', 'name': 'ctest-vn-42695594', 'tenant_id': '9780b061a0f14c869bb9fc6cdc3a85b4', 'project_id': '9780b061a0f14c869bb9fc6cdc3a85b4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c254a0ce-6753-478c-ba32-c18592920302'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-21744318', 'ctest-vn-42695594'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-21744318', 'ctest-policy-allow-all-00294357']], 'subnet_ipam': [{'subnet_cidr': '139.138.53.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-17 18:16:09,959 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-11-17 18:16:10,260 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-11-17 18:16:10,299 - DEBUG - Requesting: http://10.0.0.33:8082/domain/77f8efd9-1e4c-4101-be0b-57a61b8e1403
2025-11-17 18:16:10,313 - DEBUG - Requesting: http://10.0.0.33:8082/project/9780b061-a0f1-4c86-9bb9-fc6cdc3a85b4
2025-11-17 18:16:10,391 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/b3850ca5-d64f-4478-80d9-87770782ef3b
2025-11-17 18:16:10,403 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/b3850ca5-d64f-4478-80d9-87770782ef3b
2025-11-17 18:16:10,413 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/994e8f5e-80fd-471b-aa33-1c52f26fc9ee
2025-11-17 18:16:10,424 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/994e8f5e-80fd-471b-aa33-1c52f26fc9ee
2025-11-17 18:16:10,434 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/b4d06dae-e7bc-4c21-b8ff-93d97f564fb4
2025-11-17 18:16:10,442 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-17 18:16:10,442 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/b3850ca5-d64f-4478-80d9-87770782ef3b
2025-11-17 18:16:10,453 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/994e8f5e-80fd-471b-aa33-1c52f26fc9ee
2025-11-17 18:16:10,470 - INFO - Verified VN network id 11 for VN b3850ca5-d64f-4478-80d9-87770782ef3b
2025-11-17 18:16:10,471 - INFO - Verifications in API Server for VN ctest-vn-09018626 passed
2025-11-17 18:16:10,471 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/b3850ca5-d64f-4478-80d9-87770782ef3b
2025-11-17 18:16:10,483 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/994e8f5e-80fd-471b-aa33-1c52f26fc9ee
2025-11-17 18:16:10,491 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/994e8f5e-80fd-471b-aa33-1c52f26fc9ee
2025-11-17 18:16:10,500 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/b4d06dae-e7bc-4c21-b8ff-93d97f564fb4
2025-11-17 18:16:10,515 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-21744318:ctest-vn-09018626', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-21744318', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12935759411096274040', 'uuid-lslong': '9284601052097867579'}, 'enable': 'true', 'created': '2025-11-17T18:16:08', 'last-modified': '2025-11-17T18:16:09', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.014220'}
2025-11-17 18:16:10,523 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-17 18:16:10,523 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-09018626 passed
2025-11-17 18:16:10,523 - DEBUG - ====Verifying policy data for ctest-vn-09018626 in API_Server ======
2025-11-17 18:16:10,523 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-11-17 18:16:10,530 - DEBUG - Requesting: http://10.0.0.33:8082/domain/77f8efd9-1e4c-4101-be0b-57a61b8e1403
2025-11-17 18:16:10,543 - DEBUG - Requesting: http://10.0.0.33:8082/project/9780b061-a0f1-4c86-9bb9-fc6cdc3a85b4
2025-11-17 18:16:10,621 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/b3850ca5-d64f-4478-80d9-87770782ef3b
2025-11-17 18:16:10,632 - DEBUG - ==>Verifying data for policy with id: eea1dbac-4057-4482-a551-17d5c423383e, fqn: ['default-domain', 'ctest-TestBasicPolicy-21744318', 'ctest-policy-allow-all-00294357']
2025-11-17 18:16:10,632 - INFO - VN ctest-vn-09018626 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-17 18:16:10,632 - DEBUG - Verifying the vn in opserver
2025-11-17 18:16:10,632 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-21744318:ctest-vn-09018626 virtual network link through opserver 10.0.0.33
2025-11-17 18:16:10,632 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-11-17 18:16:10,936 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-11-17 18:16:11,022 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-21744318:ctest-vn-09018626', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-21744318:ctest-vn-09018626?flat'}
2025-11-17 18:16:11,022 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-21744318:ctest-vn-09018626 is found in opserver
2025-11-17 18:16:11,035 - DEBUG - Do not have enough data to verify VN in agent
2025-11-17 18:16:11,041 - DEBUG - VRF ids for VN ctest-vn-09018626: {}
2025-11-17 18:16:11,041 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-11-17 18:16:11,047 - DEBUG - Requesting: http://10.0.0.33:8082/domain/77f8efd9-1e4c-4101-be0b-57a61b8e1403
2025-11-17 18:16:11,063 - DEBUG - Requesting: http://10.0.0.33:8082/project/9780b061-a0f1-4c86-9bb9-fc6cdc3a85b4
2025-11-17 18:16:11,140 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/076bd479-3e2d-495b-8ddf-bdb7696af3fa
2025-11-17 18:16:11,153 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/076bd479-3e2d-495b-8ddf-bdb7696af3fa
2025-11-17 18:16:11,165 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/cefca10f-f47d-45a4-a0db-65e85969da6d
2025-11-17 18:16:11,176 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/cefca10f-f47d-45a4-a0db-65e85969da6d
2025-11-17 18:16:11,186 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/7feb835d-baca-42ce-9466-7ccf3d93621a
2025-11-17 18:16:11,196 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-17 18:16:11,196 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/076bd479-3e2d-495b-8ddf-bdb7696af3fa
2025-11-17 18:16:11,207 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/cefca10f-f47d-45a4-a0db-65e85969da6d
2025-11-17 18:16:11,225 - INFO - Verified VN network id 12 for VN 076bd479-3e2d-495b-8ddf-bdb7696af3fa
2025-11-17 18:16:11,226 - INFO - Verifications in API Server for VN ctest-vn-42695594 passed
2025-11-17 18:16:11,226 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/076bd479-3e2d-495b-8ddf-bdb7696af3fa
2025-11-17 18:16:11,239 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/cefca10f-f47d-45a4-a0db-65e85969da6d
2025-11-17 18:16:11,249 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/cefca10f-f47d-45a4-a0db-65e85969da6d
2025-11-17 18:16:11,257 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/7feb835d-baca-42ce-9466-7ccf3d93621a
2025-11-17 18:16:11,274 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-21744318:ctest-vn-42695594', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-21744318', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '534754597972822363', 'uuid-lslong': '10223098274599597050'}, 'enable': 'true', 'created': '2025-11-17T18:16:08', 'last-modified': '2025-11-17T18:16:09', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.516386'}
2025-11-17 18:16:11,282 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-17 18:16:11,282 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-42695594 passed
2025-11-17 18:16:11,283 - DEBUG - ====Verifying policy data for ctest-vn-42695594 in API_Server ======
2025-11-17 18:16:11,283 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-11-17 18:16:11,290 - DEBUG - Requesting: http://10.0.0.33:8082/domain/77f8efd9-1e4c-4101-be0b-57a61b8e1403
2025-11-17 18:16:11,304 - DEBUG - Requesting: http://10.0.0.33:8082/project/9780b061-a0f1-4c86-9bb9-fc6cdc3a85b4
2025-11-17 18:16:11,379 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/076bd479-3e2d-495b-8ddf-bdb7696af3fa
2025-11-17 18:16:11,391 - DEBUG - ==>Verifying data for policy with id: eea1dbac-4057-4482-a551-17d5c423383e, fqn: ['default-domain', 'ctest-TestBasicPolicy-21744318', 'ctest-policy-allow-all-00294357']
2025-11-17 18:16:11,391 - INFO - VN ctest-vn-42695594 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-17 18:16:11,391 - DEBUG - Verifying the vn in opserver
2025-11-17 18:16:11,391 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-21744318:ctest-vn-42695594 virtual network link through opserver 10.0.0.33
2025-11-17 18:16:11,391 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-11-17 18:16:11,403 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-21744318:ctest-vn-42695594', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-21744318:ctest-vn-42695594?flat'}
2025-11-17 18:16:11,403 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-21744318:ctest-vn-42695594 is found in opserver
2025-11-17 18:16:11,418 - DEBUG - Do not have enough data to verify VN in agent
2025-11-17 18:16:11,424 - DEBUG - VRF ids for VN ctest-vn-42695594: {}
2025-11-17 18:16:11,502 - DEBUG - Services list from nova: [