2025-06-20 08:18:35,747 - INFO - Domain Default found not creating
2025-06-20 08:18:35,901 - INFO - Project ctest-TestBasicPolicy-40078690 not found, creating it
2025-06-20 08:18:36,387 - INFO - Created Project:ctest-TestBasicPolicy-40078690, ID : fa40752a-3d14-4b0e-a2b7-ab7134261989
2025-06-20 08:18:38,013 - INFO - ================================================================================
2025-06-20 08:18:38,014 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-06-20 08:18:38,014 - 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-20 08:18:38,270 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0'}} with
2025-06-20 08:18:38,270 - INFO - Initial checks done. Running the testcase now
2025-06-20 08:18:38,270 - INFO -
2025-06-20 08:18:38,920 - DEBUG - Response for create_network : {'network': {'id': '9a484eff-0827-4b77-9478-6df4f7732c6f', 'name': 'ctest-vn-45645404', 'tenant_id': 'fa40752a3d144b0ea2b7ab7134261989', 'project_id': 'fa40752a3d144b0ea2b7ab7134261989', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-40078690', 'ctest-vn-45645404'], 'port_security_enabled': True, 'description': ''}}
2025-06-20 08:18:39,093 - DEBUG - Response for create_subnet : {'subnet': {'id': '5b4dfad5-119e-457a-b9b9-241101f5c17a', 'name': '', 'tenant_id': 'fa40752a3d144b0ea2b7ab7134261989', 'network_id': '9a484eff-0827-4b77-9478-6df4f7732c6f', 'ip_version': 4, 'cidr': '95.133.102.0/26', 'allocation_pools': [{'start': '95.133.102.2', 'end': '95.133.102.62'}], 'gateway_ip': '95.133.102.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '95.133.102.2', 'tags': [], 'project_id': 'fa40752a3d144b0ea2b7ab7134261989'}}
2025-06-20 08:18:39,113 - INFO - Created VN ctest-vn-45645404
2025-06-20 08:18:39,167 - DEBUG - VN ctest-vn-45645404 UUID is 9a484eff-0827-4b77-9478-6df4f7732c6f
2025-06-20 08:18:39,463 - DEBUG - Response for create_network : {'network': {'id': '6c39b262-fdc8-4294-8ab3-075b3f68b655', 'name': 'ctest-vn-96707418', 'tenant_id': 'fa40752a3d144b0ea2b7ab7134261989', 'project_id': 'fa40752a3d144b0ea2b7ab7134261989', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-40078690', 'ctest-vn-96707418'], 'port_security_enabled': True, 'description': ''}}
2025-06-20 08:18:39,675 - DEBUG - Response for create_subnet : {'subnet': {'id': '62688519-531a-44ae-a619-ad3a0f1f9098', 'name': '', 'tenant_id': 'fa40752a3d144b0ea2b7ab7134261989', 'network_id': '6c39b262-fdc8-4294-8ab3-075b3f68b655', 'ip_version': 4, 'cidr': '73.224.241.64/26', 'allocation_pools': [{'start': '73.224.241.66', 'end': '73.224.241.126'}], 'gateway_ip': '73.224.241.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '73.224.241.66', 'tags': [], 'project_id': 'fa40752a3d144b0ea2b7ab7134261989'}}
2025-06-20 08:18:39,695 - INFO - Created VN ctest-vn-96707418
2025-06-20 08:18:39,751 - DEBUG - VN ctest-vn-96707418 UUID is 6c39b262-fdc8-4294-8ab3-075b3f68b655
2025-06-20 08:18:39,869 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-40078690:ctest-vn-45645404, 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-40078690:ctest-vn-96707418, 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-20 08:18:40,184 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9a484eff-0827-4b77-9478-6df4f7732c6f', 'name': 'ctest-vn-45645404', 'tenant_id': 'fa40752a3d144b0ea2b7ab7134261989', 'project_id': 'fa40752a3d144b0ea2b7ab7134261989', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['5b4dfad5-119e-457a-b9b9-241101f5c17a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-40078690', 'ctest-vn-45645404'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-40078690', 'ctest-policy-allow-all-34773006']], 'subnet_ipam': [{'subnet_cidr': '95.133.102.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-20 08:18:40,417 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6c39b262-fdc8-4294-8ab3-075b3f68b655', 'name': 'ctest-vn-96707418', 'tenant_id': 'fa40752a3d144b0ea2b7ab7134261989', 'project_id': 'fa40752a3d144b0ea2b7ab7134261989', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['62688519-531a-44ae-a619-ad3a0f1f9098'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-40078690', 'ctest-vn-96707418'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-40078690', 'ctest-policy-allow-all-34773006']], 'subnet_ipam': [{'subnet_cidr': '73.224.241.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-20 08:18:40,587 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-06-20 08:18:40,921 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-06-20 08:18:40,950 - DEBUG - Requesting: http://10.0.0.38:8082/domain/3433a493-9ce2-4549-a3c9-ca291f5d20bf
2025-06-20 08:18:40,964 - DEBUG - Requesting: http://10.0.0.38:8082/project/fa40752a-3d14-4b0e-a2b7-ab7134261989
2025-06-20 08:18:41,045 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/9a484eff-0827-4b77-9478-6df4f7732c6f
2025-06-20 08:18:41,057 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/9a484eff-0827-4b77-9478-6df4f7732c6f
2025-06-20 08:18:41,068 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/aa8efa78-7220-4051-b42c-1aaf9341ac74
2025-06-20 08:18:41,077 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/aa8efa78-7220-4051-b42c-1aaf9341ac74
2025-06-20 08:18:41,084 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/f7955ef4-43b5-4369-a34f-9a29993b9a59
2025-06-20 08:18:41,092 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-20 08:18:41,092 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/9a484eff-0827-4b77-9478-6df4f7732c6f
2025-06-20 08:18:41,103 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/aa8efa78-7220-4051-b42c-1aaf9341ac74
2025-06-20 08:18:41,122 - INFO - Verified VN network id 9 for VN 9a484eff-0827-4b77-9478-6df4f7732c6f
2025-06-20 08:18:41,122 - INFO - Verifications in API Server for VN ctest-vn-45645404 passed
2025-06-20 08:18:41,122 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/9a484eff-0827-4b77-9478-6df4f7732c6f
2025-06-20 08:18:41,196 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/aa8efa78-7220-4051-b42c-1aaf9341ac74
2025-06-20 08:18:41,205 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/aa8efa78-7220-4051-b42c-1aaf9341ac74
2025-06-20 08:18:41,216 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/f7955ef4-43b5-4369-a34f-9a29993b9a59
2025-06-20 08:18:41,231 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-40078690:ctest-vn-45645404', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-40078690', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11117222537424489335', 'uuid-lslong': '10698421813709581423'}, 'enable': 'true', 'created': '2025-06-20T08:18:38', 'last-modified': '2025-06-20T08:18:40', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.077463'}
2025-06-20 08:18:41,239 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-20 08:18:41,239 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-45645404 passed
2025-06-20 08:18:41,239 - DEBUG - ====Verifying policy data for ctest-vn-45645404 in API_Server ======
2025-06-20 08:18:41,239 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-06-20 08:18:41,246 - DEBUG - Requesting: http://10.0.0.38:8082/domain/3433a493-9ce2-4549-a3c9-ca291f5d20bf
2025-06-20 08:18:41,259 - DEBUG - Requesting: http://10.0.0.38:8082/project/fa40752a-3d14-4b0e-a2b7-ab7134261989
2025-06-20 08:18:41,334 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/9a484eff-0827-4b77-9478-6df4f7732c6f
2025-06-20 08:18:41,346 - DEBUG - ==>Verifying data for policy with id: 1cd87617-859f-49b1-8c50-31d31cff23e5, fqn: ['default-domain', 'ctest-TestBasicPolicy-40078690', 'ctest-policy-allow-all-34773006']
2025-06-20 08:18:41,346 - INFO - VN ctest-vn-45645404 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-20 08:18:41,346 - DEBUG - Verifying the vn in opserver
2025-06-20 08:18:41,346 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-40078690:ctest-vn-45645404 virtual network link through opserver 10.0.0.38
2025-06-20 08:18:41,346 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-06-20 08:18:41,678 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-06-20 08:18:41,738 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-40078690:ctest-vn-45645404', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-40078690:ctest-vn-45645404?flat'}
2025-06-20 08:18:41,738 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-40078690:ctest-vn-45645404 is found in opserver
2025-06-20 08:18:41,750 - DEBUG - Do not have enough data to verify VN in agent
2025-06-20 08:18:41,756 - DEBUG - VRF ids for VN ctest-vn-45645404: {}
2025-06-20 08:18:41,756 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-06-20 08:18:41,763 - DEBUG - Requesting: http://10.0.0.38:8082/domain/3433a493-9ce2-4549-a3c9-ca291f5d20bf
2025-06-20 08:18:41,776 - DEBUG - Requesting: http://10.0.0.38:8082/project/fa40752a-3d14-4b0e-a2b7-ab7134261989
2025-06-20 08:18:41,856 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/6c39b262-fdc8-4294-8ab3-075b3f68b655
2025-06-20 08:18:41,870 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/6c39b262-fdc8-4294-8ab3-075b3f68b655
2025-06-20 08:18:41,881 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d9d07a8d-c455-404f-ac3b-370b7b90cd7b
2025-06-20 08:18:41,891 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d9d07a8d-c455-404f-ac3b-370b7b90cd7b
2025-06-20 08:18:41,899 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/f22f1beb-57f4-4b5a-aca1-1429bddd05db
2025-06-20 08:18:41,906 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-20 08:18:41,906 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/6c39b262-fdc8-4294-8ab3-075b3f68b655
2025-06-20 08:18:41,917 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d9d07a8d-c455-404f-ac3b-370b7b90cd7b
2025-06-20 08:18:41,932 - INFO - Verified VN network id 10 for VN 6c39b262-fdc8-4294-8ab3-075b3f68b655
2025-06-20 08:18:41,932 - INFO - Verifications in API Server for VN ctest-vn-96707418 passed
2025-06-20 08:18:41,933 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/6c39b262-fdc8-4294-8ab3-075b3f68b655
2025-06-20 08:18:41,944 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d9d07a8d-c455-404f-ac3b-370b7b90cd7b
2025-06-20 08:18:41,954 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/d9d07a8d-c455-404f-ac3b-370b7b90cd7b
2025-06-20 08:18:41,964 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/f22f1beb-57f4-4b5a-aca1-1429bddd05db
2025-06-20 08:18:41,980 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-40078690:ctest-vn-96707418', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-40078690', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7798460368003023508', 'uuid-lslong': '9994340086552507989'}, 'enable': 'true', 'created': '2025-06-20T08:18:39', 'last-modified': '2025-06-20T08:18:40', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.582007'}
2025-06-20 08:18:41,989 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-20 08:18:41,989 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-96707418 passed
2025-06-20 08:18:41,989 - DEBUG - ====Verifying policy data for ctest-vn-96707418 in API_Server ======
2025-06-20 08:18:41,989 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-06-20 08:18:41,997 - DEBUG - Requesting: http://10.0.0.38:8082/domain/3433a493-9ce2-4549-a3c9-ca291f5d20bf
2025-06-20 08:18:42,011 - DEBUG - Requesting: http://10.0.0.38:8082/project/fa40752a-3d14-4b0e-a2b7-ab7134261989
2025-06-20 08:18:42,092 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/6c39b262-fdc8-4294-8ab3-075b3f68b655
2025-06-20 08:18:42,104 - DEBUG - ==>Verifying data for policy with id: 1cd87617-859f-49b1-8c50-31d31cff23e5, fqn: ['default-domain', 'ctest-TestBasicPolicy-40078690', 'ctest-policy-allow-all-34773006']
2025-06-20 08:18:42,104 - INFO - VN ctest-vn-96707418 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-20 08:18:42,104 - DEBUG - Verifying the vn in opserver
2025-06-20 08:18:42,104 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-40078690:ctest-vn-96707418 virtual network link through opserver 10.0.0.38
2025-06-20 08:18:42,104 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-06-20 08:18:42,116 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-40078690:ctest-vn-96707418', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-40078690:ctest-vn-96707418?flat'}
2025-06-20 08:18:42,117 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-40078690:ctest-vn-96707418 is found in opserver
2025-06-20 08:18:42,128 - DEBUG - Do not have enough data to verify VN in agent
2025-06-20 08:18:42,134 - DEBUG - VRF ids for VN ctest-vn-96707418: {}
2025-06-20 08:18:42,208 - DEBUG - Services list from nova: [