2025-10-23 10:49:44,928 - INFO - Domain Default found not creating
2025-10-23 10:49:45,091 - INFO - Project ctest-TestBasicPolicy-79857335 not found, creating it
2025-10-23 10:49:45,785 - INFO - Created Project:ctest-TestBasicPolicy-79857335, ID : 98b4c9b3-1cb0-4683-81e0-e3a0b548f677
2025-10-23 10:49:47,304 - INFO - ================================================================================
2025-10-23 10:49:47,304 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-23 10:49:47,304 - 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-10-23 10:49:47,563 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.254': '0'}} with
2025-10-23 10:49:47,563 - INFO - Initial checks done. Running the testcase now
2025-10-23 10:49:47,563 - INFO -
2025-10-23 10:49:48,122 - DEBUG - Response for create_network : {'network': {'id': 'c51246ba-5aaf-4aeb-928c-08bf9b932f88', 'name': 'ctest-vn-01518937', 'tenant_id': '98b4c9b31cb0468381e0e3a0b548f677', 'project_id': '98b4c9b31cb0468381e0e3a0b548f677', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-79857335', 'ctest-vn-01518937'], 'port_security_enabled': True, 'description': ''}}
2025-10-23 10:49:48,336 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f80d48e8-e64e-40e1-a075-1f7d873b6d91', 'name': '', 'tenant_id': '98b4c9b31cb0468381e0e3a0b548f677', 'network_id': 'c51246ba-5aaf-4aeb-928c-08bf9b932f88', 'ip_version': 4, 'cidr': '85.225.40.128/26', 'allocation_pools': [{'start': '85.225.40.130', 'end': '85.225.40.190'}], 'gateway_ip': '85.225.40.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '85.225.40.130', 'tags': [], 'project_id': '98b4c9b31cb0468381e0e3a0b548f677'}}
2025-10-23 10:49:48,357 - INFO - Created VN ctest-vn-01518937
2025-10-23 10:49:48,408 - DEBUG - VN ctest-vn-01518937 UUID is c51246ba-5aaf-4aeb-928c-08bf9b932f88
2025-10-23 10:49:48,689 - DEBUG - Response for create_network : {'network': {'id': 'cac689f1-9731-4c9c-a5e5-e0b71749df0a', 'name': 'ctest-vn-37592110', 'tenant_id': '98b4c9b31cb0468381e0e3a0b548f677', 'project_id': '98b4c9b31cb0468381e0e3a0b548f677', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-79857335', 'ctest-vn-37592110'], 'port_security_enabled': True, 'description': ''}}
2025-10-23 10:49:48,886 - DEBUG - Response for create_subnet : {'subnet': {'id': '95f1dbe7-e546-4040-bf3c-5b2d97e8e7d4', 'name': '', 'tenant_id': '98b4c9b31cb0468381e0e3a0b548f677', 'network_id': 'cac689f1-9731-4c9c-a5e5-e0b71749df0a', 'ip_version': 4, 'cidr': '54.93.62.0/26', 'allocation_pools': [{'start': '54.93.62.2', 'end': '54.93.62.62'}], 'gateway_ip': '54.93.62.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '54.93.62.2', 'tags': [], 'project_id': '98b4c9b31cb0468381e0e3a0b548f677'}}
2025-10-23 10:49:48,903 - INFO - Created VN ctest-vn-37592110
2025-10-23 10:49:48,956 - DEBUG - VN ctest-vn-37592110 UUID is cac689f1-9731-4c9c-a5e5-e0b71749df0a
2025-10-23 10:49:49,072 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-79857335:ctest-vn-01518937, 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-79857335:ctest-vn-37592110, 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-10-23 10:49:49,358 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c51246ba-5aaf-4aeb-928c-08bf9b932f88', 'name': 'ctest-vn-01518937', 'tenant_id': '98b4c9b31cb0468381e0e3a0b548f677', 'project_id': '98b4c9b31cb0468381e0e3a0b548f677', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f80d48e8-e64e-40e1-a075-1f7d873b6d91'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-79857335', 'ctest-vn-01518937'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-79857335', 'ctest-policy-allow-all-32739292']], 'subnet_ipam': [{'subnet_cidr': '85.225.40.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-23 10:49:49,598 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'cac689f1-9731-4c9c-a5e5-e0b71749df0a', 'name': 'ctest-vn-37592110', 'tenant_id': '98b4c9b31cb0468381e0e3a0b548f677', 'project_id': '98b4c9b31cb0468381e0e3a0b548f677', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['95f1dbe7-e546-4040-bf3c-5b2d97e8e7d4'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-79857335', 'ctest-vn-37592110'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-79857335', 'ctest-policy-allow-all-32739292']], 'subnet_ipam': [{'subnet_cidr': '54.93.62.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-23 10:49:49,768 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-23 10:49:50,063 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-23 10:49:50,091 - DEBUG - Requesting: http://10.0.0.254:8082/domain/6f702b32-b052-4514-8443-7ef1fda85df5
2025-10-23 10:49:50,104 - DEBUG - Requesting: http://10.0.0.254:8082/project/98b4c9b3-1cb0-4683-81e0-e3a0b548f677
2025-10-23 10:49:50,174 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/c51246ba-5aaf-4aeb-928c-08bf9b932f88
2025-10-23 10:49:50,185 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/c51246ba-5aaf-4aeb-928c-08bf9b932f88
2025-10-23 10:49:50,194 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/46c2eaf5-03c5-4216-b6dc-a7027b0619b0
2025-10-23 10:49:50,201 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/46c2eaf5-03c5-4216-b6dc-a7027b0619b0
2025-10-23 10:49:50,207 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/3cbdb151-b10e-4765-902c-0dc229aff460
2025-10-23 10:49:50,213 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-23 10:49:50,213 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/c51246ba-5aaf-4aeb-928c-08bf9b932f88
2025-10-23 10:49:50,222 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/46c2eaf5-03c5-4216-b6dc-a7027b0619b0
2025-10-23 10:49:50,237 - INFO - Verified VN network id 10 for VN c51246ba-5aaf-4aeb-928c-08bf9b932f88
2025-10-23 10:49:50,237 - INFO - Verifications in API Server for VN ctest-vn-01518937 passed
2025-10-23 10:49:50,237 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/c51246ba-5aaf-4aeb-928c-08bf9b932f88
2025-10-23 10:49:50,246 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/46c2eaf5-03c5-4216-b6dc-a7027b0619b0
2025-10-23 10:49:50,253 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/46c2eaf5-03c5-4216-b6dc-a7027b0619b0
2025-10-23 10:49:50,261 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/3cbdb151-b10e-4765-902c-0dc229aff460
2025-10-23 10:49:50,273 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-79857335:ctest-vn-01518937', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-79857335', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14200490341251893995', 'uuid-lslong': '10559824845318860680'}, 'enable': 'true', 'created': '2025-10-23T10:49:48', 'last-modified': '2025-10-23T10:49:49', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.933682'}
2025-10-23 10:49:50,279 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-23 10:49:50,280 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-01518937 passed
2025-10-23 10:49:50,280 - DEBUG - ====Verifying policy data for ctest-vn-01518937 in API_Server ======
2025-10-23 10:49:50,280 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-23 10:49:50,285 - DEBUG - Requesting: http://10.0.0.254:8082/domain/6f702b32-b052-4514-8443-7ef1fda85df5
2025-10-23 10:49:50,295 - DEBUG - Requesting: http://10.0.0.254:8082/project/98b4c9b3-1cb0-4683-81e0-e3a0b548f677
2025-10-23 10:49:50,362 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/c51246ba-5aaf-4aeb-928c-08bf9b932f88
2025-10-23 10:49:50,371 - DEBUG - ==>Verifying data for policy with id: 8452ea8d-e770-41c1-88cb-4b7dadc58b8b, fqn: ['default-domain', 'ctest-TestBasicPolicy-79857335', 'ctest-policy-allow-all-32739292']
2025-10-23 10:49:50,372 - INFO - VN ctest-vn-01518937 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-23 10:49:50,372 - DEBUG - Verifying the vn in opserver
2025-10-23 10:49:50,372 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-79857335:ctest-vn-01518937 virtual network link through opserver 10.0.0.254
2025-10-23 10:49:50,372 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-10-23 10:49:50,670 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-10-23 10:49:50,733 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-79857335:ctest-vn-01518937', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-79857335:ctest-vn-01518937?flat'}
2025-10-23 10:49:50,733 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-79857335:ctest-vn-01518937 is found in opserver
2025-10-23 10:49:50,743 - DEBUG - Do not have enough data to verify VN in agent
2025-10-23 10:49:50,748 - DEBUG - VRF ids for VN ctest-vn-01518937: {}
2025-10-23 10:49:50,748 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-23 10:49:50,753 - DEBUG - Requesting: http://10.0.0.254:8082/domain/6f702b32-b052-4514-8443-7ef1fda85df5
2025-10-23 10:49:50,764 - DEBUG - Requesting: http://10.0.0.254:8082/project/98b4c9b3-1cb0-4683-81e0-e3a0b548f677
2025-10-23 10:49:50,832 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/cac689f1-9731-4c9c-a5e5-e0b71749df0a
2025-10-23 10:49:50,842 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/cac689f1-9731-4c9c-a5e5-e0b71749df0a
2025-10-23 10:49:50,850 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/c1756a05-dfea-410a-8955-b3774de4071e
2025-10-23 10:49:50,857 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/c1756a05-dfea-410a-8955-b3774de4071e
2025-10-23 10:49:50,864 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/0f8d0afc-269f-46d9-af42-b36894b9ad4a
2025-10-23 10:49:50,872 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-23 10:49:50,872 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/cac689f1-9731-4c9c-a5e5-e0b71749df0a
2025-10-23 10:49:50,880 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/c1756a05-dfea-410a-8955-b3774de4071e
2025-10-23 10:49:50,895 - INFO - Verified VN network id 11 for VN cac689f1-9731-4c9c-a5e5-e0b71749df0a
2025-10-23 10:49:50,895 - INFO - Verifications in API Server for VN ctest-vn-37592110 passed
2025-10-23 10:49:50,895 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/cac689f1-9731-4c9c-a5e5-e0b71749df0a
2025-10-23 10:49:50,904 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/c1756a05-dfea-410a-8955-b3774de4071e
2025-10-23 10:49:50,911 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/c1756a05-dfea-410a-8955-b3774de4071e
2025-10-23 10:49:50,919 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/0f8d0afc-269f-46d9-af42-b36894b9ad4a
2025-10-23 10:49:50,933 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-79857335:ctest-vn-37592110', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-79857335', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14611517711766867100', 'uuid-lslong': '11954207862899203850'}, 'enable': 'true', 'created': '2025-10-23T10:49:48', 'last-modified': '2025-10-23T10:49:49', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.351540'}
2025-10-23 10:49:50,941 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-23 10:49:50,941 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-37592110 passed
2025-10-23 10:49:50,941 - DEBUG - ====Verifying policy data for ctest-vn-37592110 in API_Server ======
2025-10-23 10:49:50,941 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-23 10:49:50,947 - DEBUG - Requesting: http://10.0.0.254:8082/domain/6f702b32-b052-4514-8443-7ef1fda85df5
2025-10-23 10:49:50,959 - DEBUG - Requesting: http://10.0.0.254:8082/project/98b4c9b3-1cb0-4683-81e0-e3a0b548f677
2025-10-23 10:49:51,034 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/cac689f1-9731-4c9c-a5e5-e0b71749df0a
2025-10-23 10:49:51,046 - DEBUG - ==>Verifying data for policy with id: 8452ea8d-e770-41c1-88cb-4b7dadc58b8b, fqn: ['default-domain', 'ctest-TestBasicPolicy-79857335', 'ctest-policy-allow-all-32739292']
2025-10-23 10:49:51,046 - INFO - VN ctest-vn-37592110 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-23 10:49:51,046 - DEBUG - Verifying the vn in opserver
2025-10-23 10:49:51,046 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-79857335:ctest-vn-37592110 virtual network link through opserver 10.0.0.254
2025-10-23 10:49:51,046 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-10-23 10:49:51,056 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-79857335:ctest-vn-37592110', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-79857335:ctest-vn-37592110?flat'}
2025-10-23 10:49:51,056 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-79857335:ctest-vn-37592110 is found in opserver
2025-10-23 10:49:51,070 - DEBUG - Do not have enough data to verify VN in agent
2025-10-23 10:49:51,076 - DEBUG - VRF ids for VN ctest-vn-37592110: {}
2025-10-23 10:49:51,136 - DEBUG - Services list from nova: [