2025-10-20 02:05:45,708 - INFO - Domain Default found not creating
2025-10-20 02:05:45,842 - INFO - Project ctest-TestBasicPolicy-73412062 not found, creating it
2025-10-20 02:05:46,266 - INFO - Created Project:ctest-TestBasicPolicy-73412062, ID : 00767c5a-ecda-4700-92a0-4eddab9af7a4
2025-10-20 02:05:47,636 - INFO - ================================================================================
2025-10-20 02:05:47,636 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-20 02:05:47,636 - 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-10-20 02:05:47,891 - DEBUG - Nothing to compare xmpp stats {'10.0.0.56': {'10.20.0.17': '0'}} with
2025-10-20 02:05:47,891 - INFO - Initial checks done. Running the testcase now
2025-10-20 02:05:47,892 - INFO -
2025-10-20 02:05:48,417 - DEBUG - Response for create_network : {'network': {'id': 'a92cc73f-b8a2-40ba-910a-56ff868adc71', 'name': 'ctest-vn-14711103', 'tenant_id': '00767c5aecda470092a04eddab9af7a4', 'project_id': '00767c5aecda470092a04eddab9af7a4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-73412062', 'ctest-vn-14711103'], 'port_security_enabled': True, 'description': ''}}
2025-10-20 02:05:48,576 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f940c593-f03d-4ed8-a504-42e3f348a2fc', 'name': '', 'tenant_id': '00767c5aecda470092a04eddab9af7a4', 'network_id': 'a92cc73f-b8a2-40ba-910a-56ff868adc71', 'ip_version': 4, 'cidr': '83.36.8.0/26', 'allocation_pools': [{'start': '83.36.8.2', 'end': '83.36.8.62'}], 'gateway_ip': '83.36.8.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '83.36.8.2', 'tags': [], 'project_id': '00767c5aecda470092a04eddab9af7a4'}}
2025-10-20 02:05:48,591 - INFO - Created VN ctest-vn-14711103
2025-10-20 02:05:48,641 - DEBUG - VN ctest-vn-14711103 UUID is a92cc73f-b8a2-40ba-910a-56ff868adc71
2025-10-20 02:05:48,956 - DEBUG - Response for create_network : {'network': {'id': 'fd63178f-85d4-4242-bd31-d4593ab4da34', 'name': 'ctest-vn-24058238', 'tenant_id': '00767c5aecda470092a04eddab9af7a4', 'project_id': '00767c5aecda470092a04eddab9af7a4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-73412062', 'ctest-vn-24058238'], 'port_security_enabled': True, 'description': ''}}
2025-10-20 02:05:49,100 - DEBUG - Response for create_subnet : {'subnet': {'id': '058ef3e1-ccd7-41f8-b00f-ea0085093e14', 'name': '', 'tenant_id': '00767c5aecda470092a04eddab9af7a4', 'network_id': 'fd63178f-85d4-4242-bd31-d4593ab4da34', 'ip_version': 4, 'cidr': '197.213.196.64/26', 'allocation_pools': [{'start': '197.213.196.66', 'end': '197.213.196.126'}], 'gateway_ip': '197.213.196.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '197.213.196.66', 'tags': [], 'project_id': '00767c5aecda470092a04eddab9af7a4'}}
2025-10-20 02:05:49,115 - INFO - Created VN ctest-vn-24058238
2025-10-20 02:05:49,165 - DEBUG - VN ctest-vn-24058238 UUID is fd63178f-85d4-4242-bd31-d4593ab4da34
2025-10-20 02:05:49,309 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-73412062:ctest-vn-14711103, 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-73412062:ctest-vn-24058238, 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-10-20 02:05:49,600 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a92cc73f-b8a2-40ba-910a-56ff868adc71', 'name': 'ctest-vn-14711103', 'tenant_id': '00767c5aecda470092a04eddab9af7a4', 'project_id': '00767c5aecda470092a04eddab9af7a4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f940c593-f03d-4ed8-a504-42e3f348a2fc'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-73412062', 'ctest-vn-14711103'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-73412062', 'ctest-policy-allow-all-06329321']], 'subnet_ipam': [{'subnet_cidr': '83.36.8.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-20 02:05:49,880 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'fd63178f-85d4-4242-bd31-d4593ab4da34', 'name': 'ctest-vn-24058238', 'tenant_id': '00767c5aecda470092a04eddab9af7a4', 'project_id': '00767c5aecda470092a04eddab9af7a4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['058ef3e1-ccd7-41f8-b00f-ea0085093e14'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-73412062', 'ctest-vn-24058238'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-73412062', 'ctest-policy-allow-all-06329321']], 'subnet_ipam': [{'subnet_cidr': '197.213.196.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-20 02:05:50,021 - DEBUG - Requesting: http://10.0.0.56:8082/domains
2025-10-20 02:05:50,321 - DEBUG - Requesting: http://10.0.0.56:8082/domains
2025-10-20 02:05:50,347 - DEBUG - Requesting: http://10.0.0.56:8082/domain/b547f689-b287-4f5c-9c91-ceecdf9ff979
2025-10-20 02:05:50,358 - DEBUG - Requesting: http://10.0.0.56:8082/project/00767c5a-ecda-4700-92a0-4eddab9af7a4
2025-10-20 02:05:50,427 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/a92cc73f-b8a2-40ba-910a-56ff868adc71
2025-10-20 02:05:50,435 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/a92cc73f-b8a2-40ba-910a-56ff868adc71
2025-10-20 02:05:50,442 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/d2017b59-cfa7-46dd-a0db-12d50b1ee527
2025-10-20 02:05:50,448 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/d2017b59-cfa7-46dd-a0db-12d50b1ee527
2025-10-20 02:05:50,454 - DEBUG - Requesting: http://10.0.0.56:8082/route-target/215e9e73-99b3-4554-baa6-519a2f48bf29
2025-10-20 02:05:50,459 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-20 02:05:50,459 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/a92cc73f-b8a2-40ba-910a-56ff868adc71
2025-10-20 02:05:50,466 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/d2017b59-cfa7-46dd-a0db-12d50b1ee527
2025-10-20 02:05:50,477 - INFO - Verified VN network id 11 for VN a92cc73f-b8a2-40ba-910a-56ff868adc71
2025-10-20 02:05:50,477 - INFO - Verifications in API Server for VN ctest-vn-14711103 passed
2025-10-20 02:05:50,477 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/a92cc73f-b8a2-40ba-910a-56ff868adc71
2025-10-20 02:05:50,484 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/d2017b59-cfa7-46dd-a0db-12d50b1ee527
2025-10-20 02:05:50,489 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/d2017b59-cfa7-46dd-a0db-12d50b1ee527
2025-10-20 02:05:50,494 - DEBUG - Requesting: http://10.0.0.56:8082/route-target/215e9e73-99b3-4554-baa6-519a2f48bf29
2025-10-20 02:05:50,504 - DEBUG - Control-node 10.0.0.56 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-73412062:ctest-vn-14711103', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-73412062', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12190337367879598266', 'uuid-lslong': '10451261540740553841'}, 'enable': 'true', 'created': '2025-10-20T02:05:48', 'last-modified': '2025-10-20T02:05:49', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.930042'}
2025-10-20 02:05:50,508 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-20 02:05:50,508 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-14711103 passed
2025-10-20 02:05:50,509 - DEBUG - ====Verifying policy data for ctest-vn-14711103 in API_Server ======
2025-10-20 02:05:50,509 - DEBUG - Requesting: http://10.0.0.56:8082/domains
2025-10-20 02:05:50,512 - DEBUG - Requesting: http://10.0.0.56:8082/domain/b547f689-b287-4f5c-9c91-ceecdf9ff979
2025-10-20 02:05:50,521 - DEBUG - Requesting: http://10.0.0.56:8082/project/00767c5a-ecda-4700-92a0-4eddab9af7a4
2025-10-20 02:05:50,587 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/a92cc73f-b8a2-40ba-910a-56ff868adc71
2025-10-20 02:05:50,595 - DEBUG - ==>Verifying data for policy with id: 765a89d3-cc86-462b-bad9-789a407b1346, fqn: ['default-domain', 'ctest-TestBasicPolicy-73412062', 'ctest-policy-allow-all-06329321']
2025-10-20 02:05:50,595 - INFO - VN ctest-vn-14711103 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-20 02:05:50,595 - DEBUG - Verifying the vn in opserver
2025-10-20 02:05:50,595 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-73412062:ctest-vn-14711103 virtual network link through opserver 10.0.0.56
2025-10-20 02:05:50,595 - DEBUG - Requesting: http://10.0.0.56:8081/analytics/uves/virtual-networks
2025-10-20 02:05:50,885 - DEBUG - Requesting: http://10.0.0.56:8081/analytics/uves/virtual-networks
2025-10-20 02:05:50,936 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-73412062:ctest-vn-14711103', 'href': 'http://10.0.0.56:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-73412062:ctest-vn-14711103?flat'}
2025-10-20 02:05:50,936 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-73412062:ctest-vn-14711103 is found in opserver
2025-10-20 02:05:50,945 - DEBUG - Do not have enough data to verify VN in agent
2025-10-20 02:05:50,949 - DEBUG - VRF ids for VN ctest-vn-14711103: {}
2025-10-20 02:05:50,949 - DEBUG - Requesting: http://10.0.0.56:8082/domains
2025-10-20 02:05:50,954 - DEBUG - Requesting: http://10.0.0.56:8082/domain/b547f689-b287-4f5c-9c91-ceecdf9ff979
2025-10-20 02:05:50,963 - DEBUG - Requesting: http://10.0.0.56:8082/project/00767c5a-ecda-4700-92a0-4eddab9af7a4
2025-10-20 02:05:51,028 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/fd63178f-85d4-4242-bd31-d4593ab4da34
2025-10-20 02:05:51,038 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/fd63178f-85d4-4242-bd31-d4593ab4da34
2025-10-20 02:05:51,046 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/4a42749e-f91b-4d38-8119-aee09dcc44cd
2025-10-20 02:05:51,052 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/4a42749e-f91b-4d38-8119-aee09dcc44cd
2025-10-20 02:05:51,058 - DEBUG - Requesting: http://10.0.0.56:8082/route-target/d2e897cb-bae3-4d86-87ee-5ef1d6730b67
2025-10-20 02:05:51,063 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-20 02:05:51,063 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/fd63178f-85d4-4242-bd31-d4593ab4da34
2025-10-20 02:05:51,073 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/4a42749e-f91b-4d38-8119-aee09dcc44cd
2025-10-20 02:05:51,085 - INFO - Verified VN network id 12 for VN fd63178f-85d4-4242-bd31-d4593ab4da34
2025-10-20 02:05:51,085 - INFO - Verifications in API Server for VN ctest-vn-24058238 passed
2025-10-20 02:05:51,085 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/fd63178f-85d4-4242-bd31-d4593ab4da34
2025-10-20 02:05:51,093 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/4a42749e-f91b-4d38-8119-aee09dcc44cd
2025-10-20 02:05:51,100 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/4a42749e-f91b-4d38-8119-aee09dcc44cd
2025-10-20 02:05:51,105 - DEBUG - Requesting: http://10.0.0.56:8082/route-target/d2e897cb-bae3-4d86-87ee-5ef1d6730b67
2025-10-20 02:05:51,117 - DEBUG - Control-node 10.0.0.56 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-73412062:ctest-vn-24058238', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-73412062', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18258463219483165250', 'uuid-lslong': '13632911026729310772'}, 'enable': 'true', 'created': '2025-10-20T02:05:48', 'last-modified': '2025-10-20T02:05:49', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.303527'}
2025-10-20 02:05:51,123 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-20 02:05:51,123 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-24058238 passed
2025-10-20 02:05:51,123 - DEBUG - ====Verifying policy data for ctest-vn-24058238 in API_Server ======
2025-10-20 02:05:51,123 - DEBUG - Requesting: http://10.0.0.56:8082/domains
2025-10-20 02:05:51,128 - DEBUG - Requesting: http://10.0.0.56:8082/domain/b547f689-b287-4f5c-9c91-ceecdf9ff979
2025-10-20 02:05:51,138 - DEBUG - Requesting: http://10.0.0.56:8082/project/00767c5a-ecda-4700-92a0-4eddab9af7a4
2025-10-20 02:05:51,225 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/fd63178f-85d4-4242-bd31-d4593ab4da34
2025-10-20 02:05:51,234 - DEBUG - ==>Verifying data for policy with id: 765a89d3-cc86-462b-bad9-789a407b1346, fqn: ['default-domain', 'ctest-TestBasicPolicy-73412062', 'ctest-policy-allow-all-06329321']
2025-10-20 02:05:51,234 - INFO - VN ctest-vn-24058238 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-20 02:05:51,234 - DEBUG - Verifying the vn in opserver
2025-10-20 02:05:51,234 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-73412062:ctest-vn-24058238 virtual network link through opserver 10.0.0.56
2025-10-20 02:05:51,234 - DEBUG - Requesting: http://10.0.0.56:8081/analytics/uves/virtual-networks
2025-10-20 02:05:51,244 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-73412062:ctest-vn-24058238', 'href': 'http://10.0.0.56:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-73412062:ctest-vn-24058238?flat'}
2025-10-20 02:05:51,244 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-73412062:ctest-vn-24058238 is found in opserver
2025-10-20 02:05:51,254 - DEBUG - Do not have enough data to verify VN in agent
2025-10-20 02:05:51,258 - DEBUG - VRF ids for VN ctest-vn-24058238: {}
2025-10-20 02:05:51,323 - DEBUG - Services list from nova: [