2025-04-30 17:49:31,332 - INFO - Domain Default found not creating
2025-04-30 17:49:31,458 - INFO - Project ctest-TestBasicPolicy-48614896 not found, creating it
2025-04-30 17:49:31,885 - INFO - Created Project:ctest-TestBasicPolicy-48614896, ID : 9a88e3a4-a70d-44d7-b3ec-068b0e4dfd24
2025-04-30 17:49:33,223 - INFO - ================================================================================
2025-04-30 17:49:33,223 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-04-30 17:49:33,223 - 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-30 17:49:33,475 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with
2025-04-30 17:49:33,475 - INFO - Initial checks done. Running the testcase now
2025-04-30 17:49:33,475 - INFO -
2025-04-30 17:49:34,073 - DEBUG - Response for create_network : {'network': {'id': '1cc27853-54b4-4ecc-8d5c-78b3ab5d3b8e', 'name': 'ctest-vn-17387429', 'tenant_id': '9a88e3a4a70d44d7b3ec068b0e4dfd24', 'project_id': '9a88e3a4a70d44d7b3ec068b0e4dfd24', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-48614896', 'ctest-vn-17387429'], 'port_security_enabled': True, 'description': ''}}
2025-04-30 17:49:34,241 - DEBUG - Response for create_subnet : {'subnet': {'id': 'cca2242d-2a9c-4ed7-9ad4-c826bdf63188', 'name': '', 'tenant_id': '9a88e3a4a70d44d7b3ec068b0e4dfd24', 'network_id': '1cc27853-54b4-4ecc-8d5c-78b3ab5d3b8e', 'ip_version': 4, 'cidr': '142.211.18.192/26', 'allocation_pools': [{'start': '142.211.18.194', 'end': '142.211.18.254'}], 'gateway_ip': '142.211.18.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '142.211.18.194', 'tags': [], 'project_id': '9a88e3a4a70d44d7b3ec068b0e4dfd24'}}
2025-04-30 17:49:34,257 - INFO - Created VN ctest-vn-17387429
2025-04-30 17:49:34,314 - DEBUG - VN ctest-vn-17387429 UUID is 1cc27853-54b4-4ecc-8d5c-78b3ab5d3b8e
2025-04-30 17:49:34,631 - DEBUG - Response for create_network : {'network': {'id': 'e47cc675-8e69-4e5b-9516-17d04f07b1f7', 'name': 'ctest-vn-34549820', 'tenant_id': '9a88e3a4a70d44d7b3ec068b0e4dfd24', 'project_id': '9a88e3a4a70d44d7b3ec068b0e4dfd24', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-48614896', 'ctest-vn-34549820'], 'port_security_enabled': True, 'description': ''}}
2025-04-30 17:49:34,795 - DEBUG - Response for create_subnet : {'subnet': {'id': '373c2b56-e6ef-470d-905a-33a1899533b5', 'name': '', 'tenant_id': '9a88e3a4a70d44d7b3ec068b0e4dfd24', 'network_id': 'e47cc675-8e69-4e5b-9516-17d04f07b1f7', 'ip_version': 4, 'cidr': '53.176.205.192/26', 'allocation_pools': [{'start': '53.176.205.194', 'end': '53.176.205.254'}], 'gateway_ip': '53.176.205.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '53.176.205.194', 'tags': [], 'project_id': '9a88e3a4a70d44d7b3ec068b0e4dfd24'}}
2025-04-30 17:49:34,809 - INFO - Created VN ctest-vn-34549820
2025-04-30 17:49:34,862 - DEBUG - VN ctest-vn-34549820 UUID is e47cc675-8e69-4e5b-9516-17d04f07b1f7
2025-04-30 17:49:35,010 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-48614896:ctest-vn-17387429, 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-48614896:ctest-vn-34549820, 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-30 17:49:35,303 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1cc27853-54b4-4ecc-8d5c-78b3ab5d3b8e', 'name': 'ctest-vn-17387429', 'tenant_id': '9a88e3a4a70d44d7b3ec068b0e4dfd24', 'project_id': '9a88e3a4a70d44d7b3ec068b0e4dfd24', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['cca2242d-2a9c-4ed7-9ad4-c826bdf63188'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-48614896', 'ctest-vn-17387429'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-48614896', 'ctest-policy-allow-all-84091561']], 'subnet_ipam': [{'subnet_cidr': '142.211.18.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-30 17:49:35,560 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e47cc675-8e69-4e5b-9516-17d04f07b1f7', 'name': 'ctest-vn-34549820', 'tenant_id': '9a88e3a4a70d44d7b3ec068b0e4dfd24', 'project_id': '9a88e3a4a70d44d7b3ec068b0e4dfd24', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['373c2b56-e6ef-470d-905a-33a1899533b5'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-48614896', 'ctest-vn-34549820'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-48614896', 'ctest-policy-allow-all-84091561']], 'subnet_ipam': [{'subnet_cidr': '53.176.205.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-30 17:49:35,726 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-04-30 17:49:36,030 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-04-30 17:49:36,055 - DEBUG - Requesting: http://10.0.0.38:8082/domain/fd163d6c-c7da-4c3a-9403-e194a3e7b7c4
2025-04-30 17:49:36,067 - DEBUG - Requesting: http://10.0.0.38:8082/project/9a88e3a4-a70d-44d7-b3ec-068b0e4dfd24
2025-04-30 17:49:36,136 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/1cc27853-54b4-4ecc-8d5c-78b3ab5d3b8e
2025-04-30 17:49:36,146 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/1cc27853-54b4-4ecc-8d5c-78b3ab5d3b8e
2025-04-30 17:49:36,155 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/81c6ac98-1a8a-4a98-a7b5-330bb18a2d93
2025-04-30 17:49:36,161 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/81c6ac98-1a8a-4a98-a7b5-330bb18a2d93
2025-04-30 17:49:36,168 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/88be7b45-299f-463a-8c2f-1e40d23e53ca
2025-04-30 17:49:36,173 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-30 17:49:36,173 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/1cc27853-54b4-4ecc-8d5c-78b3ab5d3b8e
2025-04-30 17:49:36,181 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/81c6ac98-1a8a-4a98-a7b5-330bb18a2d93
2025-04-30 17:49:36,193 - INFO - Verified VN network id 9 for VN 1cc27853-54b4-4ecc-8d5c-78b3ab5d3b8e
2025-04-30 17:49:36,193 - INFO - Verifications in API Server for VN ctest-vn-17387429 passed
2025-04-30 17:49:36,193 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/1cc27853-54b4-4ecc-8d5c-78b3ab5d3b8e
2025-04-30 17:49:36,202 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/81c6ac98-1a8a-4a98-a7b5-330bb18a2d93
2025-04-30 17:49:36,209 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/81c6ac98-1a8a-4a98-a7b5-330bb18a2d93
2025-04-30 17:49:36,215 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/88be7b45-299f-463a-8c2f-1e40d23e53ca
2025-04-30 17:49:36,226 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-48614896:ctest-vn-17387429', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-48614896', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2072351077842570956', 'uuid-lslong': '10186149170274712462'}, 'enable': 'true', 'created': '2025-04-30T17:49:34', 'last-modified': '2025-04-30T17:49:35', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.948995'}
2025-04-30 17:49:36,232 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-30 17:49:36,232 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-17387429 passed
2025-04-30 17:49:36,232 - DEBUG - ====Verifying policy data for ctest-vn-17387429 in API_Server ======
2025-04-30 17:49:36,233 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-04-30 17:49:36,238 - DEBUG - Requesting: http://10.0.0.38:8082/domain/fd163d6c-c7da-4c3a-9403-e194a3e7b7c4
2025-04-30 17:49:36,249 - DEBUG - Requesting: http://10.0.0.38:8082/project/9a88e3a4-a70d-44d7-b3ec-068b0e4dfd24
2025-04-30 17:49:36,317 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/1cc27853-54b4-4ecc-8d5c-78b3ab5d3b8e
2025-04-30 17:49:36,326 - DEBUG - ==>Verifying data for policy with id: ef732009-a774-431b-9fe9-483aff5ff0c9, fqn: ['default-domain', 'ctest-TestBasicPolicy-48614896', 'ctest-policy-allow-all-84091561']
2025-04-30 17:49:36,327 - INFO - VN ctest-vn-17387429 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-30 17:49:36,327 - DEBUG - Verifying the vn in opserver
2025-04-30 17:49:36,327 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-48614896:ctest-vn-17387429 virtual network link through opserver 10.0.0.38
2025-04-30 17:49:36,327 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-04-30 17:49:36,616 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-04-30 17:49:36,663 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-48614896:ctest-vn-17387429', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-48614896:ctest-vn-17387429?flat'}
2025-04-30 17:49:36,663 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-48614896:ctest-vn-17387429 is found in opserver
2025-04-30 17:49:36,675 - DEBUG - Do not have enough data to verify VN in agent
2025-04-30 17:49:36,680 - DEBUG - VRF ids for VN ctest-vn-17387429: {}
2025-04-30 17:49:36,680 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-04-30 17:49:36,685 - DEBUG - Requesting: http://10.0.0.38:8082/domain/fd163d6c-c7da-4c3a-9403-e194a3e7b7c4
2025-04-30 17:49:36,697 - DEBUG - Requesting: http://10.0.0.38:8082/project/9a88e3a4-a70d-44d7-b3ec-068b0e4dfd24
2025-04-30 17:49:36,776 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/e47cc675-8e69-4e5b-9516-17d04f07b1f7
2025-04-30 17:49:36,788 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/e47cc675-8e69-4e5b-9516-17d04f07b1f7
2025-04-30 17:49:36,796 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5b650c55-6e76-4b94-b04c-b39895480960
2025-04-30 17:49:36,803 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5b650c55-6e76-4b94-b04c-b39895480960
2025-04-30 17:49:36,810 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/47eea627-5a91-46f6-864f-911d123bd586
2025-04-30 17:49:36,816 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-30 17:49:36,816 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/e47cc675-8e69-4e5b-9516-17d04f07b1f7
2025-04-30 17:49:36,827 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5b650c55-6e76-4b94-b04c-b39895480960
2025-04-30 17:49:36,842 - INFO - Verified VN network id 10 for VN e47cc675-8e69-4e5b-9516-17d04f07b1f7
2025-04-30 17:49:36,843 - INFO - Verifications in API Server for VN ctest-vn-34549820 passed
2025-04-30 17:49:36,843 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/e47cc675-8e69-4e5b-9516-17d04f07b1f7
2025-04-30 17:49:36,854 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5b650c55-6e76-4b94-b04c-b39895480960
2025-04-30 17:49:36,860 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5b650c55-6e76-4b94-b04c-b39895480960
2025-04-30 17:49:36,866 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/47eea627-5a91-46f6-864f-911d123bd586
2025-04-30 17:49:36,876 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-48614896:ctest-vn-34549820', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-48614896', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16464252545962430043', 'uuid-lslong': '10742800144585437687'}, 'enable': 'true', 'created': '2025-04-30T17:49:34', 'last-modified': '2025-04-30T17:49:35', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.353610'}
2025-04-30 17:49:36,882 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-30 17:49:36,882 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-34549820 passed
2025-04-30 17:49:36,882 - DEBUG - ====Verifying policy data for ctest-vn-34549820 in API_Server ======
2025-04-30 17:49:36,882 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-04-30 17:49:36,887 - DEBUG - Requesting: http://10.0.0.38:8082/domain/fd163d6c-c7da-4c3a-9403-e194a3e7b7c4
2025-04-30 17:49:36,897 - DEBUG - Requesting: http://10.0.0.38:8082/project/9a88e3a4-a70d-44d7-b3ec-068b0e4dfd24
2025-04-30 17:49:36,970 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/e47cc675-8e69-4e5b-9516-17d04f07b1f7
2025-04-30 17:49:36,980 - DEBUG - ==>Verifying data for policy with id: ef732009-a774-431b-9fe9-483aff5ff0c9, fqn: ['default-domain', 'ctest-TestBasicPolicy-48614896', 'ctest-policy-allow-all-84091561']
2025-04-30 17:49:36,980 - INFO - VN ctest-vn-34549820 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-30 17:49:36,980 - DEBUG - Verifying the vn in opserver
2025-04-30 17:49:36,980 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-48614896:ctest-vn-34549820 virtual network link through opserver 10.0.0.38
2025-04-30 17:49:36,981 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-04-30 17:49:36,990 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-48614896:ctest-vn-34549820', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-48614896:ctest-vn-34549820?flat'}
2025-04-30 17:49:36,990 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-48614896:ctest-vn-34549820 is found in opserver
2025-04-30 17:49:37,000 - DEBUG - Do not have enough data to verify VN in agent
2025-04-30 17:49:37,005 - DEBUG - VRF ids for VN ctest-vn-34549820: {}
2025-04-30 17:49:37,054 - DEBUG - Services list from nova: [