2025-05-27 12:16:10,273 - INFO - Domain Default found not creating
2025-05-27 12:16:10,428 - INFO - Project ctest-TestBasicPolicy-34692570 not found, creating it
2025-05-27 12:16:10,927 - INFO - Created Project:ctest-TestBasicPolicy-34692570, ID : 2caeab72-b268-46eb-ae28-8446ff75a291
2025-05-27 12:16:12,412 - INFO - ================================================================================
2025-05-27 12:16:12,412 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-05-27 12:16:12,412 - 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-27 12:16:12,666 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.254': '0'}} with
2025-05-27 12:16:12,666 - INFO - Initial checks done. Running the testcase now
2025-05-27 12:16:12,666 - INFO -
2025-05-27 12:16:13,225 - DEBUG - Response for create_network : {'network': {'id': 'b87938f3-fe0b-4c76-88c6-9f885ccfd27a', 'name': 'ctest-vn-42510217', 'tenant_id': '2caeab72b26846ebae288446ff75a291', 'project_id': '2caeab72b26846ebae288446ff75a291', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-34692570', 'ctest-vn-42510217'], 'port_security_enabled': True, 'description': ''}}
2025-05-27 12:16:13,400 - DEBUG - Response for create_subnet : {'subnet': {'id': '43d2d6f5-37a2-4a17-afe8-ee8727f7b76f', 'name': '', 'tenant_id': '2caeab72b26846ebae288446ff75a291', 'network_id': 'b87938f3-fe0b-4c76-88c6-9f885ccfd27a', 'ip_version': 4, 'cidr': '145.192.149.128/26', 'allocation_pools': [{'start': '145.192.149.130', 'end': '145.192.149.190'}], 'gateway_ip': '145.192.149.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '145.192.149.130', 'tags': [], 'project_id': '2caeab72b26846ebae288446ff75a291'}}
2025-05-27 12:16:13,419 - INFO - Created VN ctest-vn-42510217
2025-05-27 12:16:13,475 - DEBUG - VN ctest-vn-42510217 UUID is b87938f3-fe0b-4c76-88c6-9f885ccfd27a
2025-05-27 12:16:13,805 - DEBUG - Response for create_network : {'network': {'id': 'd9187c09-4a20-4f80-abc0-a672433fe393', 'name': 'ctest-vn-82793242', 'tenant_id': '2caeab72b26846ebae288446ff75a291', 'project_id': '2caeab72b26846ebae288446ff75a291', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-34692570', 'ctest-vn-82793242'], 'port_security_enabled': True, 'description': ''}}
2025-05-27 12:16:14,194 - DEBUG - Response for create_subnet : {'subnet': {'id': '98ff3d45-1d64-4b82-bab7-1aefb9196b89', 'name': '', 'tenant_id': '2caeab72b26846ebae288446ff75a291', 'network_id': 'd9187c09-4a20-4f80-abc0-a672433fe393', 'ip_version': 4, 'cidr': '16.219.42.0/26', 'allocation_pools': [{'start': '16.219.42.2', 'end': '16.219.42.62'}], 'gateway_ip': '16.219.42.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '16.219.42.2', 'tags': [], 'project_id': '2caeab72b26846ebae288446ff75a291'}}
2025-05-27 12:16:14,215 - INFO - Created VN ctest-vn-82793242
2025-05-27 12:16:14,271 - DEBUG - VN ctest-vn-82793242 UUID is d9187c09-4a20-4f80-abc0-a672433fe393
2025-05-27 12:16:14,395 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-34692570:ctest-vn-42510217, 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-34692570:ctest-vn-82793242, 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-27 12:16:14,704 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b87938f3-fe0b-4c76-88c6-9f885ccfd27a', 'name': 'ctest-vn-42510217', 'tenant_id': '2caeab72b26846ebae288446ff75a291', 'project_id': '2caeab72b26846ebae288446ff75a291', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['43d2d6f5-37a2-4a17-afe8-ee8727f7b76f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-34692570', 'ctest-vn-42510217'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-34692570', 'ctest-policy-allow-all-49377234']], 'subnet_ipam': [{'subnet_cidr': '145.192.149.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-05-27 12:16:14,938 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd9187c09-4a20-4f80-abc0-a672433fe393', 'name': 'ctest-vn-82793242', 'tenant_id': '2caeab72b26846ebae288446ff75a291', 'project_id': '2caeab72b26846ebae288446ff75a291', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['98ff3d45-1d64-4b82-bab7-1aefb9196b89'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-34692570', 'ctest-vn-82793242'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-34692570', 'ctest-policy-allow-all-49377234']], 'subnet_ipam': [{'subnet_cidr': '16.219.42.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-05-27 12:16:15,107 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-05-27 12:16:15,405 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-05-27 12:16:15,434 - DEBUG - Requesting: http://10.0.0.50:8082/domain/b0cff311-bc2e-4897-a644-f963b094be3a
2025-05-27 12:16:15,449 - DEBUG - Requesting: http://10.0.0.50:8082/project/2caeab72-b268-46eb-ae28-8446ff75a291
2025-05-27 12:16:15,525 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/b87938f3-fe0b-4c76-88c6-9f885ccfd27a
2025-05-27 12:16:15,539 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/b87938f3-fe0b-4c76-88c6-9f885ccfd27a
2025-05-27 12:16:15,551 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/773a9556-2990-4d28-b5ca-ced8c3e75c34
2025-05-27 12:16:15,560 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/773a9556-2990-4d28-b5ca-ced8c3e75c34
2025-05-27 12:16:15,569 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/c6b6d891-8459-4646-9f4a-b5a6c8e1b2cc
2025-05-27 12:16:15,579 - DEBUG - Route Targets: ['target:64512:8000005']
2025-05-27 12:16:15,579 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/b87938f3-fe0b-4c76-88c6-9f885ccfd27a
2025-05-27 12:16:15,590 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/773a9556-2990-4d28-b5ca-ced8c3e75c34
2025-05-27 12:16:15,607 - INFO - Verified VN network id 8 for VN b87938f3-fe0b-4c76-88c6-9f885ccfd27a
2025-05-27 12:16:15,607 - INFO - Verifications in API Server for VN ctest-vn-42510217 passed
2025-05-27 12:16:15,607 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/b87938f3-fe0b-4c76-88c6-9f885ccfd27a
2025-05-27 12:16:15,619 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/773a9556-2990-4d28-b5ca-ced8c3e75c34
2025-05-27 12:16:15,627 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/773a9556-2990-4d28-b5ca-ced8c3e75c34
2025-05-27 12:16:15,636 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/c6b6d891-8459-4646-9f4a-b5a6c8e1b2cc
2025-05-27 12:16:15,650 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-34692570:ctest-vn-42510217', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-34692570', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13292718395751091318', 'uuid-lslong': '9855740242568401530'}, 'enable': 'true', 'created': '2025-05-27T12:16:13', 'last-modified': '2025-05-27T12:16:14', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.967165'}
2025-05-27 12:16:15,657 - DEBUG - Route Targets: ['target:64512:8000005']
2025-05-27 12:16:15,657 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-42510217 passed
2025-05-27 12:16:15,658 - DEBUG - ====Verifying policy data for ctest-vn-42510217 in API_Server ======
2025-05-27 12:16:15,658 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-05-27 12:16:15,664 - DEBUG - Requesting: http://10.0.0.50:8082/domain/b0cff311-bc2e-4897-a644-f963b094be3a
2025-05-27 12:16:15,677 - DEBUG - Requesting: http://10.0.0.50:8082/project/2caeab72-b268-46eb-ae28-8446ff75a291
2025-05-27 12:16:15,758 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/b87938f3-fe0b-4c76-88c6-9f885ccfd27a
2025-05-27 12:16:15,771 - DEBUG - ==>Verifying data for policy with id: ed1e817b-bf23-4e54-b810-c127795a2336, fqn: ['default-domain', 'ctest-TestBasicPolicy-34692570', 'ctest-policy-allow-all-49377234']
2025-05-27 12:16:15,771 - INFO - VN ctest-vn-42510217 Policy verification: verify_vn_policy_in_api_server, status: True
2025-05-27 12:16:15,771 - DEBUG - Verifying the vn in opserver
2025-05-27 12:16:15,771 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-34692570:ctest-vn-42510217 virtual network link through opserver 10.0.0.50
2025-05-27 12:16:15,771 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-05-27 12:16:16,065 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-05-27 12:16:16,133 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-34692570:ctest-vn-42510217', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-34692570:ctest-vn-42510217?flat'}
2025-05-27 12:16:16,133 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-34692570:ctest-vn-42510217 is found in opserver
2025-05-27 12:16:16,147 - DEBUG - Do not have enough data to verify VN in agent
2025-05-27 12:16:16,155 - DEBUG - VRF ids for VN ctest-vn-42510217: {}
2025-05-27 12:16:16,155 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-05-27 12:16:16,162 - DEBUG - Requesting: http://10.0.0.50:8082/domain/b0cff311-bc2e-4897-a644-f963b094be3a
2025-05-27 12:16:16,175 - DEBUG - Requesting: http://10.0.0.50:8082/project/2caeab72-b268-46eb-ae28-8446ff75a291
2025-05-27 12:16:16,249 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/d9187c09-4a20-4f80-abc0-a672433fe393
2025-05-27 12:16:16,263 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/d9187c09-4a20-4f80-abc0-a672433fe393
2025-05-27 12:16:16,274 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/6514703c-51f0-4c98-afd8-0dfa66631be3
2025-05-27 12:16:16,282 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/6514703c-51f0-4c98-afd8-0dfa66631be3
2025-05-27 12:16:16,290 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/3517e137-bde3-4ce1-9de1-787f18163def
2025-05-27 12:16:16,298 - DEBUG - Route Targets: ['target:64512:8000006']
2025-05-27 12:16:16,298 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/d9187c09-4a20-4f80-abc0-a672433fe393
2025-05-27 12:16:16,308 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/6514703c-51f0-4c98-afd8-0dfa66631be3
2025-05-27 12:16:16,325 - INFO - Verified VN network id 9 for VN d9187c09-4a20-4f80-abc0-a672433fe393
2025-05-27 12:16:16,325 - INFO - Verifications in API Server for VN ctest-vn-82793242 passed
2025-05-27 12:16:16,325 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/d9187c09-4a20-4f80-abc0-a672433fe393
2025-05-27 12:16:16,336 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/6514703c-51f0-4c98-afd8-0dfa66631be3
2025-05-27 12:16:16,345 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/6514703c-51f0-4c98-afd8-0dfa66631be3
2025-05-27 12:16:16,353 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/3517e137-bde3-4ce1-9de1-787f18163def
2025-05-27 12:16:16,367 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-34692570:ctest-vn-82793242', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-34692570', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15643389685011599232', 'uuid-lslong': '12376074785698866067'}, 'enable': 'true', 'created': '2025-05-27T12:16:13', 'last-modified': '2025-05-27T12:16:14', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.453402'}
2025-05-27 12:16:16,373 - DEBUG - Route Targets: ['target:64512:8000006']
2025-05-27 12:16:16,373 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-82793242 passed
2025-05-27 12:16:16,374 - DEBUG - ====Verifying policy data for ctest-vn-82793242 in API_Server ======
2025-05-27 12:16:16,374 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-05-27 12:16:16,380 - DEBUG - Requesting: http://10.0.0.50:8082/domain/b0cff311-bc2e-4897-a644-f963b094be3a
2025-05-27 12:16:16,393 - DEBUG - Requesting: http://10.0.0.50:8082/project/2caeab72-b268-46eb-ae28-8446ff75a291
2025-05-27 12:16:16,470 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/d9187c09-4a20-4f80-abc0-a672433fe393
2025-05-27 12:16:16,485 - DEBUG - ==>Verifying data for policy with id: ed1e817b-bf23-4e54-b810-c127795a2336, fqn: ['default-domain', 'ctest-TestBasicPolicy-34692570', 'ctest-policy-allow-all-49377234']
2025-05-27 12:16:16,485 - INFO - VN ctest-vn-82793242 Policy verification: verify_vn_policy_in_api_server, status: True
2025-05-27 12:16:16,485 - DEBUG - Verifying the vn in opserver
2025-05-27 12:16:16,485 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-34692570:ctest-vn-82793242 virtual network link through opserver 10.0.0.50
2025-05-27 12:16:16,485 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-05-27 12:16:16,497 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-34692570:ctest-vn-82793242', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-34692570:ctest-vn-82793242?flat'}
2025-05-27 12:16:16,497 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-34692570:ctest-vn-82793242 is found in opserver
2025-05-27 12:16:16,511 - DEBUG - Do not have enough data to verify VN in agent
2025-05-27 12:16:16,517 - DEBUG - VRF ids for VN ctest-vn-82793242: {}
2025-05-27 12:16:16,580 - DEBUG - Services list from nova: [