2026-09-05 04:39:29,244 - INFO - Domain Default found not creating
2026-09-05 04:39:29,415 - INFO - Project ctest-TestBasicPolicy-94456212 not found, creating it
2026-09-05 04:39:29,923 - INFO - Created Project:ctest-TestBasicPolicy-94456212, ID : 5f6ac871-10e8-4eb8-b3d0-e4d3439d9ead
2026-09-05 04:39:31,664 - INFO - ================================================================================
2026-09-05 04:39:31,664 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-09-05 04:39:31,665 - 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
2026-09-05 04:39:31,936 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.25': '0'}} with
2026-09-05 04:39:31,937 - INFO - Initial checks done. Running the testcase now
2026-09-05 04:39:31,937 - INFO -
2026-09-05 04:39:32,602 - DEBUG - Response for create_network : {'network': {'id': '31a2fd5e-8e55-4391-9e7c-35b8bdb5da6a', 'name': 'ctest-vn-81167282', 'tenant_id': '5f6ac87110e84eb8b3d0e4d3439d9ead', 'project_id': '5f6ac87110e84eb8b3d0e4d3439d9ead', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-94456212', 'ctest-vn-81167282'], 'port_security_enabled': True, 'description': ''}}
2026-09-05 04:39:32,811 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a3487009-b488-4659-b096-15a28b32155d', 'name': '', 'tenant_id': '5f6ac87110e84eb8b3d0e4d3439d9ead', 'network_id': '31a2fd5e-8e55-4391-9e7c-35b8bdb5da6a', 'ip_version': 4, 'cidr': '43.99.28.0/26', 'allocation_pools': [{'start': '43.99.28.2', 'end': '43.99.28.62'}], 'gateway_ip': '43.99.28.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '43.99.28.2', 'tags': [], 'project_id': '5f6ac87110e84eb8b3d0e4d3439d9ead'}}
2026-09-05 04:39:32,831 - INFO - Created VN ctest-vn-81167282
2026-09-05 04:39:32,887 - DEBUG - VN ctest-vn-81167282 UUID is 31a2fd5e-8e55-4391-9e7c-35b8bdb5da6a
2026-09-05 04:39:33,221 - DEBUG - Response for create_network : {'network': {'id': '07dbe96f-1aa6-4dc4-9e88-23ce5a719bc9', 'name': 'ctest-vn-04736841', 'tenant_id': '5f6ac87110e84eb8b3d0e4d3439d9ead', 'project_id': '5f6ac87110e84eb8b3d0e4d3439d9ead', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-94456212', 'ctest-vn-04736841'], 'port_security_enabled': True, 'description': ''}}
2026-09-05 04:39:33,471 - DEBUG - Response for create_subnet : {'subnet': {'id': '6e733814-9bf9-465a-b228-66af8972a91c', 'name': '', 'tenant_id': '5f6ac87110e84eb8b3d0e4d3439d9ead', 'network_id': '07dbe96f-1aa6-4dc4-9e88-23ce5a719bc9', 'ip_version': 4, 'cidr': '184.211.66.192/26', 'allocation_pools': [{'start': '184.211.66.194', 'end': '184.211.66.254'}], 'gateway_ip': '184.211.66.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '184.211.66.194', 'tags': [], 'project_id': '5f6ac87110e84eb8b3d0e4d3439d9ead'}}
2026-09-05 04:39:33,492 - INFO - Created VN ctest-vn-04736841
2026-09-05 04:39:33,547 - DEBUG - VN ctest-vn-04736841 UUID is 07dbe96f-1aa6-4dc4-9e88-23ce5a719bc9
2026-09-05 04:39:33,665 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-94456212:ctest-vn-81167282, 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-94456212:ctest-vn-04736841, 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]
2026-09-05 04:39:33,992 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '31a2fd5e-8e55-4391-9e7c-35b8bdb5da6a', 'name': 'ctest-vn-81167282', 'tenant_id': '5f6ac87110e84eb8b3d0e4d3439d9ead', 'project_id': '5f6ac87110e84eb8b3d0e4d3439d9ead', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['a3487009-b488-4659-b096-15a28b32155d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-94456212', 'ctest-vn-81167282'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-94456212', 'ctest-policy-allow-all-83904808']], 'subnet_ipam': [{'subnet_cidr': '43.99.28.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-09-05 04:39:34,239 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '07dbe96f-1aa6-4dc4-9e88-23ce5a719bc9', 'name': 'ctest-vn-04736841', 'tenant_id': '5f6ac87110e84eb8b3d0e4d3439d9ead', 'project_id': '5f6ac87110e84eb8b3d0e4d3439d9ead', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['6e733814-9bf9-465a-b228-66af8972a91c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-94456212', 'ctest-vn-04736841'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-94456212', 'ctest-policy-allow-all-83904808']], 'subnet_ipam': [{'subnet_cidr': '184.211.66.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-09-05 04:39:34,371 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-09-05 04:39:34,753 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-09-05 04:39:34,787 - DEBUG - Requesting: http://10.0.0.50:8082/domain/0273205d-36da-48de-9b34-72140a674878
2026-09-05 04:39:34,801 - DEBUG - Requesting: http://10.0.0.50:8082/project/5f6ac871-10e8-4eb8-b3d0-e4d3439d9ead
2026-09-05 04:39:34,885 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/31a2fd5e-8e55-4391-9e7c-35b8bdb5da6a
2026-09-05 04:39:34,898 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/31a2fd5e-8e55-4391-9e7c-35b8bdb5da6a
2026-09-05 04:39:34,909 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/60c34c84-4dc0-4b19-944c-f2baea576a38
2026-09-05 04:39:34,919 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/60c34c84-4dc0-4b19-944c-f2baea576a38
2026-09-05 04:39:34,928 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/4c804f49-8a98-45f2-949d-fc0fa940d832
2026-09-05 04:39:34,936 - DEBUG - Route Targets: ['target:64512:8000005']
2026-09-05 04:39:34,936 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/31a2fd5e-8e55-4391-9e7c-35b8bdb5da6a
2026-09-05 04:39:34,947 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/60c34c84-4dc0-4b19-944c-f2baea576a38
2026-09-05 04:39:34,963 - INFO - Verified VN network id 12 for VN 31a2fd5e-8e55-4391-9e7c-35b8bdb5da6a
2026-09-05 04:39:34,963 - INFO - Verifications in API Server for VN ctest-vn-81167282 passed
2026-09-05 04:39:34,963 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/31a2fd5e-8e55-4391-9e7c-35b8bdb5da6a
2026-09-05 04:39:34,973 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/60c34c84-4dc0-4b19-944c-f2baea576a38
2026-09-05 04:39:34,982 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/60c34c84-4dc0-4b19-944c-f2baea576a38
2026-09-05 04:39:34,990 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/4c804f49-8a98-45f2-949d-fc0fa940d832
2026-09-05 04:39:35,005 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-94456212:ctest-vn-81167282', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-94456212', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3576699636642300817', 'uuid-lslong': '11420061822677801578'}, 'enable': 'true', 'created': '2026-09-05T04:39:32', 'last-modified': '2026-09-05T04:39:33', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.040191'}
2026-09-05 04:39:35,014 - DEBUG - Route Targets: ['target:64512:8000005']
2026-09-05 04:39:35,014 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-81167282 passed
2026-09-05 04:39:35,014 - DEBUG - ====Verifying policy data for ctest-vn-81167282 in API_Server ======
2026-09-05 04:39:35,014 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-09-05 04:39:35,021 - DEBUG - Requesting: http://10.0.0.50:8082/domain/0273205d-36da-48de-9b34-72140a674878
2026-09-05 04:39:35,032 - DEBUG - Requesting: http://10.0.0.50:8082/project/5f6ac871-10e8-4eb8-b3d0-e4d3439d9ead
2026-09-05 04:39:35,108 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/31a2fd5e-8e55-4391-9e7c-35b8bdb5da6a
2026-09-05 04:39:35,119 - DEBUG - ==>Verifying data for policy with id: ff13e9d1-2b88-4040-a51f-17e0a197bd14, fqn: ['default-domain', 'ctest-TestBasicPolicy-94456212', 'ctest-policy-allow-all-83904808']
2026-09-05 04:39:35,119 - INFO - VN ctest-vn-81167282 Policy verification: verify_vn_policy_in_api_server, status: True
2026-09-05 04:39:35,119 - DEBUG - Verifying the vn in opserver
2026-09-05 04:39:35,120 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-94456212:ctest-vn-81167282 virtual network link through opserver 10.0.0.50
2026-09-05 04:39:35,120 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-09-05 04:39:35,496 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-09-05 04:39:35,558 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-94456212:ctest-vn-81167282', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-94456212:ctest-vn-81167282?flat'}
2026-09-05 04:39:35,558 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-94456212:ctest-vn-81167282 is found in opserver
2026-09-05 04:39:35,571 - DEBUG - Do not have enough data to verify VN in agent
2026-09-05 04:39:35,576 - DEBUG - VRF ids for VN ctest-vn-81167282: {}
2026-09-05 04:39:35,576 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-09-05 04:39:35,583 - DEBUG - Requesting: http://10.0.0.50:8082/domain/0273205d-36da-48de-9b34-72140a674878
2026-09-05 04:39:35,595 - DEBUG - Requesting: http://10.0.0.50:8082/project/5f6ac871-10e8-4eb8-b3d0-e4d3439d9ead
2026-09-05 04:39:35,675 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/07dbe96f-1aa6-4dc4-9e88-23ce5a719bc9
2026-09-05 04:39:35,692 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/07dbe96f-1aa6-4dc4-9e88-23ce5a719bc9
2026-09-05 04:39:35,705 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/a12dec5f-d9ff-4403-921a-9474d1cca176
2026-09-05 04:39:35,713 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/a12dec5f-d9ff-4403-921a-9474d1cca176
2026-09-05 04:39:35,721 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/239a42bc-0642-4574-9c8f-584bedd2ce47
2026-09-05 04:39:35,729 - DEBUG - Route Targets: ['target:64512:8000006']
2026-09-05 04:39:35,729 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/07dbe96f-1aa6-4dc4-9e88-23ce5a719bc9
2026-09-05 04:39:35,739 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/a12dec5f-d9ff-4403-921a-9474d1cca176
2026-09-05 04:39:35,755 - INFO - Verified VN network id 13 for VN 07dbe96f-1aa6-4dc4-9e88-23ce5a719bc9
2026-09-05 04:39:35,755 - INFO - Verifications in API Server for VN ctest-vn-04736841 passed
2026-09-05 04:39:35,755 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/07dbe96f-1aa6-4dc4-9e88-23ce5a719bc9
2026-09-05 04:39:35,767 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/a12dec5f-d9ff-4403-921a-9474d1cca176
2026-09-05 04:39:35,776 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/a12dec5f-d9ff-4403-921a-9474d1cca176
2026-09-05 04:39:35,783 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/239a42bc-0642-4574-9c8f-584bedd2ce47
2026-09-05 04:39:35,804 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-94456212:ctest-vn-04736841', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-94456212', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '566302841562877380', 'uuid-lslong': '11423419824012893129'}, 'enable': 'true', 'created': '2026-09-05T04:39:33', 'last-modified': '2026-09-05T04:39:34', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.597321'}
2026-09-05 04:39:35,813 - DEBUG - Route Targets: ['target:64512:8000006']
2026-09-05 04:39:35,813 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-04736841 passed
2026-09-05 04:39:35,814 - DEBUG - ====Verifying policy data for ctest-vn-04736841 in API_Server ======
2026-09-05 04:39:35,814 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-09-05 04:39:35,820 - DEBUG - Requesting: http://10.0.0.50:8082/domain/0273205d-36da-48de-9b34-72140a674878
2026-09-05 04:39:35,831 - DEBUG - Requesting: http://10.0.0.50:8082/project/5f6ac871-10e8-4eb8-b3d0-e4d3439d9ead
2026-09-05 04:39:35,909 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/07dbe96f-1aa6-4dc4-9e88-23ce5a719bc9
2026-09-05 04:39:35,919 - DEBUG - ==>Verifying data for policy with id: ff13e9d1-2b88-4040-a51f-17e0a197bd14, fqn: ['default-domain', 'ctest-TestBasicPolicy-94456212', 'ctest-policy-allow-all-83904808']
2026-09-05 04:39:35,919 - INFO - VN ctest-vn-04736841 Policy verification: verify_vn_policy_in_api_server, status: True
2026-09-05 04:39:35,919 - DEBUG - Verifying the vn in opserver
2026-09-05 04:39:35,919 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-94456212:ctest-vn-04736841 virtual network link through opserver 10.0.0.50
2026-09-05 04:39:35,919 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-09-05 04:39:35,930 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-94456212:ctest-vn-04736841', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-94456212:ctest-vn-04736841?flat'}
2026-09-05 04:39:35,930 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-94456212:ctest-vn-04736841 is found in opserver
2026-09-05 04:39:35,946 - DEBUG - Do not have enough data to verify VN in agent
2026-09-05 04:39:35,952 - DEBUG - VRF ids for VN ctest-vn-04736841: {}
2026-09-05 04:39:36,034 - DEBUG - Services list from nova: [