2025-07-19 07:33:10,548 - INFO - Domain Default found not creating
2025-07-19 07:33:10,706 - INFO - Project ctest-TestBasicPolicy-43416077 not found, creating it
2025-07-19 07:33:11,185 - INFO - Created Project:ctest-TestBasicPolicy-43416077, ID : f12d6711-3f0c-480d-9705-15310e8b2760
2025-07-19 07:33:12,836 - INFO - ================================================================================
2025-07-19 07:33:12,836 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-07-19 07:33:12,836 - 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-07-19 07:33:13,096 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with
2025-07-19 07:33:13,097 - INFO - Initial checks done. Running the testcase now
2025-07-19 07:33:13,097 - INFO -
2025-07-19 07:33:13,729 - DEBUG - Response for create_network : {'network': {'id': '345cd40b-652c-4f1d-8033-3656e13600a8', 'name': 'ctest-vn-24937537', 'tenant_id': 'f12d67113f0c480d970515310e8b2760', 'project_id': 'f12d67113f0c480d970515310e8b2760', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-43416077', 'ctest-vn-24937537'], 'port_security_enabled': True, 'description': ''}}
2025-07-19 07:33:13,985 - DEBUG - Response for create_subnet : {'subnet': {'id': '47de9477-de4f-4456-824e-f444660ea407', 'name': '', 'tenant_id': 'f12d67113f0c480d970515310e8b2760', 'network_id': '345cd40b-652c-4f1d-8033-3656e13600a8', 'ip_version': 4, 'cidr': '150.12.109.192/26', 'allocation_pools': [{'start': '150.12.109.194', 'end': '150.12.109.254'}], 'gateway_ip': '150.12.109.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '150.12.109.194', 'tags': [], 'project_id': 'f12d67113f0c480d970515310e8b2760'}}
2025-07-19 07:33:14,008 - INFO - Created VN ctest-vn-24937537
2025-07-19 07:33:14,066 - DEBUG - VN ctest-vn-24937537 UUID is 345cd40b-652c-4f1d-8033-3656e13600a8
2025-07-19 07:33:14,397 - DEBUG - Response for create_network : {'network': {'id': '068b5e9e-4fb2-4d7c-bcb4-ffd7864e6141', 'name': 'ctest-vn-84001722', 'tenant_id': 'f12d67113f0c480d970515310e8b2760', 'project_id': 'f12d67113f0c480d970515310e8b2760', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-43416077', 'ctest-vn-84001722'], 'port_security_enabled': True, 'description': ''}}
2025-07-19 07:33:14,574 - DEBUG - Response for create_subnet : {'subnet': {'id': '50b3c3b3-9a7c-446f-bb5f-33f7aeb0732f', 'name': '', 'tenant_id': 'f12d67113f0c480d970515310e8b2760', 'network_id': '068b5e9e-4fb2-4d7c-bcb4-ffd7864e6141', 'ip_version': 4, 'cidr': '120.153.91.192/26', 'allocation_pools': [{'start': '120.153.91.194', 'end': '120.153.91.254'}], 'gateway_ip': '120.153.91.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '120.153.91.194', 'tags': [], 'project_id': 'f12d67113f0c480d970515310e8b2760'}}
2025-07-19 07:33:14,598 - INFO - Created VN ctest-vn-84001722
2025-07-19 07:33:14,658 - DEBUG - VN ctest-vn-84001722 UUID is 068b5e9e-4fb2-4d7c-bcb4-ffd7864e6141
2025-07-19 07:33:14,783 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-43416077:ctest-vn-24937537, 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-43416077:ctest-vn-84001722, 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-07-19 07:33:15,138 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '345cd40b-652c-4f1d-8033-3656e13600a8', 'name': 'ctest-vn-24937537', 'tenant_id': 'f12d67113f0c480d970515310e8b2760', 'project_id': 'f12d67113f0c480d970515310e8b2760', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['47de9477-de4f-4456-824e-f444660ea407'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-43416077', 'ctest-vn-24937537'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-43416077', 'ctest-policy-allow-all-84886655']], 'subnet_ipam': [{'subnet_cidr': '150.12.109.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-19 07:33:15,387 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '068b5e9e-4fb2-4d7c-bcb4-ffd7864e6141', 'name': 'ctest-vn-84001722', 'tenant_id': 'f12d67113f0c480d970515310e8b2760', 'project_id': 'f12d67113f0c480d970515310e8b2760', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['50b3c3b3-9a7c-446f-bb5f-33f7aeb0732f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-43416077', 'ctest-vn-84001722'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-43416077', 'ctest-policy-allow-all-84886655']], 'subnet_ipam': [{'subnet_cidr': '120.153.91.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-19 07:33:15,542 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-07-19 07:33:15,898 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-07-19 07:33:15,936 - DEBUG - Requesting: http://10.0.0.254:8082/domain/33cba6ad-7709-449c-9705-23b099e75bbe
2025-07-19 07:33:15,957 - DEBUG - Requesting: http://10.0.0.254:8082/project/f12d6711-3f0c-480d-9705-15310e8b2760
2025-07-19 07:33:16,047 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/345cd40b-652c-4f1d-8033-3656e13600a8
2025-07-19 07:33:16,060 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/345cd40b-652c-4f1d-8033-3656e13600a8
2025-07-19 07:33:16,073 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ab648473-938d-414a-8b39-89b4a06a3d39
2025-07-19 07:33:16,084 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ab648473-938d-414a-8b39-89b4a06a3d39
2025-07-19 07:33:16,095 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/cd802818-7045-4434-9dcd-faae43b2e3c6
2025-07-19 07:33:16,104 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-19 07:33:16,104 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/345cd40b-652c-4f1d-8033-3656e13600a8
2025-07-19 07:33:16,118 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ab648473-938d-414a-8b39-89b4a06a3d39
2025-07-19 07:33:16,138 - INFO - Verified VN network id 8 for VN 345cd40b-652c-4f1d-8033-3656e13600a8
2025-07-19 07:33:16,138 - INFO - Verifications in API Server for VN ctest-vn-24937537 passed
2025-07-19 07:33:16,138 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/345cd40b-652c-4f1d-8033-3656e13600a8
2025-07-19 07:33:16,150 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ab648473-938d-414a-8b39-89b4a06a3d39
2025-07-19 07:33:16,159 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ab648473-938d-414a-8b39-89b4a06a3d39
2025-07-19 07:33:16,167 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/cd802818-7045-4434-9dcd-faae43b2e3c6
2025-07-19 07:33:16,184 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-43416077:ctest-vn-24937537', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-43416077', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3773123733236764445', 'uuid-lslong': '9237787007440519336'}, 'enable': 'true', 'created': '2025-07-19T07:33:13', 'last-modified': '2025-07-19T07:33:15', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.069904'}
2025-07-19 07:33:16,193 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-19 07:33:16,193 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-24937537 passed
2025-07-19 07:33:16,194 - DEBUG - ====Verifying policy data for ctest-vn-24937537 in API_Server ======
2025-07-19 07:33:16,194 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-07-19 07:33:16,202 - DEBUG - Requesting: http://10.0.0.254:8082/domain/33cba6ad-7709-449c-9705-23b099e75bbe
2025-07-19 07:33:16,219 - DEBUG - Requesting: http://10.0.0.254:8082/project/f12d6711-3f0c-480d-9705-15310e8b2760
2025-07-19 07:33:16,298 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/345cd40b-652c-4f1d-8033-3656e13600a8
2025-07-19 07:33:16,311 - DEBUG - ==>Verifying data for policy with id: d0ffc9dd-c775-4b9e-91ab-88b2569b6ab1, fqn: ['default-domain', 'ctest-TestBasicPolicy-43416077', 'ctest-policy-allow-all-84886655']
2025-07-19 07:33:16,311 - INFO - VN ctest-vn-24937537 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-19 07:33:16,311 - DEBUG - Verifying the vn in opserver
2025-07-19 07:33:16,311 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-43416077:ctest-vn-24937537 virtual network link through opserver 10.0.0.254
2025-07-19 07:33:16,311 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-07-19 07:33:16,658 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-07-19 07:33:16,728 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-43416077:ctest-vn-24937537', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-43416077:ctest-vn-24937537?flat'}
2025-07-19 07:33:16,728 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-43416077:ctest-vn-24937537 is found in opserver
2025-07-19 07:33:16,742 - DEBUG - Do not have enough data to verify VN in agent
2025-07-19 07:33:16,748 - DEBUG - VRF ids for VN ctest-vn-24937537: {}
2025-07-19 07:33:16,748 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-07-19 07:33:16,755 - DEBUG - Requesting: http://10.0.0.254:8082/domain/33cba6ad-7709-449c-9705-23b099e75bbe
2025-07-19 07:33:16,770 - DEBUG - Requesting: http://10.0.0.254:8082/project/f12d6711-3f0c-480d-9705-15310e8b2760
2025-07-19 07:33:16,857 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/068b5e9e-4fb2-4d7c-bcb4-ffd7864e6141
2025-07-19 07:33:16,876 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/068b5e9e-4fb2-4d7c-bcb4-ffd7864e6141
2025-07-19 07:33:16,890 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/e6d622f2-8393-440f-a0f0-2f83dd68f5f2
2025-07-19 07:33:16,899 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/e6d622f2-8393-440f-a0f0-2f83dd68f5f2
2025-07-19 07:33:16,908 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/128cd7e1-eaa2-430c-bd27-5f7b6b92d3c3
2025-07-19 07:33:16,917 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-19 07:33:16,917 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/068b5e9e-4fb2-4d7c-bcb4-ffd7864e6141
2025-07-19 07:33:16,931 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/e6d622f2-8393-440f-a0f0-2f83dd68f5f2
2025-07-19 07:33:16,953 - INFO - Verified VN network id 9 for VN 068b5e9e-4fb2-4d7c-bcb4-ffd7864e6141
2025-07-19 07:33:16,953 - INFO - Verifications in API Server for VN ctest-vn-84001722 passed
2025-07-19 07:33:16,953 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/068b5e9e-4fb2-4d7c-bcb4-ffd7864e6141
2025-07-19 07:33:16,965 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/e6d622f2-8393-440f-a0f0-2f83dd68f5f2
2025-07-19 07:33:16,975 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/e6d622f2-8393-440f-a0f0-2f83dd68f5f2
2025-07-19 07:33:16,985 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/128cd7e1-eaa2-430c-bd27-5f7b6b92d3c3
2025-07-19 07:33:16,999 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-43416077:ctest-vn-84001722', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-43416077', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '471574620025277820', 'uuid-lslong': '13597774476074705217'}, 'enable': 'true', 'created': '2025-07-19T07:33:14', 'last-modified': '2025-07-19T07:33:15', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.639016'}
2025-07-19 07:33:17,007 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-19 07:33:17,007 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-84001722 passed
2025-07-19 07:33:17,007 - DEBUG - ====Verifying policy data for ctest-vn-84001722 in API_Server ======
2025-07-19 07:33:17,008 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-07-19 07:33:17,014 - DEBUG - Requesting: http://10.0.0.254:8082/domain/33cba6ad-7709-449c-9705-23b099e75bbe
2025-07-19 07:33:17,032 - DEBUG - Requesting: http://10.0.0.254:8082/project/f12d6711-3f0c-480d-9705-15310e8b2760
2025-07-19 07:33:17,113 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/068b5e9e-4fb2-4d7c-bcb4-ffd7864e6141
2025-07-19 07:33:17,125 - DEBUG - ==>Verifying data for policy with id: d0ffc9dd-c775-4b9e-91ab-88b2569b6ab1, fqn: ['default-domain', 'ctest-TestBasicPolicy-43416077', 'ctest-policy-allow-all-84886655']
2025-07-19 07:33:17,125 - INFO - VN ctest-vn-84001722 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-19 07:33:17,125 - DEBUG - Verifying the vn in opserver
2025-07-19 07:33:17,125 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-43416077:ctest-vn-84001722 virtual network link through opserver 10.0.0.254
2025-07-19 07:33:17,125 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-07-19 07:33:17,137 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-43416077:ctest-vn-84001722', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-43416077:ctest-vn-84001722?flat'}
2025-07-19 07:33:17,137 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-43416077:ctest-vn-84001722 is found in opserver
2025-07-19 07:33:17,149 - DEBUG - Do not have enough data to verify VN in agent
2025-07-19 07:33:17,156 - DEBUG - VRF ids for VN ctest-vn-84001722: {}
2025-07-19 07:33:17,219 - DEBUG - Services list from nova: [