2025-04-08 16:11:43,812 - INFO - Domain Default found not creating
2025-04-08 16:11:44,228 - INFO - Project ctest-TestBasicPolicy-00084498 not found, creating it
2025-04-08 16:11:44,987 - INFO - Created Project:ctest-TestBasicPolicy-00084498, ID : a1ee242d-3b65-4fd9-adca-c6d9e43a0b33
2025-04-08 16:11:47,563 - INFO - ================================================================================
2025-04-08 16:11:47,563 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-04-08 16:11:47,564 - 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-04-08 16:11:47,912 - DEBUG - Nothing to compare xmpp stats {'10.0.0.28': {'10.20.0.12': '0'}} with
2025-04-08 16:11:47,912 - INFO - Initial checks done. Running the testcase now
2025-04-08 16:11:47,912 - INFO -
2025-04-08 16:11:48,713 - DEBUG - Response for create_network : {'network': {'id': 'f585efe2-a588-4f10-ad7f-ffe0618d11c8', 'name': 'ctest-vn-17296800', 'tenant_id': 'a1ee242d3b654fd9adcac6d9e43a0b33', 'project_id': 'a1ee242d3b654fd9adcac6d9e43a0b33', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-00084498', 'ctest-vn-17296800'], 'port_security_enabled': True, 'description': ''}}
2025-04-08 16:11:48,968 - DEBUG - Response for create_subnet : {'subnet': {'id': '1c168f1a-4545-4d30-b5f6-96a009878cad', 'name': '', 'tenant_id': 'a1ee242d3b654fd9adcac6d9e43a0b33', 'network_id': 'f585efe2-a588-4f10-ad7f-ffe0618d11c8', 'ip_version': 4, 'cidr': '221.74.110.192/26', 'allocation_pools': [{'start': '221.74.110.194', 'end': '221.74.110.254'}], 'gateway_ip': '221.74.110.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '221.74.110.194', 'tags': [], 'project_id': 'a1ee242d3b654fd9adcac6d9e43a0b33'}}
2025-04-08 16:11:48,986 - INFO - Created VN ctest-vn-17296800
2025-04-08 16:11:49,039 - DEBUG - VN ctest-vn-17296800 UUID is f585efe2-a588-4f10-ad7f-ffe0618d11c8
2025-04-08 16:11:49,560 - DEBUG - Response for create_network : {'network': {'id': 'b5d80e93-5355-4382-b131-43d0595189e3', 'name': 'ctest-vn-75669533', 'tenant_id': 'a1ee242d3b654fd9adcac6d9e43a0b33', 'project_id': 'a1ee242d3b654fd9adcac6d9e43a0b33', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-00084498', 'ctest-vn-75669533'], 'port_security_enabled': True, 'description': ''}}
2025-04-08 16:11:49,743 - DEBUG - Response for create_subnet : {'subnet': {'id': '8c0a9f22-d9eb-463b-840a-8f14ef94d91e', 'name': '', 'tenant_id': 'a1ee242d3b654fd9adcac6d9e43a0b33', 'network_id': 'b5d80e93-5355-4382-b131-43d0595189e3', 'ip_version': 4, 'cidr': '199.252.102.192/26', 'allocation_pools': [{'start': '199.252.102.194', 'end': '199.252.102.254'}], 'gateway_ip': '199.252.102.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '199.252.102.194', 'tags': [], 'project_id': 'a1ee242d3b654fd9adcac6d9e43a0b33'}}
2025-04-08 16:11:49,762 - INFO - Created VN ctest-vn-75669533
2025-04-08 16:11:49,819 - DEBUG - VN ctest-vn-75669533 UUID is b5d80e93-5355-4382-b131-43d0595189e3
2025-04-08 16:11:50,039 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-00084498:ctest-vn-17296800, 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-00084498:ctest-vn-75669533, 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-04-08 16:11:50,468 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f585efe2-a588-4f10-ad7f-ffe0618d11c8', 'name': 'ctest-vn-17296800', 'tenant_id': 'a1ee242d3b654fd9adcac6d9e43a0b33', 'project_id': 'a1ee242d3b654fd9adcac6d9e43a0b33', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1c168f1a-4545-4d30-b5f6-96a009878cad'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-00084498', 'ctest-vn-17296800'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-00084498', 'ctest-policy-allow-all-33940867']], 'subnet_ipam': [{'subnet_cidr': '221.74.110.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-08 16:11:50,837 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b5d80e93-5355-4382-b131-43d0595189e3', 'name': 'ctest-vn-75669533', 'tenant_id': 'a1ee242d3b654fd9adcac6d9e43a0b33', 'project_id': 'a1ee242d3b654fd9adcac6d9e43a0b33', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8c0a9f22-d9eb-463b-840a-8f14ef94d91e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-00084498', 'ctest-vn-75669533'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-00084498', 'ctest-policy-allow-all-33940867']], 'subnet_ipam': [{'subnet_cidr': '199.252.102.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-08 16:11:50,986 - DEBUG - Requesting: http://10.0.0.28:8082/domains
2025-04-08 16:11:51,295 - DEBUG - Requesting: http://10.0.0.28:8082/domains
2025-04-08 16:11:51,365 - DEBUG - Requesting: http://10.0.0.28:8082/domain/5234058d-71f4-408a-b7bd-6c170938f31f
2025-04-08 16:11:51,397 - DEBUG - Requesting: http://10.0.0.28:8082/project/a1ee242d-3b65-4fd9-adca-c6d9e43a0b33
2025-04-08 16:11:51,515 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/f585efe2-a588-4f10-ad7f-ffe0618d11c8
2025-04-08 16:11:51,544 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/f585efe2-a588-4f10-ad7f-ffe0618d11c8
2025-04-08 16:11:51,564 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/66fcc424-7efd-41d9-86c8-232f0b98b2a4
2025-04-08 16:11:51,579 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/66fcc424-7efd-41d9-86c8-232f0b98b2a4
2025-04-08 16:11:51,593 - DEBUG - Requesting: http://10.0.0.28:8082/route-target/42f863e3-1751-4395-913d-4e5d0948b8c2
2025-04-08 16:11:51,607 - DEBUG - Route Targets: ['target:64512:8000004']
2025-04-08 16:11:51,608 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/f585efe2-a588-4f10-ad7f-ffe0618d11c8
2025-04-08 16:11:51,628 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/66fcc424-7efd-41d9-86c8-232f0b98b2a4
2025-04-08 16:11:51,658 - INFO - Verified VN network id 8 for VN f585efe2-a588-4f10-ad7f-ffe0618d11c8
2025-04-08 16:11:51,658 - INFO - Verifications in API Server for VN ctest-vn-17296800 passed
2025-04-08 16:11:51,658 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/f585efe2-a588-4f10-ad7f-ffe0618d11c8
2025-04-08 16:11:51,683 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/66fcc424-7efd-41d9-86c8-232f0b98b2a4
2025-04-08 16:11:51,697 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/66fcc424-7efd-41d9-86c8-232f0b98b2a4
2025-04-08 16:11:51,711 - DEBUG - Requesting: http://10.0.0.28:8082/route-target/42f863e3-1751-4395-913d-4e5d0948b8c2
2025-04-08 16:11:51,735 - DEBUG - Control-node 10.0.0.28 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-00084498:ctest-vn-17296800', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-00084498', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17691810467913682704', 'uuid-lslong': '12501992429778178504'}, 'enable': 'true', 'created': '2025-04-08T16:11:48', 'last-modified': '2025-04-08T16:11:50', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.299531'}
2025-04-08 16:11:51,748 - DEBUG - Route Targets: ['target:64512:8000004']
2025-04-08 16:11:51,748 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-17296800 passed
2025-04-08 16:11:51,748 - DEBUG - ====Verifying policy data for ctest-vn-17296800 in API_Server ======
2025-04-08 16:11:51,749 - DEBUG - Requesting: http://10.0.0.28:8082/domains
2025-04-08 16:11:51,758 - DEBUG - Requesting: http://10.0.0.28:8082/domain/5234058d-71f4-408a-b7bd-6c170938f31f
2025-04-08 16:11:51,777 - DEBUG - Requesting: http://10.0.0.28:8082/project/a1ee242d-3b65-4fd9-adca-c6d9e43a0b33
2025-04-08 16:11:51,886 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/f585efe2-a588-4f10-ad7f-ffe0618d11c8
2025-04-08 16:11:51,901 - DEBUG - ==>Verifying data for policy with id: 969bb2e5-16a4-41b5-a9d3-14fb3be6c74d, fqn: ['default-domain', 'ctest-TestBasicPolicy-00084498', 'ctest-policy-allow-all-33940867']
2025-04-08 16:11:51,902 - INFO - VN ctest-vn-17296800 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-08 16:11:51,902 - DEBUG - Verifying the vn in opserver
2025-04-08 16:11:51,902 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-00084498:ctest-vn-17296800 virtual network link through opserver 10.0.0.28
2025-04-08 16:11:51,902 - DEBUG - Requesting: http://10.0.0.28:8081/analytics/uves/virtual-networks
2025-04-08 16:11:52,223 - DEBUG - Requesting: http://10.0.0.28:8081/analytics/uves/virtual-networks
2025-04-08 16:11:52,323 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-00084498:ctest-vn-17296800', 'href': 'http://10.0.0.28:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-00084498:ctest-vn-17296800?flat'}
2025-04-08 16:11:52,323 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-00084498:ctest-vn-17296800 is found in opserver
2025-04-08 16:11:52,354 - DEBUG - Do not have enough data to verify VN in agent
2025-04-08 16:11:52,365 - DEBUG - VRF ids for VN ctest-vn-17296800: {}
2025-04-08 16:11:52,365 - DEBUG - Requesting: http://10.0.0.28:8082/domains
2025-04-08 16:11:52,379 - DEBUG - Requesting: http://10.0.0.28:8082/domain/5234058d-71f4-408a-b7bd-6c170938f31f
2025-04-08 16:11:52,407 - DEBUG - Requesting: http://10.0.0.28:8082/project/a1ee242d-3b65-4fd9-adca-c6d9e43a0b33
2025-04-08 16:11:52,530 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/b5d80e93-5355-4382-b131-43d0595189e3
2025-04-08 16:11:52,559 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/b5d80e93-5355-4382-b131-43d0595189e3
2025-04-08 16:11:52,588 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/19463a15-b5e8-4541-bcc1-2501779fc0e6
2025-04-08 16:11:52,613 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/19463a15-b5e8-4541-bcc1-2501779fc0e6
2025-04-08 16:11:52,633 - DEBUG - Requesting: http://10.0.0.28:8082/route-target/ea4639c7-e0f1-4e15-8547-8b6c1b2d20cd
2025-04-08 16:11:52,654 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-08 16:11:52,655 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/b5d80e93-5355-4382-b131-43d0595189e3
2025-04-08 16:11:52,681 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/19463a15-b5e8-4541-bcc1-2501779fc0e6
2025-04-08 16:11:52,717 - INFO - Verified VN network id 9 for VN b5d80e93-5355-4382-b131-43d0595189e3
2025-04-08 16:11:52,718 - INFO - Verifications in API Server for VN ctest-vn-75669533 passed
2025-04-08 16:11:52,718 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/b5d80e93-5355-4382-b131-43d0595189e3
2025-04-08 16:11:52,743 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/19463a15-b5e8-4541-bcc1-2501779fc0e6
2025-04-08 16:11:52,763 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/19463a15-b5e8-4541-bcc1-2501779fc0e6
2025-04-08 16:11:52,782 - DEBUG - Requesting: http://10.0.0.28:8082/route-target/ea4639c7-e0f1-4e15-8547-8b6c1b2d20cd
2025-04-08 16:11:52,814 - DEBUG - Control-node 10.0.0.28 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-00084498:ctest-vn-75669533', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-00084498', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13103239141755536258', 'uuid-lslong': '12768060980702841315'}, 'enable': 'true', 'created': '2025-04-08T16:11:49', 'last-modified': '2025-04-08T16:11:50', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.072787'}
2025-04-08 16:11:52,833 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-08 16:11:52,834 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-75669533 passed
2025-04-08 16:11:52,834 - DEBUG - ====Verifying policy data for ctest-vn-75669533 in API_Server ======
2025-04-08 16:11:52,834 - DEBUG - Requesting: http://10.0.0.28:8082/domains
2025-04-08 16:11:52,849 - DEBUG - Requesting: http://10.0.0.28:8082/domain/5234058d-71f4-408a-b7bd-6c170938f31f
2025-04-08 16:11:52,880 - DEBUG - Requesting: http://10.0.0.28:8082/project/a1ee242d-3b65-4fd9-adca-c6d9e43a0b33
2025-04-08 16:11:52,999 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/b5d80e93-5355-4382-b131-43d0595189e3
2025-04-08 16:11:53,021 - DEBUG - ==>Verifying data for policy with id: 969bb2e5-16a4-41b5-a9d3-14fb3be6c74d, fqn: ['default-domain', 'ctest-TestBasicPolicy-00084498', 'ctest-policy-allow-all-33940867']
2025-04-08 16:11:53,021 - INFO - VN ctest-vn-75669533 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-08 16:11:53,021 - DEBUG - Verifying the vn in opserver
2025-04-08 16:11:53,021 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-00084498:ctest-vn-75669533 virtual network link through opserver 10.0.0.28
2025-04-08 16:11:53,021 - DEBUG - Requesting: http://10.0.0.28:8081/analytics/uves/virtual-networks
2025-04-08 16:11:53,039 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-00084498:ctest-vn-75669533', 'href': 'http://10.0.0.28:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-00084498:ctest-vn-75669533?flat'}
2025-04-08 16:11:53,039 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-00084498:ctest-vn-75669533 is found in opserver
2025-04-08 16:11:53,062 - DEBUG - Do not have enough data to verify VN in agent
2025-04-08 16:11:53,074 - DEBUG - VRF ids for VN ctest-vn-75669533: {}
2025-04-08 16:11:53,168 - DEBUG - Services list from nova: [