2025-09-19 04:09:32,135 - INFO - Domain Default found not creating
2025-09-19 04:09:32,263 - INFO - Project ctest-TestBasicPolicy-26209453 not found, creating it
2025-09-19 04:09:32,716 - INFO - Created Project:ctest-TestBasicPolicy-26209453, ID : b8540266-05e5-4b85-a6b3-3f8d0bf3f984
2025-09-19 04:09:34,047 - INFO - ================================================================================
2025-09-19 04:09:34,047 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-09-19 04:09:34,047 - 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-19 04:09:34,310 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.17': '0'}} with
2025-09-19 04:09:34,310 - INFO - Initial checks done. Running the testcase now
2025-09-19 04:09:34,310 - INFO -
2025-09-19 04:09:34,813 - DEBUG - Response for create_network : {'network': {'id': '308cfd0a-b82c-4609-9204-88e0eb04934e', 'name': 'ctest-vn-04173403', 'tenant_id': 'b854026605e54b85a6b33f8d0bf3f984', 'project_id': 'b854026605e54b85a6b33f8d0bf3f984', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-26209453', 'ctest-vn-04173403'], 'port_security_enabled': True, 'description': ''}}
2025-09-19 04:09:34,989 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd2e0103b-3a50-42fe-be73-d6edc9a99b1e', 'name': '', 'tenant_id': 'b854026605e54b85a6b33f8d0bf3f984', 'network_id': '308cfd0a-b82c-4609-9204-88e0eb04934e', 'ip_version': 4, 'cidr': '46.205.241.64/26', 'allocation_pools': [{'start': '46.205.241.66', 'end': '46.205.241.126'}], 'gateway_ip': '46.205.241.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '46.205.241.66', 'tags': [], 'project_id': 'b854026605e54b85a6b33f8d0bf3f984'}}
2025-09-19 04:09:35,004 - INFO - Created VN ctest-vn-04173403
2025-09-19 04:09:35,054 - DEBUG - VN ctest-vn-04173403 UUID is 308cfd0a-b82c-4609-9204-88e0eb04934e
2025-09-19 04:09:35,645 - DEBUG - Response for create_network : {'network': {'id': 'e2698d60-d6ad-44cb-8dc2-1f24117240f6', 'name': 'ctest-vn-20469429', 'tenant_id': 'b854026605e54b85a6b33f8d0bf3f984', 'project_id': 'b854026605e54b85a6b33f8d0bf3f984', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-26209453', 'ctest-vn-20469429'], 'port_security_enabled': True, 'description': ''}}
2025-09-19 04:09:36,037 - DEBUG - Response for create_subnet : {'subnet': {'id': '4f147b48-953b-483b-9b1a-3cb920505ccf', 'name': '', 'tenant_id': 'b854026605e54b85a6b33f8d0bf3f984', 'network_id': 'e2698d60-d6ad-44cb-8dc2-1f24117240f6', 'ip_version': 4, 'cidr': '172.185.165.128/26', 'allocation_pools': [{'start': '172.185.165.130', 'end': '172.185.165.190'}], 'gateway_ip': '172.185.165.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '172.185.165.130', 'tags': [], 'project_id': 'b854026605e54b85a6b33f8d0bf3f984'}}
2025-09-19 04:09:36,054 - INFO - Created VN ctest-vn-20469429
2025-09-19 04:09:36,105 - DEBUG - VN ctest-vn-20469429 UUID is e2698d60-d6ad-44cb-8dc2-1f24117240f6
2025-09-19 04:09:36,253 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-26209453:ctest-vn-04173403, 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-26209453:ctest-vn-20469429, 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-19 04:09:36,549 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '308cfd0a-b82c-4609-9204-88e0eb04934e', 'name': 'ctest-vn-04173403', 'tenant_id': 'b854026605e54b85a6b33f8d0bf3f984', 'project_id': 'b854026605e54b85a6b33f8d0bf3f984', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d2e0103b-3a50-42fe-be73-d6edc9a99b1e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-26209453', 'ctest-vn-04173403'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-26209453', 'ctest-policy-allow-all-03420186']], 'subnet_ipam': [{'subnet_cidr': '46.205.241.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-19 04:09:36,831 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e2698d60-d6ad-44cb-8dc2-1f24117240f6', 'name': 'ctest-vn-20469429', 'tenant_id': 'b854026605e54b85a6b33f8d0bf3f984', 'project_id': 'b854026605e54b85a6b33f8d0bf3f984', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4f147b48-953b-483b-9b1a-3cb920505ccf'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-26209453', 'ctest-vn-20469429'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-26209453', 'ctest-policy-allow-all-03420186']], 'subnet_ipam': [{'subnet_cidr': '172.185.165.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-19 04:09:36,977 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-09-19 04:09:37,290 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-09-19 04:09:37,319 - DEBUG - Requesting: http://10.0.0.33:8082/domain/96d7bd12-f6f6-4213-99d0-b74e6e816b9a
2025-09-19 04:09:37,333 - DEBUG - Requesting: http://10.0.0.33:8082/project/b8540266-05e5-4b85-a6b3-3f8d0bf3f984
2025-09-19 04:09:37,414 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/308cfd0a-b82c-4609-9204-88e0eb04934e
2025-09-19 04:09:37,427 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/308cfd0a-b82c-4609-9204-88e0eb04934e
2025-09-19 04:09:37,438 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/1f7f94d3-b394-4b1d-8d67-6edc6c50a7c1
2025-09-19 04:09:37,446 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/1f7f94d3-b394-4b1d-8d67-6edc6c50a7c1
2025-09-19 04:09:37,452 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/85b61710-b09b-405c-9d80-64b35f5c874c
2025-09-19 04:09:37,458 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-19 04:09:37,458 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/308cfd0a-b82c-4609-9204-88e0eb04934e
2025-09-19 04:09:37,467 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/1f7f94d3-b394-4b1d-8d67-6edc6c50a7c1
2025-09-19 04:09:37,482 - INFO - Verified VN network id 10 for VN 308cfd0a-b82c-4609-9204-88e0eb04934e
2025-09-19 04:09:37,482 - INFO - Verifications in API Server for VN ctest-vn-04173403 passed
2025-09-19 04:09:37,483 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/308cfd0a-b82c-4609-9204-88e0eb04934e
2025-09-19 04:09:37,491 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/1f7f94d3-b394-4b1d-8d67-6edc6c50a7c1
2025-09-19 04:09:37,500 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/1f7f94d3-b394-4b1d-8d67-6edc6c50a7c1
2025-09-19 04:09:37,508 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/85b61710-b09b-405c-9d80-64b35f5c874c
2025-09-19 04:09:37,522 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-26209453:ctest-vn-04173403', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-26209453', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3498449233041442313', 'uuid-lslong': '10521685129041318734'}, 'enable': 'true', 'created': '2025-09-19T04:09:34', 'last-modified': '2025-09-19T04:09:36', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.993809'}
2025-09-19 04:09:37,529 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-19 04:09:37,529 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-04173403 passed
2025-09-19 04:09:37,529 - DEBUG - ====Verifying policy data for ctest-vn-04173403 in API_Server ======
2025-09-19 04:09:37,529 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-09-19 04:09:37,535 - DEBUG - Requesting: http://10.0.0.33:8082/domain/96d7bd12-f6f6-4213-99d0-b74e6e816b9a
2025-09-19 04:09:37,545 - DEBUG - Requesting: http://10.0.0.33:8082/project/b8540266-05e5-4b85-a6b3-3f8d0bf3f984
2025-09-19 04:09:37,616 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/308cfd0a-b82c-4609-9204-88e0eb04934e
2025-09-19 04:09:37,624 - DEBUG - ==>Verifying data for policy with id: 7ea2ab0a-f7d2-49f4-b9c0-dc9e111f25e9, fqn: ['default-domain', 'ctest-TestBasicPolicy-26209453', 'ctest-policy-allow-all-03420186']
2025-09-19 04:09:37,625 - INFO - VN ctest-vn-04173403 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-19 04:09:37,625 - DEBUG - Verifying the vn in opserver
2025-09-19 04:09:37,625 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-26209453:ctest-vn-04173403 virtual network link through opserver 10.0.0.33
2025-09-19 04:09:37,625 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-09-19 04:09:37,912 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-09-19 04:09:37,965 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-26209453:ctest-vn-04173403', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-26209453:ctest-vn-04173403?flat'}
2025-09-19 04:09:37,965 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-26209453:ctest-vn-04173403 is found in opserver
2025-09-19 04:09:37,976 - DEBUG - Do not have enough data to verify VN in agent
2025-09-19 04:09:37,981 - DEBUG - VRF ids for VN ctest-vn-04173403: {}
2025-09-19 04:09:37,982 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-09-19 04:09:37,987 - DEBUG - Requesting: http://10.0.0.33:8082/domain/96d7bd12-f6f6-4213-99d0-b74e6e816b9a
2025-09-19 04:09:37,999 - DEBUG - Requesting: http://10.0.0.33:8082/project/b8540266-05e5-4b85-a6b3-3f8d0bf3f984
2025-09-19 04:09:38,075 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/e2698d60-d6ad-44cb-8dc2-1f24117240f6
2025-09-19 04:09:38,087 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/e2698d60-d6ad-44cb-8dc2-1f24117240f6
2025-09-19 04:09:38,098 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/ed3762a3-959f-47da-a5e6-f5467e31601c
2025-09-19 04:09:38,105 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/ed3762a3-959f-47da-a5e6-f5467e31601c
2025-09-19 04:09:38,113 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/08578ebe-09a8-4d8e-bf76-75e4fc6130c4
2025-09-19 04:09:38,120 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-19 04:09:38,120 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/e2698d60-d6ad-44cb-8dc2-1f24117240f6
2025-09-19 04:09:38,129 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/ed3762a3-959f-47da-a5e6-f5467e31601c
2025-09-19 04:09:38,142 - INFO - Verified VN network id 11 for VN e2698d60-d6ad-44cb-8dc2-1f24117240f6
2025-09-19 04:09:38,142 - INFO - Verifications in API Server for VN ctest-vn-20469429 passed
2025-09-19 04:09:38,142 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/e2698d60-d6ad-44cb-8dc2-1f24117240f6
2025-09-19 04:09:38,151 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/ed3762a3-959f-47da-a5e6-f5467e31601c
2025-09-19 04:09:38,159 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/ed3762a3-959f-47da-a5e6-f5467e31601c
2025-09-19 04:09:38,168 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/08578ebe-09a8-4d8e-bf76-75e4fc6130c4
2025-09-19 04:09:38,180 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-26209453:ctest-vn-20469429', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-26209453', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16314726572184388811', 'uuid-lslong': '10214761144601690358'}, 'enable': 'true', 'created': '2025-09-19T04:09:35', 'last-modified': '2025-09-19T04:09:36', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.422086'}
2025-09-19 04:09:38,187 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-19 04:09:38,187 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-20469429 passed
2025-09-19 04:09:38,188 - DEBUG - ====Verifying policy data for ctest-vn-20469429 in API_Server ======
2025-09-19 04:09:38,188 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-09-19 04:09:38,195 - DEBUG - Requesting: http://10.0.0.33:8082/domain/96d7bd12-f6f6-4213-99d0-b74e6e816b9a
2025-09-19 04:09:38,206 - DEBUG - Requesting: http://10.0.0.33:8082/project/b8540266-05e5-4b85-a6b3-3f8d0bf3f984
2025-09-19 04:09:38,276 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/e2698d60-d6ad-44cb-8dc2-1f24117240f6
2025-09-19 04:09:38,286 - DEBUG - ==>Verifying data for policy with id: 7ea2ab0a-f7d2-49f4-b9c0-dc9e111f25e9, fqn: ['default-domain', 'ctest-TestBasicPolicy-26209453', 'ctest-policy-allow-all-03420186']
2025-09-19 04:09:38,286 - INFO - VN ctest-vn-20469429 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-19 04:09:38,286 - DEBUG - Verifying the vn in opserver
2025-09-19 04:09:38,286 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-26209453:ctest-vn-20469429 virtual network link through opserver 10.0.0.33
2025-09-19 04:09:38,286 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-09-19 04:09:38,295 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-26209453:ctest-vn-20469429', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-26209453:ctest-vn-20469429?flat'}
2025-09-19 04:09:38,295 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-26209453:ctest-vn-20469429 is found in opserver
2025-09-19 04:09:38,305 - DEBUG - Do not have enough data to verify VN in agent
2025-09-19 04:09:38,311 - DEBUG - VRF ids for VN ctest-vn-20469429: {}
2025-09-19 04:09:38,371 - DEBUG - Services list from nova: [