2025-06-18 09:12:50,309 - INFO - Domain Default found not creating
2025-06-18 09:12:50,473 - INFO - Project ctest-TestBasicPolicy-37101760 not found, creating it
2025-06-18 09:12:50,963 - INFO - Created Project:ctest-TestBasicPolicy-37101760, ID : f5da53bd-6887-43f5-b6bc-f84ffb720b16
2025-06-18 09:12:52,459 - INFO - ================================================================================
2025-06-18 09:12:52,459 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-06-18 09:12:52,460 - 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-06-18 09:12:52,714 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.14': '0'}} with
2025-06-18 09:12:52,714 - INFO - Initial checks done. Running the testcase now
2025-06-18 09:12:52,714 - INFO -
2025-06-18 09:12:53,265 - DEBUG - Response for create_network : {'network': {'id': 'e13432c3-be15-4971-bef1-52a3c501d7df', 'name': 'ctest-vn-66836349', 'tenant_id': 'f5da53bd688743f5b6bcf84ffb720b16', 'project_id': 'f5da53bd688743f5b6bcf84ffb720b16', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-37101760', 'ctest-vn-66836349'], 'port_security_enabled': True, 'description': ''}}
2025-06-18 09:12:53,429 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ef6de037-9300-46f1-a0d7-fa1d8aefabc1', 'name': '', 'tenant_id': 'f5da53bd688743f5b6bcf84ffb720b16', 'network_id': 'e13432c3-be15-4971-bef1-52a3c501d7df', 'ip_version': 4, 'cidr': '144.104.33.128/26', 'allocation_pools': [{'start': '144.104.33.130', 'end': '144.104.33.190'}], 'gateway_ip': '144.104.33.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '144.104.33.130', 'tags': [], 'project_id': 'f5da53bd688743f5b6bcf84ffb720b16'}}
2025-06-18 09:12:53,450 - INFO - Created VN ctest-vn-66836349
2025-06-18 09:12:53,506 - DEBUG - VN ctest-vn-66836349 UUID is e13432c3-be15-4971-bef1-52a3c501d7df
2025-06-18 09:12:53,797 - DEBUG - Response for create_network : {'network': {'id': '119d0ee4-0291-4de0-8393-40c690a064e1', 'name': 'ctest-vn-20499175', 'tenant_id': 'f5da53bd688743f5b6bcf84ffb720b16', 'project_id': 'f5da53bd688743f5b6bcf84ffb720b16', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-37101760', 'ctest-vn-20499175'], 'port_security_enabled': True, 'description': ''}}
2025-06-18 09:12:53,963 - DEBUG - Response for create_subnet : {'subnet': {'id': '6a71df2c-3e89-4816-b61d-0ff9fe28ae5b', 'name': '', 'tenant_id': 'f5da53bd688743f5b6bcf84ffb720b16', 'network_id': '119d0ee4-0291-4de0-8393-40c690a064e1', 'ip_version': 4, 'cidr': '77.26.141.64/26', 'allocation_pools': [{'start': '77.26.141.66', 'end': '77.26.141.126'}], 'gateway_ip': '77.26.141.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '77.26.141.66', 'tags': [], 'project_id': 'f5da53bd688743f5b6bcf84ffb720b16'}}
2025-06-18 09:12:53,982 - INFO - Created VN ctest-vn-20499175
2025-06-18 09:12:54,034 - DEBUG - VN ctest-vn-20499175 UUID is 119d0ee4-0291-4de0-8393-40c690a064e1
2025-06-18 09:12:54,159 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-37101760:ctest-vn-66836349, 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-37101760:ctest-vn-20499175, 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-06-18 09:12:54,453 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e13432c3-be15-4971-bef1-52a3c501d7df', 'name': 'ctest-vn-66836349', 'tenant_id': 'f5da53bd688743f5b6bcf84ffb720b16', 'project_id': 'f5da53bd688743f5b6bcf84ffb720b16', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ef6de037-9300-46f1-a0d7-fa1d8aefabc1'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-37101760', 'ctest-vn-66836349'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-37101760', 'ctest-policy-allow-all-36330647']], 'subnet_ipam': [{'subnet_cidr': '144.104.33.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-18 09:12:54,679 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '119d0ee4-0291-4de0-8393-40c690a064e1', 'name': 'ctest-vn-20499175', 'tenant_id': 'f5da53bd688743f5b6bcf84ffb720b16', 'project_id': 'f5da53bd688743f5b6bcf84ffb720b16', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6a71df2c-3e89-4816-b61d-0ff9fe28ae5b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-37101760', 'ctest-vn-20499175'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-37101760', 'ctest-policy-allow-all-36330647']], 'subnet_ipam': [{'subnet_cidr': '77.26.141.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-18 09:12:54,850 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-06-18 09:12:55,158 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-06-18 09:12:55,185 - DEBUG - Requesting: http://10.0.0.254:8082/domain/c50a142b-f675-49a3-bfe2-692afc50ba00
2025-06-18 09:12:55,199 - DEBUG - Requesting: http://10.0.0.254:8082/project/f5da53bd-6887-43f5-b6bc-f84ffb720b16
2025-06-18 09:12:55,282 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/e13432c3-be15-4971-bef1-52a3c501d7df
2025-06-18 09:12:55,293 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/e13432c3-be15-4971-bef1-52a3c501d7df
2025-06-18 09:12:55,302 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/28f40cd5-db0f-4ce0-9c8d-5146a447fd05
2025-06-18 09:12:55,311 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/28f40cd5-db0f-4ce0-9c8d-5146a447fd05
2025-06-18 09:12:55,318 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/19cfa127-edfb-4afe-a0b4-a11204f7d45a
2025-06-18 09:12:55,325 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-18 09:12:55,325 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/e13432c3-be15-4971-bef1-52a3c501d7df
2025-06-18 09:12:55,335 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/28f40cd5-db0f-4ce0-9c8d-5146a447fd05
2025-06-18 09:12:55,351 - INFO - Verified VN network id 8 for VN e13432c3-be15-4971-bef1-52a3c501d7df
2025-06-18 09:12:55,351 - INFO - Verifications in API Server for VN ctest-vn-66836349 passed
2025-06-18 09:12:55,351 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/e13432c3-be15-4971-bef1-52a3c501d7df
2025-06-18 09:12:55,363 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/28f40cd5-db0f-4ce0-9c8d-5146a447fd05
2025-06-18 09:12:55,373 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/28f40cd5-db0f-4ce0-9c8d-5146a447fd05
2025-06-18 09:12:55,381 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/19cfa127-edfb-4afe-a0b4-a11204f7d45a
2025-06-18 09:12:55,395 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-37101760:ctest-vn-66836349', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-37101760', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16227651173611817329', 'uuid-lslong': '13758869199931955167'}, 'enable': 'true', 'created': '2025-06-18T09:12:53', 'last-modified': '2025-06-18T09:12:54', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.967936'}
2025-06-18 09:12:55,404 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-18 09:12:55,404 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-66836349 passed
2025-06-18 09:12:55,404 - DEBUG - ====Verifying policy data for ctest-vn-66836349 in API_Server ======
2025-06-18 09:12:55,404 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-06-18 09:12:55,411 - DEBUG - Requesting: http://10.0.0.254:8082/domain/c50a142b-f675-49a3-bfe2-692afc50ba00
2025-06-18 09:12:55,424 - DEBUG - Requesting: http://10.0.0.254:8082/project/f5da53bd-6887-43f5-b6bc-f84ffb720b16
2025-06-18 09:12:55,509 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/e13432c3-be15-4971-bef1-52a3c501d7df
2025-06-18 09:12:55,520 - DEBUG - ==>Verifying data for policy with id: aca01590-5f24-4243-be08-7ead5e0c666c, fqn: ['default-domain', 'ctest-TestBasicPolicy-37101760', 'ctest-policy-allow-all-36330647']
2025-06-18 09:12:55,520 - INFO - VN ctest-vn-66836349 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-18 09:12:55,520 - DEBUG - Verifying the vn in opserver
2025-06-18 09:12:55,520 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-37101760:ctest-vn-66836349 virtual network link through opserver 10.0.0.254
2025-06-18 09:12:55,520 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-06-18 09:12:55,810 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-06-18 09:12:55,869 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-37101760:ctest-vn-66836349', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-37101760:ctest-vn-66836349?flat'}
2025-06-18 09:12:55,869 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-37101760:ctest-vn-66836349 is found in opserver
2025-06-18 09:12:55,881 - DEBUG - Do not have enough data to verify VN in agent
2025-06-18 09:12:55,886 - DEBUG - VRF ids for VN ctest-vn-66836349: {}
2025-06-18 09:12:55,886 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-06-18 09:12:55,891 - DEBUG - Requesting: http://10.0.0.254:8082/domain/c50a142b-f675-49a3-bfe2-692afc50ba00
2025-06-18 09:12:55,902 - DEBUG - Requesting: http://10.0.0.254:8082/project/f5da53bd-6887-43f5-b6bc-f84ffb720b16
2025-06-18 09:12:55,986 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/119d0ee4-0291-4de0-8393-40c690a064e1
2025-06-18 09:12:56,002 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/119d0ee4-0291-4de0-8393-40c690a064e1
2025-06-18 09:12:56,014 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/0c2730e1-9b9a-41ed-bb66-4195d2e76f8c
2025-06-18 09:12:56,022 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/0c2730e1-9b9a-41ed-bb66-4195d2e76f8c
2025-06-18 09:12:56,029 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/84bfc395-62c9-4704-a453-845a4310f4af
2025-06-18 09:12:56,036 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-18 09:12:56,036 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/119d0ee4-0291-4de0-8393-40c690a064e1
2025-06-18 09:12:56,045 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/0c2730e1-9b9a-41ed-bb66-4195d2e76f8c
2025-06-18 09:12:56,059 - INFO - Verified VN network id 9 for VN 119d0ee4-0291-4de0-8393-40c690a064e1
2025-06-18 09:12:56,059 - INFO - Verifications in API Server for VN ctest-vn-20499175 passed
2025-06-18 09:12:56,059 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/119d0ee4-0291-4de0-8393-40c690a064e1
2025-06-18 09:12:56,070 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/0c2730e1-9b9a-41ed-bb66-4195d2e76f8c
2025-06-18 09:12:56,079 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/0c2730e1-9b9a-41ed-bb66-4195d2e76f8c
2025-06-18 09:12:56,088 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/84bfc395-62c9-4704-a453-845a4310f4af
2025-06-18 09:12:56,103 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-37101760:ctest-vn-20499175', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-37101760', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1269187042446757344', 'uuid-lslong': '9480992862119159009'}, 'enable': 'true', 'created': '2025-06-18T09:12:53', 'last-modified': '2025-06-18T09:12:54', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.451038'}
2025-06-18 09:12:56,111 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-18 09:12:56,111 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-20499175 passed
2025-06-18 09:12:56,111 - DEBUG - ====Verifying policy data for ctest-vn-20499175 in API_Server ======
2025-06-18 09:12:56,111 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-06-18 09:12:56,119 - DEBUG - Requesting: http://10.0.0.254:8082/domain/c50a142b-f675-49a3-bfe2-692afc50ba00
2025-06-18 09:12:56,133 - DEBUG - Requesting: http://10.0.0.254:8082/project/f5da53bd-6887-43f5-b6bc-f84ffb720b16
2025-06-18 09:12:56,211 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/119d0ee4-0291-4de0-8393-40c690a064e1
2025-06-18 09:12:56,221 - DEBUG - ==>Verifying data for policy with id: aca01590-5f24-4243-be08-7ead5e0c666c, fqn: ['default-domain', 'ctest-TestBasicPolicy-37101760', 'ctest-policy-allow-all-36330647']
2025-06-18 09:12:56,221 - INFO - VN ctest-vn-20499175 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-18 09:12:56,221 - DEBUG - Verifying the vn in opserver
2025-06-18 09:12:56,221 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-37101760:ctest-vn-20499175 virtual network link through opserver 10.0.0.254
2025-06-18 09:12:56,221 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-06-18 09:12:56,232 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-37101760:ctest-vn-20499175', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-37101760:ctest-vn-20499175?flat'}
2025-06-18 09:12:56,232 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-37101760:ctest-vn-20499175 is found in opserver
2025-06-18 09:12:56,245 - DEBUG - Do not have enough data to verify VN in agent
2025-06-18 09:12:56,252 - DEBUG - VRF ids for VN ctest-vn-20499175: {}
2025-06-18 09:12:56,314 - DEBUG - Services list from nova: [