2025-10-24 09:53:42,089 - INFO - Domain Default found not creating
2025-10-24 09:53:42,222 - INFO - Project ctest-TestBasicPolicy-19772992 not found, creating it
2025-10-24 09:53:42,667 - INFO - Created Project:ctest-TestBasicPolicy-19772992, ID : b61de723-219d-4806-9698-1d33cc5215ef
2025-10-24 09:53:44,066 - INFO - ================================================================================
2025-10-24 09:53:44,066 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-24 09:53:44,066 - 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-10-24 09:53:44,327 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.17': '0'}} with
2025-10-24 09:53:44,327 - INFO - Initial checks done. Running the testcase now
2025-10-24 09:53:44,327 - INFO -
2025-10-24 09:53:44,854 - DEBUG - Response for create_network : {'network': {'id': '995450e1-18d7-4fa0-a13c-a29d10631fb0', 'name': 'ctest-vn-82558955', 'tenant_id': 'b61de723219d480696981d33cc5215ef', 'project_id': 'b61de723219d480696981d33cc5215ef', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-19772992', 'ctest-vn-82558955'], 'port_security_enabled': True, 'description': ''}}
2025-10-24 09:53:45,062 - DEBUG - Response for create_subnet : {'subnet': {'id': '92d6ba7e-70d8-499b-8834-86b2c322d288', 'name': '', 'tenant_id': 'b61de723219d480696981d33cc5215ef', 'network_id': '995450e1-18d7-4fa0-a13c-a29d10631fb0', 'ip_version': 4, 'cidr': '222.193.173.192/26', 'allocation_pools': [{'start': '222.193.173.194', 'end': '222.193.173.254'}], 'gateway_ip': '222.193.173.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '222.193.173.194', 'tags': [], 'project_id': 'b61de723219d480696981d33cc5215ef'}}
2025-10-24 09:53:45,079 - INFO - Created VN ctest-vn-82558955
2025-10-24 09:53:45,130 - DEBUG - VN ctest-vn-82558955 UUID is 995450e1-18d7-4fa0-a13c-a29d10631fb0
2025-10-24 09:53:45,430 - DEBUG - Response for create_network : {'network': {'id': '8103bb4e-dbfa-4713-9e5b-688c04d8f71f', 'name': 'ctest-vn-72206237', 'tenant_id': 'b61de723219d480696981d33cc5215ef', 'project_id': 'b61de723219d480696981d33cc5215ef', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-19772992', 'ctest-vn-72206237'], 'port_security_enabled': True, 'description': ''}}
2025-10-24 09:53:45,605 - DEBUG - Response for create_subnet : {'subnet': {'id': '4aa4eb4c-645a-4cb2-82ae-a71e85d89d00', 'name': '', 'tenant_id': 'b61de723219d480696981d33cc5215ef', 'network_id': '8103bb4e-dbfa-4713-9e5b-688c04d8f71f', 'ip_version': 4, 'cidr': '44.111.87.128/26', 'allocation_pools': [{'start': '44.111.87.130', 'end': '44.111.87.190'}], 'gateway_ip': '44.111.87.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '44.111.87.130', 'tags': [], 'project_id': 'b61de723219d480696981d33cc5215ef'}}
2025-10-24 09:53:45,621 - INFO - Created VN ctest-vn-72206237
2025-10-24 09:53:45,670 - DEBUG - VN ctest-vn-72206237 UUID is 8103bb4e-dbfa-4713-9e5b-688c04d8f71f
2025-10-24 09:53:45,814 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-19772992:ctest-vn-82558955, 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-19772992:ctest-vn-72206237, 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-10-24 09:53:46,169 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '995450e1-18d7-4fa0-a13c-a29d10631fb0', 'name': 'ctest-vn-82558955', 'tenant_id': 'b61de723219d480696981d33cc5215ef', 'project_id': 'b61de723219d480696981d33cc5215ef', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['92d6ba7e-70d8-499b-8834-86b2c322d288'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-19772992', 'ctest-vn-82558955'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-19772992', 'ctest-policy-allow-all-84498206']], 'subnet_ipam': [{'subnet_cidr': '222.193.173.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-24 09:53:46,395 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8103bb4e-dbfa-4713-9e5b-688c04d8f71f', 'name': 'ctest-vn-72206237', 'tenant_id': 'b61de723219d480696981d33cc5215ef', 'project_id': 'b61de723219d480696981d33cc5215ef', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4aa4eb4c-645a-4cb2-82ae-a71e85d89d00'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-19772992', 'ctest-vn-72206237'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-19772992', 'ctest-policy-allow-all-84498206']], 'subnet_ipam': [{'subnet_cidr': '44.111.87.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-24 09:53:46,566 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-10-24 09:53:46,856 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-10-24 09:53:46,890 - DEBUG - Requesting: http://10.0.0.33:8082/domain/d5a3a1f4-6255-4557-809e-1505926c114f
2025-10-24 09:53:46,903 - DEBUG - Requesting: http://10.0.0.33:8082/project/b61de723-219d-4806-9698-1d33cc5215ef
2025-10-24 09:53:46,970 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/995450e1-18d7-4fa0-a13c-a29d10631fb0
2025-10-24 09:53:46,989 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/995450e1-18d7-4fa0-a13c-a29d10631fb0
2025-10-24 09:53:46,997 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/d800716f-6105-4d10-9e69-8ccf24747c93
2025-10-24 09:53:47,003 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/d800716f-6105-4d10-9e69-8ccf24747c93
2025-10-24 09:53:47,009 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/e5be3998-6e1e-40b8-975c-6ebdb519a377
2025-10-24 09:53:47,014 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-24 09:53:47,014 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/995450e1-18d7-4fa0-a13c-a29d10631fb0
2025-10-24 09:53:47,021 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/d800716f-6105-4d10-9e69-8ccf24747c93
2025-10-24 09:53:47,033 - INFO - Verified VN network id 10 for VN 995450e1-18d7-4fa0-a13c-a29d10631fb0
2025-10-24 09:53:47,033 - INFO - Verifications in API Server for VN ctest-vn-82558955 passed
2025-10-24 09:53:47,034 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/995450e1-18d7-4fa0-a13c-a29d10631fb0
2025-10-24 09:53:47,042 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/d800716f-6105-4d10-9e69-8ccf24747c93
2025-10-24 09:53:47,048 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/d800716f-6105-4d10-9e69-8ccf24747c93
2025-10-24 09:53:47,053 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/e5be3998-6e1e-40b8-975c-6ebdb519a377
2025-10-24 09:53:47,063 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-19772992:ctest-vn-82558955', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-19772992', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11048544713561296800', 'uuid-lslong': '11618339934177533872'}, 'enable': 'true', 'created': '2025-10-24T09:53:44', 'last-modified': '2025-10-24T09:53:46', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.912067'}
2025-10-24 09:53:47,069 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-24 09:53:47,069 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-82558955 passed
2025-10-24 09:53:47,069 - DEBUG - ====Verifying policy data for ctest-vn-82558955 in API_Server ======
2025-10-24 09:53:47,069 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-10-24 09:53:47,075 - DEBUG - Requesting: http://10.0.0.33:8082/domain/d5a3a1f4-6255-4557-809e-1505926c114f
2025-10-24 09:53:47,084 - DEBUG - Requesting: http://10.0.0.33:8082/project/b61de723-219d-4806-9698-1d33cc5215ef
2025-10-24 09:53:47,155 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/995450e1-18d7-4fa0-a13c-a29d10631fb0
2025-10-24 09:53:47,163 - DEBUG - ==>Verifying data for policy with id: 4addc569-3bcc-47e8-980e-0526d4d1d2c8, fqn: ['default-domain', 'ctest-TestBasicPolicy-19772992', 'ctest-policy-allow-all-84498206']
2025-10-24 09:53:47,163 - INFO - VN ctest-vn-82558955 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-24 09:53:47,163 - DEBUG - Verifying the vn in opserver
2025-10-24 09:53:47,163 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-19772992:ctest-vn-82558955 virtual network link through opserver 10.0.0.33
2025-10-24 09:53:47,163 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-10-24 09:53:47,451 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-10-24 09:53:47,518 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-19772992:ctest-vn-82558955', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-19772992:ctest-vn-82558955?flat'}
2025-10-24 09:53:47,518 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-19772992:ctest-vn-82558955 is found in opserver
2025-10-24 09:53:47,527 - DEBUG - Do not have enough data to verify VN in agent
2025-10-24 09:53:47,538 - DEBUG - VRF ids for VN ctest-vn-82558955: {}
2025-10-24 09:53:47,538 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-10-24 09:53:47,565 - DEBUG - Requesting: http://10.0.0.33:8082/domain/d5a3a1f4-6255-4557-809e-1505926c114f
2025-10-24 09:53:47,641 - DEBUG - Requesting: http://10.0.0.33:8082/project/b61de723-219d-4806-9698-1d33cc5215ef
2025-10-24 09:53:47,725 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/8103bb4e-dbfa-4713-9e5b-688c04d8f71f
2025-10-24 09:53:47,738 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/8103bb4e-dbfa-4713-9e5b-688c04d8f71f
2025-10-24 09:53:47,749 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/ee42e84d-c7a5-45d0-a211-f6b0e32b9e26
2025-10-24 09:53:47,756 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/ee42e84d-c7a5-45d0-a211-f6b0e32b9e26
2025-10-24 09:53:47,764 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/d252fbc3-861d-4f5b-9944-6d9255db92dd
2025-10-24 09:53:47,775 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-24 09:53:47,775 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/8103bb4e-dbfa-4713-9e5b-688c04d8f71f
2025-10-24 09:53:47,790 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/ee42e84d-c7a5-45d0-a211-f6b0e32b9e26
2025-10-24 09:53:47,814 - INFO - Verified VN network id 11 for VN 8103bb4e-dbfa-4713-9e5b-688c04d8f71f
2025-10-24 09:53:47,814 - INFO - Verifications in API Server for VN ctest-vn-72206237 passed
2025-10-24 09:53:47,814 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/8103bb4e-dbfa-4713-9e5b-688c04d8f71f
2025-10-24 09:53:47,828 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/ee42e84d-c7a5-45d0-a211-f6b0e32b9e26
2025-10-24 09:53:47,839 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/ee42e84d-c7a5-45d0-a211-f6b0e32b9e26
2025-10-24 09:53:47,854 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/d252fbc3-861d-4f5b-9944-6d9255db92dd
2025-10-24 09:53:47,871 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-19772992:ctest-vn-72206237', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-19772992', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9296480003195291411', 'uuid-lslong': '11410829031459321631'}, 'enable': 'true', 'created': '2025-10-24T09:53:45', 'last-modified': '2025-10-24T09:53:46', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.490749'}
2025-10-24 09:53:47,878 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-24 09:53:47,879 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-72206237 passed
2025-10-24 09:53:47,879 - DEBUG - ====Verifying policy data for ctest-vn-72206237 in API_Server ======
2025-10-24 09:53:47,879 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-10-24 09:53:47,891 - DEBUG - Requesting: http://10.0.0.33:8082/domain/d5a3a1f4-6255-4557-809e-1505926c114f
2025-10-24 09:53:47,947 - DEBUG - Requesting: http://10.0.0.33:8082/project/b61de723-219d-4806-9698-1d33cc5215ef
2025-10-24 09:53:48,075 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/8103bb4e-dbfa-4713-9e5b-688c04d8f71f
2025-10-24 09:53:48,087 - DEBUG - ==>Verifying data for policy with id: 4addc569-3bcc-47e8-980e-0526d4d1d2c8, fqn: ['default-domain', 'ctest-TestBasicPolicy-19772992', 'ctest-policy-allow-all-84498206']
2025-10-24 09:53:48,087 - INFO - VN ctest-vn-72206237 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-24 09:53:48,087 - DEBUG - Verifying the vn in opserver
2025-10-24 09:53:48,087 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-19772992:ctest-vn-72206237 virtual network link through opserver 10.0.0.33
2025-10-24 09:53:48,087 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-10-24 09:53:48,100 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-19772992:ctest-vn-72206237', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-19772992:ctest-vn-72206237?flat'}
2025-10-24 09:53:48,101 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-19772992:ctest-vn-72206237 is found in opserver
2025-10-24 09:53:48,116 - DEBUG - Do not have enough data to verify VN in agent
2025-10-24 09:53:48,121 - DEBUG - VRF ids for VN ctest-vn-72206237: {}
2025-10-24 09:53:48,194 - DEBUG - Services list from nova: [