2025-07-08 09:53:20,509 - INFO - Domain Default found not creating
2025-07-08 09:53:20,638 - INFO - Project ctest-TestBasicPolicy-55030360 not found, creating it
2025-07-08 09:53:21,072 - INFO - Created Project:ctest-TestBasicPolicy-55030360, ID : 2865c324-c5bd-4243-b93f-f80422ec627d
2025-07-08 09:53:22,430 - INFO - ================================================================================
2025-07-08 09:53:22,430 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-07-08 09:53:22,430 - 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-08 09:53:22,692 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.14': '0'}} with
2025-07-08 09:53:22,693 - INFO - Initial checks done. Running the testcase now
2025-07-08 09:53:22,693 - INFO -
2025-07-08 09:53:23,225 - DEBUG - Response for create_network : {'network': {'id': 'ed78cb9b-680c-41ec-9178-d31178391eed', 'name': 'ctest-vn-72662819', 'tenant_id': '2865c324c5bd4243b93ff80422ec627d', 'project_id': '2865c324c5bd4243b93ff80422ec627d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-55030360', 'ctest-vn-72662819'], 'port_security_enabled': True, 'description': ''}}
2025-07-08 09:53:23,413 - DEBUG - Response for create_subnet : {'subnet': {'id': '1984be2c-3017-454d-bc91-1a3e7366d584', 'name': '', 'tenant_id': '2865c324c5bd4243b93ff80422ec627d', 'network_id': 'ed78cb9b-680c-41ec-9178-d31178391eed', 'ip_version': 4, 'cidr': '35.76.54.64/26', 'allocation_pools': [{'start': '35.76.54.66', 'end': '35.76.54.126'}], 'gateway_ip': '35.76.54.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '35.76.54.66', 'tags': [], 'project_id': '2865c324c5bd4243b93ff80422ec627d'}}
2025-07-08 09:53:23,429 - INFO - Created VN ctest-vn-72662819
2025-07-08 09:53:23,483 - DEBUG - VN ctest-vn-72662819 UUID is ed78cb9b-680c-41ec-9178-d31178391eed
2025-07-08 09:53:23,753 - DEBUG - Response for create_network : {'network': {'id': '669086e6-03a7-481d-96da-185d42dc879b', 'name': 'ctest-vn-58590890', 'tenant_id': '2865c324c5bd4243b93ff80422ec627d', 'project_id': '2865c324c5bd4243b93ff80422ec627d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-55030360', 'ctest-vn-58590890'], 'port_security_enabled': True, 'description': ''}}
2025-07-08 09:53:23,896 - DEBUG - Response for create_subnet : {'subnet': {'id': '7de80d86-3378-4c06-80f1-c3358f75f997', 'name': '', 'tenant_id': '2865c324c5bd4243b93ff80422ec627d', 'network_id': '669086e6-03a7-481d-96da-185d42dc879b', 'ip_version': 4, 'cidr': '112.232.126.0/26', 'allocation_pools': [{'start': '112.232.126.2', 'end': '112.232.126.62'}], 'gateway_ip': '112.232.126.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '112.232.126.2', 'tags': [], 'project_id': '2865c324c5bd4243b93ff80422ec627d'}}
2025-07-08 09:53:23,913 - INFO - Created VN ctest-vn-58590890
2025-07-08 09:53:23,967 - DEBUG - VN ctest-vn-58590890 UUID is 669086e6-03a7-481d-96da-185d42dc879b
2025-07-08 09:53:24,118 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-55030360:ctest-vn-72662819, 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-55030360:ctest-vn-58590890, 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-08 09:53:24,414 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ed78cb9b-680c-41ec-9178-d31178391eed', 'name': 'ctest-vn-72662819', 'tenant_id': '2865c324c5bd4243b93ff80422ec627d', 'project_id': '2865c324c5bd4243b93ff80422ec627d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1984be2c-3017-454d-bc91-1a3e7366d584'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-55030360', 'ctest-vn-72662819'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-55030360', 'ctest-policy-allow-all-61376937']], 'subnet_ipam': [{'subnet_cidr': '35.76.54.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-08 09:53:24,651 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '669086e6-03a7-481d-96da-185d42dc879b', 'name': 'ctest-vn-58590890', 'tenant_id': '2865c324c5bd4243b93ff80422ec627d', 'project_id': '2865c324c5bd4243b93ff80422ec627d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7de80d86-3378-4c06-80f1-c3358f75f997'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-55030360', 'ctest-vn-58590890'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-55030360', 'ctest-policy-allow-all-61376937']], 'subnet_ipam': [{'subnet_cidr': '112.232.126.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-08 09:53:24,827 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-07-08 09:53:25,125 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-07-08 09:53:25,151 - DEBUG - Requesting: http://10.0.0.50:8082/domain/ae6852d9-598e-4d27-99fc-e461ac95bd97
2025-07-08 09:53:25,164 - DEBUG - Requesting: http://10.0.0.50:8082/project/2865c324-c5bd-4243-b93f-f80422ec627d
2025-07-08 09:53:25,232 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/ed78cb9b-680c-41ec-9178-d31178391eed
2025-07-08 09:53:25,245 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/ed78cb9b-680c-41ec-9178-d31178391eed
2025-07-08 09:53:25,255 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/8389807b-5958-4793-aa5f-8bc049105933
2025-07-08 09:53:25,262 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/8389807b-5958-4793-aa5f-8bc049105933
2025-07-08 09:53:25,269 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/844269f5-43aa-4baf-a5d1-9c81723befdd
2025-07-08 09:53:25,275 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-08 09:53:25,275 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/ed78cb9b-680c-41ec-9178-d31178391eed
2025-07-08 09:53:25,284 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/8389807b-5958-4793-aa5f-8bc049105933
2025-07-08 09:53:25,297 - INFO - Verified VN network id 8 for VN ed78cb9b-680c-41ec-9178-d31178391eed
2025-07-08 09:53:25,297 - INFO - Verifications in API Server for VN ctest-vn-72662819 passed
2025-07-08 09:53:25,297 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/ed78cb9b-680c-41ec-9178-d31178391eed
2025-07-08 09:53:25,306 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/8389807b-5958-4793-aa5f-8bc049105933
2025-07-08 09:53:25,313 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/8389807b-5958-4793-aa5f-8bc049105933
2025-07-08 09:53:25,319 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/844269f5-43aa-4baf-a5d1-9c81723befdd
2025-07-08 09:53:25,332 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-55030360:ctest-vn-72662819', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-55030360', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17111650652520202732', 'uuid-lslong': '10482360204689743597'}, 'enable': 'true', 'created': '2025-07-08T09:53:23', 'last-modified': '2025-07-08T09:53:24', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.939018'}
2025-07-08 09:53:25,339 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-08 09:53:25,339 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-72662819 passed
2025-07-08 09:53:25,339 - DEBUG - ====Verifying policy data for ctest-vn-72662819 in API_Server ======
2025-07-08 09:53:25,339 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-07-08 09:53:25,344 - DEBUG - Requesting: http://10.0.0.50:8082/domain/ae6852d9-598e-4d27-99fc-e461ac95bd97
2025-07-08 09:53:25,355 - DEBUG - Requesting: http://10.0.0.50:8082/project/2865c324-c5bd-4243-b93f-f80422ec627d
2025-07-08 09:53:25,429 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/ed78cb9b-680c-41ec-9178-d31178391eed
2025-07-08 09:53:25,439 - DEBUG - ==>Verifying data for policy with id: 7caa1452-66e1-46bc-935e-dc2d4722621e, fqn: ['default-domain', 'ctest-TestBasicPolicy-55030360', 'ctest-policy-allow-all-61376937']
2025-07-08 09:53:25,439 - INFO - VN ctest-vn-72662819 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-08 09:53:25,439 - DEBUG - Verifying the vn in opserver
2025-07-08 09:53:25,439 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-55030360:ctest-vn-72662819 virtual network link through opserver 10.0.0.50
2025-07-08 09:53:25,440 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-07-08 09:53:25,730 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-07-08 09:53:25,785 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-55030360:ctest-vn-72662819', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-55030360:ctest-vn-72662819?flat'}
2025-07-08 09:53:25,785 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-55030360:ctest-vn-72662819 is found in opserver
2025-07-08 09:53:25,796 - DEBUG - Do not have enough data to verify VN in agent
2025-07-08 09:53:25,801 - DEBUG - VRF ids for VN ctest-vn-72662819: {}
2025-07-08 09:53:25,801 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-07-08 09:53:25,808 - DEBUG - Requesting: http://10.0.0.50:8082/domain/ae6852d9-598e-4d27-99fc-e461ac95bd97
2025-07-08 09:53:25,819 - DEBUG - Requesting: http://10.0.0.50:8082/project/2865c324-c5bd-4243-b93f-f80422ec627d
2025-07-08 09:53:25,889 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/669086e6-03a7-481d-96da-185d42dc879b
2025-07-08 09:53:25,901 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/669086e6-03a7-481d-96da-185d42dc879b
2025-07-08 09:53:25,912 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/0a5233f5-f8dc-4784-bb91-917040ce96dd
2025-07-08 09:53:25,921 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/0a5233f5-f8dc-4784-bb91-917040ce96dd
2025-07-08 09:53:25,929 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/acf11f59-094c-4544-a0e8-71ea704300fa
2025-07-08 09:53:25,936 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-08 09:53:25,936 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/669086e6-03a7-481d-96da-185d42dc879b
2025-07-08 09:53:25,946 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/0a5233f5-f8dc-4784-bb91-917040ce96dd
2025-07-08 09:53:25,960 - INFO - Verified VN network id 9 for VN 669086e6-03a7-481d-96da-185d42dc879b
2025-07-08 09:53:25,960 - INFO - Verifications in API Server for VN ctest-vn-58590890 passed
2025-07-08 09:53:25,960 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/669086e6-03a7-481d-96da-185d42dc879b
2025-07-08 09:53:25,970 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/0a5233f5-f8dc-4784-bb91-917040ce96dd
2025-07-08 09:53:25,977 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/0a5233f5-f8dc-4784-bb91-917040ce96dd
2025-07-08 09:53:25,984 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/acf11f59-094c-4544-a0e8-71ea704300fa
2025-07-08 09:53:25,996 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-55030360:ctest-vn-58590890', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-55030360', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7390555310976878621', 'uuid-lslong': '10870027439444887451'}, 'enable': 'true', 'created': '2025-07-08T09:53:23', 'last-modified': '2025-07-08T09:53:24', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.360333'}
2025-07-08 09:53:26,003 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-08 09:53:26,003 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-58590890 passed
2025-07-08 09:53:26,003 - DEBUG - ====Verifying policy data for ctest-vn-58590890 in API_Server ======
2025-07-08 09:53:26,003 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-07-08 09:53:26,009 - DEBUG - Requesting: http://10.0.0.50:8082/domain/ae6852d9-598e-4d27-99fc-e461ac95bd97
2025-07-08 09:53:26,020 - DEBUG - Requesting: http://10.0.0.50:8082/project/2865c324-c5bd-4243-b93f-f80422ec627d
2025-07-08 09:53:26,086 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/669086e6-03a7-481d-96da-185d42dc879b
2025-07-08 09:53:26,096 - DEBUG - ==>Verifying data for policy with id: 7caa1452-66e1-46bc-935e-dc2d4722621e, fqn: ['default-domain', 'ctest-TestBasicPolicy-55030360', 'ctest-policy-allow-all-61376937']
2025-07-08 09:53:26,096 - INFO - VN ctest-vn-58590890 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-08 09:53:26,096 - DEBUG - Verifying the vn in opserver
2025-07-08 09:53:26,096 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-55030360:ctest-vn-58590890 virtual network link through opserver 10.0.0.50
2025-07-08 09:53:26,096 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-07-08 09:53:26,107 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-55030360:ctest-vn-58590890', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-55030360:ctest-vn-58590890?flat'}
2025-07-08 09:53:26,107 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-55030360:ctest-vn-58590890 is found in opserver
2025-07-08 09:53:26,118 - DEBUG - Do not have enough data to verify VN in agent
2025-07-08 09:53:26,123 - DEBUG - VRF ids for VN ctest-vn-58590890: {}
2025-07-08 09:53:26,176 - DEBUG - Services list from nova: [