2025-07-12 08:07:38,697 - INFO - Domain Default found not creating
2025-07-12 08:07:38,844 - INFO - Project ctest-TestBasicPolicy-30115594 not found, creating it
2025-07-12 08:07:39,285 - INFO - Created Project:ctest-TestBasicPolicy-30115594, ID : 6cd67afb-542f-4e82-a057-320a1a46b559
2025-07-12 08:07:40,717 - INFO - ================================================================================
2025-07-12 08:07:40,717 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-07-12 08:07:40,717 - 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-12 08:07:40,970 - DEBUG - Nothing to compare xmpp stats {'10.0.0.49': {'10.20.0.25': '0'}} with
2025-07-12 08:07:40,971 - INFO - Initial checks done. Running the testcase now
2025-07-12 08:07:40,971 - INFO -
2025-07-12 08:07:41,517 - DEBUG - Response for create_network : {'network': {'id': '0912094a-bd7c-48db-ad02-90ba25259940', 'name': 'ctest-vn-02546813', 'tenant_id': '6cd67afb542f4e82a057320a1a46b559', 'project_id': '6cd67afb542f4e82a057320a1a46b559', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-30115594', 'ctest-vn-02546813'], 'port_security_enabled': True, 'description': ''}}
2025-07-12 08:07:41,670 - DEBUG - Response for create_subnet : {'subnet': {'id': '8a7e99e1-5d76-4949-a637-a973fc95990a', 'name': '', 'tenant_id': '6cd67afb542f4e82a057320a1a46b559', 'network_id': '0912094a-bd7c-48db-ad02-90ba25259940', 'ip_version': 4, 'cidr': '67.21.55.128/26', 'allocation_pools': [{'start': '67.21.55.130', 'end': '67.21.55.190'}], 'gateway_ip': '67.21.55.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '67.21.55.130', 'tags': [], 'project_id': '6cd67afb542f4e82a057320a1a46b559'}}
2025-07-12 08:07:41,686 - INFO - Created VN ctest-vn-02546813
2025-07-12 08:07:41,737 - DEBUG - VN ctest-vn-02546813 UUID is 0912094a-bd7c-48db-ad02-90ba25259940
2025-07-12 08:07:42,063 - DEBUG - Response for create_network : {'network': {'id': 'c9e2fd46-4238-4a60-99f5-11cea276284f', 'name': 'ctest-vn-20817699', 'tenant_id': '6cd67afb542f4e82a057320a1a46b559', 'project_id': '6cd67afb542f4e82a057320a1a46b559', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-30115594', 'ctest-vn-20817699'], 'port_security_enabled': True, 'description': ''}}
2025-07-12 08:07:42,223 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c0fe66c7-5e4d-456f-83fc-8b9a8d9e4271', 'name': '', 'tenant_id': '6cd67afb542f4e82a057320a1a46b559', 'network_id': 'c9e2fd46-4238-4a60-99f5-11cea276284f', 'ip_version': 4, 'cidr': '120.197.93.0/26', 'allocation_pools': [{'start': '120.197.93.2', 'end': '120.197.93.62'}], 'gateway_ip': '120.197.93.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '120.197.93.2', 'tags': [], 'project_id': '6cd67afb542f4e82a057320a1a46b559'}}
2025-07-12 08:07:42,242 - INFO - Created VN ctest-vn-20817699
2025-07-12 08:07:42,297 - DEBUG - VN ctest-vn-20817699 UUID is c9e2fd46-4238-4a60-99f5-11cea276284f
2025-07-12 08:07:42,419 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-30115594:ctest-vn-02546813, 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-30115594:ctest-vn-20817699, 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-12 08:07:42,729 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0912094a-bd7c-48db-ad02-90ba25259940', 'name': 'ctest-vn-02546813', 'tenant_id': '6cd67afb542f4e82a057320a1a46b559', 'project_id': '6cd67afb542f4e82a057320a1a46b559', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8a7e99e1-5d76-4949-a637-a973fc95990a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-30115594', 'ctest-vn-02546813'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-30115594', 'ctest-policy-allow-all-05994844']], 'subnet_ipam': [{'subnet_cidr': '67.21.55.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-12 08:07:43,008 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c9e2fd46-4238-4a60-99f5-11cea276284f', 'name': 'ctest-vn-20817699', 'tenant_id': '6cd67afb542f4e82a057320a1a46b559', 'project_id': '6cd67afb542f4e82a057320a1a46b559', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c0fe66c7-5e4d-456f-83fc-8b9a8d9e4271'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-30115594', 'ctest-vn-20817699'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-30115594', 'ctest-policy-allow-all-05994844']], 'subnet_ipam': [{'subnet_cidr': '120.197.93.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-12 08:07:43,165 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-07-12 08:07:43,460 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-07-12 08:07:43,488 - DEBUG - Requesting: http://10.0.0.49:8082/domain/64b5af21-c967-4d78-933f-0e2c449486a8
2025-07-12 08:07:43,503 - DEBUG - Requesting: http://10.0.0.49:8082/project/6cd67afb-542f-4e82-a057-320a1a46b559
2025-07-12 08:07:43,580 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/0912094a-bd7c-48db-ad02-90ba25259940
2025-07-12 08:07:43,592 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/0912094a-bd7c-48db-ad02-90ba25259940
2025-07-12 08:07:43,602 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/e2781742-8494-4a25-98c4-1e80ca9092fa
2025-07-12 08:07:43,611 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/e2781742-8494-4a25-98c4-1e80ca9092fa
2025-07-12 08:07:43,618 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/c30e4a32-61e7-462c-beac-91e7bc44f5e8
2025-07-12 08:07:43,626 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-12 08:07:43,626 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/0912094a-bd7c-48db-ad02-90ba25259940
2025-07-12 08:07:43,636 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/e2781742-8494-4a25-98c4-1e80ca9092fa
2025-07-12 08:07:43,651 - INFO - Verified VN network id 8 for VN 0912094a-bd7c-48db-ad02-90ba25259940
2025-07-12 08:07:43,651 - INFO - Verifications in API Server for VN ctest-vn-02546813 passed
2025-07-12 08:07:43,651 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/0912094a-bd7c-48db-ad02-90ba25259940
2025-07-12 08:07:43,662 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/e2781742-8494-4a25-98c4-1e80ca9092fa
2025-07-12 08:07:43,670 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/e2781742-8494-4a25-98c4-1e80ca9092fa
2025-07-12 08:07:43,678 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/c30e4a32-61e7-462c-beac-91e7bc44f5e8
2025-07-12 08:07:43,693 - DEBUG - Control-node 10.0.0.49 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-30115594:ctest-vn-02546813', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-30115594', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '653595112533412059', 'uuid-lslong': '12466685847676492096'}, 'enable': 'true', 'created': '2025-07-12T08:07:41', 'last-modified': '2025-07-12T08:07:42', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.989379'}
2025-07-12 08:07:43,700 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-12 08:07:43,700 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-02546813 passed
2025-07-12 08:07:43,700 - DEBUG - ====Verifying policy data for ctest-vn-02546813 in API_Server ======
2025-07-12 08:07:43,700 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-07-12 08:07:43,707 - DEBUG - Requesting: http://10.0.0.49:8082/domain/64b5af21-c967-4d78-933f-0e2c449486a8
2025-07-12 08:07:43,721 - DEBUG - Requesting: http://10.0.0.49:8082/project/6cd67afb-542f-4e82-a057-320a1a46b559
2025-07-12 08:07:43,799 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/0912094a-bd7c-48db-ad02-90ba25259940
2025-07-12 08:07:43,809 - DEBUG - ==>Verifying data for policy with id: e83757d0-bc42-44cc-86df-f1f0dafb486a, fqn: ['default-domain', 'ctest-TestBasicPolicy-30115594', 'ctest-policy-allow-all-05994844']
2025-07-12 08:07:43,809 - INFO - VN ctest-vn-02546813 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-12 08:07:43,809 - DEBUG - Verifying the vn in opserver
2025-07-12 08:07:43,809 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-30115594:ctest-vn-02546813 virtual network link through opserver 10.0.0.49
2025-07-12 08:07:43,810 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks
2025-07-12 08:07:44,100 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks
2025-07-12 08:07:44,156 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-30115594:ctest-vn-02546813', 'href': 'http://10.0.0.49:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-30115594:ctest-vn-02546813?flat'}
2025-07-12 08:07:44,156 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-30115594:ctest-vn-02546813 is found in opserver
2025-07-12 08:07:44,168 - DEBUG - Do not have enough data to verify VN in agent
2025-07-12 08:07:44,174 - DEBUG - VRF ids for VN ctest-vn-02546813: {}
2025-07-12 08:07:44,174 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-07-12 08:07:44,180 - DEBUG - Requesting: http://10.0.0.49:8082/domain/64b5af21-c967-4d78-933f-0e2c449486a8
2025-07-12 08:07:44,192 - DEBUG - Requesting: http://10.0.0.49:8082/project/6cd67afb-542f-4e82-a057-320a1a46b559
2025-07-12 08:07:44,272 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/c9e2fd46-4238-4a60-99f5-11cea276284f
2025-07-12 08:07:44,284 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/c9e2fd46-4238-4a60-99f5-11cea276284f
2025-07-12 08:07:44,294 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/041892e1-459e-4bc6-b7c1-899e13028227
2025-07-12 08:07:44,301 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/041892e1-459e-4bc6-b7c1-899e13028227
2025-07-12 08:07:44,309 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/b59a1dac-54f3-4609-878b-8e095f53b7a6
2025-07-12 08:07:44,317 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-12 08:07:44,317 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/c9e2fd46-4238-4a60-99f5-11cea276284f
2025-07-12 08:07:44,327 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/041892e1-459e-4bc6-b7c1-899e13028227
2025-07-12 08:07:44,342 - INFO - Verified VN network id 9 for VN c9e2fd46-4238-4a60-99f5-11cea276284f
2025-07-12 08:07:44,342 - INFO - Verifications in API Server for VN ctest-vn-20817699 passed
2025-07-12 08:07:44,342 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/c9e2fd46-4238-4a60-99f5-11cea276284f
2025-07-12 08:07:44,353 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/041892e1-459e-4bc6-b7c1-899e13028227
2025-07-12 08:07:44,362 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/041892e1-459e-4bc6-b7c1-899e13028227
2025-07-12 08:07:44,371 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/b59a1dac-54f3-4609-878b-8e095f53b7a6
2025-07-12 08:07:44,385 - DEBUG - Control-node 10.0.0.49 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-30115594:ctest-vn-20817699', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-30115594', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14547468224560646752', 'uuid-lslong': '11093792836283672655'}, 'enable': 'true', 'created': '2025-07-12T08:07:42', 'last-modified': '2025-07-12T08:07:42', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.445049'}
2025-07-12 08:07:44,391 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-12 08:07:44,391 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-20817699 passed
2025-07-12 08:07:44,391 - DEBUG - ====Verifying policy data for ctest-vn-20817699 in API_Server ======
2025-07-12 08:07:44,391 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-07-12 08:07:44,397 - DEBUG - Requesting: http://10.0.0.49:8082/domain/64b5af21-c967-4d78-933f-0e2c449486a8
2025-07-12 08:07:44,409 - DEBUG - Requesting: http://10.0.0.49:8082/project/6cd67afb-542f-4e82-a057-320a1a46b559
2025-07-12 08:07:44,484 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/c9e2fd46-4238-4a60-99f5-11cea276284f
2025-07-12 08:07:44,494 - DEBUG - ==>Verifying data for policy with id: e83757d0-bc42-44cc-86df-f1f0dafb486a, fqn: ['default-domain', 'ctest-TestBasicPolicy-30115594', 'ctest-policy-allow-all-05994844']
2025-07-12 08:07:44,494 - INFO - VN ctest-vn-20817699 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-12 08:07:44,494 - DEBUG - Verifying the vn in opserver
2025-07-12 08:07:44,494 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-30115594:ctest-vn-20817699 virtual network link through opserver 10.0.0.49
2025-07-12 08:07:44,494 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks
2025-07-12 08:07:44,505 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-30115594:ctest-vn-20817699', 'href': 'http://10.0.0.49:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-30115594:ctest-vn-20817699?flat'}
2025-07-12 08:07:44,505 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-30115594:ctest-vn-20817699 is found in opserver
2025-07-12 08:07:44,517 - DEBUG - Do not have enough data to verify VN in agent
2025-07-12 08:07:44,523 - DEBUG - VRF ids for VN ctest-vn-20817699: {}
2025-07-12 08:07:44,587 - DEBUG - Services list from nova: [