2025-06-17 00:21:18,179 - INFO - Domain Default found not creating
2025-06-17 00:21:18,321 - INFO - Project ctest-TestBasicPolicy-66028837 not found, creating it
2025-06-17 00:21:18,796 - INFO - Created Project:ctest-TestBasicPolicy-66028837, ID : f0c299f1-24cd-47d1-8f64-d76acc9e0b5f
2025-06-17 00:21:20,252 - INFO - ================================================================================
2025-06-17 00:21:20,252 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-06-17 00:21:20,252 - 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-17 00:21:20,511 - DEBUG - Nothing to compare xmpp stats {'10.0.0.57': {'10.20.0.17': '0'}} with
2025-06-17 00:21:20,511 - INFO - Initial checks done. Running the testcase now
2025-06-17 00:21:20,511 - INFO -
2025-06-17 00:21:21,074 - DEBUG - Response for create_network : {'network': {'id': '1c29ac4e-686f-4920-843f-792fd1364dca', 'name': 'ctest-vn-45621519', 'tenant_id': 'f0c299f124cd47d18f64d76acc9e0b5f', 'project_id': 'f0c299f124cd47d18f64d76acc9e0b5f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-66028837', 'ctest-vn-45621519'], 'port_security_enabled': True, 'description': ''}}
2025-06-17 00:21:21,301 - DEBUG - Response for create_subnet : {'subnet': {'id': '65e8965f-d741-4661-b4c4-13db8244b459', 'name': '', 'tenant_id': 'f0c299f124cd47d18f64d76acc9e0b5f', 'network_id': '1c29ac4e-686f-4920-843f-792fd1364dca', 'ip_version': 4, 'cidr': '72.251.17.0/26', 'allocation_pools': [{'start': '72.251.17.2', 'end': '72.251.17.62'}], 'gateway_ip': '72.251.17.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '72.251.17.2', 'tags': [], 'project_id': 'f0c299f124cd47d18f64d76acc9e0b5f'}}
2025-06-17 00:21:21,320 - INFO - Created VN ctest-vn-45621519
2025-06-17 00:21:21,375 - DEBUG - VN ctest-vn-45621519 UUID is 1c29ac4e-686f-4920-843f-792fd1364dca
2025-06-17 00:21:21,679 - DEBUG - Response for create_network : {'network': {'id': 'c179a7e9-3c8d-48a9-9608-05239829da07', 'name': 'ctest-vn-88465618', 'tenant_id': 'f0c299f124cd47d18f64d76acc9e0b5f', 'project_id': 'f0c299f124cd47d18f64d76acc9e0b5f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-66028837', 'ctest-vn-88465618'], 'port_security_enabled': True, 'description': ''}}
2025-06-17 00:21:21,885 - DEBUG - Response for create_subnet : {'subnet': {'id': '0266318e-8c9d-422e-abd9-f34640678110', 'name': '', 'tenant_id': 'f0c299f124cd47d18f64d76acc9e0b5f', 'network_id': 'c179a7e9-3c8d-48a9-9608-05239829da07', 'ip_version': 4, 'cidr': '113.102.40.128/26', 'allocation_pools': [{'start': '113.102.40.130', 'end': '113.102.40.190'}], 'gateway_ip': '113.102.40.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '113.102.40.130', 'tags': [], 'project_id': 'f0c299f124cd47d18f64d76acc9e0b5f'}}
2025-06-17 00:21:21,903 - INFO - Created VN ctest-vn-88465618
2025-06-17 00:21:21,955 - DEBUG - VN ctest-vn-88465618 UUID is c179a7e9-3c8d-48a9-9608-05239829da07
2025-06-17 00:21:22,067 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-66028837:ctest-vn-45621519, 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-66028837:ctest-vn-88465618, 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-17 00:21:22,351 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1c29ac4e-686f-4920-843f-792fd1364dca', 'name': 'ctest-vn-45621519', 'tenant_id': 'f0c299f124cd47d18f64d76acc9e0b5f', 'project_id': 'f0c299f124cd47d18f64d76acc9e0b5f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['65e8965f-d741-4661-b4c4-13db8244b459'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-66028837', 'ctest-vn-45621519'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-66028837', 'ctest-policy-allow-all-47286157']], 'subnet_ipam': [{'subnet_cidr': '72.251.17.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-17 00:21:22,587 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c179a7e9-3c8d-48a9-9608-05239829da07', 'name': 'ctest-vn-88465618', 'tenant_id': 'f0c299f124cd47d18f64d76acc9e0b5f', 'project_id': 'f0c299f124cd47d18f64d76acc9e0b5f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0266318e-8c9d-422e-abd9-f34640678110'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-66028837', 'ctest-vn-88465618'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-66028837', 'ctest-policy-allow-all-47286157']], 'subnet_ipam': [{'subnet_cidr': '113.102.40.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-17 00:21:22,751 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2025-06-17 00:21:23,050 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2025-06-17 00:21:23,079 - DEBUG - Requesting: http://10.0.0.57:8082/domain/cbac7227-dcf7-4847-8fa1-c3ec2997a090
2025-06-17 00:21:23,092 - DEBUG - Requesting: http://10.0.0.57:8082/project/f0c299f1-24cd-47d1-8f64-d76acc9e0b5f
2025-06-17 00:21:23,169 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/1c29ac4e-686f-4920-843f-792fd1364dca
2025-06-17 00:21:23,184 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/1c29ac4e-686f-4920-843f-792fd1364dca
2025-06-17 00:21:23,197 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/d2d1aa85-3b39-4640-8663-4d7bd2ebf581
2025-06-17 00:21:23,206 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/d2d1aa85-3b39-4640-8663-4d7bd2ebf581
2025-06-17 00:21:23,215 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/dfa19430-6f7f-451f-b31a-3c8f5110ee97
2025-06-17 00:21:23,222 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-17 00:21:23,222 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/1c29ac4e-686f-4920-843f-792fd1364dca
2025-06-17 00:21:23,235 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/d2d1aa85-3b39-4640-8663-4d7bd2ebf581
2025-06-17 00:21:23,252 - INFO - Verified VN network id 8 for VN 1c29ac4e-686f-4920-843f-792fd1364dca
2025-06-17 00:21:23,253 - INFO - Verifications in API Server for VN ctest-vn-45621519 passed
2025-06-17 00:21:23,253 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/1c29ac4e-686f-4920-843f-792fd1364dca
2025-06-17 00:21:23,265 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/d2d1aa85-3b39-4640-8663-4d7bd2ebf581
2025-06-17 00:21:23,274 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/d2d1aa85-3b39-4640-8663-4d7bd2ebf581
2025-06-17 00:21:23,281 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/dfa19430-6f7f-451f-b31a-3c8f5110ee97
2025-06-17 00:21:23,308 - DEBUG - Control-node 10.0.0.57 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-66028837:ctest-vn-45621519', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-66028837', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2029342559866669344', 'uuid-lslong': '9529468582819679690'}, 'enable': 'true', 'created': '2025-06-17T00:21:21', 'last-modified': '2025-06-17T00:21:22', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.967420'}
2025-06-17 00:21:23,331 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-17 00:21:23,332 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-45621519 passed
2025-06-17 00:21:23,333 - DEBUG - ====Verifying policy data for ctest-vn-45621519 in API_Server ======
2025-06-17 00:21:23,333 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2025-06-17 00:21:23,345 - DEBUG - Requesting: http://10.0.0.57:8082/domain/cbac7227-dcf7-4847-8fa1-c3ec2997a090
2025-06-17 00:21:23,357 - DEBUG - Requesting: http://10.0.0.57:8082/project/f0c299f1-24cd-47d1-8f64-d76acc9e0b5f
2025-06-17 00:21:23,437 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/1c29ac4e-686f-4920-843f-792fd1364dca
2025-06-17 00:21:23,448 - DEBUG - ==>Verifying data for policy with id: 5b588a06-0ca7-44e9-9628-9f8d81e12d6b, fqn: ['default-domain', 'ctest-TestBasicPolicy-66028837', 'ctest-policy-allow-all-47286157']
2025-06-17 00:21:23,448 - INFO - VN ctest-vn-45621519 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-17 00:21:23,448 - DEBUG - Verifying the vn in opserver
2025-06-17 00:21:23,448 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-66028837:ctest-vn-45621519 virtual network link through opserver 10.0.0.57
2025-06-17 00:21:23,448 - DEBUG - Requesting: http://10.0.0.57:8081/analytics/uves/virtual-networks
2025-06-17 00:21:23,758 - DEBUG - Requesting: http://10.0.0.57:8081/analytics/uves/virtual-networks
2025-06-17 00:21:23,822 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-66028837:ctest-vn-45621519', 'href': 'http://10.0.0.57:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-66028837:ctest-vn-45621519?flat'}
2025-06-17 00:21:23,822 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-66028837:ctest-vn-45621519 is found in opserver
2025-06-17 00:21:23,834 - DEBUG - Do not have enough data to verify VN in agent
2025-06-17 00:21:23,839 - DEBUG - VRF ids for VN ctest-vn-45621519: {}
2025-06-17 00:21:23,839 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2025-06-17 00:21:23,846 - DEBUG - Requesting: http://10.0.0.57:8082/domain/cbac7227-dcf7-4847-8fa1-c3ec2997a090
2025-06-17 00:21:23,862 - DEBUG - Requesting: http://10.0.0.57:8082/project/f0c299f1-24cd-47d1-8f64-d76acc9e0b5f
2025-06-17 00:21:23,936 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/c179a7e9-3c8d-48a9-9608-05239829da07
2025-06-17 00:21:23,948 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/c179a7e9-3c8d-48a9-9608-05239829da07
2025-06-17 00:21:23,958 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/1f884e53-d7ef-4547-bf45-62a4d3476077
2025-06-17 00:21:23,965 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/1f884e53-d7ef-4547-bf45-62a4d3476077
2025-06-17 00:21:23,972 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/88eb4bff-662d-45fe-a7fa-7db0426d778d
2025-06-17 00:21:23,979 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-17 00:21:23,979 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/c179a7e9-3c8d-48a9-9608-05239829da07
2025-06-17 00:21:23,989 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/1f884e53-d7ef-4547-bf45-62a4d3476077
2025-06-17 00:21:24,006 - INFO - Verified VN network id 9 for VN c179a7e9-3c8d-48a9-9608-05239829da07
2025-06-17 00:21:24,006 - INFO - Verifications in API Server for VN ctest-vn-88465618 passed
2025-06-17 00:21:24,006 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/c179a7e9-3c8d-48a9-9608-05239829da07
2025-06-17 00:21:24,021 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/1f884e53-d7ef-4547-bf45-62a4d3476077
2025-06-17 00:21:24,030 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/1f884e53-d7ef-4547-bf45-62a4d3476077
2025-06-17 00:21:24,038 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/88eb4bff-662d-45fe-a7fa-7db0426d778d
2025-06-17 00:21:24,051 - DEBUG - Control-node 10.0.0.57 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-66028837:ctest-vn-88465618', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-66028837', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13941358741687191721', 'uuid-lslong': '10810896555937749511'}, 'enable': 'true', 'created': '2025-06-17T00:21:21', 'last-modified': '2025-06-17T00:21:22', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.486927'}
2025-06-17 00:21:24,058 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-17 00:21:24,058 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-88465618 passed
2025-06-17 00:21:24,058 - DEBUG - ====Verifying policy data for ctest-vn-88465618 in API_Server ======
2025-06-17 00:21:24,058 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2025-06-17 00:21:24,064 - DEBUG - Requesting: http://10.0.0.57:8082/domain/cbac7227-dcf7-4847-8fa1-c3ec2997a090
2025-06-17 00:21:24,076 - DEBUG - Requesting: http://10.0.0.57:8082/project/f0c299f1-24cd-47d1-8f64-d76acc9e0b5f
2025-06-17 00:21:24,148 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/c179a7e9-3c8d-48a9-9608-05239829da07
2025-06-17 00:21:24,158 - DEBUG - ==>Verifying data for policy with id: 5b588a06-0ca7-44e9-9628-9f8d81e12d6b, fqn: ['default-domain', 'ctest-TestBasicPolicy-66028837', 'ctest-policy-allow-all-47286157']
2025-06-17 00:21:24,158 - INFO - VN ctest-vn-88465618 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-17 00:21:24,158 - DEBUG - Verifying the vn in opserver
2025-06-17 00:21:24,158 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-66028837:ctest-vn-88465618 virtual network link through opserver 10.0.0.57
2025-06-17 00:21:24,158 - DEBUG - Requesting: http://10.0.0.57:8081/analytics/uves/virtual-networks
2025-06-17 00:21:24,169 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-66028837:ctest-vn-88465618', 'href': 'http://10.0.0.57:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-66028837:ctest-vn-88465618?flat'}
2025-06-17 00:21:24,169 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-66028837:ctest-vn-88465618 is found in opserver
2025-06-17 00:21:24,180 - DEBUG - Do not have enough data to verify VN in agent
2025-06-17 00:21:24,185 - DEBUG - VRF ids for VN ctest-vn-88465618: {}
2025-06-17 00:21:24,239 - DEBUG - Services list from nova: [