2025-05-15 11:24:54,150 - INFO - Domain Default found not creating
2025-05-15 11:24:54,329 - INFO - Project ctest-TestBasicPolicy-56924845 not found, creating it
2025-05-15 11:24:54,841 - INFO - Created Project:ctest-TestBasicPolicy-56924845, ID : e42f9875-7703-4682-8081-7b751ff7a76f
2025-05-15 11:24:56,562 - INFO - ================================================================================
2025-05-15 11:24:56,562 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-05-15 11:24:56,562 - 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-05-15 11:24:56,823 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with
2025-05-15 11:24:56,823 - INFO - Initial checks done. Running the testcase now
2025-05-15 11:24:56,824 - INFO -
2025-05-15 11:24:57,490 - DEBUG - Response for create_network : {'network': {'id': '3ed658d1-d222-4633-8e53-82b35a3a853f', 'name': 'ctest-vn-31236683', 'tenant_id': 'e42f98757703468280817b751ff7a76f', 'project_id': 'e42f98757703468280817b751ff7a76f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-56924845', 'ctest-vn-31236683'], 'port_security_enabled': True, 'description': ''}}
2025-05-15 11:24:57,681 - DEBUG - Response for create_subnet : {'subnet': {'id': '75dc8266-97b3-4cce-9097-957b3bf7e1e6', 'name': '', 'tenant_id': 'e42f98757703468280817b751ff7a76f', 'network_id': '3ed658d1-d222-4633-8e53-82b35a3a853f', 'ip_version': 4, 'cidr': '12.147.116.0/26', 'allocation_pools': [{'start': '12.147.116.2', 'end': '12.147.116.62'}], 'gateway_ip': '12.147.116.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '12.147.116.2', 'tags': [], 'project_id': 'e42f98757703468280817b751ff7a76f'}}
2025-05-15 11:24:57,704 - INFO - Created VN ctest-vn-31236683
2025-05-15 11:24:57,763 - DEBUG - VN ctest-vn-31236683 UUID is 3ed658d1-d222-4633-8e53-82b35a3a853f
2025-05-15 11:24:58,118 - DEBUG - Response for create_network : {'network': {'id': 'de89cd30-d184-4124-b488-e282c655b847', 'name': 'ctest-vn-26270913', 'tenant_id': 'e42f98757703468280817b751ff7a76f', 'project_id': 'e42f98757703468280817b751ff7a76f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-56924845', 'ctest-vn-26270913'], 'port_security_enabled': True, 'description': ''}}
2025-05-15 11:24:58,310 - DEBUG - Response for create_subnet : {'subnet': {'id': '652d3cb7-4f15-4704-8684-9750137ec867', 'name': '', 'tenant_id': 'e42f98757703468280817b751ff7a76f', 'network_id': 'de89cd30-d184-4124-b488-e282c655b847', 'ip_version': 4, 'cidr': '92.175.31.0/26', 'allocation_pools': [{'start': '92.175.31.2', 'end': '92.175.31.62'}], 'gateway_ip': '92.175.31.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '92.175.31.2', 'tags': [], 'project_id': 'e42f98757703468280817b751ff7a76f'}}
2025-05-15 11:24:58,342 - INFO - Created VN ctest-vn-26270913
2025-05-15 11:24:58,399 - DEBUG - VN ctest-vn-26270913 UUID is de89cd30-d184-4124-b488-e282c655b847
2025-05-15 11:24:58,536 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-56924845:ctest-vn-31236683, 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-56924845:ctest-vn-26270913, 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-05-15 11:24:58,880 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3ed658d1-d222-4633-8e53-82b35a3a853f', 'name': 'ctest-vn-31236683', 'tenant_id': 'e42f98757703468280817b751ff7a76f', 'project_id': 'e42f98757703468280817b751ff7a76f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['75dc8266-97b3-4cce-9097-957b3bf7e1e6'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-56924845', 'ctest-vn-31236683'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-56924845', 'ctest-policy-allow-all-29609472']], 'subnet_ipam': [{'subnet_cidr': '12.147.116.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-05-15 11:24:59,128 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'de89cd30-d184-4124-b488-e282c655b847', 'name': 'ctest-vn-26270913', 'tenant_id': 'e42f98757703468280817b751ff7a76f', 'project_id': 'e42f98757703468280817b751ff7a76f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['652d3cb7-4f15-4704-8684-9750137ec867'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-56924845', 'ctest-vn-26270913'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-56924845', 'ctest-policy-allow-all-29609472']], 'subnet_ipam': [{'subnet_cidr': '92.175.31.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-05-15 11:24:59,311 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-05-15 11:24:59,665 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-05-15 11:24:59,701 - DEBUG - Requesting: http://10.0.0.50:8082/domain/fbe25599-7fc4-4a12-9ceb-02e3f93b9c23
2025-05-15 11:24:59,720 - DEBUG - Requesting: http://10.0.0.50:8082/project/e42f9875-7703-4682-8081-7b751ff7a76f
2025-05-15 11:24:59,810 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/3ed658d1-d222-4633-8e53-82b35a3a853f
2025-05-15 11:24:59,824 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/3ed658d1-d222-4633-8e53-82b35a3a853f
2025-05-15 11:24:59,836 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/bacddf92-ce92-436f-9941-fbdcf59d7220
2025-05-15 11:24:59,847 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/bacddf92-ce92-436f-9941-fbdcf59d7220
2025-05-15 11:24:59,857 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/1d5b847d-a8fe-4910-a2fa-1ea287143a76
2025-05-15 11:24:59,869 - DEBUG - Route Targets: ['target:64512:8000005']
2025-05-15 11:24:59,869 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/3ed658d1-d222-4633-8e53-82b35a3a853f
2025-05-15 11:24:59,882 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/bacddf92-ce92-436f-9941-fbdcf59d7220
2025-05-15 11:24:59,900 - INFO - Verified VN network id 8 for VN 3ed658d1-d222-4633-8e53-82b35a3a853f
2025-05-15 11:24:59,901 - INFO - Verifications in API Server for VN ctest-vn-31236683 passed
2025-05-15 11:24:59,901 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/3ed658d1-d222-4633-8e53-82b35a3a853f
2025-05-15 11:24:59,914 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/bacddf92-ce92-436f-9941-fbdcf59d7220
2025-05-15 11:24:59,924 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/bacddf92-ce92-436f-9941-fbdcf59d7220
2025-05-15 11:24:59,933 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/1d5b847d-a8fe-4910-a2fa-1ea287143a76
2025-05-15 11:24:59,949 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-56924845:ctest-vn-31236683', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-56924845', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4527904133564483123', 'uuid-lslong': '10255684483277292863'}, 'enable': 'true', 'created': '2025-05-15T11:24:57', 'last-modified': '2025-05-15T11:24:58', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.110193'}
2025-05-15 11:24:59,957 - DEBUG - Route Targets: ['target:64512:8000005']
2025-05-15 11:24:59,957 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-31236683 passed
2025-05-15 11:24:59,958 - DEBUG - ====Verifying policy data for ctest-vn-31236683 in API_Server ======
2025-05-15 11:24:59,958 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-05-15 11:24:59,965 - DEBUG - Requesting: http://10.0.0.50:8082/domain/fbe25599-7fc4-4a12-9ceb-02e3f93b9c23
2025-05-15 11:24:59,979 - DEBUG - Requesting: http://10.0.0.50:8082/project/e42f9875-7703-4682-8081-7b751ff7a76f
2025-05-15 11:25:00,064 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/3ed658d1-d222-4633-8e53-82b35a3a853f
2025-05-15 11:25:00,077 - DEBUG - ==>Verifying data for policy with id: a3f35577-a266-4385-93ec-7983822b3d6a, fqn: ['default-domain', 'ctest-TestBasicPolicy-56924845', 'ctest-policy-allow-all-29609472']
2025-05-15 11:25:00,077 - INFO - VN ctest-vn-31236683 Policy verification: verify_vn_policy_in_api_server, status: True
2025-05-15 11:25:00,077 - DEBUG - Verifying the vn in opserver
2025-05-15 11:25:00,077 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-56924845:ctest-vn-31236683 virtual network link through opserver 10.0.0.50
2025-05-15 11:25:00,077 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-05-15 11:25:00,422 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-05-15 11:25:00,487 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-56924845:ctest-vn-31236683', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-56924845:ctest-vn-31236683?flat'}
2025-05-15 11:25:00,487 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-56924845:ctest-vn-31236683 is found in opserver
2025-05-15 11:25:00,500 - DEBUG - Do not have enough data to verify VN in agent
2025-05-15 11:25:00,506 - DEBUG - VRF ids for VN ctest-vn-31236683: {}
2025-05-15 11:25:00,506 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-05-15 11:25:00,514 - DEBUG - Requesting: http://10.0.0.50:8082/domain/fbe25599-7fc4-4a12-9ceb-02e3f93b9c23
2025-05-15 11:25:00,529 - DEBUG - Requesting: http://10.0.0.50:8082/project/e42f9875-7703-4682-8081-7b751ff7a76f
2025-05-15 11:25:00,622 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/de89cd30-d184-4124-b488-e282c655b847
2025-05-15 11:25:00,639 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/de89cd30-d184-4124-b488-e282c655b847
2025-05-15 11:25:00,654 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/00fca1b5-56f5-4958-9e99-e707c48e101f
2025-05-15 11:25:00,667 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/00fca1b5-56f5-4958-9e99-e707c48e101f
2025-05-15 11:25:00,676 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/dae7836c-4f2f-4ff2-81ec-00c70bfb02cc
2025-05-15 11:25:00,684 - DEBUG - Route Targets: ['target:64512:8000006']
2025-05-15 11:25:00,684 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/de89cd30-d184-4124-b488-e282c655b847
2025-05-15 11:25:00,694 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/00fca1b5-56f5-4958-9e99-e707c48e101f
2025-05-15 11:25:00,710 - INFO - Verified VN network id 9 for VN de89cd30-d184-4124-b488-e282c655b847
2025-05-15 11:25:00,710 - INFO - Verifications in API Server for VN ctest-vn-26270913 passed
2025-05-15 11:25:00,711 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/de89cd30-d184-4124-b488-e282c655b847
2025-05-15 11:25:00,722 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/00fca1b5-56f5-4958-9e99-e707c48e101f
2025-05-15 11:25:00,731 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/00fca1b5-56f5-4958-9e99-e707c48e101f
2025-05-15 11:25:00,739 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/dae7836c-4f2f-4ff2-81ec-00c70bfb02cc
2025-05-15 11:25:00,754 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-56924845:ctest-vn-26270913', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-56924845', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16035573557786591524', 'uuid-lslong': '13008896574960810055'}, 'enable': 'true', 'created': '2025-05-15T11:24:58', 'last-modified': '2025-05-15T11:24:59', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.652317'}
2025-05-15 11:25:00,762 - DEBUG - Route Targets: ['target:64512:8000006']
2025-05-15 11:25:00,762 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-26270913 passed
2025-05-15 11:25:00,762 - DEBUG - ====Verifying policy data for ctest-vn-26270913 in API_Server ======
2025-05-15 11:25:00,762 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-05-15 11:25:00,770 - DEBUG - Requesting: http://10.0.0.50:8082/domain/fbe25599-7fc4-4a12-9ceb-02e3f93b9c23
2025-05-15 11:25:00,785 - DEBUG - Requesting: http://10.0.0.50:8082/project/e42f9875-7703-4682-8081-7b751ff7a76f
2025-05-15 11:25:00,880 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/de89cd30-d184-4124-b488-e282c655b847
2025-05-15 11:25:00,893 - DEBUG - ==>Verifying data for policy with id: a3f35577-a266-4385-93ec-7983822b3d6a, fqn: ['default-domain', 'ctest-TestBasicPolicy-56924845', 'ctest-policy-allow-all-29609472']
2025-05-15 11:25:00,893 - INFO - VN ctest-vn-26270913 Policy verification: verify_vn_policy_in_api_server, status: True
2025-05-15 11:25:00,893 - DEBUG - Verifying the vn in opserver
2025-05-15 11:25:00,893 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-56924845:ctest-vn-26270913 virtual network link through opserver 10.0.0.50
2025-05-15 11:25:00,893 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-05-15 11:25:00,907 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-56924845:ctest-vn-26270913', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-56924845:ctest-vn-26270913?flat'}
2025-05-15 11:25:00,907 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-56924845:ctest-vn-26270913 is found in opserver
2025-05-15 11:25:00,920 - DEBUG - Do not have enough data to verify VN in agent
2025-05-15 11:25:00,926 - DEBUG - VRF ids for VN ctest-vn-26270913: {}
2025-05-15 11:25:01,018 - DEBUG - Services list from nova: [