2025-09-11 11:22:33,159 - INFO - Domain Default found not creating
2025-09-11 11:22:33,307 - INFO - Project ctest-TestBasicPolicy-72460665 not found, creating it
2025-09-11 11:22:33,756 - INFO - Created Project:ctest-TestBasicPolicy-72460665, ID : 34506e3f-6ea2-4b62-889f-9f8530a2aa77
2025-09-11 11:22:35,148 - INFO - ================================================================================
2025-09-11 11:22:35,148 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-09-11 11:22:35,148 - 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-09-11 11:22:35,403 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0'}} with
2025-09-11 11:22:35,403 - INFO - Initial checks done. Running the testcase now
2025-09-11 11:22:35,403 - INFO -
2025-09-11 11:22:35,920 - DEBUG - Response for create_network : {'network': {'id': '3e8523e8-c3d3-4e74-839e-ece4d9fc8ccd', 'name': 'ctest-vn-18982092', 'tenant_id': '34506e3f6ea24b62889f9f8530a2aa77', 'project_id': '34506e3f6ea24b62889f9f8530a2aa77', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-72460665', 'ctest-vn-18982092'], 'port_security_enabled': True, 'description': ''}}
2025-09-11 11:22:36,063 - DEBUG - Response for create_subnet : {'subnet': {'id': '719c0484-e814-4dbb-b986-c27d250401e5', 'name': '', 'tenant_id': '34506e3f6ea24b62889f9f8530a2aa77', 'network_id': '3e8523e8-c3d3-4e74-839e-ece4d9fc8ccd', 'ip_version': 4, 'cidr': '135.29.187.0/26', 'allocation_pools': [{'start': '135.29.187.2', 'end': '135.29.187.62'}], 'gateway_ip': '135.29.187.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '135.29.187.2', 'tags': [], 'project_id': '34506e3f6ea24b62889f9f8530a2aa77'}}
2025-09-11 11:22:36,081 - INFO - Created VN ctest-vn-18982092
2025-09-11 11:22:36,133 - DEBUG - VN ctest-vn-18982092 UUID is 3e8523e8-c3d3-4e74-839e-ece4d9fc8ccd
2025-09-11 11:22:36,463 - DEBUG - Response for create_network : {'network': {'id': '9780dc63-eaf9-4167-9343-b78f7721993c', 'name': 'ctest-vn-49873153', 'tenant_id': '34506e3f6ea24b62889f9f8530a2aa77', 'project_id': '34506e3f6ea24b62889f9f8530a2aa77', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-72460665', 'ctest-vn-49873153'], 'port_security_enabled': True, 'description': ''}}
2025-09-11 11:22:36,661 - DEBUG - Response for create_subnet : {'subnet': {'id': '59322dea-edcf-4f22-b5ca-32188c14f4a4', 'name': '', 'tenant_id': '34506e3f6ea24b62889f9f8530a2aa77', 'network_id': '9780dc63-eaf9-4167-9343-b78f7721993c', 'ip_version': 4, 'cidr': '136.154.235.64/26', 'allocation_pools': [{'start': '136.154.235.66', 'end': '136.154.235.126'}], 'gateway_ip': '136.154.235.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '136.154.235.66', 'tags': [], 'project_id': '34506e3f6ea24b62889f9f8530a2aa77'}}
2025-09-11 11:22:36,682 - INFO - Created VN ctest-vn-49873153
2025-09-11 11:22:36,732 - DEBUG - VN ctest-vn-49873153 UUID is 9780dc63-eaf9-4167-9343-b78f7721993c
2025-09-11 11:22:36,847 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-72460665:ctest-vn-18982092, 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-72460665:ctest-vn-49873153, 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-09-11 11:22:37,144 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3e8523e8-c3d3-4e74-839e-ece4d9fc8ccd', 'name': 'ctest-vn-18982092', 'tenant_id': '34506e3f6ea24b62889f9f8530a2aa77', 'project_id': '34506e3f6ea24b62889f9f8530a2aa77', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['719c0484-e814-4dbb-b986-c27d250401e5'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-72460665', 'ctest-vn-18982092'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-72460665', 'ctest-policy-allow-all-82745411']], 'subnet_ipam': [{'subnet_cidr': '135.29.187.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-11 11:22:37,363 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9780dc63-eaf9-4167-9343-b78f7721993c', 'name': 'ctest-vn-49873153', 'tenant_id': '34506e3f6ea24b62889f9f8530a2aa77', 'project_id': '34506e3f6ea24b62889f9f8530a2aa77', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['59322dea-edcf-4f22-b5ca-32188c14f4a4'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-72460665', 'ctest-vn-49873153'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-72460665', 'ctest-policy-allow-all-82745411']], 'subnet_ipam': [{'subnet_cidr': '136.154.235.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-11 11:22:37,517 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-09-11 11:22:37,809 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-09-11 11:22:37,838 - DEBUG - Requesting: http://10.0.0.38:8082/domain/fcd05486-4794-4521-a44f-dc0b67f859be
2025-09-11 11:22:37,851 - DEBUG - Requesting: http://10.0.0.38:8082/project/34506e3f-6ea2-4b62-889f-9f8530a2aa77
2025-09-11 11:22:37,929 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/3e8523e8-c3d3-4e74-839e-ece4d9fc8ccd
2025-09-11 11:22:37,956 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/3e8523e8-c3d3-4e74-839e-ece4d9fc8ccd
2025-09-11 11:22:37,975 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/4cbe3216-af28-43da-8ca4-8cea824ce5f6
2025-09-11 11:22:37,993 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/4cbe3216-af28-43da-8ca4-8cea824ce5f6
2025-09-11 11:22:38,010 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/1126f5fa-87a7-46c4-8b53-54c2cd853e16
2025-09-11 11:22:38,040 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-11 11:22:38,040 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/3e8523e8-c3d3-4e74-839e-ece4d9fc8ccd
2025-09-11 11:22:38,054 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/4cbe3216-af28-43da-8ca4-8cea824ce5f6
2025-09-11 11:22:38,087 - INFO - Verified VN network id 12 for VN 3e8523e8-c3d3-4e74-839e-ece4d9fc8ccd
2025-09-11 11:22:38,087 - INFO - Verifications in API Server for VN ctest-vn-18982092 passed
2025-09-11 11:22:38,088 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/3e8523e8-c3d3-4e74-839e-ece4d9fc8ccd
2025-09-11 11:22:38,121 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/4cbe3216-af28-43da-8ca4-8cea824ce5f6
2025-09-11 11:22:38,128 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/4cbe3216-af28-43da-8ca4-8cea824ce5f6
2025-09-11 11:22:38,134 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/1126f5fa-87a7-46c4-8b53-54c2cd853e16
2025-09-11 11:22:38,144 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-72460665:ctest-vn-18982092', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-72460665', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4505046484878839412', 'uuid-lslong': '9484278332942748877'}, 'enable': 'true', 'created': '2025-09-11T11:22:35', 'last-modified': '2025-09-11T11:22:37', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.023331'}
2025-09-11 11:22:38,150 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-11 11:22:38,150 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-18982092 passed
2025-09-11 11:22:38,150 - DEBUG - ====Verifying policy data for ctest-vn-18982092 in API_Server ======
2025-09-11 11:22:38,150 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-09-11 11:22:38,162 - DEBUG - Requesting: http://10.0.0.38:8082/domain/fcd05486-4794-4521-a44f-dc0b67f859be
2025-09-11 11:22:38,192 - DEBUG - Requesting: http://10.0.0.38:8082/project/34506e3f-6ea2-4b62-889f-9f8530a2aa77
2025-09-11 11:22:38,295 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/3e8523e8-c3d3-4e74-839e-ece4d9fc8ccd
2025-09-11 11:22:38,316 - DEBUG - ==>Verifying data for policy with id: ae58de7f-50ce-4cc4-a54b-b1f86c8193bb, fqn: ['default-domain', 'ctest-TestBasicPolicy-72460665', 'ctest-policy-allow-all-82745411']
2025-09-11 11:22:38,316 - INFO - VN ctest-vn-18982092 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-11 11:22:38,316 - DEBUG - Verifying the vn in opserver
2025-09-11 11:22:38,316 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-72460665:ctest-vn-18982092 virtual network link through opserver 10.0.0.38
2025-09-11 11:22:38,316 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-09-11 11:22:38,651 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-09-11 11:22:38,705 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-72460665:ctest-vn-18982092', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-72460665:ctest-vn-18982092?flat'}
2025-09-11 11:22:38,705 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-72460665:ctest-vn-18982092 is found in opserver
2025-09-11 11:22:38,715 - DEBUG - Do not have enough data to verify VN in agent
2025-09-11 11:22:38,720 - DEBUG - VRF ids for VN ctest-vn-18982092: {}
2025-09-11 11:22:38,720 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-09-11 11:22:38,726 - DEBUG - Requesting: http://10.0.0.38:8082/domain/fcd05486-4794-4521-a44f-dc0b67f859be
2025-09-11 11:22:38,739 - DEBUG - Requesting: http://10.0.0.38:8082/project/34506e3f-6ea2-4b62-889f-9f8530a2aa77
2025-09-11 11:22:38,808 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/9780dc63-eaf9-4167-9343-b78f7721993c
2025-09-11 11:22:38,819 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/9780dc63-eaf9-4167-9343-b78f7721993c
2025-09-11 11:22:38,826 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c6f89a72-0e3d-4524-a87f-1672608e729a
2025-09-11 11:22:38,832 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c6f89a72-0e3d-4524-a87f-1672608e729a
2025-09-11 11:22:38,838 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/1270c383-3624-4ecf-a4eb-0625b6272515
2025-09-11 11:22:38,843 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-11 11:22:38,843 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/9780dc63-eaf9-4167-9343-b78f7721993c
2025-09-11 11:22:38,851 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c6f89a72-0e3d-4524-a87f-1672608e729a
2025-09-11 11:22:38,863 - INFO - Verified VN network id 13 for VN 9780dc63-eaf9-4167-9343-b78f7721993c
2025-09-11 11:22:38,863 - INFO - Verifications in API Server for VN ctest-vn-49873153 passed
2025-09-11 11:22:38,863 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/9780dc63-eaf9-4167-9343-b78f7721993c
2025-09-11 11:22:38,871 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c6f89a72-0e3d-4524-a87f-1672608e729a
2025-09-11 11:22:38,876 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c6f89a72-0e3d-4524-a87f-1672608e729a
2025-09-11 11:22:38,883 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/1270c383-3624-4ecf-a4eb-0625b6272515
2025-09-11 11:22:38,894 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-72460665:ctest-vn-49873153', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-72460665', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10916967818448159079', 'uuid-lslong': '10611526973821917500'}, 'enable': 'true', 'created': '2025-09-11T11:22:36', 'last-modified': '2025-09-11T11:22:37', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.549151'}
2025-09-11 11:22:38,899 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-11 11:22:38,899 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-49873153 passed
2025-09-11 11:22:38,899 - DEBUG - ====Verifying policy data for ctest-vn-49873153 in API_Server ======
2025-09-11 11:22:38,899 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-09-11 11:22:38,904 - DEBUG - Requesting: http://10.0.0.38:8082/domain/fcd05486-4794-4521-a44f-dc0b67f859be
2025-09-11 11:22:38,913 - DEBUG - Requesting: http://10.0.0.38:8082/project/34506e3f-6ea2-4b62-889f-9f8530a2aa77
2025-09-11 11:22:38,985 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/9780dc63-eaf9-4167-9343-b78f7721993c
2025-09-11 11:22:38,993 - DEBUG - ==>Verifying data for policy with id: ae58de7f-50ce-4cc4-a54b-b1f86c8193bb, fqn: ['default-domain', 'ctest-TestBasicPolicy-72460665', 'ctest-policy-allow-all-82745411']
2025-09-11 11:22:38,993 - INFO - VN ctest-vn-49873153 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-11 11:22:38,994 - DEBUG - Verifying the vn in opserver
2025-09-11 11:22:38,994 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-72460665:ctest-vn-49873153 virtual network link through opserver 10.0.0.38
2025-09-11 11:22:38,994 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-09-11 11:22:39,002 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-72460665:ctest-vn-49873153', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-72460665:ctest-vn-49873153?flat'}
2025-09-11 11:22:39,002 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-72460665:ctest-vn-49873153 is found in opserver
2025-09-11 11:22:39,011 - DEBUG - Do not have enough data to verify VN in agent
2025-09-11 11:22:39,015 - DEBUG - VRF ids for VN ctest-vn-49873153: {}
2025-09-11 11:22:39,075 - DEBUG - Services list from nova: [