2025-11-01 21:45:18,634 - INFO - Domain Default found not creating
2025-11-01 21:45:18,766 - INFO - Project ctest-TestBasicPolicy-51008526 not found, creating it
2025-11-01 21:45:19,194 - INFO - Created Project:ctest-TestBasicPolicy-51008526, ID : 9c5edebd-d3c0-45a4-a173-44d54a2b4f7d
2025-11-01 21:45:20,585 - INFO - ================================================================================
2025-11-01 21:45:20,585 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-11-01 21:45:20,585 - 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-11-01 21:45:20,839 - DEBUG - Nothing to compare xmpp stats {'10.0.0.65': {'10.20.0.17': '0'}} with
2025-11-01 21:45:20,839 - INFO - Initial checks done. Running the testcase now
2025-11-01 21:45:20,839 - INFO -
2025-11-01 21:45:21,394 - DEBUG - Response for create_network : {'network': {'id': 'e4cefda3-8081-4820-a1c6-ba772e63ccdc', 'name': 'ctest-vn-11264377', 'tenant_id': '9c5edebdd3c045a4a17344d54a2b4f7d', 'project_id': '9c5edebdd3c045a4a17344d54a2b4f7d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-51008526', 'ctest-vn-11264377'], 'port_security_enabled': True, 'description': ''}}
2025-11-01 21:45:21,576 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd2a1f838-f667-4bb4-b5fa-c1bc991876bd', 'name': '', 'tenant_id': '9c5edebdd3c045a4a17344d54a2b4f7d', 'network_id': 'e4cefda3-8081-4820-a1c6-ba772e63ccdc', 'ip_version': 4, 'cidr': '110.222.128.64/26', 'allocation_pools': [{'start': '110.222.128.66', 'end': '110.222.128.126'}], 'gateway_ip': '110.222.128.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '110.222.128.66', 'tags': [], 'project_id': '9c5edebdd3c045a4a17344d54a2b4f7d'}}
2025-11-01 21:45:21,593 - INFO - Created VN ctest-vn-11264377
2025-11-01 21:45:21,645 - DEBUG - VN ctest-vn-11264377 UUID is e4cefda3-8081-4820-a1c6-ba772e63ccdc
2025-11-01 21:45:21,949 - DEBUG - Response for create_network : {'network': {'id': '3eb96920-19a3-4413-8e37-cf77ca404547', 'name': 'ctest-vn-48809782', 'tenant_id': '9c5edebdd3c045a4a17344d54a2b4f7d', 'project_id': '9c5edebdd3c045a4a17344d54a2b4f7d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-51008526', 'ctest-vn-48809782'], 'port_security_enabled': True, 'description': ''}}
2025-11-01 21:45:22,149 - DEBUG - Response for create_subnet : {'subnet': {'id': '9296865f-4ed9-4bc6-bd75-e9c10d2c4f8e', 'name': '', 'tenant_id': '9c5edebdd3c045a4a17344d54a2b4f7d', 'network_id': '3eb96920-19a3-4413-8e37-cf77ca404547', 'ip_version': 4, 'cidr': '121.221.20.0/26', 'allocation_pools': [{'start': '121.221.20.2', 'end': '121.221.20.62'}], 'gateway_ip': '121.221.20.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '121.221.20.2', 'tags': [], 'project_id': '9c5edebdd3c045a4a17344d54a2b4f7d'}}
2025-11-01 21:45:22,163 - INFO - Created VN ctest-vn-48809782
2025-11-01 21:45:22,213 - DEBUG - VN ctest-vn-48809782 UUID is 3eb96920-19a3-4413-8e37-cf77ca404547
2025-11-01 21:45:22,325 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-51008526:ctest-vn-11264377, 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-51008526:ctest-vn-48809782, 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-11-01 21:45:22,602 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e4cefda3-8081-4820-a1c6-ba772e63ccdc', 'name': 'ctest-vn-11264377', 'tenant_id': '9c5edebdd3c045a4a17344d54a2b4f7d', 'project_id': '9c5edebdd3c045a4a17344d54a2b4f7d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d2a1f838-f667-4bb4-b5fa-c1bc991876bd'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-51008526', 'ctest-vn-11264377'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-51008526', 'ctest-policy-allow-all-43889393']], 'subnet_ipam': [{'subnet_cidr': '110.222.128.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-01 21:45:22,861 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3eb96920-19a3-4413-8e37-cf77ca404547', 'name': 'ctest-vn-48809782', 'tenant_id': '9c5edebdd3c045a4a17344d54a2b4f7d', 'project_id': '9c5edebdd3c045a4a17344d54a2b4f7d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9296865f-4ed9-4bc6-bd75-e9c10d2c4f8e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-51008526', 'ctest-vn-48809782'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-51008526', 'ctest-policy-allow-all-43889393']], 'subnet_ipam': [{'subnet_cidr': '121.221.20.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-01 21:45:23,001 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2025-11-01 21:45:23,294 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2025-11-01 21:45:23,323 - DEBUG - Requesting: http://10.0.0.65:8082/domain/fadc4a7a-c5c1-43cf-8285-a5c2f4571ac4
2025-11-01 21:45:23,334 - DEBUG - Requesting: http://10.0.0.65:8082/project/9c5edebd-d3c0-45a4-a173-44d54a2b4f7d
2025-11-01 21:45:23,406 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/e4cefda3-8081-4820-a1c6-ba772e63ccdc
2025-11-01 21:45:23,415 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/e4cefda3-8081-4820-a1c6-ba772e63ccdc
2025-11-01 21:45:23,423 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/dda2c551-20f6-4efa-92d8-32af65a907b5
2025-11-01 21:45:23,429 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/dda2c551-20f6-4efa-92d8-32af65a907b5
2025-11-01 21:45:23,435 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/9c71807c-d7d5-486c-a4e8-0c4cbb7fed44
2025-11-01 21:45:23,440 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-01 21:45:23,440 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/e4cefda3-8081-4820-a1c6-ba772e63ccdc
2025-11-01 21:45:23,447 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/dda2c551-20f6-4efa-92d8-32af65a907b5
2025-11-01 21:45:23,459 - INFO - Verified VN network id 12 for VN e4cefda3-8081-4820-a1c6-ba772e63ccdc
2025-11-01 21:45:23,459 - INFO - Verifications in API Server for VN ctest-vn-11264377 passed
2025-11-01 21:45:23,459 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/e4cefda3-8081-4820-a1c6-ba772e63ccdc
2025-11-01 21:45:23,466 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/dda2c551-20f6-4efa-92d8-32af65a907b5
2025-11-01 21:45:23,472 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/dda2c551-20f6-4efa-92d8-32af65a907b5
2025-11-01 21:45:23,478 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/9c71807c-d7d5-486c-a4e8-0c4cbb7fed44
2025-11-01 21:45:23,487 - DEBUG - Control-node 10.0.0.65 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-51008526:ctest-vn-11264377', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-51008526', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16487394164527417376', 'uuid-lslong': '11657209706537274588'}, 'enable': 'true', 'created': '2025-11-01T21:45:21', 'last-modified': '2025-11-01T21:45:22', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.905258'}
2025-11-01 21:45:23,492 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-01 21:45:23,492 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-11264377 passed
2025-11-01 21:45:23,493 - DEBUG - ====Verifying policy data for ctest-vn-11264377 in API_Server ======
2025-11-01 21:45:23,493 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2025-11-01 21:45:23,497 - DEBUG - Requesting: http://10.0.0.65:8082/domain/fadc4a7a-c5c1-43cf-8285-a5c2f4571ac4
2025-11-01 21:45:23,511 - DEBUG - Requesting: http://10.0.0.65:8082/project/9c5edebd-d3c0-45a4-a173-44d54a2b4f7d
2025-11-01 21:45:23,584 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/e4cefda3-8081-4820-a1c6-ba772e63ccdc
2025-11-01 21:45:23,594 - DEBUG - ==>Verifying data for policy with id: 802a4826-36d6-4b6a-b102-79553516fc56, fqn: ['default-domain', 'ctest-TestBasicPolicy-51008526', 'ctest-policy-allow-all-43889393']
2025-11-01 21:45:23,594 - INFO - VN ctest-vn-11264377 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-01 21:45:23,594 - DEBUG - Verifying the vn in opserver
2025-11-01 21:45:23,594 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-51008526:ctest-vn-11264377 virtual network link through opserver 10.0.0.65
2025-11-01 21:45:23,594 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks
2025-11-01 21:45:23,887 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks
2025-11-01 21:45:23,955 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-51008526:ctest-vn-11264377', 'href': 'http://10.0.0.65:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-51008526:ctest-vn-11264377?flat'}
2025-11-01 21:45:23,955 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-51008526:ctest-vn-11264377 is found in opserver
2025-11-01 21:45:23,964 - DEBUG - Do not have enough data to verify VN in agent
2025-11-01 21:45:23,968 - DEBUG - VRF ids for VN ctest-vn-11264377: {}
2025-11-01 21:45:23,969 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2025-11-01 21:45:23,973 - DEBUG - Requesting: http://10.0.0.65:8082/domain/fadc4a7a-c5c1-43cf-8285-a5c2f4571ac4
2025-11-01 21:45:23,983 - DEBUG - Requesting: http://10.0.0.65:8082/project/9c5edebd-d3c0-45a4-a173-44d54a2b4f7d
2025-11-01 21:45:24,049 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/3eb96920-19a3-4413-8e37-cf77ca404547
2025-11-01 21:45:24,063 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/3eb96920-19a3-4413-8e37-cf77ca404547
2025-11-01 21:45:24,071 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/ee684f79-dbea-40d0-a72e-f92a46276f80
2025-11-01 21:45:24,077 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/ee684f79-dbea-40d0-a72e-f92a46276f80
2025-11-01 21:45:24,083 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/4b89e0ab-801b-4825-b71c-63281606fccc
2025-11-01 21:45:24,089 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-01 21:45:24,089 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/3eb96920-19a3-4413-8e37-cf77ca404547
2025-11-01 21:45:24,098 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/ee684f79-dbea-40d0-a72e-f92a46276f80
2025-11-01 21:45:24,111 - INFO - Verified VN network id 13 for VN 3eb96920-19a3-4413-8e37-cf77ca404547
2025-11-01 21:45:24,112 - INFO - Verifications in API Server for VN ctest-vn-48809782 passed
2025-11-01 21:45:24,112 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/3eb96920-19a3-4413-8e37-cf77ca404547
2025-11-01 21:45:24,121 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/ee684f79-dbea-40d0-a72e-f92a46276f80
2025-11-01 21:45:24,129 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/ee684f79-dbea-40d0-a72e-f92a46276f80
2025-11-01 21:45:24,136 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/4b89e0ab-801b-4825-b71c-63281606fccc
2025-11-01 21:45:24,147 - DEBUG - Control-node 10.0.0.65 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-51008526:ctest-vn-48809782', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-51008526', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4519759287633003539', 'uuid-lslong': '10247887590506120519'}, 'enable': 'true', 'created': '2025-11-01T21:45:21', 'last-modified': '2025-11-01T21:45:22', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.351477'}
2025-11-01 21:45:24,153 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-01 21:45:24,153 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-48809782 passed
2025-11-01 21:45:24,153 - DEBUG - ====Verifying policy data for ctest-vn-48809782 in API_Server ======
2025-11-01 21:45:24,153 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2025-11-01 21:45:24,158 - DEBUG - Requesting: http://10.0.0.65:8082/domain/fadc4a7a-c5c1-43cf-8285-a5c2f4571ac4
2025-11-01 21:45:24,169 - DEBUG - Requesting: http://10.0.0.65:8082/project/9c5edebd-d3c0-45a4-a173-44d54a2b4f7d
2025-11-01 21:45:24,239 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/3eb96920-19a3-4413-8e37-cf77ca404547
2025-11-01 21:45:24,247 - DEBUG - ==>Verifying data for policy with id: 802a4826-36d6-4b6a-b102-79553516fc56, fqn: ['default-domain', 'ctest-TestBasicPolicy-51008526', 'ctest-policy-allow-all-43889393']
2025-11-01 21:45:24,247 - INFO - VN ctest-vn-48809782 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-01 21:45:24,247 - DEBUG - Verifying the vn in opserver
2025-11-01 21:45:24,247 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-51008526:ctest-vn-48809782 virtual network link through opserver 10.0.0.65
2025-11-01 21:45:24,247 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks
2025-11-01 21:45:24,257 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-51008526:ctest-vn-48809782', 'href': 'http://10.0.0.65:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-51008526:ctest-vn-48809782?flat'}
2025-11-01 21:45:24,257 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-51008526:ctest-vn-48809782 is found in opserver
2025-11-01 21:45:24,266 - DEBUG - Do not have enough data to verify VN in agent
2025-11-01 21:45:24,270 - DEBUG - VRF ids for VN ctest-vn-48809782: {}
2025-11-01 21:45:24,328 - DEBUG - Services list from nova: [