2025-09-27 12:52:07,157 - INFO - Domain Default found not creating
2025-09-27 12:52:07,401 - INFO - Project ctest-TestBasicPolicy-29420181 not found, creating it
2025-09-27 12:52:07,889 - INFO - Created Project:ctest-TestBasicPolicy-29420181, ID : f98975e2-e16b-4f82-84cd-f619e0355ca4
2025-09-27 12:52:09,429 - INFO - ================================================================================
2025-09-27 12:52:09,429 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-09-27 12:52:09,429 - 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-27 12:52:09,693 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with
2025-09-27 12:52:09,693 - INFO - Initial checks done. Running the testcase now
2025-09-27 12:52:09,693 - INFO -
2025-09-27 12:52:10,312 - DEBUG - Response for create_network : {'network': {'id': '0459759d-917a-4b8e-88b3-8b5129651cf7', 'name': 'ctest-vn-25352346', 'tenant_id': 'f98975e2e16b4f8284cdf619e0355ca4', 'project_id': 'f98975e2e16b4f8284cdf619e0355ca4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-29420181', 'ctest-vn-25352346'], 'port_security_enabled': True, 'description': ''}}
2025-09-27 12:52:10,482 - DEBUG - Response for create_subnet : {'subnet': {'id': '953ca1f9-3f2c-4c27-ba9d-698644e89da4', 'name': '', 'tenant_id': 'f98975e2e16b4f8284cdf619e0355ca4', 'network_id': '0459759d-917a-4b8e-88b3-8b5129651cf7', 'ip_version': 4, 'cidr': '114.30.178.64/26', 'allocation_pools': [{'start': '114.30.178.66', 'end': '114.30.178.126'}], 'gateway_ip': '114.30.178.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '114.30.178.66', 'tags': [], 'project_id': 'f98975e2e16b4f8284cdf619e0355ca4'}}
2025-09-27 12:52:10,506 - INFO - Created VN ctest-vn-25352346
2025-09-27 12:52:10,562 - DEBUG - VN ctest-vn-25352346 UUID is 0459759d-917a-4b8e-88b3-8b5129651cf7
2025-09-27 12:52:10,885 - DEBUG - Response for create_network : {'network': {'id': 'a2833b51-0eb2-4d1f-ad28-8cf56ff3fc6d', 'name': 'ctest-vn-62491414', 'tenant_id': 'f98975e2e16b4f8284cdf619e0355ca4', 'project_id': 'f98975e2e16b4f8284cdf619e0355ca4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-29420181', 'ctest-vn-62491414'], 'port_security_enabled': True, 'description': ''}}
2025-09-27 12:52:11,174 - DEBUG - Response for create_subnet : {'subnet': {'id': 'af4e1961-b928-4f85-9be6-8d5f08091dcf', 'name': '', 'tenant_id': 'f98975e2e16b4f8284cdf619e0355ca4', 'network_id': 'a2833b51-0eb2-4d1f-ad28-8cf56ff3fc6d', 'ip_version': 4, 'cidr': '139.2.59.128/26', 'allocation_pools': [{'start': '139.2.59.130', 'end': '139.2.59.190'}], 'gateway_ip': '139.2.59.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '139.2.59.130', 'tags': [], 'project_id': 'f98975e2e16b4f8284cdf619e0355ca4'}}
2025-09-27 12:52:11,194 - INFO - Created VN ctest-vn-62491414
2025-09-27 12:52:11,252 - DEBUG - VN ctest-vn-62491414 UUID is a2833b51-0eb2-4d1f-ad28-8cf56ff3fc6d
2025-09-27 12:52:11,378 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-29420181:ctest-vn-25352346, 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-29420181:ctest-vn-62491414, 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-27 12:52:11,688 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0459759d-917a-4b8e-88b3-8b5129651cf7', 'name': 'ctest-vn-25352346', 'tenant_id': 'f98975e2e16b4f8284cdf619e0355ca4', 'project_id': 'f98975e2e16b4f8284cdf619e0355ca4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['953ca1f9-3f2c-4c27-ba9d-698644e89da4'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-29420181', 'ctest-vn-25352346'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-29420181', 'ctest-policy-allow-all-20336972']], 'subnet_ipam': [{'subnet_cidr': '114.30.178.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-27 12:52:11,938 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a2833b51-0eb2-4d1f-ad28-8cf56ff3fc6d', 'name': 'ctest-vn-62491414', 'tenant_id': 'f98975e2e16b4f8284cdf619e0355ca4', 'project_id': 'f98975e2e16b4f8284cdf619e0355ca4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['af4e1961-b928-4f85-9be6-8d5f08091dcf'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-29420181', 'ctest-vn-62491414'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-29420181', 'ctest-policy-allow-all-20336972']], 'subnet_ipam': [{'subnet_cidr': '139.2.59.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-27 12:52:12,102 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-09-27 12:52:12,403 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-09-27 12:52:12,434 - DEBUG - Requesting: http://10.0.0.38:8082/domain/1a096c02-e82c-407f-ad33-cae666f4f191
2025-09-27 12:52:12,449 - DEBUG - Requesting: http://10.0.0.38:8082/project/f98975e2-e16b-4f82-84cd-f619e0355ca4
2025-09-27 12:52:12,521 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/0459759d-917a-4b8e-88b3-8b5129651cf7
2025-09-27 12:52:12,534 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/0459759d-917a-4b8e-88b3-8b5129651cf7
2025-09-27 12:52:12,543 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d43abdd2-5eac-4b67-9b1e-fca65b233338
2025-09-27 12:52:12,552 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d43abdd2-5eac-4b67-9b1e-fca65b233338
2025-09-27 12:52:12,561 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/3ea86385-651e-4d43-a14d-5bbe6427af2c
2025-09-27 12:52:12,568 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-27 12:52:12,568 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/0459759d-917a-4b8e-88b3-8b5129651cf7
2025-09-27 12:52:12,578 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d43abdd2-5eac-4b67-9b1e-fca65b233338
2025-09-27 12:52:12,594 - INFO - Verified VN network id 11 for VN 0459759d-917a-4b8e-88b3-8b5129651cf7
2025-09-27 12:52:12,594 - INFO - Verifications in API Server for VN ctest-vn-25352346 passed
2025-09-27 12:52:12,594 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/0459759d-917a-4b8e-88b3-8b5129651cf7
2025-09-27 12:52:12,604 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d43abdd2-5eac-4b67-9b1e-fca65b233338
2025-09-27 12:52:12,612 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d43abdd2-5eac-4b67-9b1e-fca65b233338
2025-09-27 12:52:12,619 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/3ea86385-651e-4d43-a14d-5bbe6427af2c
2025-09-27 12:52:12,633 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-29420181:ctest-vn-25352346', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-29420181', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '313410968689986446', 'uuid-lslong': '9850369990692510967'}, 'enable': 'true', 'created': '2025-09-27T12:52:10', 'last-modified': '2025-09-27T12:52:11', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.969381'}
2025-09-27 12:52:12,639 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-27 12:52:12,639 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-25352346 passed
2025-09-27 12:52:12,640 - DEBUG - ====Verifying policy data for ctest-vn-25352346 in API_Server ======
2025-09-27 12:52:12,640 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-09-27 12:52:12,645 - DEBUG - Requesting: http://10.0.0.38:8082/domain/1a096c02-e82c-407f-ad33-cae666f4f191
2025-09-27 12:52:12,657 - DEBUG - Requesting: http://10.0.0.38:8082/project/f98975e2-e16b-4f82-84cd-f619e0355ca4
2025-09-27 12:52:12,733 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/0459759d-917a-4b8e-88b3-8b5129651cf7
2025-09-27 12:52:12,744 - DEBUG - ==>Verifying data for policy with id: 9888b49e-c887-44c6-8410-3b5b85af80ba, fqn: ['default-domain', 'ctest-TestBasicPolicy-29420181', 'ctest-policy-allow-all-20336972']
2025-09-27 12:52:12,744 - INFO - VN ctest-vn-25352346 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-27 12:52:12,744 - DEBUG - Verifying the vn in opserver
2025-09-27 12:52:12,744 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-29420181:ctest-vn-25352346 virtual network link through opserver 10.0.0.38
2025-09-27 12:52:12,744 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-09-27 12:52:13,044 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-09-27 12:52:13,107 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-29420181:ctest-vn-25352346', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-29420181:ctest-vn-25352346?flat'}
2025-09-27 12:52:13,107 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-29420181:ctest-vn-25352346 is found in opserver
2025-09-27 12:52:13,116 - DEBUG - Do not have enough data to verify VN in agent
2025-09-27 12:52:13,121 - DEBUG - VRF ids for VN ctest-vn-25352346: {}
2025-09-27 12:52:13,121 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-09-27 12:52:13,127 - DEBUG - Requesting: http://10.0.0.38:8082/domain/1a096c02-e82c-407f-ad33-cae666f4f191
2025-09-27 12:52:13,139 - DEBUG - Requesting: http://10.0.0.38:8082/project/f98975e2-e16b-4f82-84cd-f619e0355ca4
2025-09-27 12:52:13,210 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/a2833b51-0eb2-4d1f-ad28-8cf56ff3fc6d
2025-09-27 12:52:13,221 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/a2833b51-0eb2-4d1f-ad28-8cf56ff3fc6d
2025-09-27 12:52:13,231 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5d8134a5-8e86-44ec-8e35-bd5f7fe4434c
2025-09-27 12:52:13,239 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5d8134a5-8e86-44ec-8e35-bd5f7fe4434c
2025-09-27 12:52:13,247 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/057dbe73-bc45-4231-b6b4-9bbd6e291f4a
2025-09-27 12:52:13,256 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-27 12:52:13,256 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/a2833b51-0eb2-4d1f-ad28-8cf56ff3fc6d
2025-09-27 12:52:13,268 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5d8134a5-8e86-44ec-8e35-bd5f7fe4434c
2025-09-27 12:52:13,287 - INFO - Verified VN network id 12 for VN a2833b51-0eb2-4d1f-ad28-8cf56ff3fc6d
2025-09-27 12:52:13,287 - INFO - Verifications in API Server for VN ctest-vn-62491414 passed
2025-09-27 12:52:13,287 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/a2833b51-0eb2-4d1f-ad28-8cf56ff3fc6d
2025-09-27 12:52:13,297 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5d8134a5-8e86-44ec-8e35-bd5f7fe4434c
2025-09-27 12:52:13,305 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5d8134a5-8e86-44ec-8e35-bd5f7fe4434c
2025-09-27 12:52:13,312 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/057dbe73-bc45-4231-b6b4-9bbd6e291f4a
2025-09-27 12:52:13,326 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-29420181:ctest-vn-62491414', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-29420181', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11710268675418377503', 'uuid-lslong': '12477377753403096173'}, 'enable': 'true', 'created': '2025-09-27T12:52:10', 'last-modified': '2025-09-27T12:52:11', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.412832'}
2025-09-27 12:52:13,332 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-27 12:52:13,332 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-62491414 passed
2025-09-27 12:52:13,332 - DEBUG - ====Verifying policy data for ctest-vn-62491414 in API_Server ======
2025-09-27 12:52:13,332 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-09-27 12:52:13,337 - DEBUG - Requesting: http://10.0.0.38:8082/domain/1a096c02-e82c-407f-ad33-cae666f4f191
2025-09-27 12:52:13,348 - DEBUG - Requesting: http://10.0.0.38:8082/project/f98975e2-e16b-4f82-84cd-f619e0355ca4
2025-09-27 12:52:13,419 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/a2833b51-0eb2-4d1f-ad28-8cf56ff3fc6d
2025-09-27 12:52:13,428 - DEBUG - ==>Verifying data for policy with id: 9888b49e-c887-44c6-8410-3b5b85af80ba, fqn: ['default-domain', 'ctest-TestBasicPolicy-29420181', 'ctest-policy-allow-all-20336972']
2025-09-27 12:52:13,428 - INFO - VN ctest-vn-62491414 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-27 12:52:13,428 - DEBUG - Verifying the vn in opserver
2025-09-27 12:52:13,428 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-29420181:ctest-vn-62491414 virtual network link through opserver 10.0.0.38
2025-09-27 12:52:13,428 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-09-27 12:52:13,438 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-29420181:ctest-vn-62491414', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-29420181:ctest-vn-62491414?flat'}
2025-09-27 12:52:13,438 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-29420181:ctest-vn-62491414 is found in opserver
2025-09-27 12:52:13,447 - DEBUG - Do not have enough data to verify VN in agent
2025-09-27 12:52:13,452 - DEBUG - VRF ids for VN ctest-vn-62491414: {}
2025-09-27 12:52:13,528 - DEBUG - Services list from nova: [