2025-08-25 21:10:18,886 - INFO - Domain Default found not creating
2025-08-25 21:10:19,029 - INFO - Project ctest-TestBasicPolicy-98224652 not found, creating it
2025-08-25 21:10:19,534 - INFO - Created Project:ctest-TestBasicPolicy-98224652, ID : 77641285-9002-4258-a043-0c2fba371f72
2025-08-25 21:10:21,015 - INFO - ================================================================================
2025-08-25 21:10:21,015 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-08-25 21:10:21,015 - 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-25 21:10:21,270 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.20.0.17': '0'}} with
2025-08-25 21:10:21,270 - INFO - Initial checks done. Running the testcase now
2025-08-25 21:10:21,270 - INFO -
2025-08-25 21:10:21,836 - DEBUG - Response for create_network : {'network': {'id': '81931618-8f39-4eee-840e-d798dc5de76c', 'name': 'ctest-vn-01292059', 'tenant_id': '7764128590024258a0430c2fba371f72', 'project_id': '7764128590024258a0430c2fba371f72', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-98224652', 'ctest-vn-01292059'], 'port_security_enabled': True, 'description': ''}}
2025-08-25 21:10:22,041 - DEBUG - Response for create_subnet : {'subnet': {'id': '2c2625d2-a1f3-4d82-804f-682ef4e61ba7', 'name': '', 'tenant_id': '7764128590024258a0430c2fba371f72', 'network_id': '81931618-8f39-4eee-840e-d798dc5de76c', 'ip_version': 4, 'cidr': '81.96.123.192/26', 'allocation_pools': [{'start': '81.96.123.194', 'end': '81.96.123.254'}], 'gateway_ip': '81.96.123.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '81.96.123.194', 'tags': [], 'project_id': '7764128590024258a0430c2fba371f72'}}
2025-08-25 21:10:22,061 - INFO - Created VN ctest-vn-01292059
2025-08-25 21:10:22,114 - DEBUG - VN ctest-vn-01292059 UUID is 81931618-8f39-4eee-840e-d798dc5de76c
2025-08-25 21:10:22,445 - DEBUG - Response for create_network : {'network': {'id': '2d96cd31-1141-4f64-913c-be4642864d2a', 'name': 'ctest-vn-79420880', 'tenant_id': '7764128590024258a0430c2fba371f72', 'project_id': '7764128590024258a0430c2fba371f72', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-98224652', 'ctest-vn-79420880'], 'port_security_enabled': True, 'description': ''}}
2025-08-25 21:10:22,682 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ef58752c-dfdf-46cc-8df3-135efde2568b', 'name': '', 'tenant_id': '7764128590024258a0430c2fba371f72', 'network_id': '2d96cd31-1141-4f64-913c-be4642864d2a', 'ip_version': 4, 'cidr': '156.220.183.128/26', 'allocation_pools': [{'start': '156.220.183.130', 'end': '156.220.183.190'}], 'gateway_ip': '156.220.183.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '156.220.183.130', 'tags': [], 'project_id': '7764128590024258a0430c2fba371f72'}}
2025-08-25 21:10:22,699 - INFO - Created VN ctest-vn-79420880
2025-08-25 21:10:22,750 - DEBUG - VN ctest-vn-79420880 UUID is 2d96cd31-1141-4f64-913c-be4642864d2a
2025-08-25 21:10:22,906 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-98224652:ctest-vn-01292059, 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-98224652:ctest-vn-79420880, 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-25 21:10:23,260 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '81931618-8f39-4eee-840e-d798dc5de76c', 'name': 'ctest-vn-01292059', 'tenant_id': '7764128590024258a0430c2fba371f72', 'project_id': '7764128590024258a0430c2fba371f72', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2c2625d2-a1f3-4d82-804f-682ef4e61ba7'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-98224652', 'ctest-vn-01292059'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-98224652', 'ctest-policy-allow-all-70471185']], 'subnet_ipam': [{'subnet_cidr': '81.96.123.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-25 21:10:23,568 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2d96cd31-1141-4f64-913c-be4642864d2a', 'name': 'ctest-vn-79420880', 'tenant_id': '7764128590024258a0430c2fba371f72', 'project_id': '7764128590024258a0430c2fba371f72', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ef58752c-dfdf-46cc-8df3-135efde2568b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-98224652', 'ctest-vn-79420880'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-98224652', 'ctest-policy-allow-all-70471185']], 'subnet_ipam': [{'subnet_cidr': '156.220.183.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-25 21:10:23,714 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-08-25 21:10:24,030 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-08-25 21:10:24,057 - DEBUG - Requesting: http://10.0.0.242:8082/domain/7ccab2fd-10b3-4283-9563-fbc2338b27df
2025-08-25 21:10:24,070 - DEBUG - Requesting: http://10.0.0.242:8082/project/77641285-9002-4258-a043-0c2fba371f72
2025-08-25 21:10:24,147 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/81931618-8f39-4eee-840e-d798dc5de76c
2025-08-25 21:10:24,159 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/81931618-8f39-4eee-840e-d798dc5de76c
2025-08-25 21:10:24,169 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/fd735c40-5164-4486-bff1-a63efe1bbf32
2025-08-25 21:10:24,177 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/fd735c40-5164-4486-bff1-a63efe1bbf32
2025-08-25 21:10:24,184 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/35b7729b-24e8-4c88-b9b0-8751304f394e
2025-08-25 21:10:24,190 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-25 21:10:24,190 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/81931618-8f39-4eee-840e-d798dc5de76c
2025-08-25 21:10:24,199 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/fd735c40-5164-4486-bff1-a63efe1bbf32
2025-08-25 21:10:24,214 - INFO - Verified VN network id 10 for VN 81931618-8f39-4eee-840e-d798dc5de76c
2025-08-25 21:10:24,214 - INFO - Verifications in API Server for VN ctest-vn-01292059 passed
2025-08-25 21:10:24,214 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/81931618-8f39-4eee-840e-d798dc5de76c
2025-08-25 21:10:24,226 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/fd735c40-5164-4486-bff1-a63efe1bbf32
2025-08-25 21:10:24,234 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/fd735c40-5164-4486-bff1-a63efe1bbf32
2025-08-25 21:10:24,242 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/35b7729b-24e8-4c88-b9b0-8751304f394e
2025-08-25 21:10:24,255 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-98224652:ctest-vn-01292059', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-98224652', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9336830747207093998', 'uuid-lslong': '9515780114212579180'}, 'enable': 'true', 'created': '2025-08-25T21:10:21', 'last-modified': '2025-08-25T21:10:23', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.047737'}
2025-08-25 21:10:24,262 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-25 21:10:24,262 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-01292059 passed
2025-08-25 21:10:24,262 - DEBUG - ====Verifying policy data for ctest-vn-01292059 in API_Server ======
2025-08-25 21:10:24,262 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-08-25 21:10:24,269 - DEBUG - Requesting: http://10.0.0.242:8082/domain/7ccab2fd-10b3-4283-9563-fbc2338b27df
2025-08-25 21:10:24,281 - DEBUG - Requesting: http://10.0.0.242:8082/project/77641285-9002-4258-a043-0c2fba371f72
2025-08-25 21:10:24,352 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/81931618-8f39-4eee-840e-d798dc5de76c
2025-08-25 21:10:24,363 - DEBUG - ==>Verifying data for policy with id: a0887940-2616-428e-a767-ccee9d16c453, fqn: ['default-domain', 'ctest-TestBasicPolicy-98224652', 'ctest-policy-allow-all-70471185']
2025-08-25 21:10:24,363 - INFO - VN ctest-vn-01292059 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-25 21:10:24,363 - DEBUG - Verifying the vn in opserver
2025-08-25 21:10:24,363 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-98224652:ctest-vn-01292059 virtual network link through opserver 10.0.0.242
2025-08-25 21:10:24,364 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks
2025-08-25 21:10:24,655 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks
2025-08-25 21:10:24,707 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-98224652:ctest-vn-01292059', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-98224652:ctest-vn-01292059?flat'}
2025-08-25 21:10:24,707 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-98224652:ctest-vn-01292059 is found in opserver
2025-08-25 21:10:24,718 - DEBUG - Do not have enough data to verify VN in agent
2025-08-25 21:10:24,723 - DEBUG - VRF ids for VN ctest-vn-01292059: {}
2025-08-25 21:10:24,723 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-08-25 21:10:24,729 - DEBUG - Requesting: http://10.0.0.242:8082/domain/7ccab2fd-10b3-4283-9563-fbc2338b27df
2025-08-25 21:10:24,740 - DEBUG - Requesting: http://10.0.0.242:8082/project/77641285-9002-4258-a043-0c2fba371f72
2025-08-25 21:10:24,840 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/2d96cd31-1141-4f64-913c-be4642864d2a
2025-08-25 21:10:24,853 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/2d96cd31-1141-4f64-913c-be4642864d2a
2025-08-25 21:10:24,865 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/77e5e6e2-2b4c-40f8-a3a5-1336925746da
2025-08-25 21:10:24,872 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/77e5e6e2-2b4c-40f8-a3a5-1336925746da
2025-08-25 21:10:24,879 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/969c548f-fb1f-4622-a2f1-b00476d38c3a
2025-08-25 21:10:24,886 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-25 21:10:24,886 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/2d96cd31-1141-4f64-913c-be4642864d2a
2025-08-25 21:10:24,896 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/77e5e6e2-2b4c-40f8-a3a5-1336925746da
2025-08-25 21:10:24,909 - INFO - Verified VN network id 11 for VN 2d96cd31-1141-4f64-913c-be4642864d2a
2025-08-25 21:10:24,909 - INFO - Verifications in API Server for VN ctest-vn-79420880 passed
2025-08-25 21:10:24,909 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/2d96cd31-1141-4f64-913c-be4642864d2a
2025-08-25 21:10:24,918 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/77e5e6e2-2b4c-40f8-a3a5-1336925746da
2025-08-25 21:10:24,925 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/77e5e6e2-2b4c-40f8-a3a5-1336925746da
2025-08-25 21:10:24,932 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/969c548f-fb1f-4622-a2f1-b00476d38c3a
2025-08-25 21:10:24,945 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-98224652:ctest-vn-79420880', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-98224652', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3285038588839939940', 'uuid-lslong': '10465448843075276074'}, 'enable': 'true', 'created': '2025-08-25T21:10:22', 'last-modified': '2025-08-25T21:10:23', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.455248'}
2025-08-25 21:10:24,951 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-25 21:10:24,951 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-79420880 passed
2025-08-25 21:10:24,952 - DEBUG - ====Verifying policy data for ctest-vn-79420880 in API_Server ======
2025-08-25 21:10:24,952 - DEBUG - Requesting: http://10.0.0.242:8082/domains
2025-08-25 21:10:24,958 - DEBUG - Requesting: http://10.0.0.242:8082/domain/7ccab2fd-10b3-4283-9563-fbc2338b27df
2025-08-25 21:10:24,970 - DEBUG - Requesting: http://10.0.0.242:8082/project/77641285-9002-4258-a043-0c2fba371f72
2025-08-25 21:10:25,044 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/2d96cd31-1141-4f64-913c-be4642864d2a
2025-08-25 21:10:25,055 - DEBUG - ==>Verifying data for policy with id: a0887940-2616-428e-a767-ccee9d16c453, fqn: ['default-domain', 'ctest-TestBasicPolicy-98224652', 'ctest-policy-allow-all-70471185']
2025-08-25 21:10:25,055 - INFO - VN ctest-vn-79420880 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-25 21:10:25,055 - DEBUG - Verifying the vn in opserver
2025-08-25 21:10:25,055 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-98224652:ctest-vn-79420880 virtual network link through opserver 10.0.0.242
2025-08-25 21:10:25,055 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks
2025-08-25 21:10:25,065 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-98224652:ctest-vn-79420880', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-98224652:ctest-vn-79420880?flat'}
2025-08-25 21:10:25,065 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-98224652:ctest-vn-79420880 is found in opserver
2025-08-25 21:10:25,078 - DEBUG - Do not have enough data to verify VN in agent
2025-08-25 21:10:25,083 - DEBUG - VRF ids for VN ctest-vn-79420880: {}
2025-08-25 21:10:25,141 - DEBUG - Services list from nova: [