2025-07-18 15:02:33,914 - INFO - Domain Default found not creating
2025-07-18 15:02:34,357 - INFO - Project ctest-TestBasicPolicy-48507706 not found, creating it
2025-07-18 15:02:35,147 - INFO - Created Project:ctest-TestBasicPolicy-48507706, ID : 49557ea8-d1f3-45b6-b494-0218643f732f
2025-07-18 15:02:37,548 - INFO - ================================================================================
2025-07-18 15:02:37,548 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-07-18 15:02:37,549 - 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-18 15:02:37,893 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with
2025-07-18 15:02:37,893 - INFO - Initial checks done. Running the testcase now
2025-07-18 15:02:37,893 - INFO -
2025-07-18 15:02:38,790 - DEBUG - Response for create_network : {'network': {'id': '368324ed-5c13-4946-9236-ce8b7f889440', 'name': 'ctest-vn-53908954', 'tenant_id': '49557ea8d1f345b6b4940218643f732f', 'project_id': '49557ea8d1f345b6b4940218643f732f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-48507706', 'ctest-vn-53908954'], 'port_security_enabled': True, 'description': ''}}
2025-07-18 15:02:39,060 - DEBUG - Response for create_subnet : {'subnet': {'id': '632f632d-e4c3-4e15-ba57-559637f60825', 'name': '', 'tenant_id': '49557ea8d1f345b6b4940218643f732f', 'network_id': '368324ed-5c13-4946-9236-ce8b7f889440', 'ip_version': 4, 'cidr': '98.74.56.128/26', 'allocation_pools': [{'start': '98.74.56.130', 'end': '98.74.56.190'}], 'gateway_ip': '98.74.56.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '98.74.56.130', 'tags': [], 'project_id': '49557ea8d1f345b6b4940218643f732f'}}
2025-07-18 15:02:39,087 - INFO - Created VN ctest-vn-53908954
2025-07-18 15:02:39,149 - DEBUG - VN ctest-vn-53908954 UUID is 368324ed-5c13-4946-9236-ce8b7f889440
2025-07-18 15:02:39,714 - DEBUG - Response for create_network : {'network': {'id': '0ae5a634-4dca-4464-990a-b1b234afabbe', 'name': 'ctest-vn-64033544', 'tenant_id': '49557ea8d1f345b6b4940218643f732f', 'project_id': '49557ea8d1f345b6b4940218643f732f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-48507706', 'ctest-vn-64033544'], 'port_security_enabled': True, 'description': ''}}
2025-07-18 15:02:39,993 - DEBUG - Response for create_subnet : {'subnet': {'id': '5ab10761-8f6b-488c-8a51-27aedf8d74e9', 'name': '', 'tenant_id': '49557ea8d1f345b6b4940218643f732f', 'network_id': '0ae5a634-4dca-4464-990a-b1b234afabbe', 'ip_version': 4, 'cidr': '138.225.152.192/26', 'allocation_pools': [{'start': '138.225.152.194', 'end': '138.225.152.254'}], 'gateway_ip': '138.225.152.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '138.225.152.194', 'tags': [], 'project_id': '49557ea8d1f345b6b4940218643f732f'}}
2025-07-18 15:02:40,036 - INFO - Created VN ctest-vn-64033544
2025-07-18 15:02:40,104 - DEBUG - VN ctest-vn-64033544 UUID is 0ae5a634-4dca-4464-990a-b1b234afabbe
2025-07-18 15:02:40,302 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-48507706:ctest-vn-53908954, 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-48507706:ctest-vn-64033544, 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-18 15:02:40,829 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '368324ed-5c13-4946-9236-ce8b7f889440', 'name': 'ctest-vn-53908954', 'tenant_id': '49557ea8d1f345b6b4940218643f732f', 'project_id': '49557ea8d1f345b6b4940218643f732f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['632f632d-e4c3-4e15-ba57-559637f60825'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-48507706', 'ctest-vn-53908954'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-48507706', 'ctest-policy-allow-all-62933892']], 'subnet_ipam': [{'subnet_cidr': '98.74.56.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-18 15:02:41,213 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0ae5a634-4dca-4464-990a-b1b234afabbe', 'name': 'ctest-vn-64033544', 'tenant_id': '49557ea8d1f345b6b4940218643f732f', 'project_id': '49557ea8d1f345b6b4940218643f732f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['5ab10761-8f6b-488c-8a51-27aedf8d74e9'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-48507706', 'ctest-vn-64033544'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-48507706', 'ctest-policy-allow-all-62933892']], 'subnet_ipam': [{'subnet_cidr': '138.225.152.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-18 15:02:41,415 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-07-18 15:02:41,730 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-07-18 15:02:41,787 - DEBUG - Requesting: http://10.0.0.254:8082/domain/e24b7d5a-3df8-47c4-865b-559ad5fe1b74
2025-07-18 15:02:41,827 - DEBUG - Requesting: http://10.0.0.254:8082/project/49557ea8-d1f3-45b6-b494-0218643f732f
2025-07-18 15:02:41,964 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/368324ed-5c13-4946-9236-ce8b7f889440
2025-07-18 15:02:41,992 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/368324ed-5c13-4946-9236-ce8b7f889440
2025-07-18 15:02:42,019 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/f3357515-817d-49ad-a996-3d182c40027f
2025-07-18 15:02:42,045 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/f3357515-817d-49ad-a996-3d182c40027f
2025-07-18 15:02:42,071 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/c6b69a9f-f6fb-424d-8c96-03937360e633
2025-07-18 15:02:42,090 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-18 15:02:42,091 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/368324ed-5c13-4946-9236-ce8b7f889440
2025-07-18 15:02:42,118 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/f3357515-817d-49ad-a996-3d182c40027f
2025-07-18 15:02:42,147 - INFO - Verified VN network id 8 for VN 368324ed-5c13-4946-9236-ce8b7f889440
2025-07-18 15:02:42,148 - INFO - Verifications in API Server for VN ctest-vn-53908954 passed
2025-07-18 15:02:42,148 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/368324ed-5c13-4946-9236-ce8b7f889440
2025-07-18 15:02:42,171 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/f3357515-817d-49ad-a996-3d182c40027f
2025-07-18 15:02:42,192 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/f3357515-817d-49ad-a996-3d182c40027f
2025-07-18 15:02:42,211 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/c6b69a9f-f6fb-424d-8c96-03937360e633
2025-07-18 15:02:42,254 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-48507706:ctest-vn-53908954', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-48507706', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3928023901867821382', 'uuid-lslong': '10535835476815287360'}, 'enable': 'true', 'created': '2025-07-18T15:02:38', 'last-modified': '2025-07-18T15:02:40', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.483905'}
2025-07-18 15:02:42,279 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-18 15:02:42,280 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-53908954 passed
2025-07-18 15:02:42,281 - DEBUG - ====Verifying policy data for ctest-vn-53908954 in API_Server ======
2025-07-18 15:02:42,281 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-07-18 15:02:42,298 - DEBUG - Requesting: http://10.0.0.254:8082/domain/e24b7d5a-3df8-47c4-865b-559ad5fe1b74
2025-07-18 15:02:42,334 - DEBUG - Requesting: http://10.0.0.254:8082/project/49557ea8-d1f3-45b6-b494-0218643f732f
2025-07-18 15:02:42,428 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/368324ed-5c13-4946-9236-ce8b7f889440
2025-07-18 15:02:42,445 - DEBUG - ==>Verifying data for policy with id: 2d8d1123-0934-47e3-ae0d-9b55fddb9280, fqn: ['default-domain', 'ctest-TestBasicPolicy-48507706', 'ctest-policy-allow-all-62933892']
2025-07-18 15:02:42,445 - INFO - VN ctest-vn-53908954 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-18 15:02:42,445 - DEBUG - Verifying the vn in opserver
2025-07-18 15:02:42,445 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-48507706:ctest-vn-53908954 virtual network link through opserver 10.0.0.254
2025-07-18 15:02:42,445 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-07-18 15:02:42,767 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-07-18 15:02:42,879 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-48507706:ctest-vn-53908954', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-48507706:ctest-vn-53908954?flat'}
2025-07-18 15:02:42,879 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-48507706:ctest-vn-53908954 is found in opserver
2025-07-18 15:02:42,912 - DEBUG - Do not have enough data to verify VN in agent
2025-07-18 15:02:42,925 - DEBUG - VRF ids for VN ctest-vn-53908954: {}
2025-07-18 15:02:42,926 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-07-18 15:02:42,938 - DEBUG - Requesting: http://10.0.0.254:8082/domain/e24b7d5a-3df8-47c4-865b-559ad5fe1b74
2025-07-18 15:02:42,967 - DEBUG - Requesting: http://10.0.0.254:8082/project/49557ea8-d1f3-45b6-b494-0218643f732f
2025-07-18 15:02:43,085 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/0ae5a634-4dca-4464-990a-b1b234afabbe
2025-07-18 15:02:43,120 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/0ae5a634-4dca-4464-990a-b1b234afabbe
2025-07-18 15:02:43,145 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/816f11fb-b7d7-4874-a45a-880b806ef0e3
2025-07-18 15:02:43,164 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/816f11fb-b7d7-4874-a45a-880b806ef0e3
2025-07-18 15:02:43,181 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/f31ee4b7-36be-4ff6-a4a2-fb6f8ea8b35c
2025-07-18 15:02:43,198 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-18 15:02:43,199 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/0ae5a634-4dca-4464-990a-b1b234afabbe
2025-07-18 15:02:43,223 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/816f11fb-b7d7-4874-a45a-880b806ef0e3
2025-07-18 15:02:43,255 - INFO - Verified VN network id 9 for VN 0ae5a634-4dca-4464-990a-b1b234afabbe
2025-07-18 15:02:43,255 - INFO - Verifications in API Server for VN ctest-vn-64033544 passed
2025-07-18 15:02:43,256 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/0ae5a634-4dca-4464-990a-b1b234afabbe
2025-07-18 15:02:43,276 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/816f11fb-b7d7-4874-a45a-880b806ef0e3
2025-07-18 15:02:43,290 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/816f11fb-b7d7-4874-a45a-880b806ef0e3
2025-07-18 15:02:43,305 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/f31ee4b7-36be-4ff6-a4a2-fb6f8ea8b35c
2025-07-18 15:02:43,331 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-48507706:ctest-vn-64033544', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-48507706', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '785216453619631204', 'uuid-lslong': '11027822016516303806'}, 'enable': 'true', 'created': '2025-07-18T15:02:39', 'last-modified': '2025-07-18T15:02:41', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.169369'}
2025-07-18 15:02:43,346 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-18 15:02:43,347 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-64033544 passed
2025-07-18 15:02:43,347 - DEBUG - ====Verifying policy data for ctest-vn-64033544 in API_Server ======
2025-07-18 15:02:43,347 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-07-18 15:02:43,366 - DEBUG - Requesting: http://10.0.0.254:8082/domain/e24b7d5a-3df8-47c4-865b-559ad5fe1b74
2025-07-18 15:02:43,407 - DEBUG - Requesting: http://10.0.0.254:8082/project/49557ea8-d1f3-45b6-b494-0218643f732f
2025-07-18 15:02:43,547 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/0ae5a634-4dca-4464-990a-b1b234afabbe
2025-07-18 15:02:43,579 - DEBUG - ==>Verifying data for policy with id: 2d8d1123-0934-47e3-ae0d-9b55fddb9280, fqn: ['default-domain', 'ctest-TestBasicPolicy-48507706', 'ctest-policy-allow-all-62933892']
2025-07-18 15:02:43,579 - INFO - VN ctest-vn-64033544 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-18 15:02:43,580 - DEBUG - Verifying the vn in opserver
2025-07-18 15:02:43,580 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-48507706:ctest-vn-64033544 virtual network link through opserver 10.0.0.254
2025-07-18 15:02:43,580 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-07-18 15:02:43,613 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-48507706:ctest-vn-64033544', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-48507706:ctest-vn-64033544?flat'}
2025-07-18 15:02:43,613 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-48507706:ctest-vn-64033544 is found in opserver
2025-07-18 15:02:43,652 - DEBUG - Do not have enough data to verify VN in agent
2025-07-18 15:02:43,673 - DEBUG - VRF ids for VN ctest-vn-64033544: {}
2025-07-18 15:02:43,815 - DEBUG - Services list from nova: [