2025-01-14 08:40:51,665 - INFO - Domain Default found not creating
2025-01-14 08:40:51,821 - INFO - Project ctest-TestBasicPolicy-45889431 not found, creating it
2025-01-14 08:40:52,286 - INFO - Created Project:ctest-TestBasicPolicy-45889431, ID : 997737ed-ff76-46ac-96ab-91ec533c9415
2025-01-14 08:40:53,845 - INFO - ================================================================================
2025-01-14 08:40:53,845 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-01-14 08:40:53,845 - 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-01-14 08:40:54,102 - DEBUG - Nothing to compare xmpp stats {'10.0.0.12': {'10.20.0.22': '0'}} with
2025-01-14 08:40:54,102 - INFO - Initial checks done. Running the testcase now
2025-01-14 08:40:54,102 - INFO -
2025-01-14 08:40:54,661 - DEBUG - Response for create_network : {'network': {'id': '24c29ffe-5248-4b6d-a327-04d5b45fd641', 'name': 'ctest-vn-39065763', 'tenant_id': '997737edff7646ac96ab91ec533c9415', 'project_id': '997737edff7646ac96ab91ec533c9415', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-45889431', 'ctest-vn-39065763'], 'port_security_enabled': True, 'description': ''}}
2025-01-14 08:40:54,833 - DEBUG - Response for create_subnet : {'subnet': {'id': '17852df6-684e-4312-bd39-17442baf3913', 'name': '', 'tenant_id': '997737edff7646ac96ab91ec533c9415', 'network_id': '24c29ffe-5248-4b6d-a327-04d5b45fd641', 'ip_version': 4, 'cidr': '124.176.13.192/26', 'allocation_pools': [{'start': '124.176.13.194', 'end': '124.176.13.254'}], 'gateway_ip': '124.176.13.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '124.176.13.194', 'tags': [], 'project_id': '997737edff7646ac96ab91ec533c9415'}}
2025-01-14 08:40:54,851 - INFO - Created VN ctest-vn-39065763
2025-01-14 08:40:54,908 - DEBUG - VN ctest-vn-39065763 UUID is 24c29ffe-5248-4b6d-a327-04d5b45fd641
2025-01-14 08:40:55,221 - DEBUG - Response for create_network : {'network': {'id': '7777e74b-abb0-45f3-8f00-b236863488c3', 'name': 'ctest-vn-03317869', 'tenant_id': '997737edff7646ac96ab91ec533c9415', 'project_id': '997737edff7646ac96ab91ec533c9415', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-45889431', 'ctest-vn-03317869'], 'port_security_enabled': True, 'description': ''}}
2025-01-14 08:40:55,427 - DEBUG - Response for create_subnet : {'subnet': {'id': '4edcde95-755d-4e43-a771-36e51d7da21d', 'name': '', 'tenant_id': '997737edff7646ac96ab91ec533c9415', 'network_id': '7777e74b-abb0-45f3-8f00-b236863488c3', 'ip_version': 4, 'cidr': '59.237.116.64/26', 'allocation_pools': [{'start': '59.237.116.66', 'end': '59.237.116.126'}], 'gateway_ip': '59.237.116.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '59.237.116.66', 'tags': [], 'project_id': '997737edff7646ac96ab91ec533c9415'}}
2025-01-14 08:40:55,445 - INFO - Created VN ctest-vn-03317869
2025-01-14 08:40:55,495 - DEBUG - VN ctest-vn-03317869 UUID is 7777e74b-abb0-45f3-8f00-b236863488c3
2025-01-14 08:40:55,651 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-45889431:ctest-vn-39065763, 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-45889431:ctest-vn-03317869, 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-01-14 08:40:55,955 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '24c29ffe-5248-4b6d-a327-04d5b45fd641', 'name': 'ctest-vn-39065763', 'tenant_id': '997737edff7646ac96ab91ec533c9415', 'project_id': '997737edff7646ac96ab91ec533c9415', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['17852df6-684e-4312-bd39-17442baf3913'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-45889431', 'ctest-vn-39065763'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-45889431', 'ctest-policy-allow-all-76839717']], 'subnet_ipam': [{'subnet_cidr': '124.176.13.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-14 08:40:56,197 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7777e74b-abb0-45f3-8f00-b236863488c3', 'name': 'ctest-vn-03317869', 'tenant_id': '997737edff7646ac96ab91ec533c9415', 'project_id': '997737edff7646ac96ab91ec533c9415', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4edcde95-755d-4e43-a771-36e51d7da21d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-45889431', 'ctest-vn-03317869'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-45889431', 'ctest-policy-allow-all-76839717']], 'subnet_ipam': [{'subnet_cidr': '59.237.116.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-14 08:40:56,360 - DEBUG - Requesting: http://10.0.0.12:8082/domains
2025-01-14 08:40:56,652 - DEBUG - Requesting: http://10.0.0.12:8082/domains
2025-01-14 08:40:56,684 - DEBUG - Requesting: http://10.0.0.12:8082/domain/8f9472d1-3f80-4cd6-8eb4-e673edccd59d
2025-01-14 08:40:56,699 - DEBUG - Requesting: http://10.0.0.12:8082/project/997737ed-ff76-46ac-96ab-91ec533c9415
2025-01-14 08:40:56,779 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/24c29ffe-5248-4b6d-a327-04d5b45fd641
2025-01-14 08:40:56,791 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/24c29ffe-5248-4b6d-a327-04d5b45fd641
2025-01-14 08:40:56,803 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/545dd2fe-d352-41c0-929d-d722d52c9950
2025-01-14 08:40:56,812 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/545dd2fe-d352-41c0-929d-d722d52c9950
2025-01-14 08:40:56,819 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/be52b180-fe3a-4d36-8cf8-6e9000b47acf
2025-01-14 08:40:56,826 - DEBUG - Route Targets: ['target:64512:8000004']
2025-01-14 08:40:56,826 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/24c29ffe-5248-4b6d-a327-04d5b45fd641
2025-01-14 08:40:56,836 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/545dd2fe-d352-41c0-929d-d722d52c9950
2025-01-14 08:40:56,851 - INFO - Verified VN network id 8 for VN 24c29ffe-5248-4b6d-a327-04d5b45fd641
2025-01-14 08:40:56,851 - INFO - Verifications in API Server for VN ctest-vn-39065763 passed
2025-01-14 08:40:56,851 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/24c29ffe-5248-4b6d-a327-04d5b45fd641
2025-01-14 08:40:56,863 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/545dd2fe-d352-41c0-929d-d722d52c9950
2025-01-14 08:40:56,872 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/545dd2fe-d352-41c0-929d-d722d52c9950
2025-01-14 08:40:56,880 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/be52b180-fe3a-4d36-8cf8-6e9000b47acf
2025-01-14 08:40:56,894 - DEBUG - Control-node 10.0.0.12 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-45889431:ctest-vn-39065763', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-45889431', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2648855445498252141', 'uuid-lslong': '11756370668174693953'}, 'enable': 'true', 'created': '2025-01-14T08:40:54', 'last-modified': '2025-01-14T08:40:55', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.966245'}
2025-01-14 08:40:56,902 - DEBUG - Route Targets: ['target:64512:8000004']
2025-01-14 08:40:56,902 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-39065763 passed
2025-01-14 08:40:56,902 - DEBUG - ====Verifying policy data for ctest-vn-39065763 in API_Server ======
2025-01-14 08:40:56,902 - DEBUG - Requesting: http://10.0.0.12:8082/domains
2025-01-14 08:40:56,909 - DEBUG - Requesting: http://10.0.0.12:8082/domain/8f9472d1-3f80-4cd6-8eb4-e673edccd59d
2025-01-14 08:40:56,926 - DEBUG - Requesting: http://10.0.0.12:8082/project/997737ed-ff76-46ac-96ab-91ec533c9415
2025-01-14 08:40:57,004 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/24c29ffe-5248-4b6d-a327-04d5b45fd641
2025-01-14 08:40:57,015 - DEBUG - ==>Verifying data for policy with id: 6cfe9641-a785-4867-be22-5c20be0874ad, fqn: ['default-domain', 'ctest-TestBasicPolicy-45889431', 'ctest-policy-allow-all-76839717']
2025-01-14 08:40:57,015 - INFO - VN ctest-vn-39065763 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-14 08:40:57,015 - DEBUG - Verifying the vn in opserver
2025-01-14 08:40:57,015 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-45889431:ctest-vn-39065763 virtual network link through opserver 10.0.0.12
2025-01-14 08:40:57,015 - DEBUG - Requesting: http://10.0.0.12:8081/analytics/uves/virtual-networks
2025-01-14 08:40:57,314 - DEBUG - Requesting: http://10.0.0.12:8081/analytics/uves/virtual-networks
2025-01-14 08:40:57,374 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-45889431:ctest-vn-39065763', 'href': 'http://10.0.0.12:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-45889431:ctest-vn-39065763?flat'}
2025-01-14 08:40:57,374 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-45889431:ctest-vn-39065763 is found in opserver
2025-01-14 08:40:57,386 - DEBUG - Do not have enough data to verify VN in agent
2025-01-14 08:40:57,391 - DEBUG - VRF ids for VN ctest-vn-39065763: {}
2025-01-14 08:40:57,392 - DEBUG - Requesting: http://10.0.0.12:8082/domains
2025-01-14 08:40:57,399 - DEBUG - Requesting: http://10.0.0.12:8082/domain/8f9472d1-3f80-4cd6-8eb4-e673edccd59d
2025-01-14 08:40:57,411 - DEBUG - Requesting: http://10.0.0.12:8082/project/997737ed-ff76-46ac-96ab-91ec533c9415
2025-01-14 08:40:57,486 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/7777e74b-abb0-45f3-8f00-b236863488c3
2025-01-14 08:40:57,498 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/7777e74b-abb0-45f3-8f00-b236863488c3
2025-01-14 08:40:57,508 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/7da011fd-4e07-4764-9a41-dff9ae484362
2025-01-14 08:40:57,518 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/7da011fd-4e07-4764-9a41-dff9ae484362
2025-01-14 08:40:57,526 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/a8be756f-179b-4070-873d-621762544845
2025-01-14 08:40:57,533 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-14 08:40:57,533 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/7777e74b-abb0-45f3-8f00-b236863488c3
2025-01-14 08:40:57,544 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/7da011fd-4e07-4764-9a41-dff9ae484362
2025-01-14 08:40:57,561 - INFO - Verified VN network id 9 for VN 7777e74b-abb0-45f3-8f00-b236863488c3
2025-01-14 08:40:57,561 - INFO - Verifications in API Server for VN ctest-vn-03317869 passed
2025-01-14 08:40:57,561 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/7777e74b-abb0-45f3-8f00-b236863488c3
2025-01-14 08:40:57,573 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/7da011fd-4e07-4764-9a41-dff9ae484362
2025-01-14 08:40:57,583 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/7da011fd-4e07-4764-9a41-dff9ae484362
2025-01-14 08:40:57,590 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/a8be756f-179b-4070-873d-621762544845
2025-01-14 08:40:57,604 - DEBUG - Control-node 10.0.0.12 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-45889431:ctest-vn-03317869', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-45889431', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8608603524931012083', 'uuid-lslong': '10304431894673262787'}, 'enable': 'true', 'created': '2025-01-14T08:40:55', 'last-modified': '2025-01-14T08:40:56', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.427796'}
2025-01-14 08:40:57,610 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-14 08:40:57,610 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-03317869 passed
2025-01-14 08:40:57,611 - DEBUG - ====Verifying policy data for ctest-vn-03317869 in API_Server ======
2025-01-14 08:40:57,611 - DEBUG - Requesting: http://10.0.0.12:8082/domains
2025-01-14 08:40:57,616 - DEBUG - Requesting: http://10.0.0.12:8082/domain/8f9472d1-3f80-4cd6-8eb4-e673edccd59d
2025-01-14 08:40:57,629 - DEBUG - Requesting: http://10.0.0.12:8082/project/997737ed-ff76-46ac-96ab-91ec533c9415
2025-01-14 08:40:57,704 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/7777e74b-abb0-45f3-8f00-b236863488c3
2025-01-14 08:40:57,715 - DEBUG - ==>Verifying data for policy with id: 6cfe9641-a785-4867-be22-5c20be0874ad, fqn: ['default-domain', 'ctest-TestBasicPolicy-45889431', 'ctest-policy-allow-all-76839717']
2025-01-14 08:40:57,715 - INFO - VN ctest-vn-03317869 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-14 08:40:57,715 - DEBUG - Verifying the vn in opserver
2025-01-14 08:40:57,715 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-45889431:ctest-vn-03317869 virtual network link through opserver 10.0.0.12
2025-01-14 08:40:57,715 - DEBUG - Requesting: http://10.0.0.12:8081/analytics/uves/virtual-networks
2025-01-14 08:40:57,727 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-45889431:ctest-vn-03317869', 'href': 'http://10.0.0.12:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-45889431:ctest-vn-03317869?flat'}
2025-01-14 08:40:57,727 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-45889431:ctest-vn-03317869 is found in opserver
2025-01-14 08:40:57,739 - DEBUG - Do not have enough data to verify VN in agent
2025-01-14 08:40:57,745 - DEBUG - VRF ids for VN ctest-vn-03317869: {}
2025-01-14 08:40:57,809 - DEBUG - Services list from nova: [