2025-08-10 15:56:43,374 - INFO - Domain Default found not creating
2025-08-10 15:56:43,490 - INFO - Project ctest-TestBasicPolicy-43218948 not found, creating it
2025-08-10 15:56:43,987 - INFO - Created Project:ctest-TestBasicPolicy-43218948, ID : 9f8ec4c7-88a2-4bc9-aaa5-776f0daddc96
2025-08-10 15:56:45,271 - INFO - ================================================================================
2025-08-10 15:56:45,271 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-08-10 15:56:45,271 - 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-10 15:56:45,525 - DEBUG - Nothing to compare xmpp stats {'10.0.0.57': {'10.20.0.17': '0'}} with
2025-08-10 15:56:45,525 - INFO - Initial checks done. Running the testcase now
2025-08-10 15:56:45,525 - INFO -
2025-08-10 15:56:46,042 - DEBUG - Response for create_network : {'network': {'id': '1b49dd28-05b9-46d7-be71-0381d73a43f9', 'name': 'ctest-vn-92248806', 'tenant_id': '9f8ec4c788a24bc9aaa5776f0daddc96', 'project_id': '9f8ec4c788a24bc9aaa5776f0daddc96', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-43218948', 'ctest-vn-92248806'], 'port_security_enabled': True, 'description': ''}}
2025-08-10 15:56:46,246 - DEBUG - Response for create_subnet : {'subnet': {'id': '4678ce81-fe3d-4586-99ea-2861dd73b854', 'name': '', 'tenant_id': '9f8ec4c788a24bc9aaa5776f0daddc96', 'network_id': '1b49dd28-05b9-46d7-be71-0381d73a43f9', 'ip_version': 4, 'cidr': '173.116.209.128/26', 'allocation_pools': [{'start': '173.116.209.130', 'end': '173.116.209.190'}], 'gateway_ip': '173.116.209.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '173.116.209.130', 'tags': [], 'project_id': '9f8ec4c788a24bc9aaa5776f0daddc96'}}
2025-08-10 15:56:46,262 - INFO - Created VN ctest-vn-92248806
2025-08-10 15:56:46,311 - DEBUG - VN ctest-vn-92248806 UUID is 1b49dd28-05b9-46d7-be71-0381d73a43f9
2025-08-10 15:56:46,605 - DEBUG - Response for create_network : {'network': {'id': 'eb5a35ec-ad23-4eca-a283-cadc1a81d5b0', 'name': 'ctest-vn-45326885', 'tenant_id': '9f8ec4c788a24bc9aaa5776f0daddc96', 'project_id': '9f8ec4c788a24bc9aaa5776f0daddc96', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-43218948', 'ctest-vn-45326885'], 'port_security_enabled': True, 'description': ''}}
2025-08-10 15:56:46,769 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ff468d48-df31-4a29-a5a8-6239114aef2a', 'name': '', 'tenant_id': '9f8ec4c788a24bc9aaa5776f0daddc96', 'network_id': 'eb5a35ec-ad23-4eca-a283-cadc1a81d5b0', 'ip_version': 4, 'cidr': '221.147.39.128/26', 'allocation_pools': [{'start': '221.147.39.130', 'end': '221.147.39.190'}], 'gateway_ip': '221.147.39.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '221.147.39.130', 'tags': [], 'project_id': '9f8ec4c788a24bc9aaa5776f0daddc96'}}
2025-08-10 15:56:46,783 - INFO - Created VN ctest-vn-45326885
2025-08-10 15:56:46,835 - DEBUG - VN ctest-vn-45326885 UUID is eb5a35ec-ad23-4eca-a283-cadc1a81d5b0
2025-08-10 15:56:46,971 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-43218948:ctest-vn-92248806, 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-43218948:ctest-vn-45326885, 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-10 15:56:47,261 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1b49dd28-05b9-46d7-be71-0381d73a43f9', 'name': 'ctest-vn-92248806', 'tenant_id': '9f8ec4c788a24bc9aaa5776f0daddc96', 'project_id': '9f8ec4c788a24bc9aaa5776f0daddc96', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4678ce81-fe3d-4586-99ea-2861dd73b854'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-43218948', 'ctest-vn-92248806'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-43218948', 'ctest-policy-allow-all-39862311']], 'subnet_ipam': [{'subnet_cidr': '173.116.209.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-10 15:56:47,534 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'eb5a35ec-ad23-4eca-a283-cadc1a81d5b0', 'name': 'ctest-vn-45326885', 'tenant_id': '9f8ec4c788a24bc9aaa5776f0daddc96', 'project_id': '9f8ec4c788a24bc9aaa5776f0daddc96', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ff468d48-df31-4a29-a5a8-6239114aef2a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-43218948', 'ctest-vn-45326885'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-43218948', 'ctest-policy-allow-all-39862311']], 'subnet_ipam': [{'subnet_cidr': '221.147.39.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-10 15:56:47,691 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2025-08-10 15:56:47,985 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2025-08-10 15:56:48,009 - DEBUG - Requesting: http://10.0.0.57:8082/domain/ff2cdd90-c1eb-4624-a2ae-50ec3e7f38f3
2025-08-10 15:56:48,020 - DEBUG - Requesting: http://10.0.0.57:8082/project/9f8ec4c7-88a2-4bc9-aaa5-776f0daddc96
2025-08-10 15:56:48,088 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/1b49dd28-05b9-46d7-be71-0381d73a43f9
2025-08-10 15:56:48,106 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/1b49dd28-05b9-46d7-be71-0381d73a43f9
2025-08-10 15:56:48,115 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/db8b28a6-5b11-4be3-bfc8-868149dd19f6
2025-08-10 15:56:48,121 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/db8b28a6-5b11-4be3-bfc8-868149dd19f6
2025-08-10 15:56:48,127 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/33a24cfd-8b33-45b7-87ba-375c49b4bc75
2025-08-10 15:56:48,132 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-10 15:56:48,132 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/1b49dd28-05b9-46d7-be71-0381d73a43f9
2025-08-10 15:56:48,141 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/db8b28a6-5b11-4be3-bfc8-868149dd19f6
2025-08-10 15:56:48,152 - INFO - Verified VN network id 11 for VN 1b49dd28-05b9-46d7-be71-0381d73a43f9
2025-08-10 15:56:48,152 - INFO - Verifications in API Server for VN ctest-vn-92248806 passed
2025-08-10 15:56:48,153 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/1b49dd28-05b9-46d7-be71-0381d73a43f9
2025-08-10 15:56:48,161 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/db8b28a6-5b11-4be3-bfc8-868149dd19f6
2025-08-10 15:56:48,167 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/db8b28a6-5b11-4be3-bfc8-868149dd19f6
2025-08-10 15:56:48,172 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/33a24cfd-8b33-45b7-87ba-375c49b4bc75
2025-08-10 15:56:48,183 - DEBUG - Control-node 10.0.0.57 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-43218948:ctest-vn-92248806', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-43218948', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1966345876288390871', 'uuid-lslong': '13722753395771196409'}, 'enable': 'true', 'created': '2025-08-10T15:56:46', 'last-modified': '2025-08-10T15:56:47', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.942215'}
2025-08-10 15:56:48,189 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-10 15:56:48,189 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-92248806 passed
2025-08-10 15:56:48,189 - DEBUG - ====Verifying policy data for ctest-vn-92248806 in API_Server ======
2025-08-10 15:56:48,189 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2025-08-10 15:56:48,194 - DEBUG - Requesting: http://10.0.0.57:8082/domain/ff2cdd90-c1eb-4624-a2ae-50ec3e7f38f3
2025-08-10 15:56:48,206 - DEBUG - Requesting: http://10.0.0.57:8082/project/9f8ec4c7-88a2-4bc9-aaa5-776f0daddc96
2025-08-10 15:56:48,280 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/1b49dd28-05b9-46d7-be71-0381d73a43f9
2025-08-10 15:56:48,288 - DEBUG - ==>Verifying data for policy with id: 00416b36-660c-465b-a033-33b65a0a1cde, fqn: ['default-domain', 'ctest-TestBasicPolicy-43218948', 'ctest-policy-allow-all-39862311']
2025-08-10 15:56:48,288 - INFO - VN ctest-vn-92248806 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-10 15:56:48,288 - DEBUG - Verifying the vn in opserver
2025-08-10 15:56:48,288 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-43218948:ctest-vn-92248806 virtual network link through opserver 10.0.0.57
2025-08-10 15:56:48,289 - DEBUG - Requesting: http://10.0.0.57:8081/analytics/uves/virtual-networks
2025-08-10 15:56:48,575 - DEBUG - Requesting: http://10.0.0.57:8081/analytics/uves/virtual-networks
2025-08-10 15:56:48,621 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-43218948:ctest-vn-92248806', 'href': 'http://10.0.0.57:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-43218948:ctest-vn-92248806?flat'}
2025-08-10 15:56:48,621 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-43218948:ctest-vn-92248806 is found in opserver
2025-08-10 15:56:48,631 - DEBUG - Do not have enough data to verify VN in agent
2025-08-10 15:56:48,636 - DEBUG - VRF ids for VN ctest-vn-92248806: {}
2025-08-10 15:56:48,636 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2025-08-10 15:56:48,641 - DEBUG - Requesting: http://10.0.0.57:8082/domain/ff2cdd90-c1eb-4624-a2ae-50ec3e7f38f3
2025-08-10 15:56:48,650 - DEBUG - Requesting: http://10.0.0.57:8082/project/9f8ec4c7-88a2-4bc9-aaa5-776f0daddc96
2025-08-10 15:56:48,721 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/eb5a35ec-ad23-4eca-a283-cadc1a81d5b0
2025-08-10 15:56:48,732 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/eb5a35ec-ad23-4eca-a283-cadc1a81d5b0
2025-08-10 15:56:48,741 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/f35d59f8-1637-4792-a60c-150907c62bf8
2025-08-10 15:56:48,747 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/f35d59f8-1637-4792-a60c-150907c62bf8
2025-08-10 15:56:48,753 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/a3b55d1b-e087-4ed1-8d7f-797755392ab5
2025-08-10 15:56:48,759 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-10 15:56:48,759 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/eb5a35ec-ad23-4eca-a283-cadc1a81d5b0
2025-08-10 15:56:48,767 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/f35d59f8-1637-4792-a60c-150907c62bf8
2025-08-10 15:56:48,779 - INFO - Verified VN network id 12 for VN eb5a35ec-ad23-4eca-a283-cadc1a81d5b0
2025-08-10 15:56:48,779 - INFO - Verifications in API Server for VN ctest-vn-45326885 passed
2025-08-10 15:56:48,779 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/eb5a35ec-ad23-4eca-a283-cadc1a81d5b0
2025-08-10 15:56:48,789 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/f35d59f8-1637-4792-a60c-150907c62bf8
2025-08-10 15:56:48,795 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/f35d59f8-1637-4792-a60c-150907c62bf8
2025-08-10 15:56:48,801 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/a3b55d1b-e087-4ed1-8d7f-797755392ab5
2025-08-10 15:56:48,813 - DEBUG - Control-node 10.0.0.57 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-43218948:ctest-vn-45326885', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-43218948', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16958926637450350282', 'uuid-lslong': '11710426502779753904'}, 'enable': 'true', 'created': '2025-08-10T15:56:46', 'last-modified': '2025-08-10T15:56:47', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.350094'}
2025-08-10 15:56:48,819 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-10 15:56:48,819 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-45326885 passed
2025-08-10 15:56:48,820 - DEBUG - ====Verifying policy data for ctest-vn-45326885 in API_Server ======
2025-08-10 15:56:48,820 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2025-08-10 15:56:48,825 - DEBUG - Requesting: http://10.0.0.57:8082/domain/ff2cdd90-c1eb-4624-a2ae-50ec3e7f38f3
2025-08-10 15:56:48,837 - DEBUG - Requesting: http://10.0.0.57:8082/project/9f8ec4c7-88a2-4bc9-aaa5-776f0daddc96
2025-08-10 15:56:48,910 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/eb5a35ec-ad23-4eca-a283-cadc1a81d5b0
2025-08-10 15:56:48,919 - DEBUG - ==>Verifying data for policy with id: 00416b36-660c-465b-a033-33b65a0a1cde, fqn: ['default-domain', 'ctest-TestBasicPolicy-43218948', 'ctest-policy-allow-all-39862311']
2025-08-10 15:56:48,919 - INFO - VN ctest-vn-45326885 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-10 15:56:48,919 - DEBUG - Verifying the vn in opserver
2025-08-10 15:56:48,919 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-43218948:ctest-vn-45326885 virtual network link through opserver 10.0.0.57
2025-08-10 15:56:48,919 - DEBUG - Requesting: http://10.0.0.57:8081/analytics/uves/virtual-networks
2025-08-10 15:56:48,928 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-43218948:ctest-vn-45326885', 'href': 'http://10.0.0.57:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-43218948:ctest-vn-45326885?flat'}
2025-08-10 15:56:48,928 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-43218948:ctest-vn-45326885 is found in opserver
2025-08-10 15:56:48,938 - DEBUG - Do not have enough data to verify VN in agent
2025-08-10 15:56:48,942 - DEBUG - VRF ids for VN ctest-vn-45326885: {}
2025-08-10 15:56:48,990 - DEBUG - Services list from nova: [