2025-05-06 19:26:27,010 - INFO - Domain Default found not creating
2025-05-06 19:26:27,139 - INFO - Project ctest-TestBasicPolicy-59788132 not found, creating it
2025-05-06 19:26:27,578 - INFO - Created Project:ctest-TestBasicPolicy-59788132, ID : a506ab79-122a-40ce-b24f-6689cc36a2f5
2025-05-06 19:26:28,956 - INFO - ================================================================================
2025-05-06 19:26:28,956 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-05-06 19:26:28,956 - 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-05-06 19:26:29,211 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with
2025-05-06 19:26:29,211 - INFO - Initial checks done. Running the testcase now
2025-05-06 19:26:29,211 - INFO -
2025-05-06 19:26:29,752 - DEBUG - Response for create_network : {'network': {'id': 'b6d9b6e1-70cb-47a4-9769-b4bc450c8eae', 'name': 'ctest-vn-81805140', 'tenant_id': 'a506ab79122a40ceb24f6689cc36a2f5', 'project_id': 'a506ab79122a40ceb24f6689cc36a2f5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-59788132', 'ctest-vn-81805140'], 'port_security_enabled': True, 'description': ''}}
2025-05-06 19:26:29,964 - DEBUG - Response for create_subnet : {'subnet': {'id': '49712514-bc51-4757-80c8-e2a2031290d2', 'name': '', 'tenant_id': 'a506ab79122a40ceb24f6689cc36a2f5', 'network_id': 'b6d9b6e1-70cb-47a4-9769-b4bc450c8eae', 'ip_version': 4, 'cidr': '52.8.152.0/26', 'allocation_pools': [{'start': '52.8.152.2', 'end': '52.8.152.62'}], 'gateway_ip': '52.8.152.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '52.8.152.2', 'tags': [], 'project_id': 'a506ab79122a40ceb24f6689cc36a2f5'}}
2025-05-06 19:26:29,980 - INFO - Created VN ctest-vn-81805140
2025-05-06 19:26:30,032 - DEBUG - VN ctest-vn-81805140 UUID is b6d9b6e1-70cb-47a4-9769-b4bc450c8eae
2025-05-06 19:26:30,344 - DEBUG - Response for create_network : {'network': {'id': '5f93c70b-0526-4f50-9a3b-17bc11d67036', 'name': 'ctest-vn-18601492', 'tenant_id': 'a506ab79122a40ceb24f6689cc36a2f5', 'project_id': 'a506ab79122a40ceb24f6689cc36a2f5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-59788132', 'ctest-vn-18601492'], 'port_security_enabled': True, 'description': ''}}
2025-05-06 19:26:30,543 - DEBUG - Response for create_subnet : {'subnet': {'id': 'dd8830e0-89bf-48ff-973e-c90805f3cbf2', 'name': '', 'tenant_id': 'a506ab79122a40ceb24f6689cc36a2f5', 'network_id': '5f93c70b-0526-4f50-9a3b-17bc11d67036', 'ip_version': 4, 'cidr': '14.48.62.128/26', 'allocation_pools': [{'start': '14.48.62.130', 'end': '14.48.62.190'}], 'gateway_ip': '14.48.62.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '14.48.62.130', 'tags': [], 'project_id': 'a506ab79122a40ceb24f6689cc36a2f5'}}
2025-05-06 19:26:30,564 - INFO - Created VN ctest-vn-18601492
2025-05-06 19:26:30,616 - DEBUG - VN ctest-vn-18601492 UUID is 5f93c70b-0526-4f50-9a3b-17bc11d67036
2025-05-06 19:26:30,768 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-59788132:ctest-vn-81805140, 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-59788132:ctest-vn-18601492, 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-05-06 19:26:31,053 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b6d9b6e1-70cb-47a4-9769-b4bc450c8eae', 'name': 'ctest-vn-81805140', 'tenant_id': 'a506ab79122a40ceb24f6689cc36a2f5', 'project_id': 'a506ab79122a40ceb24f6689cc36a2f5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['49712514-bc51-4757-80c8-e2a2031290d2'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-59788132', 'ctest-vn-81805140'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-59788132', 'ctest-policy-allow-all-74095805']], 'subnet_ipam': [{'subnet_cidr': '52.8.152.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-05-06 19:26:31,291 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5f93c70b-0526-4f50-9a3b-17bc11d67036', 'name': 'ctest-vn-18601492', 'tenant_id': 'a506ab79122a40ceb24f6689cc36a2f5', 'project_id': 'a506ab79122a40ceb24f6689cc36a2f5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['dd8830e0-89bf-48ff-973e-c90805f3cbf2'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-59788132', 'ctest-vn-18601492'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-59788132', 'ctest-policy-allow-all-74095805']], 'subnet_ipam': [{'subnet_cidr': '14.48.62.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-05-06 19:26:31,464 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-05-06 19:26:31,760 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-05-06 19:26:31,787 - DEBUG - Requesting: http://10.0.0.38:8082/domain/0d8f7264-ebc2-45c8-b814-7a12367a6ade
2025-05-06 19:26:31,801 - DEBUG - Requesting: http://10.0.0.38:8082/project/a506ab79-122a-40ce-b24f-6689cc36a2f5
2025-05-06 19:26:31,873 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b6d9b6e1-70cb-47a4-9769-b4bc450c8eae
2025-05-06 19:26:31,885 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b6d9b6e1-70cb-47a4-9769-b4bc450c8eae
2025-05-06 19:26:31,895 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/e9e11106-5eff-4109-8599-44600ea227ca
2025-05-06 19:26:31,903 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/e9e11106-5eff-4109-8599-44600ea227ca
2025-05-06 19:26:31,910 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/314878a2-2050-49ce-8f82-a389adfe857e
2025-05-06 19:26:31,916 - DEBUG - Route Targets: ['target:64512:8000005']
2025-05-06 19:26:31,916 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b6d9b6e1-70cb-47a4-9769-b4bc450c8eae
2025-05-06 19:26:31,925 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/e9e11106-5eff-4109-8599-44600ea227ca
2025-05-06 19:26:31,938 - INFO - Verified VN network id 8 for VN b6d9b6e1-70cb-47a4-9769-b4bc450c8eae
2025-05-06 19:26:31,938 - INFO - Verifications in API Server for VN ctest-vn-81805140 passed
2025-05-06 19:26:31,939 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b6d9b6e1-70cb-47a4-9769-b4bc450c8eae
2025-05-06 19:26:31,947 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/e9e11106-5eff-4109-8599-44600ea227ca
2025-05-06 19:26:31,953 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/e9e11106-5eff-4109-8599-44600ea227ca
2025-05-06 19:26:31,959 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/314878a2-2050-49ce-8f82-a389adfe857e
2025-05-06 19:26:31,969 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-59788132:ctest-vn-81805140', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-59788132', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13175763264225363876', 'uuid-lslong': '10910450292987039406'}, 'enable': 'true', 'created': '2025-05-06T19:26:29', 'last-modified': '2025-05-06T19:26:31', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.934945'}
2025-05-06 19:26:31,976 - DEBUG - Route Targets: ['target:64512:8000005']
2025-05-06 19:26:31,976 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-81805140 passed
2025-05-06 19:26:31,976 - DEBUG - ====Verifying policy data for ctest-vn-81805140 in API_Server ======
2025-05-06 19:26:31,976 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-05-06 19:26:31,981 - DEBUG - Requesting: http://10.0.0.38:8082/domain/0d8f7264-ebc2-45c8-b814-7a12367a6ade
2025-05-06 19:26:31,992 - DEBUG - Requesting: http://10.0.0.38:8082/project/a506ab79-122a-40ce-b24f-6689cc36a2f5
2025-05-06 19:26:32,063 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b6d9b6e1-70cb-47a4-9769-b4bc450c8eae
2025-05-06 19:26:32,075 - DEBUG - ==>Verifying data for policy with id: 4125ae1a-6571-488d-bc1f-951da0cfabd2, fqn: ['default-domain', 'ctest-TestBasicPolicy-59788132', 'ctest-policy-allow-all-74095805']
2025-05-06 19:26:32,076 - INFO - VN ctest-vn-81805140 Policy verification: verify_vn_policy_in_api_server, status: True
2025-05-06 19:26:32,076 - DEBUG - Verifying the vn in opserver
2025-05-06 19:26:32,076 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-59788132:ctest-vn-81805140 virtual network link through opserver 10.0.0.38
2025-05-06 19:26:32,076 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-05-06 19:26:32,365 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-05-06 19:26:32,416 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-59788132:ctest-vn-81805140', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-59788132:ctest-vn-81805140?flat'}
2025-05-06 19:26:32,417 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-59788132:ctest-vn-81805140 is found in opserver
2025-05-06 19:26:32,428 - DEBUG - Do not have enough data to verify VN in agent
2025-05-06 19:26:32,433 - DEBUG - VRF ids for VN ctest-vn-81805140: {}
2025-05-06 19:26:32,433 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-05-06 19:26:32,438 - DEBUG - Requesting: http://10.0.0.38:8082/domain/0d8f7264-ebc2-45c8-b814-7a12367a6ade
2025-05-06 19:26:32,450 - DEBUG - Requesting: http://10.0.0.38:8082/project/a506ab79-122a-40ce-b24f-6689cc36a2f5
2025-05-06 19:26:32,522 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/5f93c70b-0526-4f50-9a3b-17bc11d67036
2025-05-06 19:26:32,534 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/5f93c70b-0526-4f50-9a3b-17bc11d67036
2025-05-06 19:26:32,544 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/4017f3b1-8c30-40ff-a2ea-43be0a24d65e
2025-05-06 19:26:32,551 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/4017f3b1-8c30-40ff-a2ea-43be0a24d65e
2025-05-06 19:26:32,557 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/44682e47-b032-41d6-be60-81833168c3c4
2025-05-06 19:26:32,563 - DEBUG - Route Targets: ['target:64512:8000006']
2025-05-06 19:26:32,563 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/5f93c70b-0526-4f50-9a3b-17bc11d67036
2025-05-06 19:26:32,572 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/4017f3b1-8c30-40ff-a2ea-43be0a24d65e
2025-05-06 19:26:32,586 - INFO - Verified VN network id 9 for VN 5f93c70b-0526-4f50-9a3b-17bc11d67036
2025-05-06 19:26:32,586 - INFO - Verifications in API Server for VN ctest-vn-18601492 passed
2025-05-06 19:26:32,586 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/5f93c70b-0526-4f50-9a3b-17bc11d67036
2025-05-06 19:26:32,595 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/4017f3b1-8c30-40ff-a2ea-43be0a24d65e
2025-05-06 19:26:32,601 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/4017f3b1-8c30-40ff-a2ea-43be0a24d65e
2025-05-06 19:26:32,607 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/44682e47-b032-41d6-be60-81833168c3c4
2025-05-06 19:26:32,619 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-59788132:ctest-vn-18601492', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-59788132', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6887067105324584784', 'uuid-lslong': '11113502601987387446'}, 'enable': 'true', 'created': '2025-05-06T19:26:30', 'last-modified': '2025-05-06T19:26:31', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.345846'}
2025-05-06 19:26:32,625 - DEBUG - Route Targets: ['target:64512:8000006']
2025-05-06 19:26:32,625 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-18601492 passed
2025-05-06 19:26:32,625 - DEBUG - ====Verifying policy data for ctest-vn-18601492 in API_Server ======
2025-05-06 19:26:32,625 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-05-06 19:26:32,630 - DEBUG - Requesting: http://10.0.0.38:8082/domain/0d8f7264-ebc2-45c8-b814-7a12367a6ade
2025-05-06 19:26:32,641 - DEBUG - Requesting: http://10.0.0.38:8082/project/a506ab79-122a-40ce-b24f-6689cc36a2f5
2025-05-06 19:26:32,710 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/5f93c70b-0526-4f50-9a3b-17bc11d67036
2025-05-06 19:26:32,719 - DEBUG - ==>Verifying data for policy with id: 4125ae1a-6571-488d-bc1f-951da0cfabd2, fqn: ['default-domain', 'ctest-TestBasicPolicy-59788132', 'ctest-policy-allow-all-74095805']
2025-05-06 19:26:32,719 - INFO - VN ctest-vn-18601492 Policy verification: verify_vn_policy_in_api_server, status: True
2025-05-06 19:26:32,719 - DEBUG - Verifying the vn in opserver
2025-05-06 19:26:32,719 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-59788132:ctest-vn-18601492 virtual network link through opserver 10.0.0.38
2025-05-06 19:26:32,720 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-05-06 19:26:32,730 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-59788132:ctest-vn-18601492', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-59788132:ctest-vn-18601492?flat'}
2025-05-06 19:26:32,730 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-59788132:ctest-vn-18601492 is found in opserver
2025-05-06 19:26:32,741 - DEBUG - Do not have enough data to verify VN in agent
2025-05-06 19:26:32,746 - DEBUG - VRF ids for VN ctest-vn-18601492: {}
2025-05-06 19:26:32,801 - DEBUG - Services list from nova: [