2025-07-08 16:23:34,120 - INFO - Domain Default found not creating
2025-07-08 16:23:34,264 - INFO - Project ctest-TestBasicPolicy-83173788 not found, creating it
2025-07-08 16:23:34,740 - INFO - Created Project:ctest-TestBasicPolicy-83173788, ID : 3c6521fc-d9e3-4a9b-8750-3d2e2be83400
2025-07-08 16:23:36,185 - INFO - ================================================================================
2025-07-08 16:23:36,186 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-07-08 16:23:36,186 - 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-07-08 16:23:36,439 - DEBUG - Nothing to compare xmpp stats {'10.0.0.19': {'10.20.0.14': '0'}} with
2025-07-08 16:23:36,439 - INFO - Initial checks done. Running the testcase now
2025-07-08 16:23:36,439 - INFO -
2025-07-08 16:23:36,988 - DEBUG - Response for create_network : {'network': {'id': 'dfc4c9d9-89b3-4159-ac89-9c8938a8eea1', 'name': 'ctest-vn-96153413', 'tenant_id': '3c6521fcd9e34a9b87503d2e2be83400', 'project_id': '3c6521fcd9e34a9b87503d2e2be83400', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-83173788', 'ctest-vn-96153413'], 'port_security_enabled': True, 'description': ''}}
2025-07-08 16:23:37,168 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd23f84b2-0570-491d-975d-308d443ff8d7', 'name': '', 'tenant_id': '3c6521fcd9e34a9b87503d2e2be83400', 'network_id': 'dfc4c9d9-89b3-4159-ac89-9c8938a8eea1', 'ip_version': 4, 'cidr': '91.144.122.0/26', 'allocation_pools': [{'start': '91.144.122.2', 'end': '91.144.122.62'}], 'gateway_ip': '91.144.122.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '91.144.122.2', 'tags': [], 'project_id': '3c6521fcd9e34a9b87503d2e2be83400'}}
2025-07-08 16:23:37,188 - INFO - Created VN ctest-vn-96153413
2025-07-08 16:23:37,240 - DEBUG - VN ctest-vn-96153413 UUID is dfc4c9d9-89b3-4159-ac89-9c8938a8eea1
2025-07-08 16:23:37,536 - DEBUG - Response for create_network : {'network': {'id': 'b1d37360-0e70-4452-9b0d-886dd52317b7', 'name': 'ctest-vn-79525005', 'tenant_id': '3c6521fcd9e34a9b87503d2e2be83400', 'project_id': '3c6521fcd9e34a9b87503d2e2be83400', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-83173788', 'ctest-vn-79525005'], 'port_security_enabled': True, 'description': ''}}
2025-07-08 16:23:37,735 - DEBUG - Response for create_subnet : {'subnet': {'id': '20e4396f-beb3-410e-8782-182f68442b5f', 'name': '', 'tenant_id': '3c6521fcd9e34a9b87503d2e2be83400', 'network_id': 'b1d37360-0e70-4452-9b0d-886dd52317b7', 'ip_version': 4, 'cidr': '123.22.189.0/26', 'allocation_pools': [{'start': '123.22.189.2', 'end': '123.22.189.62'}], 'gateway_ip': '123.22.189.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '123.22.189.2', 'tags': [], 'project_id': '3c6521fcd9e34a9b87503d2e2be83400'}}
2025-07-08 16:23:37,753 - INFO - Created VN ctest-vn-79525005
2025-07-08 16:23:37,808 - DEBUG - VN ctest-vn-79525005 UUID is b1d37360-0e70-4452-9b0d-886dd52317b7
2025-07-08 16:23:37,925 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-83173788:ctest-vn-96153413, 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-83173788:ctest-vn-79525005, 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-07-08 16:23:38,277 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'dfc4c9d9-89b3-4159-ac89-9c8938a8eea1', 'name': 'ctest-vn-96153413', 'tenant_id': '3c6521fcd9e34a9b87503d2e2be83400', 'project_id': '3c6521fcd9e34a9b87503d2e2be83400', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d23f84b2-0570-491d-975d-308d443ff8d7'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-83173788', 'ctest-vn-96153413'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-83173788', 'ctest-policy-allow-all-53611630']], 'subnet_ipam': [{'subnet_cidr': '91.144.122.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-08 16:23:38,568 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b1d37360-0e70-4452-9b0d-886dd52317b7', 'name': 'ctest-vn-79525005', 'tenant_id': '3c6521fcd9e34a9b87503d2e2be83400', 'project_id': '3c6521fcd9e34a9b87503d2e2be83400', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['20e4396f-beb3-410e-8782-182f68442b5f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-83173788', 'ctest-vn-79525005'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-83173788', 'ctest-policy-allow-all-53611630']], 'subnet_ipam': [{'subnet_cidr': '123.22.189.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-08 16:23:38,720 - DEBUG - Requesting: http://10.0.0.19:8082/domains
2025-07-08 16:23:39,022 - DEBUG - Requesting: http://10.0.0.19:8082/domains
2025-07-08 16:23:39,050 - DEBUG - Requesting: http://10.0.0.19:8082/domain/06e5ca76-e81f-476c-9a90-322556e3d637
2025-07-08 16:23:39,064 - DEBUG - Requesting: http://10.0.0.19:8082/project/3c6521fc-d9e3-4a9b-8750-3d2e2be83400
2025-07-08 16:23:39,140 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/dfc4c9d9-89b3-4159-ac89-9c8938a8eea1
2025-07-08 16:23:39,153 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/dfc4c9d9-89b3-4159-ac89-9c8938a8eea1
2025-07-08 16:23:39,164 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/8438d9ca-ce11-461d-af3d-199405c3dc77
2025-07-08 16:23:39,174 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/8438d9ca-ce11-461d-af3d-199405c3dc77
2025-07-08 16:23:39,183 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/6294452a-af93-4d5a-b133-918a9b1df8a5
2025-07-08 16:23:39,191 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-08 16:23:39,191 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/dfc4c9d9-89b3-4159-ac89-9c8938a8eea1
2025-07-08 16:23:39,202 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/8438d9ca-ce11-461d-af3d-199405c3dc77
2025-07-08 16:23:39,219 - INFO - Verified VN network id 8 for VN dfc4c9d9-89b3-4159-ac89-9c8938a8eea1
2025-07-08 16:23:39,219 - INFO - Verifications in API Server for VN ctest-vn-96153413 passed
2025-07-08 16:23:39,219 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/dfc4c9d9-89b3-4159-ac89-9c8938a8eea1
2025-07-08 16:23:39,231 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/8438d9ca-ce11-461d-af3d-199405c3dc77
2025-07-08 16:23:39,239 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/8438d9ca-ce11-461d-af3d-199405c3dc77
2025-07-08 16:23:39,247 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/6294452a-af93-4d5a-b133-918a9b1df8a5
2025-07-08 16:23:39,260 - DEBUG - Control-node 10.0.0.19 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-83173788:ctest-vn-96153413', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-83173788', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16124234502048530777', 'uuid-lslong': '12432640359508012705'}, 'enable': 'true', 'created': '2025-07-08T16:23:36', 'last-modified': '2025-07-08T16:23:38', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.039279'}
2025-07-08 16:23:39,266 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-08 16:23:39,267 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-96153413 passed
2025-07-08 16:23:39,267 - DEBUG - ====Verifying policy data for ctest-vn-96153413 in API_Server ======
2025-07-08 16:23:39,267 - DEBUG - Requesting: http://10.0.0.19:8082/domains
2025-07-08 16:23:39,273 - DEBUG - Requesting: http://10.0.0.19:8082/domain/06e5ca76-e81f-476c-9a90-322556e3d637
2025-07-08 16:23:39,285 - DEBUG - Requesting: http://10.0.0.19:8082/project/3c6521fc-d9e3-4a9b-8750-3d2e2be83400
2025-07-08 16:23:39,368 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/dfc4c9d9-89b3-4159-ac89-9c8938a8eea1
2025-07-08 16:23:39,380 - DEBUG - ==>Verifying data for policy with id: 7d2b0f96-fe03-44b9-a6af-92f47e7890c7, fqn: ['default-domain', 'ctest-TestBasicPolicy-83173788', 'ctest-policy-allow-all-53611630']
2025-07-08 16:23:39,380 - INFO - VN ctest-vn-96153413 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-08 16:23:39,380 - DEBUG - Verifying the vn in opserver
2025-07-08 16:23:39,380 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-83173788:ctest-vn-96153413 virtual network link through opserver 10.0.0.19
2025-07-08 16:23:39,381 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks
2025-07-08 16:23:39,671 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks
2025-07-08 16:23:39,728 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-83173788:ctest-vn-96153413', 'href': 'http://10.0.0.19:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-83173788:ctest-vn-96153413?flat'}
2025-07-08 16:23:39,728 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-83173788:ctest-vn-96153413 is found in opserver
2025-07-08 16:23:39,739 - DEBUG - Do not have enough data to verify VN in agent
2025-07-08 16:23:39,744 - DEBUG - VRF ids for VN ctest-vn-96153413: {}
2025-07-08 16:23:39,744 - DEBUG - Requesting: http://10.0.0.19:8082/domains
2025-07-08 16:23:39,750 - DEBUG - Requesting: http://10.0.0.19:8082/domain/06e5ca76-e81f-476c-9a90-322556e3d637
2025-07-08 16:23:39,762 - DEBUG - Requesting: http://10.0.0.19:8082/project/3c6521fc-d9e3-4a9b-8750-3d2e2be83400
2025-07-08 16:23:39,838 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/b1d37360-0e70-4452-9b0d-886dd52317b7
2025-07-08 16:23:39,852 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/b1d37360-0e70-4452-9b0d-886dd52317b7
2025-07-08 16:23:39,862 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/da225e92-d566-4fa4-af34-38c19ad3cd8b
2025-07-08 16:23:39,871 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/da225e92-d566-4fa4-af34-38c19ad3cd8b
2025-07-08 16:23:39,880 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/f26765d5-e3c1-47e4-9903-fd4266efedae
2025-07-08 16:23:39,888 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-08 16:23:39,888 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/b1d37360-0e70-4452-9b0d-886dd52317b7
2025-07-08 16:23:39,900 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/da225e92-d566-4fa4-af34-38c19ad3cd8b
2025-07-08 16:23:39,917 - INFO - Verified VN network id 9 for VN b1d37360-0e70-4452-9b0d-886dd52317b7
2025-07-08 16:23:39,918 - INFO - Verifications in API Server for VN ctest-vn-79525005 passed
2025-07-08 16:23:39,918 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/b1d37360-0e70-4452-9b0d-886dd52317b7
2025-07-08 16:23:39,928 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/da225e92-d566-4fa4-af34-38c19ad3cd8b
2025-07-08 16:23:39,936 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/da225e92-d566-4fa4-af34-38c19ad3cd8b
2025-07-08 16:23:39,943 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/f26765d5-e3c1-47e4-9903-fd4266efedae
2025-07-08 16:23:39,957 - DEBUG - Control-node 10.0.0.19 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-83173788:ctest-vn-79525005', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-83173788', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12813712221195486290', 'uuid-lslong': '11172736255884728247'}, 'enable': 'true', 'created': '2025-07-08T16:23:37', 'last-modified': '2025-07-08T16:23:38', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.460004'}
2025-07-08 16:23:39,964 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-08 16:23:39,964 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-79525005 passed
2025-07-08 16:23:39,964 - DEBUG - ====Verifying policy data for ctest-vn-79525005 in API_Server ======
2025-07-08 16:23:39,964 - DEBUG - Requesting: http://10.0.0.19:8082/domains
2025-07-08 16:23:39,970 - DEBUG - Requesting: http://10.0.0.19:8082/domain/06e5ca76-e81f-476c-9a90-322556e3d637
2025-07-08 16:23:39,988 - DEBUG - Requesting: http://10.0.0.19:8082/project/3c6521fc-d9e3-4a9b-8750-3d2e2be83400
2025-07-08 16:23:40,066 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/b1d37360-0e70-4452-9b0d-886dd52317b7
2025-07-08 16:23:40,079 - DEBUG - ==>Verifying data for policy with id: 7d2b0f96-fe03-44b9-a6af-92f47e7890c7, fqn: ['default-domain', 'ctest-TestBasicPolicy-83173788', 'ctest-policy-allow-all-53611630']
2025-07-08 16:23:40,079 - INFO - VN ctest-vn-79525005 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-08 16:23:40,079 - DEBUG - Verifying the vn in opserver
2025-07-08 16:23:40,080 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-83173788:ctest-vn-79525005 virtual network link through opserver 10.0.0.19
2025-07-08 16:23:40,080 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks
2025-07-08 16:23:40,094 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-83173788:ctest-vn-79525005', 'href': 'http://10.0.0.19:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-83173788:ctest-vn-79525005?flat'}
2025-07-08 16:23:40,094 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-83173788:ctest-vn-79525005 is found in opserver
2025-07-08 16:23:40,107 - DEBUG - Do not have enough data to verify VN in agent
2025-07-08 16:23:40,112 - DEBUG - VRF ids for VN ctest-vn-79525005: {}
2025-07-08 16:23:40,170 - DEBUG - Services list from nova: [