2025-06-30 15:08:09,586 - INFO - Domain Default found not creating
2025-06-30 15:08:09,730 - INFO - Project ctest-TestBasicPolicy-29462041 not found, creating it
2025-06-30 15:08:10,180 - INFO - Created Project:ctest-TestBasicPolicy-29462041, ID : 98aa4e17-0d93-4432-83fe-5d3c7a30207d
2025-06-30 15:08:11,632 - INFO - ================================================================================
2025-06-30 15:08:11,632 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-06-30 15:08:11,632 - 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-06-30 15:08:11,887 - DEBUG - Nothing to compare xmpp stats {'10.0.0.161': {'10.20.0.25': '0'}} with
2025-06-30 15:08:11,887 - INFO - Initial checks done. Running the testcase now
2025-06-30 15:08:11,887 - INFO -
2025-06-30 15:08:12,452 - DEBUG - Response for create_network : {'network': {'id': '73f22380-ec03-48ab-90c4-2e38592d3b85', 'name': 'ctest-vn-20612857', 'tenant_id': '98aa4e170d93443283fe5d3c7a30207d', 'project_id': '98aa4e170d93443283fe5d3c7a30207d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-29462041', 'ctest-vn-20612857'], 'port_security_enabled': True, 'description': ''}}
2025-06-30 15:08:12,674 - DEBUG - Response for create_subnet : {'subnet': {'id': 'feb4e20e-f593-4012-b4f7-20539bca2f59', 'name': '', 'tenant_id': '98aa4e170d93443283fe5d3c7a30207d', 'network_id': '73f22380-ec03-48ab-90c4-2e38592d3b85', 'ip_version': 4, 'cidr': '89.236.157.192/26', 'allocation_pools': [{'start': '89.236.157.194', 'end': '89.236.157.254'}], 'gateway_ip': '89.236.157.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '89.236.157.194', 'tags': [], 'project_id': '98aa4e170d93443283fe5d3c7a30207d'}}
2025-06-30 15:08:12,690 - INFO - Created VN ctest-vn-20612857
2025-06-30 15:08:12,745 - DEBUG - VN ctest-vn-20612857 UUID is 73f22380-ec03-48ab-90c4-2e38592d3b85
2025-06-30 15:08:13,029 - DEBUG - Response for create_network : {'network': {'id': '83b5b948-e571-4100-a66f-28a57f0d755b', 'name': 'ctest-vn-10396772', 'tenant_id': '98aa4e170d93443283fe5d3c7a30207d', 'project_id': '98aa4e170d93443283fe5d3c7a30207d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-29462041', 'ctest-vn-10396772'], 'port_security_enabled': True, 'description': ''}}
2025-06-30 15:08:13,255 - DEBUG - Response for create_subnet : {'subnet': {'id': '1cd6cd7a-5ee9-4acc-8250-60c828616089', 'name': '', 'tenant_id': '98aa4e170d93443283fe5d3c7a30207d', 'network_id': '83b5b948-e571-4100-a66f-28a57f0d755b', 'ip_version': 4, 'cidr': '64.231.85.192/26', 'allocation_pools': [{'start': '64.231.85.194', 'end': '64.231.85.254'}], 'gateway_ip': '64.231.85.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '64.231.85.194', 'tags': [], 'project_id': '98aa4e170d93443283fe5d3c7a30207d'}}
2025-06-30 15:08:13,278 - INFO - Created VN ctest-vn-10396772
2025-06-30 15:08:13,333 - DEBUG - VN ctest-vn-10396772 UUID is 83b5b948-e571-4100-a66f-28a57f0d755b
2025-06-30 15:08:13,456 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-29462041:ctest-vn-20612857, 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-29462041:ctest-vn-10396772, 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-06-30 15:08:13,780 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '73f22380-ec03-48ab-90c4-2e38592d3b85', 'name': 'ctest-vn-20612857', 'tenant_id': '98aa4e170d93443283fe5d3c7a30207d', 'project_id': '98aa4e170d93443283fe5d3c7a30207d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['feb4e20e-f593-4012-b4f7-20539bca2f59'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-29462041', 'ctest-vn-20612857'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-29462041', 'ctest-policy-allow-all-62271452']], 'subnet_ipam': [{'subnet_cidr': '89.236.157.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-30 15:08:14,020 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '83b5b948-e571-4100-a66f-28a57f0d755b', 'name': 'ctest-vn-10396772', 'tenant_id': '98aa4e170d93443283fe5d3c7a30207d', 'project_id': '98aa4e170d93443283fe5d3c7a30207d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1cd6cd7a-5ee9-4acc-8250-60c828616089'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-29462041', 'ctest-vn-10396772'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-29462041', 'ctest-policy-allow-all-62271452']], 'subnet_ipam': [{'subnet_cidr': '64.231.85.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-30 15:08:14,189 - DEBUG - Requesting: http://10.0.0.161:8082/domains
2025-06-30 15:08:14,494 - DEBUG - Requesting: http://10.0.0.161:8082/domains
2025-06-30 15:08:14,522 - DEBUG - Requesting: http://10.0.0.161:8082/domain/b76e56af-f288-4dab-9179-201d5098011b
2025-06-30 15:08:14,535 - DEBUG - Requesting: http://10.0.0.161:8082/project/98aa4e17-0d93-4432-83fe-5d3c7a30207d
2025-06-30 15:08:14,611 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/73f22380-ec03-48ab-90c4-2e38592d3b85
2025-06-30 15:08:14,622 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/73f22380-ec03-48ab-90c4-2e38592d3b85
2025-06-30 15:08:14,632 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/052e6faf-5773-4076-9404-586b383071a4
2025-06-30 15:08:14,640 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/052e6faf-5773-4076-9404-586b383071a4
2025-06-30 15:08:14,647 - DEBUG - Requesting: http://10.0.0.161:8082/route-target/97f41c8b-6dd3-4b35-a62e-3a3a4673f690
2025-06-30 15:08:14,654 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-30 15:08:14,654 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/73f22380-ec03-48ab-90c4-2e38592d3b85
2025-06-30 15:08:14,664 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/052e6faf-5773-4076-9404-586b383071a4
2025-06-30 15:08:14,678 - INFO - Verified VN network id 8 for VN 73f22380-ec03-48ab-90c4-2e38592d3b85
2025-06-30 15:08:14,678 - INFO - Verifications in API Server for VN ctest-vn-20612857 passed
2025-06-30 15:08:14,679 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/73f22380-ec03-48ab-90c4-2e38592d3b85
2025-06-30 15:08:14,688 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/052e6faf-5773-4076-9404-586b383071a4
2025-06-30 15:08:14,695 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/052e6faf-5773-4076-9404-586b383071a4
2025-06-30 15:08:14,702 - DEBUG - Requesting: http://10.0.0.161:8082/route-target/97f41c8b-6dd3-4b35-a62e-3a3a4673f690
2025-06-30 15:08:14,716 - DEBUG - Control-node 10.0.0.161 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-29462041:ctest-vn-20612857', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-29462041', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8354779295348115627', 'uuid-lslong': '10431513456446094213'}, 'enable': 'true', 'created': '2025-06-30T15:08:12', 'last-modified': '2025-06-30T15:08:13', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.963505'}
2025-06-30 15:08:14,724 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-30 15:08:14,724 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-20612857 passed
2025-06-30 15:08:14,724 - DEBUG - ====Verifying policy data for ctest-vn-20612857 in API_Server ======
2025-06-30 15:08:14,724 - DEBUG - Requesting: http://10.0.0.161:8082/domains
2025-06-30 15:08:14,730 - DEBUG - Requesting: http://10.0.0.161:8082/domain/b76e56af-f288-4dab-9179-201d5098011b
2025-06-30 15:08:14,742 - DEBUG - Requesting: http://10.0.0.161:8082/project/98aa4e17-0d93-4432-83fe-5d3c7a30207d
2025-06-30 15:08:14,825 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/73f22380-ec03-48ab-90c4-2e38592d3b85
2025-06-30 15:08:14,836 - DEBUG - ==>Verifying data for policy with id: 21f1c924-2158-46df-8eb6-1753e739ca8d, fqn: ['default-domain', 'ctest-TestBasicPolicy-29462041', 'ctest-policy-allow-all-62271452']
2025-06-30 15:08:14,836 - INFO - VN ctest-vn-20612857 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-30 15:08:14,836 - DEBUG - Verifying the vn in opserver
2025-06-30 15:08:14,836 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-29462041:ctest-vn-20612857 virtual network link through opserver 10.0.0.161
2025-06-30 15:08:14,836 - DEBUG - Requesting: http://10.0.0.161:8081/analytics/uves/virtual-networks
2025-06-30 15:08:15,129 - DEBUG - Requesting: http://10.0.0.161:8081/analytics/uves/virtual-networks
2025-06-30 15:08:15,183 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-29462041:ctest-vn-20612857', 'href': 'http://10.0.0.161:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-29462041:ctest-vn-20612857?flat'}
2025-06-30 15:08:15,183 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-29462041:ctest-vn-20612857 is found in opserver
2025-06-30 15:08:15,194 - DEBUG - Do not have enough data to verify VN in agent
2025-06-30 15:08:15,200 - DEBUG - VRF ids for VN ctest-vn-20612857: {}
2025-06-30 15:08:15,200 - DEBUG - Requesting: http://10.0.0.161:8082/domains
2025-06-30 15:08:15,205 - DEBUG - Requesting: http://10.0.0.161:8082/domain/b76e56af-f288-4dab-9179-201d5098011b
2025-06-30 15:08:15,218 - DEBUG - Requesting: http://10.0.0.161:8082/project/98aa4e17-0d93-4432-83fe-5d3c7a30207d
2025-06-30 15:08:15,292 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/83b5b948-e571-4100-a66f-28a57f0d755b
2025-06-30 15:08:15,308 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/83b5b948-e571-4100-a66f-28a57f0d755b
2025-06-30 15:08:15,321 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/36aeed1f-a3af-468a-8552-babbd5ec37c3
2025-06-30 15:08:15,329 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/36aeed1f-a3af-468a-8552-babbd5ec37c3
2025-06-30 15:08:15,338 - DEBUG - Requesting: http://10.0.0.161:8082/route-target/1d80fae9-f5f6-42d3-938a-50ba1ed48616
2025-06-30 15:08:15,347 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-30 15:08:15,347 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/83b5b948-e571-4100-a66f-28a57f0d755b
2025-06-30 15:08:15,359 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/36aeed1f-a3af-468a-8552-babbd5ec37c3
2025-06-30 15:08:15,376 - INFO - Verified VN network id 9 for VN 83b5b948-e571-4100-a66f-28a57f0d755b
2025-06-30 15:08:15,376 - INFO - Verifications in API Server for VN ctest-vn-10396772 passed
2025-06-30 15:08:15,376 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/83b5b948-e571-4100-a66f-28a57f0d755b
2025-06-30 15:08:15,388 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/36aeed1f-a3af-468a-8552-babbd5ec37c3
2025-06-30 15:08:15,397 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/36aeed1f-a3af-468a-8552-babbd5ec37c3
2025-06-30 15:08:15,405 - DEBUG - Requesting: http://10.0.0.161:8082/route-target/1d80fae9-f5f6-42d3-938a-50ba1ed48616
2025-06-30 15:08:15,419 - DEBUG - Control-node 10.0.0.161 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-29462041:ctest-vn-10396772', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-29462041', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9490695512491376896', 'uuid-lslong': '11992849023977223515'}, 'enable': 'true', 'created': '2025-06-30T15:08:12', 'last-modified': '2025-06-30T15:08:13', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.415902'}
2025-06-30 15:08:15,427 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-30 15:08:15,427 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-10396772 passed
2025-06-30 15:08:15,427 - DEBUG - ====Verifying policy data for ctest-vn-10396772 in API_Server ======
2025-06-30 15:08:15,427 - DEBUG - Requesting: http://10.0.0.161:8082/domains
2025-06-30 15:08:15,434 - DEBUG - Requesting: http://10.0.0.161:8082/domain/b76e56af-f288-4dab-9179-201d5098011b
2025-06-30 15:08:15,446 - DEBUG - Requesting: http://10.0.0.161:8082/project/98aa4e17-0d93-4432-83fe-5d3c7a30207d
2025-06-30 15:08:15,522 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/83b5b948-e571-4100-a66f-28a57f0d755b
2025-06-30 15:08:15,535 - DEBUG - ==>Verifying data for policy with id: 21f1c924-2158-46df-8eb6-1753e739ca8d, fqn: ['default-domain', 'ctest-TestBasicPolicy-29462041', 'ctest-policy-allow-all-62271452']
2025-06-30 15:08:15,535 - INFO - VN ctest-vn-10396772 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-30 15:08:15,535 - DEBUG - Verifying the vn in opserver
2025-06-30 15:08:15,535 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-29462041:ctest-vn-10396772 virtual network link through opserver 10.0.0.161
2025-06-30 15:08:15,536 - DEBUG - Requesting: http://10.0.0.161:8081/analytics/uves/virtual-networks
2025-06-30 15:08:15,549 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-29462041:ctest-vn-10396772', 'href': 'http://10.0.0.161:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-29462041:ctest-vn-10396772?flat'}
2025-06-30 15:08:15,549 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-29462041:ctest-vn-10396772 is found in opserver
2025-06-30 15:08:15,561 - DEBUG - Do not have enough data to verify VN in agent
2025-06-30 15:08:15,566 - DEBUG - VRF ids for VN ctest-vn-10396772: {}
2025-06-30 15:08:15,622 - DEBUG - Services list from nova: [