2025-08-14 14:28:25,070 - INFO - Domain Default found not creating
2025-08-14 14:28:25,204 - INFO - Project ctest-TestBasicPolicy-71973620 not found, creating it
2025-08-14 14:28:25,664 - INFO - Created Project:ctest-TestBasicPolicy-71973620, ID : 79cc03e6-2a27-464c-bf29-97227f69e34d
2025-08-14 14:28:27,158 - INFO - ================================================================================
2025-08-14 14:28:27,158 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-08-14 14:28:27,158 - 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-08-14 14:28:27,417 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.0.0.249': '0'}} with
2025-08-14 14:28:27,417 - INFO - Initial checks done. Running the testcase now
2025-08-14 14:28:27,417 - INFO -
2025-08-14 14:28:28,609 - DEBUG - Response for create_network : {'network': {'id': 'b9fa9d7d-f233-444c-8b15-fb521f8d4ba7', 'name': 'ctest-vn-39878174', 'tenant_id': '79cc03e62a27464cbf2997227f69e34d', 'project_id': '79cc03e62a27464cbf2997227f69e34d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-71973620', 'ctest-vn-39878174'], 'port_security_enabled': True, 'description': ''}}
2025-08-14 14:28:28,768 - DEBUG - Response for create_subnet : {'subnet': {'id': 'da5e0f45-7ee4-4b27-b407-f7f7e688c5a2', 'name': '', 'tenant_id': '79cc03e62a27464cbf2997227f69e34d', 'network_id': 'b9fa9d7d-f233-444c-8b15-fb521f8d4ba7', 'ip_version': 4, 'cidr': '71.80.174.128/26', 'allocation_pools': [{'start': '71.80.174.130', 'end': '71.80.174.190'}], 'gateway_ip': '71.80.174.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '71.80.174.130', 'tags': [], 'project_id': '79cc03e62a27464cbf2997227f69e34d'}}
2025-08-14 14:28:28,787 - INFO - Created VN ctest-vn-39878174
2025-08-14 14:28:28,841 - DEBUG - VN ctest-vn-39878174 UUID is b9fa9d7d-f233-444c-8b15-fb521f8d4ba7
2025-08-14 14:28:29,183 - DEBUG - Response for create_network : {'network': {'id': '35d860d2-f786-4209-ad39-c25efc642ae0', 'name': 'ctest-vn-58472583', 'tenant_id': '79cc03e62a27464cbf2997227f69e34d', 'project_id': '79cc03e62a27464cbf2997227f69e34d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-71973620', 'ctest-vn-58472583'], 'port_security_enabled': True, 'description': ''}}
2025-08-14 14:28:29,428 - DEBUG - Response for create_subnet : {'subnet': {'id': '64d294f2-aa3c-4c03-be35-5958ccc411db', 'name': '', 'tenant_id': '79cc03e62a27464cbf2997227f69e34d', 'network_id': '35d860d2-f786-4209-ad39-c25efc642ae0', 'ip_version': 4, 'cidr': '100.57.45.64/26', 'allocation_pools': [{'start': '100.57.45.66', 'end': '100.57.45.126'}], 'gateway_ip': '100.57.45.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '100.57.45.66', 'tags': [], 'project_id': '79cc03e62a27464cbf2997227f69e34d'}}
2025-08-14 14:28:29,445 - INFO - Created VN ctest-vn-58472583
2025-08-14 14:28:29,497 - DEBUG - VN ctest-vn-58472583 UUID is 35d860d2-f786-4209-ad39-c25efc642ae0
2025-08-14 14:28:29,608 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-71973620:ctest-vn-39878174, 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-71973620:ctest-vn-58472583, 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-08-14 14:28:29,905 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b9fa9d7d-f233-444c-8b15-fb521f8d4ba7', 'name': 'ctest-vn-39878174', 'tenant_id': '79cc03e62a27464cbf2997227f69e34d', 'project_id': '79cc03e62a27464cbf2997227f69e34d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['da5e0f45-7ee4-4b27-b407-f7f7e688c5a2'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-71973620', 'ctest-vn-39878174'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-71973620', 'ctest-policy-allow-all-16456844']], 'subnet_ipam': [{'subnet_cidr': '71.80.174.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-14 14:28:30,140 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '35d860d2-f786-4209-ad39-c25efc642ae0', 'name': 'ctest-vn-58472583', 'tenant_id': '79cc03e62a27464cbf2997227f69e34d', 'project_id': '79cc03e62a27464cbf2997227f69e34d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['64d294f2-aa3c-4c03-be35-5958ccc411db'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-71973620', 'ctest-vn-58472583'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-71973620', 'ctest-policy-allow-all-16456844']], 'subnet_ipam': [{'subnet_cidr': '100.57.45.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-14 14:28:30,313 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-08-14 14:28:30,647 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-08-14 14:28:30,675 - DEBUG - Requesting: http://10.0.0.249:8082/domain/a0cb9ab4-4bf2-4823-bccf-e0f31e6c7a8d
2025-08-14 14:28:30,688 - DEBUG - Requesting: http://10.0.0.249:8082/project/79cc03e6-2a27-464c-bf29-97227f69e34d
2025-08-14 14:28:30,763 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/b9fa9d7d-f233-444c-8b15-fb521f8d4ba7
2025-08-14 14:28:30,773 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/b9fa9d7d-f233-444c-8b15-fb521f8d4ba7
2025-08-14 14:28:30,782 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/ae286016-b8f2-4650-b6e0-bd7765f38886
2025-08-14 14:28:30,789 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/ae286016-b8f2-4650-b6e0-bd7765f38886
2025-08-14 14:28:30,794 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/c484dc2d-d17c-48ee-a82d-ac7c101117fb
2025-08-14 14:28:30,799 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-14 14:28:30,799 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/b9fa9d7d-f233-444c-8b15-fb521f8d4ba7
2025-08-14 14:28:30,807 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/ae286016-b8f2-4650-b6e0-bd7765f38886
2025-08-14 14:28:30,819 - INFO - Verified VN network id 10 for VN b9fa9d7d-f233-444c-8b15-fb521f8d4ba7
2025-08-14 14:28:30,819 - INFO - Verifications in API Server for VN ctest-vn-39878174 passed
2025-08-14 14:28:30,819 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/b9fa9d7d-f233-444c-8b15-fb521f8d4ba7
2025-08-14 14:28:30,828 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/ae286016-b8f2-4650-b6e0-bd7765f38886
2025-08-14 14:28:30,833 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/ae286016-b8f2-4650-b6e0-bd7765f38886
2025-08-14 14:28:30,839 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/c484dc2d-d17c-48ee-a82d-ac7c101117fb
2025-08-14 14:28:30,849 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-71973620:ctest-vn-39878174', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-71973620', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13401196805454251084', 'uuid-lslong': '10022192875918150567'}, 'enable': 'true', 'created': '2025-08-14T14:28:28', 'last-modified': '2025-08-14T14:28:29', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.975734'}
2025-08-14 14:28:30,855 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-14 14:28:30,855 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-39878174 passed
2025-08-14 14:28:30,855 - DEBUG - ====Verifying policy data for ctest-vn-39878174 in API_Server ======
2025-08-14 14:28:30,855 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-08-14 14:28:30,860 - DEBUG - Requesting: http://10.0.0.249:8082/domain/a0cb9ab4-4bf2-4823-bccf-e0f31e6c7a8d
2025-08-14 14:28:30,870 - DEBUG - Requesting: http://10.0.0.249:8082/project/79cc03e6-2a27-464c-bf29-97227f69e34d
2025-08-14 14:28:30,938 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/b9fa9d7d-f233-444c-8b15-fb521f8d4ba7
2025-08-14 14:28:30,947 - DEBUG - ==>Verifying data for policy with id: dc1c8bae-53af-458c-8d42-38c8e95f1d62, fqn: ['default-domain', 'ctest-TestBasicPolicy-71973620', 'ctest-policy-allow-all-16456844']
2025-08-14 14:28:30,947 - INFO - VN ctest-vn-39878174 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-14 14:28:30,947 - DEBUG - Verifying the vn in opserver
2025-08-14 14:28:30,947 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-71973620:ctest-vn-39878174 virtual network link through opserver 10.0.0.249
2025-08-14 14:28:30,948 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks
2025-08-14 14:28:31,276 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks
2025-08-14 14:28:31,329 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-71973620:ctest-vn-39878174', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-71973620:ctest-vn-39878174?flat'}
2025-08-14 14:28:31,329 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-71973620:ctest-vn-39878174 is found in opserver
2025-08-14 14:28:31,339 - DEBUG - Do not have enough data to verify VN in agent
2025-08-14 14:28:31,344 - DEBUG - VRF ids for VN ctest-vn-39878174: {}
2025-08-14 14:28:31,344 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-08-14 14:28:31,350 - DEBUG - Requesting: http://10.0.0.249:8082/domain/a0cb9ab4-4bf2-4823-bccf-e0f31e6c7a8d
2025-08-14 14:28:31,363 - DEBUG - Requesting: http://10.0.0.249:8082/project/79cc03e6-2a27-464c-bf29-97227f69e34d
2025-08-14 14:28:31,439 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/35d860d2-f786-4209-ad39-c25efc642ae0
2025-08-14 14:28:31,450 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/35d860d2-f786-4209-ad39-c25efc642ae0
2025-08-14 14:28:31,459 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/1dbd4799-dbe5-40f6-805b-100be2df3edd
2025-08-14 14:28:31,465 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/1dbd4799-dbe5-40f6-805b-100be2df3edd
2025-08-14 14:28:31,471 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/f1f5fe32-7821-4e55-9e56-9e68102c25ef
2025-08-14 14:28:31,476 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-14 14:28:31,476 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/35d860d2-f786-4209-ad39-c25efc642ae0
2025-08-14 14:28:31,484 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/1dbd4799-dbe5-40f6-805b-100be2df3edd
2025-08-14 14:28:31,497 - INFO - Verified VN network id 11 for VN 35d860d2-f786-4209-ad39-c25efc642ae0
2025-08-14 14:28:31,497 - INFO - Verifications in API Server for VN ctest-vn-58472583 passed
2025-08-14 14:28:31,497 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/35d860d2-f786-4209-ad39-c25efc642ae0
2025-08-14 14:28:31,507 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/1dbd4799-dbe5-40f6-805b-100be2df3edd
2025-08-14 14:28:31,513 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/1dbd4799-dbe5-40f6-805b-100be2df3edd
2025-08-14 14:28:31,519 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/f1f5fe32-7821-4e55-9e56-9e68102c25ef
2025-08-14 14:28:31,531 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-71973620:ctest-vn-58472583', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-71973620', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3879957538191852041', 'uuid-lslong': '12482221555451177696'}, 'enable': 'true', 'created': '2025-08-14T14:28:29', 'last-modified': '2025-08-14T14:28:30', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.417093'}
2025-08-14 14:28:31,538 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-14 14:28:31,538 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-58472583 passed
2025-08-14 14:28:31,538 - DEBUG - ====Verifying policy data for ctest-vn-58472583 in API_Server ======
2025-08-14 14:28:31,538 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-08-14 14:28:31,544 - DEBUG - Requesting: http://10.0.0.249:8082/domain/a0cb9ab4-4bf2-4823-bccf-e0f31e6c7a8d
2025-08-14 14:28:31,554 - DEBUG - Requesting: http://10.0.0.249:8082/project/79cc03e6-2a27-464c-bf29-97227f69e34d
2025-08-14 14:28:31,628 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/35d860d2-f786-4209-ad39-c25efc642ae0
2025-08-14 14:28:31,638 - DEBUG - ==>Verifying data for policy with id: dc1c8bae-53af-458c-8d42-38c8e95f1d62, fqn: ['default-domain', 'ctest-TestBasicPolicy-71973620', 'ctest-policy-allow-all-16456844']
2025-08-14 14:28:31,638 - INFO - VN ctest-vn-58472583 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-14 14:28:31,638 - DEBUG - Verifying the vn in opserver
2025-08-14 14:28:31,638 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-71973620:ctest-vn-58472583 virtual network link through opserver 10.0.0.249
2025-08-14 14:28:31,638 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks
2025-08-14 14:28:31,648 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-71973620:ctest-vn-58472583', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-71973620:ctest-vn-58472583?flat'}
2025-08-14 14:28:31,649 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-71973620:ctest-vn-58472583 is found in opserver
2025-08-14 14:28:31,658 - DEBUG - Do not have enough data to verify VN in agent
2025-08-14 14:28:31,663 - DEBUG - VRF ids for VN ctest-vn-58472583: {}
2025-08-14 14:28:31,720 - DEBUG - Services list from nova: [