2025-09-24 05:40:45,332 - INFO - Domain Default found not creating
2025-09-24 05:40:45,493 - INFO - Project ctest-TestBasicPolicy-79670982 not found, creating it
2025-09-24 05:40:45,948 - INFO - Created Project:ctest-TestBasicPolicy-79670982, ID : 3fc39e09-791d-429d-b101-ccf3ba8c52cc
2025-09-24 05:40:47,390 - INFO - ================================================================================
2025-09-24 05:40:47,390 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-09-24 05:40:47,390 - 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-24 05:40:47,647 - DEBUG - Nothing to compare xmpp stats {'10.0.0.57': {'10.20.0.17': '0'}} with
2025-09-24 05:40:47,647 - INFO - Initial checks done. Running the testcase now
2025-09-24 05:40:47,647 - INFO -
2025-09-24 05:40:48,169 - DEBUG - Response for create_network : {'network': {'id': 'e6289e36-156e-4359-9cae-5cf71bea4c95', 'name': 'ctest-vn-12542586', 'tenant_id': '3fc39e09791d429db101ccf3ba8c52cc', 'project_id': '3fc39e09791d429db101ccf3ba8c52cc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-79670982', 'ctest-vn-12542586'], 'port_security_enabled': True, 'description': ''}}
2025-09-24 05:40:48,345 - DEBUG - Response for create_subnet : {'subnet': {'id': '9cafdd63-3a8f-45ec-b90e-7b5910c165d2', 'name': '', 'tenant_id': '3fc39e09791d429db101ccf3ba8c52cc', 'network_id': 'e6289e36-156e-4359-9cae-5cf71bea4c95', 'ip_version': 4, 'cidr': '181.55.64.192/26', 'allocation_pools': [{'start': '181.55.64.194', 'end': '181.55.64.254'}], 'gateway_ip': '181.55.64.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '181.55.64.194', 'tags': [], 'project_id': '3fc39e09791d429db101ccf3ba8c52cc'}}
2025-09-24 05:40:48,362 - INFO - Created VN ctest-vn-12542586
2025-09-24 05:40:48,414 - DEBUG - VN ctest-vn-12542586 UUID is e6289e36-156e-4359-9cae-5cf71bea4c95
2025-09-24 05:40:48,747 - DEBUG - Response for create_network : {'network': {'id': '899583d8-2923-4c71-83df-fe54055f824d', 'name': 'ctest-vn-05538645', 'tenant_id': '3fc39e09791d429db101ccf3ba8c52cc', 'project_id': '3fc39e09791d429db101ccf3ba8c52cc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-79670982', 'ctest-vn-05538645'], 'port_security_enabled': True, 'description': ''}}
2025-09-24 05:40:48,914 - DEBUG - Response for create_subnet : {'subnet': {'id': '5e200685-584b-454a-8f1c-f5022b97a95a', 'name': '', 'tenant_id': '3fc39e09791d429db101ccf3ba8c52cc', 'network_id': '899583d8-2923-4c71-83df-fe54055f824d', 'ip_version': 4, 'cidr': '180.32.171.192/26', 'allocation_pools': [{'start': '180.32.171.194', 'end': '180.32.171.254'}], 'gateway_ip': '180.32.171.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '180.32.171.194', 'tags': [], 'project_id': '3fc39e09791d429db101ccf3ba8c52cc'}}
2025-09-24 05:40:48,931 - INFO - Created VN ctest-vn-05538645
2025-09-24 05:40:48,982 - DEBUG - VN ctest-vn-05538645 UUID is 899583d8-2923-4c71-83df-fe54055f824d
2025-09-24 05:40:49,134 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-79670982:ctest-vn-12542586, 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-79670982:ctest-vn-05538645, 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-24 05:40:49,421 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e6289e36-156e-4359-9cae-5cf71bea4c95', 'name': 'ctest-vn-12542586', 'tenant_id': '3fc39e09791d429db101ccf3ba8c52cc', 'project_id': '3fc39e09791d429db101ccf3ba8c52cc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9cafdd63-3a8f-45ec-b90e-7b5910c165d2'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-79670982', 'ctest-vn-12542586'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-79670982', 'ctest-policy-allow-all-33529008']], 'subnet_ipam': [{'subnet_cidr': '181.55.64.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-24 05:40:49,700 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '899583d8-2923-4c71-83df-fe54055f824d', 'name': 'ctest-vn-05538645', 'tenant_id': '3fc39e09791d429db101ccf3ba8c52cc', 'project_id': '3fc39e09791d429db101ccf3ba8c52cc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['5e200685-584b-454a-8f1c-f5022b97a95a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-79670982', 'ctest-vn-05538645'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-79670982', 'ctest-policy-allow-all-33529008']], 'subnet_ipam': [{'subnet_cidr': '180.32.171.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-24 05:40:49,850 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2025-09-24 05:40:50,152 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2025-09-24 05:40:50,181 - DEBUG - Requesting: http://10.0.0.57:8082/domain/49a4c34a-c817-40c8-a9dd-1168dce50bd3
2025-09-24 05:40:50,192 - DEBUG - Requesting: http://10.0.0.57:8082/project/3fc39e09-791d-429d-b101-ccf3ba8c52cc
2025-09-24 05:40:50,262 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/e6289e36-156e-4359-9cae-5cf71bea4c95
2025-09-24 05:40:50,272 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/e6289e36-156e-4359-9cae-5cf71bea4c95
2025-09-24 05:40:50,280 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/2ead4aa6-3aa5-47d6-b92e-e5faf5775fec
2025-09-24 05:40:50,287 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/2ead4aa6-3aa5-47d6-b92e-e5faf5775fec
2025-09-24 05:40:50,294 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/1d570461-f77a-43e0-abea-8160e5aa3f8d
2025-09-24 05:40:50,299 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-24 05:40:50,299 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/e6289e36-156e-4359-9cae-5cf71bea4c95
2025-09-24 05:40:50,308 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/2ead4aa6-3aa5-47d6-b92e-e5faf5775fec
2025-09-24 05:40:50,322 - INFO - Verified VN network id 11 for VN e6289e36-156e-4359-9cae-5cf71bea4c95
2025-09-24 05:40:50,322 - INFO - Verifications in API Server for VN ctest-vn-12542586 passed
2025-09-24 05:40:50,322 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/e6289e36-156e-4359-9cae-5cf71bea4c95
2025-09-24 05:40:50,331 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/2ead4aa6-3aa5-47d6-b92e-e5faf5775fec
2025-09-24 05:40:50,337 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/2ead4aa6-3aa5-47d6-b92e-e5faf5775fec
2025-09-24 05:40:50,344 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/1d570461-f77a-43e0-abea-8160e5aa3f8d
2025-09-24 05:40:50,355 - DEBUG - Control-node 10.0.0.57 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-79670982:ctest-vn-12542586', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-79670982', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16584679582916821849', 'uuid-lslong': '11290063532259429525'}, 'enable': 'true', 'created': '2025-09-24T05:40:48', 'last-modified': '2025-09-24T05:40:49', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.955000'}
2025-09-24 05:40:50,361 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-24 05:40:50,361 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-12542586 passed
2025-09-24 05:40:50,361 - DEBUG - ====Verifying policy data for ctest-vn-12542586 in API_Server ======
2025-09-24 05:40:50,361 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2025-09-24 05:40:50,367 - DEBUG - Requesting: http://10.0.0.57:8082/domain/49a4c34a-c817-40c8-a9dd-1168dce50bd3
2025-09-24 05:40:50,376 - DEBUG - Requesting: http://10.0.0.57:8082/project/3fc39e09-791d-429d-b101-ccf3ba8c52cc
2025-09-24 05:40:50,443 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/e6289e36-156e-4359-9cae-5cf71bea4c95
2025-09-24 05:40:50,452 - DEBUG - ==>Verifying data for policy with id: 8e4c8c99-12d7-49fd-ae3f-3be858e104c7, fqn: ['default-domain', 'ctest-TestBasicPolicy-79670982', 'ctest-policy-allow-all-33529008']
2025-09-24 05:40:50,452 - INFO - VN ctest-vn-12542586 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-24 05:40:50,452 - DEBUG - Verifying the vn in opserver
2025-09-24 05:40:50,452 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-79670982:ctest-vn-12542586 virtual network link through opserver 10.0.0.57
2025-09-24 05:40:50,452 - DEBUG - Requesting: http://10.0.0.57:8081/analytics/uves/virtual-networks
2025-09-24 05:40:50,742 - DEBUG - Requesting: http://10.0.0.57:8081/analytics/uves/virtual-networks
2025-09-24 05:40:50,797 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-79670982:ctest-vn-12542586', 'href': 'http://10.0.0.57:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-79670982:ctest-vn-12542586?flat'}
2025-09-24 05:40:50,797 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-79670982:ctest-vn-12542586 is found in opserver
2025-09-24 05:40:50,807 - DEBUG - Do not have enough data to verify VN in agent
2025-09-24 05:40:50,812 - DEBUG - VRF ids for VN ctest-vn-12542586: {}
2025-09-24 05:40:50,812 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2025-09-24 05:40:50,818 - DEBUG - Requesting: http://10.0.0.57:8082/domain/49a4c34a-c817-40c8-a9dd-1168dce50bd3
2025-09-24 05:40:50,829 - DEBUG - Requesting: http://10.0.0.57:8082/project/3fc39e09-791d-429d-b101-ccf3ba8c52cc
2025-09-24 05:40:50,899 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/899583d8-2923-4c71-83df-fe54055f824d
2025-09-24 05:40:50,913 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/899583d8-2923-4c71-83df-fe54055f824d
2025-09-24 05:40:50,922 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/0ea3c26e-16aa-4327-a299-920e2d5bbc6a
2025-09-24 05:40:50,929 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/0ea3c26e-16aa-4327-a299-920e2d5bbc6a
2025-09-24 05:40:50,936 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/95fb41b4-fe9a-45b1-82cf-11c08ac106a0
2025-09-24 05:40:50,943 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-24 05:40:50,943 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/899583d8-2923-4c71-83df-fe54055f824d
2025-09-24 05:40:50,953 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/0ea3c26e-16aa-4327-a299-920e2d5bbc6a
2025-09-24 05:40:50,966 - INFO - Verified VN network id 12 for VN 899583d8-2923-4c71-83df-fe54055f824d
2025-09-24 05:40:50,967 - INFO - Verifications in API Server for VN ctest-vn-05538645 passed
2025-09-24 05:40:50,967 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/899583d8-2923-4c71-83df-fe54055f824d
2025-09-24 05:40:50,977 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/0ea3c26e-16aa-4327-a299-920e2d5bbc6a
2025-09-24 05:40:50,983 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/0ea3c26e-16aa-4327-a299-920e2d5bbc6a
2025-09-24 05:40:50,989 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/95fb41b4-fe9a-45b1-82cf-11c08ac106a0
2025-09-24 05:40:51,001 - DEBUG - Control-node 10.0.0.57 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-79670982:ctest-vn-05538645', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-79670982', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9913975119152368753', 'uuid-lslong': '9502593375595889229'}, 'enable': 'true', 'created': '2025-09-24T05:40:48', 'last-modified': '2025-09-24T05:40:49', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.372885'}
2025-09-24 05:40:51,007 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-24 05:40:51,007 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-05538645 passed
2025-09-24 05:40:51,007 - DEBUG - ====Verifying policy data for ctest-vn-05538645 in API_Server ======
2025-09-24 05:40:51,007 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2025-09-24 05:40:51,013 - DEBUG - Requesting: http://10.0.0.57:8082/domain/49a4c34a-c817-40c8-a9dd-1168dce50bd3
2025-09-24 05:40:51,024 - DEBUG - Requesting: http://10.0.0.57:8082/project/3fc39e09-791d-429d-b101-ccf3ba8c52cc
2025-09-24 05:40:51,091 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/899583d8-2923-4c71-83df-fe54055f824d
2025-09-24 05:40:51,100 - DEBUG - ==>Verifying data for policy with id: 8e4c8c99-12d7-49fd-ae3f-3be858e104c7, fqn: ['default-domain', 'ctest-TestBasicPolicy-79670982', 'ctest-policy-allow-all-33529008']
2025-09-24 05:40:51,100 - INFO - VN ctest-vn-05538645 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-24 05:40:51,100 - DEBUG - Verifying the vn in opserver
2025-09-24 05:40:51,100 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-79670982:ctest-vn-05538645 virtual network link through opserver 10.0.0.57
2025-09-24 05:40:51,100 - DEBUG - Requesting: http://10.0.0.57:8081/analytics/uves/virtual-networks
2025-09-24 05:40:51,109 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-79670982:ctest-vn-05538645', 'href': 'http://10.0.0.57:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-79670982:ctest-vn-05538645?flat'}
2025-09-24 05:40:51,109 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-79670982:ctest-vn-05538645 is found in opserver
2025-09-24 05:40:51,118 - DEBUG - Do not have enough data to verify VN in agent
2025-09-24 05:40:51,122 - DEBUG - VRF ids for VN ctest-vn-05538645: {}
2025-09-24 05:40:51,180 - DEBUG - Services list from nova: [