2025-04-23 12:08:10,959 - INFO - Domain Default found not creating
2025-04-23 12:08:11,097 - INFO - Project ctest-TestBasicPolicy-04708866 not found, creating it
2025-04-23 12:08:11,543 - INFO - Created Project:ctest-TestBasicPolicy-04708866, ID : 11cad69e-159e-4405-abb4-0c2f18c323b9
2025-04-23 12:08:13,095 - INFO - ================================================================================
2025-04-23 12:08:13,096 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-04-23 12:08:13,096 - 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-04-23 12:08:13,353 - DEBUG - Nothing to compare xmpp stats {'10.0.0.57': {'10.20.0.17': '0'}} with
2025-04-23 12:08:13,353 - INFO - Initial checks done. Running the testcase now
2025-04-23 12:08:13,353 - INFO -
2025-04-23 12:08:13,923 - DEBUG - Response for create_network : {'network': {'id': 'cf7da0f6-b225-463d-ac01-1e6d489b7bb5', 'name': 'ctest-vn-17179660', 'tenant_id': '11cad69e159e4405abb40c2f18c323b9', 'project_id': '11cad69e159e4405abb40c2f18c323b9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-04708866', 'ctest-vn-17179660'], 'port_security_enabled': True, 'description': ''}}
2025-04-23 12:08:14,107 - DEBUG - Response for create_subnet : {'subnet': {'id': '291bbf53-8501-479a-8684-03e42c0014e0', 'name': '', 'tenant_id': '11cad69e159e4405abb40c2f18c323b9', 'network_id': 'cf7da0f6-b225-463d-ac01-1e6d489b7bb5', 'ip_version': 4, 'cidr': '53.254.60.192/26', 'allocation_pools': [{'start': '53.254.60.194', 'end': '53.254.60.254'}], 'gateway_ip': '53.254.60.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '53.254.60.194', 'tags': [], 'project_id': '11cad69e159e4405abb40c2f18c323b9'}}
2025-04-23 12:08:14,124 - INFO - Created VN ctest-vn-17179660
2025-04-23 12:08:14,175 - DEBUG - VN ctest-vn-17179660 UUID is cf7da0f6-b225-463d-ac01-1e6d489b7bb5
2025-04-23 12:08:14,496 - DEBUG - Response for create_network : {'network': {'id': '42509605-15bc-4416-988d-5d5aa48acf09', 'name': 'ctest-vn-24006790', 'tenant_id': '11cad69e159e4405abb40c2f18c323b9', 'project_id': '11cad69e159e4405abb40c2f18c323b9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-04708866', 'ctest-vn-24006790'], 'port_security_enabled': True, 'description': ''}}
2025-04-23 12:08:14,649 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c5f1cb6e-441f-4aca-ae83-95052bb63f78', 'name': '', 'tenant_id': '11cad69e159e4405abb40c2f18c323b9', 'network_id': '42509605-15bc-4416-988d-5d5aa48acf09', 'ip_version': 4, 'cidr': '132.6.135.0/26', 'allocation_pools': [{'start': '132.6.135.2', 'end': '132.6.135.62'}], 'gateway_ip': '132.6.135.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '132.6.135.2', 'tags': [], 'project_id': '11cad69e159e4405abb40c2f18c323b9'}}
2025-04-23 12:08:14,665 - INFO - Created VN ctest-vn-24006790
2025-04-23 12:08:14,719 - DEBUG - VN ctest-vn-24006790 UUID is 42509605-15bc-4416-988d-5d5aa48acf09
2025-04-23 12:08:14,830 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-04708866:ctest-vn-17179660, 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-04708866:ctest-vn-24006790, 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-04-23 12:08:15,128 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'cf7da0f6-b225-463d-ac01-1e6d489b7bb5', 'name': 'ctest-vn-17179660', 'tenant_id': '11cad69e159e4405abb40c2f18c323b9', 'project_id': '11cad69e159e4405abb40c2f18c323b9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['291bbf53-8501-479a-8684-03e42c0014e0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-04708866', 'ctest-vn-17179660'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-04708866', 'ctest-policy-allow-all-41583997']], 'subnet_ipam': [{'subnet_cidr': '53.254.60.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-23 12:08:15,346 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '42509605-15bc-4416-988d-5d5aa48acf09', 'name': 'ctest-vn-24006790', 'tenant_id': '11cad69e159e4405abb40c2f18c323b9', 'project_id': '11cad69e159e4405abb40c2f18c323b9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c5f1cb6e-441f-4aca-ae83-95052bb63f78'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-04708866', 'ctest-vn-24006790'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-04708866', 'ctest-policy-allow-all-41583997']], 'subnet_ipam': [{'subnet_cidr': '132.6.135.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-23 12:08:15,519 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2025-04-23 12:08:15,857 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2025-04-23 12:08:15,884 - DEBUG - Requesting: http://10.0.0.57:8082/domain/56884d59-a999-4a17-bebc-aab0921d23ae
2025-04-23 12:08:15,897 - DEBUG - Requesting: http://10.0.0.57:8082/project/11cad69e-159e-4405-abb4-0c2f18c323b9
2025-04-23 12:08:15,967 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/cf7da0f6-b225-463d-ac01-1e6d489b7bb5
2025-04-23 12:08:15,979 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/cf7da0f6-b225-463d-ac01-1e6d489b7bb5
2025-04-23 12:08:15,988 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/a48b3122-3b83-46de-9465-da7f7565723c
2025-04-23 12:08:15,995 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/a48b3122-3b83-46de-9465-da7f7565723c
2025-04-23 12:08:16,003 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/0b23838d-9971-48b6-980b-e7104e35ebed
2025-04-23 12:08:16,009 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-23 12:08:16,009 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/cf7da0f6-b225-463d-ac01-1e6d489b7bb5
2025-04-23 12:08:16,018 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/a48b3122-3b83-46de-9465-da7f7565723c
2025-04-23 12:08:16,032 - INFO - Verified VN network id 7 for VN cf7da0f6-b225-463d-ac01-1e6d489b7bb5
2025-04-23 12:08:16,032 - INFO - Verifications in API Server for VN ctest-vn-17179660 passed
2025-04-23 12:08:16,032 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/cf7da0f6-b225-463d-ac01-1e6d489b7bb5
2025-04-23 12:08:16,041 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/a48b3122-3b83-46de-9465-da7f7565723c
2025-04-23 12:08:16,047 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/a48b3122-3b83-46de-9465-da7f7565723c
2025-04-23 12:08:16,054 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/0b23838d-9971-48b6-980b-e7104e35ebed
2025-04-23 12:08:16,066 - DEBUG - Control-node 10.0.0.57 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-04708866:ctest-vn-17179660', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-04708866', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14951283319351100989', 'uuid-lslong': '12394221104218733493'}, 'enable': 'true', 'created': '2025-04-23T12:08:13', 'last-modified': '2025-04-23T12:08:15', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.965110'}
2025-04-23 12:08:16,073 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-23 12:08:16,073 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-17179660 passed
2025-04-23 12:08:16,073 - DEBUG - ====Verifying policy data for ctest-vn-17179660 in API_Server ======
2025-04-23 12:08:16,073 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2025-04-23 12:08:16,078 - DEBUG - Requesting: http://10.0.0.57:8082/domain/56884d59-a999-4a17-bebc-aab0921d23ae
2025-04-23 12:08:16,089 - DEBUG - Requesting: http://10.0.0.57:8082/project/11cad69e-159e-4405-abb4-0c2f18c323b9
2025-04-23 12:08:16,160 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/cf7da0f6-b225-463d-ac01-1e6d489b7bb5
2025-04-23 12:08:16,170 - DEBUG - ==>Verifying data for policy with id: c8202b57-d9a2-4a03-83be-d8fbc553c9d1, fqn: ['default-domain', 'ctest-TestBasicPolicy-04708866', 'ctest-policy-allow-all-41583997']
2025-04-23 12:08:16,170 - INFO - VN ctest-vn-17179660 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-23 12:08:16,170 - DEBUG - Verifying the vn in opserver
2025-04-23 12:08:16,170 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-04708866:ctest-vn-17179660 virtual network link through opserver 10.0.0.57
2025-04-23 12:08:16,170 - DEBUG - Requesting: http://10.0.0.57:8081/analytics/uves/virtual-networks
2025-04-23 12:08:16,507 - DEBUG - Requesting: http://10.0.0.57:8081/analytics/uves/virtual-networks
2025-04-23 12:08:16,561 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-04708866:ctest-vn-17179660', 'href': 'http://10.0.0.57:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-04708866:ctest-vn-17179660?flat'}
2025-04-23 12:08:16,561 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-04708866:ctest-vn-17179660 is found in opserver
2025-04-23 12:08:16,572 - DEBUG - Do not have enough data to verify VN in agent
2025-04-23 12:08:16,577 - DEBUG - VRF ids for VN ctest-vn-17179660: {}
2025-04-23 12:08:16,577 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2025-04-23 12:08:16,582 - DEBUG - Requesting: http://10.0.0.57:8082/domain/56884d59-a999-4a17-bebc-aab0921d23ae
2025-04-23 12:08:16,596 - DEBUG - Requesting: http://10.0.0.57:8082/project/11cad69e-159e-4405-abb4-0c2f18c323b9
2025-04-23 12:08:16,667 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/42509605-15bc-4416-988d-5d5aa48acf09
2025-04-23 12:08:16,679 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/42509605-15bc-4416-988d-5d5aa48acf09
2025-04-23 12:08:16,689 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/ee639191-6d1f-43ef-88f2-69d3d8631f89
2025-04-23 12:08:16,696 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/ee639191-6d1f-43ef-88f2-69d3d8631f89
2025-04-23 12:08:16,702 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/1a2c9e9c-918e-45cd-8350-d34dbbbd730b
2025-04-23 12:08:16,708 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-23 12:08:16,708 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/42509605-15bc-4416-988d-5d5aa48acf09
2025-04-23 12:08:16,717 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/ee639191-6d1f-43ef-88f2-69d3d8631f89
2025-04-23 12:08:16,731 - INFO - Verified VN network id 8 for VN 42509605-15bc-4416-988d-5d5aa48acf09
2025-04-23 12:08:16,731 - INFO - Verifications in API Server for VN ctest-vn-24006790 passed
2025-04-23 12:08:16,731 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/42509605-15bc-4416-988d-5d5aa48acf09
2025-04-23 12:08:16,740 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/ee639191-6d1f-43ef-88f2-69d3d8631f89
2025-04-23 12:08:16,747 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/ee639191-6d1f-43ef-88f2-69d3d8631f89
2025-04-23 12:08:16,753 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/1a2c9e9c-918e-45cd-8350-d34dbbbd730b
2025-04-23 12:08:16,765 - DEBUG - Control-node 10.0.0.57 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-04708866:ctest-vn-24006790', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-04708866', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4778484153223758870', 'uuid-lslong': '10992544909370248969'}, 'enable': 'true', 'created': '2025-04-23T12:08:14', 'last-modified': '2025-04-23T12:08:15', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.437522'}
2025-04-23 12:08:16,773 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-23 12:08:16,773 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-24006790 passed
2025-04-23 12:08:16,773 - DEBUG - ====Verifying policy data for ctest-vn-24006790 in API_Server ======
2025-04-23 12:08:16,773 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2025-04-23 12:08:16,779 - DEBUG - Requesting: http://10.0.0.57:8082/domain/56884d59-a999-4a17-bebc-aab0921d23ae
2025-04-23 12:08:16,790 - DEBUG - Requesting: http://10.0.0.57:8082/project/11cad69e-159e-4405-abb4-0c2f18c323b9
2025-04-23 12:08:16,861 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/42509605-15bc-4416-988d-5d5aa48acf09
2025-04-23 12:08:16,874 - DEBUG - ==>Verifying data for policy with id: c8202b57-d9a2-4a03-83be-d8fbc553c9d1, fqn: ['default-domain', 'ctest-TestBasicPolicy-04708866', 'ctest-policy-allow-all-41583997']
2025-04-23 12:08:16,874 - INFO - VN ctest-vn-24006790 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-23 12:08:16,874 - DEBUG - Verifying the vn in opserver
2025-04-23 12:08:16,874 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-04708866:ctest-vn-24006790 virtual network link through opserver 10.0.0.57
2025-04-23 12:08:16,874 - DEBUG - Requesting: http://10.0.0.57:8081/analytics/uves/virtual-networks
2025-04-23 12:08:16,885 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-04708866:ctest-vn-24006790', 'href': 'http://10.0.0.57:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-04708866:ctest-vn-24006790?flat'}
2025-04-23 12:08:16,885 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-04708866:ctest-vn-24006790 is found in opserver
2025-04-23 12:08:16,895 - DEBUG - Do not have enough data to verify VN in agent
2025-04-23 12:08:16,901 - DEBUG - VRF ids for VN ctest-vn-24006790: {}
2025-04-23 12:08:16,953 - DEBUG - Services list from nova: [