2025-03-19 11:20:20,011 - INFO - Domain Default found not creating
2025-03-19 11:20:20,146 - INFO - Project ctest-TestBasicPolicy-48203878 not found, creating it
2025-03-19 11:20:20,596 - INFO - Created Project:ctest-TestBasicPolicy-48203878, ID : e2196420-32a3-4e66-9708-d388c8d16f9d
2025-03-19 11:20:22,017 - INFO - ================================================================================
2025-03-19 11:20:22,017 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-03-19 11:20:22,017 - 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-19 11:20:22,274 - DEBUG - Nothing to compare xmpp stats {'10.0.0.29': {'10.20.0.7': '0'}} with
2025-03-19 11:20:22,274 - INFO - Initial checks done. Running the testcase now
2025-03-19 11:20:22,274 - INFO -
2025-03-19 11:20:22,847 - DEBUG - Response for create_network : {'network': {'id': 'a53fa2fb-217b-4658-9575-1e4ec0f51cf2', 'name': 'ctest-vn-72985935', 'tenant_id': 'e219642032a34e669708d388c8d16f9d', 'project_id': 'e219642032a34e669708d388c8d16f9d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-48203878', 'ctest-vn-72985935'], 'port_security_enabled': True, 'description': ''}}
2025-03-19 11:20:23,002 - DEBUG - Response for create_subnet : {'subnet': {'id': '6f3c3224-414c-4199-a2c3-b4ff3294ae00', 'name': '', 'tenant_id': 'e219642032a34e669708d388c8d16f9d', 'network_id': 'a53fa2fb-217b-4658-9575-1e4ec0f51cf2', 'ip_version': 4, 'cidr': '167.182.27.128/26', 'allocation_pools': [{'start': '167.182.27.130', 'end': '167.182.27.190'}], 'gateway_ip': '167.182.27.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '167.182.27.130', 'tags': [], 'project_id': 'e219642032a34e669708d388c8d16f9d'}}
2025-03-19 11:20:23,019 - INFO - Created VN ctest-vn-72985935
2025-03-19 11:20:23,073 - DEBUG - VN ctest-vn-72985935 UUID is a53fa2fb-217b-4658-9575-1e4ec0f51cf2
2025-03-19 11:20:23,409 - DEBUG - Response for create_network : {'network': {'id': '290632b6-7180-4d98-a72d-e66c4e3061e6', 'name': 'ctest-vn-95050026', 'tenant_id': 'e219642032a34e669708d388c8d16f9d', 'project_id': 'e219642032a34e669708d388c8d16f9d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-48203878', 'ctest-vn-95050026'], 'port_security_enabled': True, 'description': ''}}
2025-03-19 11:20:23,608 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ece9bd3b-3170-4cf9-b4a5-06ea6422ddce', 'name': '', 'tenant_id': 'e219642032a34e669708d388c8d16f9d', 'network_id': '290632b6-7180-4d98-a72d-e66c4e3061e6', 'ip_version': 4, 'cidr': '187.20.247.192/26', 'allocation_pools': [{'start': '187.20.247.194', 'end': '187.20.247.254'}], 'gateway_ip': '187.20.247.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '187.20.247.194', 'tags': [], 'project_id': 'e219642032a34e669708d388c8d16f9d'}}
2025-03-19 11:20:23,626 - INFO - Created VN ctest-vn-95050026
2025-03-19 11:20:23,678 - DEBUG - VN ctest-vn-95050026 UUID is 290632b6-7180-4d98-a72d-e66c4e3061e6
2025-03-19 11:20:23,829 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-48203878:ctest-vn-72985935, 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-48203878:ctest-vn-95050026, 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-19 11:20:24,140 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a53fa2fb-217b-4658-9575-1e4ec0f51cf2', 'name': 'ctest-vn-72985935', 'tenant_id': 'e219642032a34e669708d388c8d16f9d', 'project_id': 'e219642032a34e669708d388c8d16f9d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6f3c3224-414c-4199-a2c3-b4ff3294ae00'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-48203878', 'ctest-vn-72985935'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-48203878', 'ctest-policy-allow-all-82727987']], 'subnet_ipam': [{'subnet_cidr': '167.182.27.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-03-19 11:20:24,387 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '290632b6-7180-4d98-a72d-e66c4e3061e6', 'name': 'ctest-vn-95050026', 'tenant_id': 'e219642032a34e669708d388c8d16f9d', 'project_id': 'e219642032a34e669708d388c8d16f9d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ece9bd3b-3170-4cf9-b4a5-06ea6422ddce'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-48203878', 'ctest-vn-95050026'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-48203878', 'ctest-policy-allow-all-82727987']], 'subnet_ipam': [{'subnet_cidr': '187.20.247.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-03-19 11:20:24,557 - DEBUG - Requesting: http://10.0.0.29:8082/domains
2025-03-19 11:20:24,849 - DEBUG - Requesting: http://10.0.0.29:8082/domains
2025-03-19 11:20:24,880 - DEBUG - Requesting: http://10.0.0.29:8082/domain/f132e654-3f7f-43a8-b6d2-a5ee486f6725
2025-03-19 11:20:24,902 - DEBUG - Requesting: http://10.0.0.29:8082/project/e2196420-32a3-4e66-9708-d388c8d16f9d
2025-03-19 11:20:24,977 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/a53fa2fb-217b-4658-9575-1e4ec0f51cf2
2025-03-19 11:20:24,991 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/a53fa2fb-217b-4658-9575-1e4ec0f51cf2
2025-03-19 11:20:25,000 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/55402c81-8537-4680-b5b1-6ea1742c7e38
2025-03-19 11:20:25,007 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/55402c81-8537-4680-b5b1-6ea1742c7e38
2025-03-19 11:20:25,013 - DEBUG - Requesting: http://10.0.0.29:8082/route-target/a8ce7b23-d44a-45e4-963f-aaad9ee8bc19
2025-03-19 11:20:25,018 - DEBUG - Route Targets: ['target:64512:8000004']
2025-03-19 11:20:25,018 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/a53fa2fb-217b-4658-9575-1e4ec0f51cf2
2025-03-19 11:20:25,027 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/55402c81-8537-4680-b5b1-6ea1742c7e38
2025-03-19 11:20:25,039 - INFO - Verified VN network id 9 for VN a53fa2fb-217b-4658-9575-1e4ec0f51cf2
2025-03-19 11:20:25,039 - INFO - Verifications in API Server for VN ctest-vn-72985935 passed
2025-03-19 11:20:25,040 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/a53fa2fb-217b-4658-9575-1e4ec0f51cf2
2025-03-19 11:20:25,049 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/55402c81-8537-4680-b5b1-6ea1742c7e38
2025-03-19 11:20:25,057 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/55402c81-8537-4680-b5b1-6ea1742c7e38
2025-03-19 11:20:25,065 - DEBUG - Requesting: http://10.0.0.29:8082/route-target/a8ce7b23-d44a-45e4-963f-aaad9ee8bc19
2025-03-19 11:20:25,080 - DEBUG - Control-node 10.0.0.29 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-48203878:ctest-vn-72985935', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-48203878', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11907415139273098840', 'uuid-lslong': '10769547407519980786'}, 'enable': 'true', 'created': '2025-03-19T11:20:22', 'last-modified': '2025-03-19T11:20:24', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.973799'}
2025-03-19 11:20:25,087 - DEBUG - Route Targets: ['target:64512:8000004']
2025-03-19 11:20:25,087 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-72985935 passed
2025-03-19 11:20:25,087 - DEBUG - ====Verifying policy data for ctest-vn-72985935 in API_Server ======
2025-03-19 11:20:25,087 - DEBUG - Requesting: http://10.0.0.29:8082/domains
2025-03-19 11:20:25,096 - DEBUG - Requesting: http://10.0.0.29:8082/domain/f132e654-3f7f-43a8-b6d2-a5ee486f6725
2025-03-19 11:20:25,109 - DEBUG - Requesting: http://10.0.0.29:8082/project/e2196420-32a3-4e66-9708-d388c8d16f9d
2025-03-19 11:20:25,183 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/a53fa2fb-217b-4658-9575-1e4ec0f51cf2
2025-03-19 11:20:25,193 - DEBUG - ==>Verifying data for policy with id: 8754e91d-650f-4418-bee6-692f77bf322f, fqn: ['default-domain', 'ctest-TestBasicPolicy-48203878', 'ctest-policy-allow-all-82727987']
2025-03-19 11:20:25,193 - INFO - VN ctest-vn-72985935 Policy verification: verify_vn_policy_in_api_server, status: True
2025-03-19 11:20:25,193 - DEBUG - Verifying the vn in opserver
2025-03-19 11:20:25,193 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-48203878:ctest-vn-72985935 virtual network link through opserver 10.0.0.29
2025-03-19 11:20:25,193 - DEBUG - Requesting: http://10.0.0.29:8081/analytics/uves/virtual-networks
2025-03-19 11:20:25,489 - DEBUG - Requesting: http://10.0.0.29:8081/analytics/uves/virtual-networks
2025-03-19 11:20:25,540 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-48203878:ctest-vn-72985935', 'href': 'http://10.0.0.29:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-48203878:ctest-vn-72985935?flat'}
2025-03-19 11:20:25,540 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-48203878:ctest-vn-72985935 is found in opserver
2025-03-19 11:20:25,553 - DEBUG - Do not have enough data to verify VN in agent
2025-03-19 11:20:25,558 - DEBUG - VRF ids for VN ctest-vn-72985935: {}
2025-03-19 11:20:25,558 - DEBUG - Requesting: http://10.0.0.29:8082/domains
2025-03-19 11:20:25,564 - DEBUG - Requesting: http://10.0.0.29:8082/domain/f132e654-3f7f-43a8-b6d2-a5ee486f6725
2025-03-19 11:20:25,575 - DEBUG - Requesting: http://10.0.0.29:8082/project/e2196420-32a3-4e66-9708-d388c8d16f9d
2025-03-19 11:20:25,646 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/290632b6-7180-4d98-a72d-e66c4e3061e6
2025-03-19 11:20:25,658 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/290632b6-7180-4d98-a72d-e66c4e3061e6
2025-03-19 11:20:25,667 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/d8ef68ec-4ef9-4e41-92a7-6662c72edc32
2025-03-19 11:20:25,674 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/d8ef68ec-4ef9-4e41-92a7-6662c72edc32
2025-03-19 11:20:25,681 - DEBUG - Requesting: http://10.0.0.29:8082/route-target/4752ace8-0b39-4d51-8ea0-95d11d7db29f
2025-03-19 11:20:25,688 - DEBUG - Route Targets: ['target:64512:8000005']
2025-03-19 11:20:25,688 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/290632b6-7180-4d98-a72d-e66c4e3061e6
2025-03-19 11:20:25,697 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/d8ef68ec-4ef9-4e41-92a7-6662c72edc32
2025-03-19 11:20:25,711 - INFO - Verified VN network id 10 for VN 290632b6-7180-4d98-a72d-e66c4e3061e6
2025-03-19 11:20:25,711 - INFO - Verifications in API Server for VN ctest-vn-95050026 passed
2025-03-19 11:20:25,711 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/290632b6-7180-4d98-a72d-e66c4e3061e6
2025-03-19 11:20:25,722 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/d8ef68ec-4ef9-4e41-92a7-6662c72edc32
2025-03-19 11:20:25,730 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/d8ef68ec-4ef9-4e41-92a7-6662c72edc32
2025-03-19 11:20:25,736 - DEBUG - Requesting: http://10.0.0.29:8082/route-target/4752ace8-0b39-4d51-8ea0-95d11d7db29f
2025-03-19 11:20:25,747 - DEBUG - Control-node 10.0.0.29 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-48203878:ctest-vn-95050026', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-48203878', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2956105964584979864', 'uuid-lslong': '12046537931128594918'}, 'enable': 'true', 'created': '2025-03-19T11:20:23', 'last-modified': '2025-03-19T11:20:24', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.385537'}
2025-03-19 11:20:25,754 - DEBUG - Route Targets: ['target:64512:8000005']
2025-03-19 11:20:25,754 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-95050026 passed
2025-03-19 11:20:25,754 - DEBUG - ====Verifying policy data for ctest-vn-95050026 in API_Server ======
2025-03-19 11:20:25,754 - DEBUG - Requesting: http://10.0.0.29:8082/domains
2025-03-19 11:20:25,760 - DEBUG - Requesting: http://10.0.0.29:8082/domain/f132e654-3f7f-43a8-b6d2-a5ee486f6725
2025-03-19 11:20:25,773 - DEBUG - Requesting: http://10.0.0.29:8082/project/e2196420-32a3-4e66-9708-d388c8d16f9d
2025-03-19 11:20:25,846 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/290632b6-7180-4d98-a72d-e66c4e3061e6
2025-03-19 11:20:25,856 - DEBUG - ==>Verifying data for policy with id: 8754e91d-650f-4418-bee6-692f77bf322f, fqn: ['default-domain', 'ctest-TestBasicPolicy-48203878', 'ctest-policy-allow-all-82727987']
2025-03-19 11:20:25,856 - INFO - VN ctest-vn-95050026 Policy verification: verify_vn_policy_in_api_server, status: True
2025-03-19 11:20:25,857 - DEBUG - Verifying the vn in opserver
2025-03-19 11:20:25,857 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-48203878:ctest-vn-95050026 virtual network link through opserver 10.0.0.29
2025-03-19 11:20:25,857 - DEBUG - Requesting: http://10.0.0.29:8081/analytics/uves/virtual-networks
2025-03-19 11:20:25,866 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-48203878:ctest-vn-95050026', 'href': 'http://10.0.0.29:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-48203878:ctest-vn-95050026?flat'}
2025-03-19 11:20:25,867 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-48203878:ctest-vn-95050026 is found in opserver
2025-03-19 11:20:25,879 - DEBUG - Do not have enough data to verify VN in agent
2025-03-19 11:20:25,885 - DEBUG - VRF ids for VN ctest-vn-95050026: {}
2025-03-19 11:20:25,942 - DEBUG - Services list from nova: [