2025-03-22 13:49:27,711 - INFO - Domain Default found not creating
2025-03-22 13:49:27,875 - INFO - Project ctest-TestBasicPolicy-56444329 not found, creating it
2025-03-22 13:49:28,385 - INFO - Created Project:ctest-TestBasicPolicy-56444329, ID : f1e0a794-97fb-482b-bde2-4304dcb1469e
2025-03-22 13:49:30,013 - INFO - ================================================================================
2025-03-22 13:49:30,013 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-03-22 13:49:30,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-03-22 13:49:30,279 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.5': '0'}} with
2025-03-22 13:49:30,279 - INFO - Initial checks done. Running the testcase now
2025-03-22 13:49:30,279 - INFO -
2025-03-22 13:49:30,883 - DEBUG - Response for create_network : {'network': {'id': 'b38efebf-ee7e-49f8-92dd-3a9a66750206', 'name': 'ctest-vn-03180930', 'tenant_id': 'f1e0a79497fb482bbde24304dcb1469e', 'project_id': 'f1e0a79497fb482bbde24304dcb1469e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-56444329', 'ctest-vn-03180930'], 'port_security_enabled': True, 'description': ''}}
2025-03-22 13:49:31,125 - DEBUG - Response for create_subnet : {'subnet': {'id': 'cad6fec3-46ab-4ded-8d07-f5eee374a88a', 'name': '', 'tenant_id': 'f1e0a79497fb482bbde24304dcb1469e', 'network_id': 'b38efebf-ee7e-49f8-92dd-3a9a66750206', 'ip_version': 4, 'cidr': '44.133.52.128/26', 'allocation_pools': [{'start': '44.133.52.130', 'end': '44.133.52.190'}], 'gateway_ip': '44.133.52.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '44.133.52.130', 'tags': [], 'project_id': 'f1e0a79497fb482bbde24304dcb1469e'}}
2025-03-22 13:49:31,146 - INFO - Created VN ctest-vn-03180930
2025-03-22 13:49:31,199 - DEBUG - VN ctest-vn-03180930 UUID is b38efebf-ee7e-49f8-92dd-3a9a66750206
2025-03-22 13:49:31,533 - DEBUG - Response for create_network : {'network': {'id': '68826f2a-338a-4792-a189-691776faedec', 'name': 'ctest-vn-30362293', 'tenant_id': 'f1e0a79497fb482bbde24304dcb1469e', 'project_id': 'f1e0a79497fb482bbde24304dcb1469e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-56444329', 'ctest-vn-30362293'], 'port_security_enabled': True, 'description': ''}}
2025-03-22 13:49:31,789 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e02c799f-ab00-40f6-a8c8-18101db5a806', 'name': '', 'tenant_id': 'f1e0a79497fb482bbde24304dcb1469e', 'network_id': '68826f2a-338a-4792-a189-691776faedec', 'ip_version': 4, 'cidr': '197.184.225.64/26', 'allocation_pools': [{'start': '197.184.225.66', 'end': '197.184.225.126'}], 'gateway_ip': '197.184.225.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '197.184.225.66', 'tags': [], 'project_id': 'f1e0a79497fb482bbde24304dcb1469e'}}
2025-03-22 13:49:31,816 - INFO - Created VN ctest-vn-30362293
2025-03-22 13:49:31,871 - DEBUG - VN ctest-vn-30362293 UUID is 68826f2a-338a-4792-a189-691776faedec
2025-03-22 13:49:32,010 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-56444329:ctest-vn-03180930, 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-56444329:ctest-vn-30362293, 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-03-22 13:49:32,351 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b38efebf-ee7e-49f8-92dd-3a9a66750206', 'name': 'ctest-vn-03180930', 'tenant_id': 'f1e0a79497fb482bbde24304dcb1469e', 'project_id': 'f1e0a79497fb482bbde24304dcb1469e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['cad6fec3-46ab-4ded-8d07-f5eee374a88a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-56444329', 'ctest-vn-03180930'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-56444329', 'ctest-policy-allow-all-58503709']], 'subnet_ipam': [{'subnet_cidr': '44.133.52.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-03-22 13:49:32,622 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '68826f2a-338a-4792-a189-691776faedec', 'name': 'ctest-vn-30362293', 'tenant_id': 'f1e0a79497fb482bbde24304dcb1469e', 'project_id': 'f1e0a79497fb482bbde24304dcb1469e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e02c799f-ab00-40f6-a8c8-18101db5a806'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-56444329', 'ctest-vn-30362293'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-56444329', 'ctest-policy-allow-all-58503709']], 'subnet_ipam': [{'subnet_cidr': '197.184.225.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-03-22 13:49:32,775 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-03-22 13:49:33,081 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-03-22 13:49:33,114 - DEBUG - Requesting: http://10.0.0.22:8082/domain/dba87b4c-4563-4660-ac05-db9b39c07ceb
2025-03-22 13:49:33,130 - DEBUG - Requesting: http://10.0.0.22:8082/project/f1e0a794-97fb-482b-bde2-4304dcb1469e
2025-03-22 13:49:33,208 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/b38efebf-ee7e-49f8-92dd-3a9a66750206
2025-03-22 13:49:33,221 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/b38efebf-ee7e-49f8-92dd-3a9a66750206
2025-03-22 13:49:33,232 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/c2f854d0-f02c-466a-9a4c-90e230299c26
2025-03-22 13:49:33,242 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/c2f854d0-f02c-466a-9a4c-90e230299c26
2025-03-22 13:49:33,251 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/f74070d9-cd49-4128-9137-683b33d35e9a
2025-03-22 13:49:33,259 - DEBUG - Route Targets: ['target:64512:8000004']
2025-03-22 13:49:33,259 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/b38efebf-ee7e-49f8-92dd-3a9a66750206
2025-03-22 13:49:33,271 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/c2f854d0-f02c-466a-9a4c-90e230299c26
2025-03-22 13:49:33,288 - INFO - Verified VN network id 8 for VN b38efebf-ee7e-49f8-92dd-3a9a66750206
2025-03-22 13:49:33,288 - INFO - Verifications in API Server for VN ctest-vn-03180930 passed
2025-03-22 13:49:33,289 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/b38efebf-ee7e-49f8-92dd-3a9a66750206
2025-03-22 13:49:33,300 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/c2f854d0-f02c-466a-9a4c-90e230299c26
2025-03-22 13:49:33,309 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/c2f854d0-f02c-466a-9a4c-90e230299c26
2025-03-22 13:49:33,317 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/f74070d9-cd49-4128-9137-683b33d35e9a
2025-03-22 13:49:33,334 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-56444329:ctest-vn-03180930', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-56444329', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12938558879775476216', 'uuid-lslong': '10582679134208852486'}, 'enable': 'true', 'created': '2025-03-22T13:49:30', 'last-modified': '2025-03-22T13:49:32', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.019639'}
2025-03-22 13:49:33,342 - DEBUG - Route Targets: ['target:64512:8000004']
2025-03-22 13:49:33,342 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-03180930 passed
2025-03-22 13:49:33,343 - DEBUG - ====Verifying policy data for ctest-vn-03180930 in API_Server ======
2025-03-22 13:49:33,343 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-03-22 13:49:33,350 - DEBUG - Requesting: http://10.0.0.22:8082/domain/dba87b4c-4563-4660-ac05-db9b39c07ceb
2025-03-22 13:49:33,363 - DEBUG - Requesting: http://10.0.0.22:8082/project/f1e0a794-97fb-482b-bde2-4304dcb1469e
2025-03-22 13:49:33,459 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/b38efebf-ee7e-49f8-92dd-3a9a66750206
2025-03-22 13:49:33,474 - DEBUG - ==>Verifying data for policy with id: 919d698b-ace8-40a2-a2dc-e616204f05c1, fqn: ['default-domain', 'ctest-TestBasicPolicy-56444329', 'ctest-policy-allow-all-58503709']
2025-03-22 13:49:33,474 - INFO - VN ctest-vn-03180930 Policy verification: verify_vn_policy_in_api_server, status: True
2025-03-22 13:49:33,474 - DEBUG - Verifying the vn in opserver
2025-03-22 13:49:33,474 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-56444329:ctest-vn-03180930 virtual network link through opserver 10.0.0.22
2025-03-22 13:49:33,475 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-03-22 13:49:33,770 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-03-22 13:49:33,835 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-56444329:ctest-vn-03180930', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-56444329:ctest-vn-03180930?flat'}
2025-03-22 13:49:33,835 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-56444329:ctest-vn-03180930 is found in opserver
2025-03-22 13:49:33,846 - DEBUG - Do not have enough data to verify VN in agent
2025-03-22 13:49:33,853 - DEBUG - VRF ids for VN ctest-vn-03180930: {}
2025-03-22 13:49:33,853 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-03-22 13:49:33,859 - DEBUG - Requesting: http://10.0.0.22:8082/domain/dba87b4c-4563-4660-ac05-db9b39c07ceb
2025-03-22 13:49:33,871 - DEBUG - Requesting: http://10.0.0.22:8082/project/f1e0a794-97fb-482b-bde2-4304dcb1469e
2025-03-22 13:49:33,944 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/68826f2a-338a-4792-a189-691776faedec
2025-03-22 13:49:33,957 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/68826f2a-338a-4792-a189-691776faedec
2025-03-22 13:49:33,968 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/d49c6c45-5906-447b-92d8-359bd6150d01
2025-03-22 13:49:33,977 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/d49c6c45-5906-447b-92d8-359bd6150d01
2025-03-22 13:49:33,987 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/abe6f687-5c87-423d-b343-e020cb2bb8b9
2025-03-22 13:49:34,005 - DEBUG - Route Targets: ['target:64512:8000005']
2025-03-22 13:49:34,005 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/68826f2a-338a-4792-a189-691776faedec
2025-03-22 13:49:34,018 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/d49c6c45-5906-447b-92d8-359bd6150d01
2025-03-22 13:49:34,036 - INFO - Verified VN network id 9 for VN 68826f2a-338a-4792-a189-691776faedec
2025-03-22 13:49:34,036 - INFO - Verifications in API Server for VN ctest-vn-30362293 passed
2025-03-22 13:49:34,036 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/68826f2a-338a-4792-a189-691776faedec
2025-03-22 13:49:34,048 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/d49c6c45-5906-447b-92d8-359bd6150d01
2025-03-22 13:49:34,057 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/d49c6c45-5906-447b-92d8-359bd6150d01
2025-03-22 13:49:34,067 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/abe6f687-5c87-423d-b343-e020cb2bb8b9
2025-03-22 13:49:34,084 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-56444329:ctest-vn-30362293', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-56444329', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7530703753960900498', 'uuid-lslong': '11639950261417078252'}, 'enable': 'true', 'created': '2025-03-22T13:49:31', 'last-modified': '2025-03-22T13:49:32', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.497104'}
2025-03-22 13:49:34,091 - DEBUG - Route Targets: ['target:64512:8000005']
2025-03-22 13:49:34,091 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-30362293 passed
2025-03-22 13:49:34,092 - DEBUG - ====Verifying policy data for ctest-vn-30362293 in API_Server ======
2025-03-22 13:49:34,092 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-03-22 13:49:34,099 - DEBUG - Requesting: http://10.0.0.22:8082/domain/dba87b4c-4563-4660-ac05-db9b39c07ceb
2025-03-22 13:49:34,114 - DEBUG - Requesting: http://10.0.0.22:8082/project/f1e0a794-97fb-482b-bde2-4304dcb1469e
2025-03-22 13:49:34,203 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/68826f2a-338a-4792-a189-691776faedec
2025-03-22 13:49:34,215 - DEBUG - ==>Verifying data for policy with id: 919d698b-ace8-40a2-a2dc-e616204f05c1, fqn: ['default-domain', 'ctest-TestBasicPolicy-56444329', 'ctest-policy-allow-all-58503709']
2025-03-22 13:49:34,215 - INFO - VN ctest-vn-30362293 Policy verification: verify_vn_policy_in_api_server, status: True
2025-03-22 13:49:34,215 - DEBUG - Verifying the vn in opserver
2025-03-22 13:49:34,215 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-56444329:ctest-vn-30362293 virtual network link through opserver 10.0.0.22
2025-03-22 13:49:34,215 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-03-22 13:49:34,228 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-56444329:ctest-vn-30362293', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-56444329:ctest-vn-30362293?flat'}
2025-03-22 13:49:34,228 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-56444329:ctest-vn-30362293 is found in opserver
2025-03-22 13:49:34,240 - DEBUG - Do not have enough data to verify VN in agent
2025-03-22 13:49:34,246 - DEBUG - VRF ids for VN ctest-vn-30362293: {}
2025-03-22 13:49:34,309 - DEBUG - Services list from nova: [