2025-07-21 12:31:45,605 - INFO - Domain Default found not creating
2025-07-21 12:31:46,003 - INFO - Project ctest-TestBasicPolicy-28419471 not found, creating it
2025-07-21 12:31:46,774 - INFO - Created Project:ctest-TestBasicPolicy-28419471, ID : b957c5a3-9af3-4d8d-83ca-41bd5401c727
2025-07-21 12:31:48,789 - INFO - ================================================================================
2025-07-21 12:31:48,790 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-07-21 12:31:48,790 - 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-21 12:31:49,112 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.14': '0'}} with
2025-07-21 12:31:49,112 - INFO - Initial checks done. Running the testcase now
2025-07-21 12:31:49,112 - INFO -
2025-07-21 12:31:49,964 - DEBUG - Response for create_network : {'network': {'id': 'bc3ac346-47f2-4537-a1ee-f0d8beb2b103', 'name': 'ctest-vn-40738306', 'tenant_id': 'b957c5a39af34d8d83ca41bd5401c727', 'project_id': 'b957c5a39af34d8d83ca41bd5401c727', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-28419471', 'ctest-vn-40738306'], 'port_security_enabled': True, 'description': ''}}
2025-07-21 12:31:50,150 - DEBUG - Response for create_subnet : {'subnet': {'id': '59b5c91c-0d22-4e2e-8fac-bc24ca27fbe9', 'name': '', 'tenant_id': 'b957c5a39af34d8d83ca41bd5401c727', 'network_id': 'bc3ac346-47f2-4537-a1ee-f0d8beb2b103', 'ip_version': 4, 'cidr': '34.183.69.0/26', 'allocation_pools': [{'start': '34.183.69.2', 'end': '34.183.69.62'}], 'gateway_ip': '34.183.69.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '34.183.69.2', 'tags': [], 'project_id': 'b957c5a39af34d8d83ca41bd5401c727'}}
2025-07-21 12:31:50,171 - INFO - Created VN ctest-vn-40738306
2025-07-21 12:31:50,227 - DEBUG - VN ctest-vn-40738306 UUID is bc3ac346-47f2-4537-a1ee-f0d8beb2b103
2025-07-21 12:31:50,759 - DEBUG - Response for create_network : {'network': {'id': 'b658c767-f3f6-4b0a-b94b-e08411292ee4', 'name': 'ctest-vn-28258961', 'tenant_id': 'b957c5a39af34d8d83ca41bd5401c727', 'project_id': 'b957c5a39af34d8d83ca41bd5401c727', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-28419471', 'ctest-vn-28258961'], 'port_security_enabled': True, 'description': ''}}
2025-07-21 12:31:51,027 - DEBUG - Response for create_subnet : {'subnet': {'id': '8d2ac9a1-964c-4a68-bf7e-71418d970819', 'name': '', 'tenant_id': 'b957c5a39af34d8d83ca41bd5401c727', 'network_id': 'b658c767-f3f6-4b0a-b94b-e08411292ee4', 'ip_version': 4, 'cidr': '90.166.47.0/26', 'allocation_pools': [{'start': '90.166.47.2', 'end': '90.166.47.62'}], 'gateway_ip': '90.166.47.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '90.166.47.2', 'tags': [], 'project_id': 'b957c5a39af34d8d83ca41bd5401c727'}}
2025-07-21 12:31:51,061 - INFO - Created VN ctest-vn-28258961
2025-07-21 12:31:51,119 - DEBUG - VN ctest-vn-28258961 UUID is b658c767-f3f6-4b0a-b94b-e08411292ee4
2025-07-21 12:31:51,338 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-28419471:ctest-vn-40738306, 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-28419471:ctest-vn-28258961, 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-21 12:31:51,887 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'bc3ac346-47f2-4537-a1ee-f0d8beb2b103', 'name': 'ctest-vn-40738306', 'tenant_id': 'b957c5a39af34d8d83ca41bd5401c727', 'project_id': 'b957c5a39af34d8d83ca41bd5401c727', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['59b5c91c-0d22-4e2e-8fac-bc24ca27fbe9'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-28419471', 'ctest-vn-40738306'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-28419471', 'ctest-policy-allow-all-38782374']], 'subnet_ipam': [{'subnet_cidr': '34.183.69.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-21 12:31:52,291 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b658c767-f3f6-4b0a-b94b-e08411292ee4', 'name': 'ctest-vn-28258961', 'tenant_id': 'b957c5a39af34d8d83ca41bd5401c727', 'project_id': 'b957c5a39af34d8d83ca41bd5401c727', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8d2ac9a1-964c-4a68-bf7e-71418d970819'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-28419471', 'ctest-vn-28258961'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-28419471', 'ctest-policy-allow-all-38782374']], 'subnet_ipam': [{'subnet_cidr': '90.166.47.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-21 12:31:52,471 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-07-21 12:31:52,823 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-07-21 12:31:52,877 - DEBUG - Requesting: http://10.0.0.38:8082/domain/f7f1e7bb-90af-484f-b316-d13dd695dd25
2025-07-21 12:31:52,908 - DEBUG - Requesting: http://10.0.0.38:8082/project/b957c5a3-9af3-4d8d-83ca-41bd5401c727
2025-07-21 12:31:53,036 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/bc3ac346-47f2-4537-a1ee-f0d8beb2b103
2025-07-21 12:31:53,072 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/bc3ac346-47f2-4537-a1ee-f0d8beb2b103
2025-07-21 12:31:53,103 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/dfec6a5c-2cbf-4945-8824-efe19c057c75
2025-07-21 12:31:53,128 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/dfec6a5c-2cbf-4945-8824-efe19c057c75
2025-07-21 12:31:53,155 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/017c5cf7-4db0-4b09-adc4-2eb523e07304
2025-07-21 12:31:53,178 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-21 12:31:53,178 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/bc3ac346-47f2-4537-a1ee-f0d8beb2b103
2025-07-21 12:31:53,209 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/dfec6a5c-2cbf-4945-8824-efe19c057c75
2025-07-21 12:31:53,259 - INFO - Verified VN network id 8 for VN bc3ac346-47f2-4537-a1ee-f0d8beb2b103
2025-07-21 12:31:53,259 - INFO - Verifications in API Server for VN ctest-vn-40738306 passed
2025-07-21 12:31:53,259 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/bc3ac346-47f2-4537-a1ee-f0d8beb2b103
2025-07-21 12:31:53,294 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/dfec6a5c-2cbf-4945-8824-efe19c057c75
2025-07-21 12:31:53,320 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/dfec6a5c-2cbf-4945-8824-efe19c057c75
2025-07-21 12:31:53,347 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/017c5cf7-4db0-4b09-adc4-2eb523e07304
2025-07-21 12:31:53,387 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-28419471:ctest-vn-40738306', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-28419471', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13563367934401856823', 'uuid-lslong': '11668528498266517763'}, 'enable': 'true', 'created': '2025-07-21T12:31:49', 'last-modified': '2025-07-21T12:31:51', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.569858'}
2025-07-21 12:31:53,406 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-21 12:31:53,406 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-40738306 passed
2025-07-21 12:31:53,407 - DEBUG - ====Verifying policy data for ctest-vn-40738306 in API_Server ======
2025-07-21 12:31:53,407 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-07-21 12:31:53,423 - DEBUG - Requesting: http://10.0.0.38:8082/domain/f7f1e7bb-90af-484f-b316-d13dd695dd25
2025-07-21 12:31:53,459 - DEBUG - Requesting: http://10.0.0.38:8082/project/b957c5a3-9af3-4d8d-83ca-41bd5401c727
2025-07-21 12:31:53,579 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/bc3ac346-47f2-4537-a1ee-f0d8beb2b103
2025-07-21 12:31:53,600 - DEBUG - ==>Verifying data for policy with id: 67514b8c-212a-45b3-be77-594f43a17b35, fqn: ['default-domain', 'ctest-TestBasicPolicy-28419471', 'ctest-policy-allow-all-38782374']
2025-07-21 12:31:53,600 - INFO - VN ctest-vn-40738306 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-21 12:31:53,600 - DEBUG - Verifying the vn in opserver
2025-07-21 12:31:53,600 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-28419471:ctest-vn-40738306 virtual network link through opserver 10.0.0.38
2025-07-21 12:31:53,601 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-07-21 12:31:53,963 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-07-21 12:31:54,065 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-28419471:ctest-vn-40738306', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-28419471:ctest-vn-40738306?flat'}
2025-07-21 12:31:54,065 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-28419471:ctest-vn-40738306 is found in opserver
2025-07-21 12:31:54,094 - DEBUG - Do not have enough data to verify VN in agent
2025-07-21 12:31:54,107 - DEBUG - VRF ids for VN ctest-vn-40738306: {}
2025-07-21 12:31:54,107 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-07-21 12:31:54,120 - DEBUG - Requesting: http://10.0.0.38:8082/domain/f7f1e7bb-90af-484f-b316-d13dd695dd25
2025-07-21 12:31:54,154 - DEBUG - Requesting: http://10.0.0.38:8082/project/b957c5a3-9af3-4d8d-83ca-41bd5401c727
2025-07-21 12:31:54,265 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b658c767-f3f6-4b0a-b94b-e08411292ee4
2025-07-21 12:31:54,302 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b658c767-f3f6-4b0a-b94b-e08411292ee4
2025-07-21 12:31:54,333 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/6db868f8-3430-4dab-8a57-ee506456ce6b
2025-07-21 12:31:54,355 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/6db868f8-3430-4dab-8a57-ee506456ce6b
2025-07-21 12:31:54,374 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/24312209-3d7b-49ee-becb-776a0476f7c4
2025-07-21 12:31:54,395 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-21 12:31:54,395 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b658c767-f3f6-4b0a-b94b-e08411292ee4
2025-07-21 12:31:54,429 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/6db868f8-3430-4dab-8a57-ee506456ce6b
2025-07-21 12:31:54,474 - INFO - Verified VN network id 9 for VN b658c767-f3f6-4b0a-b94b-e08411292ee4
2025-07-21 12:31:54,474 - INFO - Verifications in API Server for VN ctest-vn-28258961 passed
2025-07-21 12:31:54,474 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b658c767-f3f6-4b0a-b94b-e08411292ee4
2025-07-21 12:31:54,495 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/6db868f8-3430-4dab-8a57-ee506456ce6b
2025-07-21 12:31:54,515 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/6db868f8-3430-4dab-8a57-ee506456ce6b
2025-07-21 12:31:54,539 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/24312209-3d7b-49ee-becb-776a0476f7c4
2025-07-21 12:31:54,579 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-28419471:ctest-vn-28258961', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-28419471', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13139471162141985546', 'uuid-lslong': '13352012378098183908'}, 'enable': 'true', 'created': '2025-07-21T12:31:50', 'last-modified': '2025-07-21T12:31:52', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.372579'}
2025-07-21 12:31:54,602 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-21 12:31:54,603 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-28258961 passed
2025-07-21 12:31:54,603 - DEBUG - ====Verifying policy data for ctest-vn-28258961 in API_Server ======
2025-07-21 12:31:54,603 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-07-21 12:31:54,620 - DEBUG - Requesting: http://10.0.0.38:8082/domain/f7f1e7bb-90af-484f-b316-d13dd695dd25
2025-07-21 12:31:54,657 - DEBUG - Requesting: http://10.0.0.38:8082/project/b957c5a3-9af3-4d8d-83ca-41bd5401c727
2025-07-21 12:31:54,793 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b658c767-f3f6-4b0a-b94b-e08411292ee4
2025-07-21 12:31:54,818 - DEBUG - ==>Verifying data for policy with id: 67514b8c-212a-45b3-be77-594f43a17b35, fqn: ['default-domain', 'ctest-TestBasicPolicy-28419471', 'ctest-policy-allow-all-38782374']
2025-07-21 12:31:54,818 - INFO - VN ctest-vn-28258961 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-21 12:31:54,818 - DEBUG - Verifying the vn in opserver
2025-07-21 12:31:54,818 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-28419471:ctest-vn-28258961 virtual network link through opserver 10.0.0.38
2025-07-21 12:31:54,818 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-07-21 12:31:54,849 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-28419471:ctest-vn-28258961', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-28419471:ctest-vn-28258961?flat'}
2025-07-21 12:31:54,849 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-28419471:ctest-vn-28258961 is found in opserver
2025-07-21 12:31:54,882 - DEBUG - Do not have enough data to verify VN in agent
2025-07-21 12:31:54,903 - DEBUG - VRF ids for VN ctest-vn-28258961: {}
2025-07-21 12:31:55,052 - DEBUG - Services list from nova: [