2025-03-30 21:01:26,338 - INFO - Domain Default found not creating
2025-03-30 21:01:26,503 - INFO - Project ctest-TestBasicPolicy-87688871 not found, creating it
2025-03-30 21:01:27,009 - INFO - Created Project:ctest-TestBasicPolicy-87688871, ID : 60c1fdba-3c10-4b26-a3e8-2f52c509783f
2025-03-30 21:01:28,569 - INFO - ================================================================================
2025-03-30 21:01:28,569 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-03-30 21:01:28,569 - 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-03-30 21:01:28,833 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.11': '0'}} with
2025-03-30 21:01:28,834 - INFO - Initial checks done. Running the testcase now
2025-03-30 21:01:28,834 - INFO -
2025-03-30 21:01:29,446 - DEBUG - Response for create_network : {'network': {'id': '40537f4e-f727-4847-932c-7c6ff3a6b393', 'name': 'ctest-vn-90616090', 'tenant_id': '60c1fdba3c104b26a3e82f52c509783f', 'project_id': '60c1fdba3c104b26a3e82f52c509783f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-87688871', 'ctest-vn-90616090'], 'port_security_enabled': True, 'description': ''}}
2025-03-30 21:01:29,677 - DEBUG - Response for create_subnet : {'subnet': {'id': '936a6784-8067-46d3-ae67-2ddd6dba9b77', 'name': '', 'tenant_id': '60c1fdba3c104b26a3e82f52c509783f', 'network_id': '40537f4e-f727-4847-932c-7c6ff3a6b393', 'ip_version': 4, 'cidr': '166.215.191.192/26', 'allocation_pools': [{'start': '166.215.191.194', 'end': '166.215.191.254'}], 'gateway_ip': '166.215.191.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '166.215.191.194', 'tags': [], 'project_id': '60c1fdba3c104b26a3e82f52c509783f'}}
2025-03-30 21:01:29,701 - INFO - Created VN ctest-vn-90616090
2025-03-30 21:01:29,757 - DEBUG - VN ctest-vn-90616090 UUID is 40537f4e-f727-4847-932c-7c6ff3a6b393
2025-03-30 21:01:30,068 - DEBUG - Response for create_network : {'network': {'id': '4082ac21-4c13-42dc-a5f5-28c8fb20bc57', 'name': 'ctest-vn-50432971', 'tenant_id': '60c1fdba3c104b26a3e82f52c509783f', 'project_id': '60c1fdba3c104b26a3e82f52c509783f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-87688871', 'ctest-vn-50432971'], 'port_security_enabled': True, 'description': ''}}
2025-03-30 21:01:30,294 - DEBUG - Response for create_subnet : {'subnet': {'id': '135aed1c-b630-4573-b049-c59b7e955b87', 'name': '', 'tenant_id': '60c1fdba3c104b26a3e82f52c509783f', 'network_id': '4082ac21-4c13-42dc-a5f5-28c8fb20bc57', 'ip_version': 4, 'cidr': '219.121.150.0/26', 'allocation_pools': [{'start': '219.121.150.2', 'end': '219.121.150.62'}], 'gateway_ip': '219.121.150.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '219.121.150.2', 'tags': [], 'project_id': '60c1fdba3c104b26a3e82f52c509783f'}}
2025-03-30 21:01:30,315 - INFO - Created VN ctest-vn-50432971
2025-03-30 21:01:30,369 - DEBUG - VN ctest-vn-50432971 UUID is 4082ac21-4c13-42dc-a5f5-28c8fb20bc57
2025-03-30 21:01:30,490 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-87688871:ctest-vn-90616090, 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-87688871:ctest-vn-50432971, 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-03-30 21:01:30,793 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '40537f4e-f727-4847-932c-7c6ff3a6b393', 'name': 'ctest-vn-90616090', 'tenant_id': '60c1fdba3c104b26a3e82f52c509783f', 'project_id': '60c1fdba3c104b26a3e82f52c509783f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['936a6784-8067-46d3-ae67-2ddd6dba9b77'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-87688871', 'ctest-vn-90616090'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-87688871', 'ctest-policy-allow-all-71215193']], 'subnet_ipam': [{'subnet_cidr': '166.215.191.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-03-30 21:01:31,048 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4082ac21-4c13-42dc-a5f5-28c8fb20bc57', 'name': 'ctest-vn-50432971', 'tenant_id': '60c1fdba3c104b26a3e82f52c509783f', 'project_id': '60c1fdba3c104b26a3e82f52c509783f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['135aed1c-b630-4573-b049-c59b7e955b87'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-87688871', 'ctest-vn-50432971'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-87688871', 'ctest-policy-allow-all-71215193']], 'subnet_ipam': [{'subnet_cidr': '219.121.150.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-03-30 21:01:31,229 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-03-30 21:01:31,547 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-03-30 21:01:31,579 - DEBUG - Requesting: http://10.0.0.22:8082/domain/e9b01fc4-a740-4c1a-9be4-6b6ca53a385a
2025-03-30 21:01:31,595 - DEBUG - Requesting: http://10.0.0.22:8082/project/60c1fdba-3c10-4b26-a3e8-2f52c509783f
2025-03-30 21:01:31,678 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/40537f4e-f727-4847-932c-7c6ff3a6b393
2025-03-30 21:01:31,692 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/40537f4e-f727-4847-932c-7c6ff3a6b393
2025-03-30 21:01:31,704 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/5573bcde-481b-43da-95a6-bb7703c1a526
2025-03-30 21:01:31,714 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/5573bcde-481b-43da-95a6-bb7703c1a526
2025-03-30 21:01:31,722 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/067039dd-c4e0-490b-85ac-9651f6e78f5d
2025-03-30 21:01:31,729 - DEBUG - Route Targets: ['target:64512:8000004']
2025-03-30 21:01:31,729 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/40537f4e-f727-4847-932c-7c6ff3a6b393
2025-03-30 21:01:31,740 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/5573bcde-481b-43da-95a6-bb7703c1a526
2025-03-30 21:01:31,757 - INFO - Verified VN network id 8 for VN 40537f4e-f727-4847-932c-7c6ff3a6b393
2025-03-30 21:01:31,758 - INFO - Verifications in API Server for VN ctest-vn-90616090 passed
2025-03-30 21:01:31,758 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/40537f4e-f727-4847-932c-7c6ff3a6b393
2025-03-30 21:01:31,771 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/5573bcde-481b-43da-95a6-bb7703c1a526
2025-03-30 21:01:31,779 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/5573bcde-481b-43da-95a6-bb7703c1a526
2025-03-30 21:01:31,788 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/067039dd-c4e0-490b-85ac-9651f6e78f5d
2025-03-30 21:01:31,802 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-87688871:ctest-vn-90616090', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-87688871', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4635188418625095751', 'uuid-lslong': '10604988042821677971'}, 'enable': 'true', 'created': '2025-03-30T21:01:29', 'last-modified': '2025-03-30T21:01:30', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.030990'}
2025-03-30 21:01:31,810 - DEBUG - Route Targets: ['target:64512:8000004']
2025-03-30 21:01:31,810 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-90616090 passed
2025-03-30 21:01:31,810 - DEBUG - ====Verifying policy data for ctest-vn-90616090 in API_Server ======
2025-03-30 21:01:31,810 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-03-30 21:01:31,816 - DEBUG - Requesting: http://10.0.0.22:8082/domain/e9b01fc4-a740-4c1a-9be4-6b6ca53a385a
2025-03-30 21:01:31,829 - DEBUG - Requesting: http://10.0.0.22:8082/project/60c1fdba-3c10-4b26-a3e8-2f52c509783f
2025-03-30 21:01:31,908 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/40537f4e-f727-4847-932c-7c6ff3a6b393
2025-03-30 21:01:31,919 - DEBUG - ==>Verifying data for policy with id: 575b2639-2448-4f9f-a1c4-35afceb88468, fqn: ['default-domain', 'ctest-TestBasicPolicy-87688871', 'ctest-policy-allow-all-71215193']
2025-03-30 21:01:31,919 - INFO - VN ctest-vn-90616090 Policy verification: verify_vn_policy_in_api_server, status: True
2025-03-30 21:01:31,919 - DEBUG - Verifying the vn in opserver
2025-03-30 21:01:31,919 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-87688871:ctest-vn-90616090 virtual network link through opserver 10.0.0.22
2025-03-30 21:01:31,919 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-03-30 21:01:32,231 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-03-30 21:01:32,298 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-87688871:ctest-vn-90616090', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-87688871:ctest-vn-90616090?flat'}
2025-03-30 21:01:32,298 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-87688871:ctest-vn-90616090 is found in opserver
2025-03-30 21:01:32,310 - DEBUG - Do not have enough data to verify VN in agent
2025-03-30 21:01:32,316 - DEBUG - VRF ids for VN ctest-vn-90616090: {}
2025-03-30 21:01:32,316 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-03-30 21:01:32,324 - DEBUG - Requesting: http://10.0.0.22:8082/domain/e9b01fc4-a740-4c1a-9be4-6b6ca53a385a
2025-03-30 21:01:32,338 - DEBUG - Requesting: http://10.0.0.22:8082/project/60c1fdba-3c10-4b26-a3e8-2f52c509783f
2025-03-30 21:01:32,419 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/4082ac21-4c13-42dc-a5f5-28c8fb20bc57
2025-03-30 21:01:32,433 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/4082ac21-4c13-42dc-a5f5-28c8fb20bc57
2025-03-30 21:01:32,444 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/3521fe35-ef5b-4e25-ae30-0e964653bf8a
2025-03-30 21:01:32,451 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/3521fe35-ef5b-4e25-ae30-0e964653bf8a
2025-03-30 21:01:32,459 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/c393b408-7374-4a4b-be4f-f0208b81b1ad
2025-03-30 21:01:32,466 - DEBUG - Route Targets: ['target:64512:8000005']
2025-03-30 21:01:32,466 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/4082ac21-4c13-42dc-a5f5-28c8fb20bc57
2025-03-30 21:01:32,478 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/3521fe35-ef5b-4e25-ae30-0e964653bf8a
2025-03-30 21:01:32,492 - INFO - Verified VN network id 9 for VN 4082ac21-4c13-42dc-a5f5-28c8fb20bc57
2025-03-30 21:01:32,493 - INFO - Verifications in API Server for VN ctest-vn-50432971 passed
2025-03-30 21:01:32,493 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/4082ac21-4c13-42dc-a5f5-28c8fb20bc57
2025-03-30 21:01:32,503 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/3521fe35-ef5b-4e25-ae30-0e964653bf8a
2025-03-30 21:01:32,511 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/3521fe35-ef5b-4e25-ae30-0e964653bf8a
2025-03-30 21:01:32,521 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/c393b408-7374-4a4b-be4f-f0208b81b1ad
2025-03-30 21:01:32,534 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-87688871:ctest-vn-50432971', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-87688871', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4648467024410002140', 'uuid-lslong': '11958509229224016983'}, 'enable': 'true', 'created': '2025-03-30T21:01:30', 'last-modified': '2025-03-30T21:01:31', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.513842'}
2025-03-30 21:01:32,541 - DEBUG - Route Targets: ['target:64512:8000005']
2025-03-30 21:01:32,541 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-50432971 passed
2025-03-30 21:01:32,542 - DEBUG - ====Verifying policy data for ctest-vn-50432971 in API_Server ======
2025-03-30 21:01:32,542 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-03-30 21:01:32,548 - DEBUG - Requesting: http://10.0.0.22:8082/domain/e9b01fc4-a740-4c1a-9be4-6b6ca53a385a
2025-03-30 21:01:32,561 - DEBUG - Requesting: http://10.0.0.22:8082/project/60c1fdba-3c10-4b26-a3e8-2f52c509783f
2025-03-30 21:01:32,638 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/4082ac21-4c13-42dc-a5f5-28c8fb20bc57
2025-03-30 21:01:32,649 - DEBUG - ==>Verifying data for policy with id: 575b2639-2448-4f9f-a1c4-35afceb88468, fqn: ['default-domain', 'ctest-TestBasicPolicy-87688871', 'ctest-policy-allow-all-71215193']
2025-03-30 21:01:32,649 - INFO - VN ctest-vn-50432971 Policy verification: verify_vn_policy_in_api_server, status: True
2025-03-30 21:01:32,649 - DEBUG - Verifying the vn in opserver
2025-03-30 21:01:32,649 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-87688871:ctest-vn-50432971 virtual network link through opserver 10.0.0.22
2025-03-30 21:01:32,650 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-03-30 21:01:32,662 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-87688871:ctest-vn-50432971', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-87688871:ctest-vn-50432971?flat'}
2025-03-30 21:01:32,662 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-87688871:ctest-vn-50432971 is found in opserver
2025-03-30 21:01:32,675 - DEBUG - Do not have enough data to verify VN in agent
2025-03-30 21:01:32,681 - DEBUG - VRF ids for VN ctest-vn-50432971: {}
2025-03-30 21:01:32,747 - DEBUG - Services list from nova: [