2025-11-03 09:02:11,026 - INFO - Domain Default found not creating
2025-11-03 09:02:11,163 - INFO - Project ctest-TestBasicPolicy-20571362 not found, creating it
2025-11-03 09:02:11,585 - INFO - Created Project:ctest-TestBasicPolicy-20571362, ID : 8fe85c20-6c1d-4050-8b6b-d0fe04af1fb4
2025-11-03 09:02:12,937 - INFO - ================================================================================
2025-11-03 09:02:12,938 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-11-03 09:02:12,938 - 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-03 09:02:13,192 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with
2025-11-03 09:02:13,192 - INFO - Initial checks done. Running the testcase now
2025-11-03 09:02:13,192 - INFO -
2025-11-03 09:02:13,713 - DEBUG - Response for create_network : {'network': {'id': '5072ebe8-c5dd-4bb4-9b2a-317f1c976a6c', 'name': 'ctest-vn-39787055', 'tenant_id': '8fe85c206c1d40508b6bd0fe04af1fb4', 'project_id': '8fe85c206c1d40508b6bd0fe04af1fb4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-20571362', 'ctest-vn-39787055'], 'port_security_enabled': True, 'description': ''}}
2025-11-03 09:02:13,870 - DEBUG - Response for create_subnet : {'subnet': {'id': 'dd931248-1453-4370-b011-19340220b671', 'name': '', 'tenant_id': '8fe85c206c1d40508b6bd0fe04af1fb4', 'network_id': '5072ebe8-c5dd-4bb4-9b2a-317f1c976a6c', 'ip_version': 4, 'cidr': '180.148.28.192/26', 'allocation_pools': [{'start': '180.148.28.194', 'end': '180.148.28.254'}], 'gateway_ip': '180.148.28.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '180.148.28.194', 'tags': [], 'project_id': '8fe85c206c1d40508b6bd0fe04af1fb4'}}
2025-11-03 09:02:13,886 - INFO - Created VN ctest-vn-39787055
2025-11-03 09:02:13,938 - DEBUG - VN ctest-vn-39787055 UUID is 5072ebe8-c5dd-4bb4-9b2a-317f1c976a6c
2025-11-03 09:02:14,265 - DEBUG - Response for create_network : {'network': {'id': '2d796c66-d5b7-439a-942a-4b233ede9214', 'name': 'ctest-vn-73314077', 'tenant_id': '8fe85c206c1d40508b6bd0fe04af1fb4', 'project_id': '8fe85c206c1d40508b6bd0fe04af1fb4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-20571362', 'ctest-vn-73314077'], 'port_security_enabled': True, 'description': ''}}
2025-11-03 09:02:14,443 - DEBUG - Response for create_subnet : {'subnet': {'id': '8a923f9e-f157-4038-b20d-502cc775a142', 'name': '', 'tenant_id': '8fe85c206c1d40508b6bd0fe04af1fb4', 'network_id': '2d796c66-d5b7-439a-942a-4b233ede9214', 'ip_version': 4, 'cidr': '137.5.245.192/26', 'allocation_pools': [{'start': '137.5.245.194', 'end': '137.5.245.254'}], 'gateway_ip': '137.5.245.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '137.5.245.194', 'tags': [], 'project_id': '8fe85c206c1d40508b6bd0fe04af1fb4'}}
2025-11-03 09:02:14,459 - INFO - Created VN ctest-vn-73314077
2025-11-03 09:02:14,514 - DEBUG - VN ctest-vn-73314077 UUID is 2d796c66-d5b7-439a-942a-4b233ede9214
2025-11-03 09:02:14,662 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-20571362:ctest-vn-39787055, 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-20571362:ctest-vn-73314077, 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-03 09:02:14,943 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5072ebe8-c5dd-4bb4-9b2a-317f1c976a6c', 'name': 'ctest-vn-39787055', 'tenant_id': '8fe85c206c1d40508b6bd0fe04af1fb4', 'project_id': '8fe85c206c1d40508b6bd0fe04af1fb4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['dd931248-1453-4370-b011-19340220b671'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-20571362', 'ctest-vn-39787055'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-20571362', 'ctest-policy-allow-all-40247126']], 'subnet_ipam': [{'subnet_cidr': '180.148.28.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-03 09:02:15,204 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2d796c66-d5b7-439a-942a-4b233ede9214', 'name': 'ctest-vn-73314077', 'tenant_id': '8fe85c206c1d40508b6bd0fe04af1fb4', 'project_id': '8fe85c206c1d40508b6bd0fe04af1fb4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8a923f9e-f157-4038-b20d-502cc775a142'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-20571362', 'ctest-vn-73314077'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-20571362', 'ctest-policy-allow-all-40247126']], 'subnet_ipam': [{'subnet_cidr': '137.5.245.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-03 09:02:15,350 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-11-03 09:02:15,643 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-11-03 09:02:15,671 - DEBUG - Requesting: http://10.0.0.50:8082/domain/7b9671e6-7842-4940-b3ba-80ad20f267fc
2025-11-03 09:02:15,682 - DEBUG - Requesting: http://10.0.0.50:8082/project/8fe85c20-6c1d-4050-8b6b-d0fe04af1fb4
2025-11-03 09:02:15,751 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/5072ebe8-c5dd-4bb4-9b2a-317f1c976a6c
2025-11-03 09:02:15,760 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/5072ebe8-c5dd-4bb4-9b2a-317f1c976a6c
2025-11-03 09:02:15,768 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/d0f903d8-8a08-4b09-8487-b588778651a1
2025-11-03 09:02:15,773 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/d0f903d8-8a08-4b09-8487-b588778651a1
2025-11-03 09:02:15,779 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/b6031bd6-5ba3-4949-b2eb-f646fcb58f3f
2025-11-03 09:02:15,784 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-03 09:02:15,784 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/5072ebe8-c5dd-4bb4-9b2a-317f1c976a6c
2025-11-03 09:02:15,792 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/d0f903d8-8a08-4b09-8487-b588778651a1
2025-11-03 09:02:15,804 - INFO - Verified VN network id 12 for VN 5072ebe8-c5dd-4bb4-9b2a-317f1c976a6c
2025-11-03 09:02:15,804 - INFO - Verifications in API Server for VN ctest-vn-39787055 passed
2025-11-03 09:02:15,804 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/5072ebe8-c5dd-4bb4-9b2a-317f1c976a6c
2025-11-03 09:02:15,812 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/d0f903d8-8a08-4b09-8487-b588778651a1
2025-11-03 09:02:15,818 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/d0f903d8-8a08-4b09-8487-b588778651a1
2025-11-03 09:02:15,824 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/b6031bd6-5ba3-4949-b2eb-f646fcb58f3f
2025-11-03 09:02:15,833 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-20571362:ctest-vn-39787055', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-20571362', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5796955055363804084', 'uuid-lslong': '11180803446910970476'}, 'enable': 'true', 'created': '2025-11-03T09:02:13', 'last-modified': '2025-11-03T09:02:14', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.908592'}
2025-11-03 09:02:15,838 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-03 09:02:15,838 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-39787055 passed
2025-11-03 09:02:15,839 - DEBUG - ====Verifying policy data for ctest-vn-39787055 in API_Server ======
2025-11-03 09:02:15,839 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-11-03 09:02:15,843 - DEBUG - Requesting: http://10.0.0.50:8082/domain/7b9671e6-7842-4940-b3ba-80ad20f267fc
2025-11-03 09:02:15,853 - DEBUG - Requesting: http://10.0.0.50:8082/project/8fe85c20-6c1d-4050-8b6b-d0fe04af1fb4
2025-11-03 09:02:15,923 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/5072ebe8-c5dd-4bb4-9b2a-317f1c976a6c
2025-11-03 09:02:15,933 - DEBUG - ==>Verifying data for policy with id: 1942f214-1e53-49e7-8163-142046b76836, fqn: ['default-domain', 'ctest-TestBasicPolicy-20571362', 'ctest-policy-allow-all-40247126']
2025-11-03 09:02:15,933 - INFO - VN ctest-vn-39787055 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-03 09:02:15,933 - DEBUG - Verifying the vn in opserver
2025-11-03 09:02:15,933 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-20571362:ctest-vn-39787055 virtual network link through opserver 10.0.0.50
2025-11-03 09:02:15,933 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-11-03 09:02:16,226 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-11-03 09:02:16,280 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-20571362:ctest-vn-39787055', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-20571362:ctest-vn-39787055?flat'}
2025-11-03 09:02:16,280 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-20571362:ctest-vn-39787055 is found in opserver
2025-11-03 09:02:16,290 - DEBUG - Do not have enough data to verify VN in agent
2025-11-03 09:02:16,294 - DEBUG - VRF ids for VN ctest-vn-39787055: {}
2025-11-03 09:02:16,294 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-11-03 09:02:16,299 - DEBUG - Requesting: http://10.0.0.50:8082/domain/7b9671e6-7842-4940-b3ba-80ad20f267fc
2025-11-03 09:02:16,309 - DEBUG - Requesting: http://10.0.0.50:8082/project/8fe85c20-6c1d-4050-8b6b-d0fe04af1fb4
2025-11-03 09:02:16,377 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/2d796c66-d5b7-439a-942a-4b233ede9214
2025-11-03 09:02:16,392 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/2d796c66-d5b7-439a-942a-4b233ede9214
2025-11-03 09:02:16,400 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/375e2aff-74b0-41fb-bb1d-6ccf46d38f1f
2025-11-03 09:02:16,406 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/375e2aff-74b0-41fb-bb1d-6ccf46d38f1f
2025-11-03 09:02:16,411 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/22fbb96f-95e0-4db8-97d7-5cd35a69c705
2025-11-03 09:02:16,417 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-03 09:02:16,417 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/2d796c66-d5b7-439a-942a-4b233ede9214
2025-11-03 09:02:16,425 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/375e2aff-74b0-41fb-bb1d-6ccf46d38f1f
2025-11-03 09:02:16,436 - INFO - Verified VN network id 13 for VN 2d796c66-d5b7-439a-942a-4b233ede9214
2025-11-03 09:02:16,436 - INFO - Verifications in API Server for VN ctest-vn-73314077 passed
2025-11-03 09:02:16,436 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/2d796c66-d5b7-439a-942a-4b233ede9214
2025-11-03 09:02:16,444 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/375e2aff-74b0-41fb-bb1d-6ccf46d38f1f
2025-11-03 09:02:16,449 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/375e2aff-74b0-41fb-bb1d-6ccf46d38f1f
2025-11-03 09:02:16,454 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/22fbb96f-95e0-4db8-97d7-5cd35a69c705
2025-11-03 09:02:16,463 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-20571362:ctest-vn-73314077', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-20571362', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3276769392816767898', 'uuid-lslong': '10676428481385894420'}, 'enable': 'true', 'created': '2025-11-03T09:02:14', 'last-modified': '2025-11-03T09:02:15', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.320384'}
2025-11-03 09:02:16,468 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-03 09:02:16,468 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-73314077 passed
2025-11-03 09:02:16,468 - DEBUG - ====Verifying policy data for ctest-vn-73314077 in API_Server ======
2025-11-03 09:02:16,468 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-11-03 09:02:16,473 - DEBUG - Requesting: http://10.0.0.50:8082/domain/7b9671e6-7842-4940-b3ba-80ad20f267fc
2025-11-03 09:02:16,481 - DEBUG - Requesting: http://10.0.0.50:8082/project/8fe85c20-6c1d-4050-8b6b-d0fe04af1fb4
2025-11-03 09:02:16,558 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/2d796c66-d5b7-439a-942a-4b233ede9214
2025-11-03 09:02:16,566 - DEBUG - ==>Verifying data for policy with id: 1942f214-1e53-49e7-8163-142046b76836, fqn: ['default-domain', 'ctest-TestBasicPolicy-20571362', 'ctest-policy-allow-all-40247126']
2025-11-03 09:02:16,567 - INFO - VN ctest-vn-73314077 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-03 09:02:16,567 - DEBUG - Verifying the vn in opserver
2025-11-03 09:02:16,567 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-20571362:ctest-vn-73314077 virtual network link through opserver 10.0.0.50
2025-11-03 09:02:16,567 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-11-03 09:02:16,576 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-20571362:ctest-vn-73314077', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-20571362:ctest-vn-73314077?flat'}
2025-11-03 09:02:16,576 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-20571362:ctest-vn-73314077 is found in opserver
2025-11-03 09:02:16,584 - DEBUG - Do not have enough data to verify VN in agent
2025-11-03 09:02:16,589 - DEBUG - VRF ids for VN ctest-vn-73314077: {}
2025-11-03 09:02:16,644 - DEBUG - Services list from nova: [