2025-08-08 05:38:53,675 - INFO - Domain Default found not creating
2025-08-08 05:38:53,827 - INFO - Project ctest-TestBasicPolicy-79903653 not found, creating it
2025-08-08 05:38:54,296 - INFO - Created Project:ctest-TestBasicPolicy-79903653, ID : 343f0bd4-e236-4089-b310-a72a335fe947
2025-08-08 05:38:55,720 - INFO - ================================================================================
2025-08-08 05:38:55,720 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-08-08 05:38:55,720 - 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-08-08 05:38:55,973 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0'}} with
2025-08-08 05:38:55,973 - INFO - Initial checks done. Running the testcase now
2025-08-08 05:38:55,973 - INFO -
2025-08-08 05:38:56,536 - DEBUG - Response for create_network : {'network': {'id': '0b329790-8124-4f9e-af7e-4223bda3d7b3', 'name': 'ctest-vn-00942390', 'tenant_id': '343f0bd4e2364089b310a72a335fe947', 'project_id': '343f0bd4e2364089b310a72a335fe947', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-79903653', 'ctest-vn-00942390'], 'port_security_enabled': True, 'description': ''}}
2025-08-08 05:38:56,750 - DEBUG - Response for create_subnet : {'subnet': {'id': '76f6ea9b-88be-4657-bbd5-3c85bd0d4310', 'name': '', 'tenant_id': '343f0bd4e2364089b310a72a335fe947', 'network_id': '0b329790-8124-4f9e-af7e-4223bda3d7b3', 'ip_version': 4, 'cidr': '47.201.7.0/26', 'allocation_pools': [{'start': '47.201.7.2', 'end': '47.201.7.62'}], 'gateway_ip': '47.201.7.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '47.201.7.2', 'tags': [], 'project_id': '343f0bd4e2364089b310a72a335fe947'}}
2025-08-08 05:38:56,771 - INFO - Created VN ctest-vn-00942390
2025-08-08 05:38:56,827 - DEBUG - VN ctest-vn-00942390 UUID is 0b329790-8124-4f9e-af7e-4223bda3d7b3
2025-08-08 05:38:57,144 - DEBUG - Response for create_network : {'network': {'id': '0eb3ef8a-0a66-40a5-b87a-8cd703414790', 'name': 'ctest-vn-32907138', 'tenant_id': '343f0bd4e2364089b310a72a335fe947', 'project_id': '343f0bd4e2364089b310a72a335fe947', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-79903653', 'ctest-vn-32907138'], 'port_security_enabled': True, 'description': ''}}
2025-08-08 05:38:57,367 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e48cb6e8-bd65-47ef-a898-96ef6fd617a1', 'name': '', 'tenant_id': '343f0bd4e2364089b310a72a335fe947', 'network_id': '0eb3ef8a-0a66-40a5-b87a-8cd703414790', 'ip_version': 4, 'cidr': '38.130.27.192/26', 'allocation_pools': [{'start': '38.130.27.194', 'end': '38.130.27.254'}], 'gateway_ip': '38.130.27.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '38.130.27.194', 'tags': [], 'project_id': '343f0bd4e2364089b310a72a335fe947'}}
2025-08-08 05:38:57,386 - INFO - Created VN ctest-vn-32907138
2025-08-08 05:38:57,443 - DEBUG - VN ctest-vn-32907138 UUID is 0eb3ef8a-0a66-40a5-b87a-8cd703414790
2025-08-08 05:38:57,558 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-79903653:ctest-vn-00942390, 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-79903653:ctest-vn-32907138, 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-08-08 05:38:57,854 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0b329790-8124-4f9e-af7e-4223bda3d7b3', 'name': 'ctest-vn-00942390', 'tenant_id': '343f0bd4e2364089b310a72a335fe947', 'project_id': '343f0bd4e2364089b310a72a335fe947', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['76f6ea9b-88be-4657-bbd5-3c85bd0d4310'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-79903653', 'ctest-vn-00942390'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-79903653', 'ctest-policy-allow-all-11904242']], 'subnet_ipam': [{'subnet_cidr': '47.201.7.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-08 05:38:58,083 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0eb3ef8a-0a66-40a5-b87a-8cd703414790', 'name': 'ctest-vn-32907138', 'tenant_id': '343f0bd4e2364089b310a72a335fe947', 'project_id': '343f0bd4e2364089b310a72a335fe947', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e48cb6e8-bd65-47ef-a898-96ef6fd617a1'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-79903653', 'ctest-vn-32907138'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-79903653', 'ctest-policy-allow-all-11904242']], 'subnet_ipam': [{'subnet_cidr': '38.130.27.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-08 05:38:58,231 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-08-08 05:38:58,536 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-08-08 05:38:58,566 - DEBUG - Requesting: http://10.0.0.38:8082/domain/446b4517-882b-4532-866c-0f4d705e0ff3
2025-08-08 05:38:58,580 - DEBUG - Requesting: http://10.0.0.38:8082/project/343f0bd4-e236-4089-b310-a72a335fe947
2025-08-08 05:38:58,664 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/0b329790-8124-4f9e-af7e-4223bda3d7b3
2025-08-08 05:38:58,677 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/0b329790-8124-4f9e-af7e-4223bda3d7b3
2025-08-08 05:38:58,688 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/28d3760d-1fc5-4698-a06f-a4d56550fb16
2025-08-08 05:38:58,697 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/28d3760d-1fc5-4698-a06f-a4d56550fb16
2025-08-08 05:38:58,706 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/983d7ef3-597b-4b4a-b1dc-b6f65a46aa99
2025-08-08 05:38:58,714 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-08 05:38:58,714 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/0b329790-8124-4f9e-af7e-4223bda3d7b3
2025-08-08 05:38:58,724 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/28d3760d-1fc5-4698-a06f-a4d56550fb16
2025-08-08 05:38:58,739 - INFO - Verified VN network id 11 for VN 0b329790-8124-4f9e-af7e-4223bda3d7b3
2025-08-08 05:38:58,739 - INFO - Verifications in API Server for VN ctest-vn-00942390 passed
2025-08-08 05:38:58,739 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/0b329790-8124-4f9e-af7e-4223bda3d7b3
2025-08-08 05:38:58,749 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/28d3760d-1fc5-4698-a06f-a4d56550fb16
2025-08-08 05:38:58,761 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/28d3760d-1fc5-4698-a06f-a4d56550fb16
2025-08-08 05:38:58,769 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/983d7ef3-597b-4b4a-b1dc-b6f65a46aa99
2025-08-08 05:38:58,783 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-79903653:ctest-vn-00942390', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-79903653', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '806873930150465438', 'uuid-lslong': '12645617524975851443'}, 'enable': 'true', 'created': '2025-08-08T05:38:56', 'last-modified': '2025-08-08T05:38:57', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.950302'}
2025-08-08 05:38:58,790 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-08 05:38:58,790 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-00942390 passed
2025-08-08 05:38:58,791 - DEBUG - ====Verifying policy data for ctest-vn-00942390 in API_Server ======
2025-08-08 05:38:58,791 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-08-08 05:38:58,798 - DEBUG - Requesting: http://10.0.0.38:8082/domain/446b4517-882b-4532-866c-0f4d705e0ff3
2025-08-08 05:38:58,810 - DEBUG - Requesting: http://10.0.0.38:8082/project/343f0bd4-e236-4089-b310-a72a335fe947
2025-08-08 05:38:58,885 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/0b329790-8124-4f9e-af7e-4223bda3d7b3
2025-08-08 05:38:58,896 - DEBUG - ==>Verifying data for policy with id: f655f7e4-d06f-4a91-a7bb-548264ab5f15, fqn: ['default-domain', 'ctest-TestBasicPolicy-79903653', 'ctest-policy-allow-all-11904242']
2025-08-08 05:38:58,896 - INFO - VN ctest-vn-00942390 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-08 05:38:58,896 - DEBUG - Verifying the vn in opserver
2025-08-08 05:38:58,896 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-79903653:ctest-vn-00942390 virtual network link through opserver 10.0.0.38
2025-08-08 05:38:58,897 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-08-08 05:38:59,189 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-08-08 05:38:59,245 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-79903653:ctest-vn-00942390', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-79903653:ctest-vn-00942390?flat'}
2025-08-08 05:38:59,246 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-79903653:ctest-vn-00942390 is found in opserver
2025-08-08 05:38:59,256 - DEBUG - Do not have enough data to verify VN in agent
2025-08-08 05:38:59,261 - DEBUG - VRF ids for VN ctest-vn-00942390: {}
2025-08-08 05:38:59,261 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-08-08 05:38:59,267 - DEBUG - Requesting: http://10.0.0.38:8082/domain/446b4517-882b-4532-866c-0f4d705e0ff3
2025-08-08 05:38:59,279 - DEBUG - Requesting: http://10.0.0.38:8082/project/343f0bd4-e236-4089-b310-a72a335fe947
2025-08-08 05:38:59,351 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/0eb3ef8a-0a66-40a5-b87a-8cd703414790
2025-08-08 05:38:59,364 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/0eb3ef8a-0a66-40a5-b87a-8cd703414790
2025-08-08 05:38:59,374 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/6851188b-7db5-45f2-854d-c8c7a7a50de4
2025-08-08 05:38:59,383 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/6851188b-7db5-45f2-854d-c8c7a7a50de4
2025-08-08 05:38:59,390 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/3c8603aa-cba0-418e-ae49-b47e688342d7
2025-08-08 05:38:59,397 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-08 05:38:59,397 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/0eb3ef8a-0a66-40a5-b87a-8cd703414790
2025-08-08 05:38:59,406 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/6851188b-7db5-45f2-854d-c8c7a7a50de4
2025-08-08 05:38:59,425 - INFO - Verified VN network id 12 for VN 0eb3ef8a-0a66-40a5-b87a-8cd703414790
2025-08-08 05:38:59,425 - INFO - Verifications in API Server for VN ctest-vn-32907138 passed
2025-08-08 05:38:59,425 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/0eb3ef8a-0a66-40a5-b87a-8cd703414790
2025-08-08 05:38:59,436 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/6851188b-7db5-45f2-854d-c8c7a7a50de4
2025-08-08 05:38:59,443 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/6851188b-7db5-45f2-854d-c8c7a7a50de4
2025-08-08 05:38:59,451 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/3c8603aa-cba0-418e-ae49-b47e688342d7
2025-08-08 05:38:59,464 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-79903653:ctest-vn-32907138', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-79903653', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1059453713521197221', 'uuid-lslong': '13293092105237907344'}, 'enable': 'true', 'created': '2025-08-08T05:38:57', 'last-modified': '2025-08-08T05:38:58', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.398922'}
2025-08-08 05:38:59,471 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-08 05:38:59,471 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-32907138 passed
2025-08-08 05:38:59,471 - DEBUG - ====Verifying policy data for ctest-vn-32907138 in API_Server ======
2025-08-08 05:38:59,471 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-08-08 05:38:59,478 - DEBUG - Requesting: http://10.0.0.38:8082/domain/446b4517-882b-4532-866c-0f4d705e0ff3
2025-08-08 05:38:59,491 - DEBUG - Requesting: http://10.0.0.38:8082/project/343f0bd4-e236-4089-b310-a72a335fe947
2025-08-08 05:38:59,564 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/0eb3ef8a-0a66-40a5-b87a-8cd703414790
2025-08-08 05:38:59,574 - DEBUG - ==>Verifying data for policy with id: f655f7e4-d06f-4a91-a7bb-548264ab5f15, fqn: ['default-domain', 'ctest-TestBasicPolicy-79903653', 'ctest-policy-allow-all-11904242']
2025-08-08 05:38:59,575 - INFO - VN ctest-vn-32907138 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-08 05:38:59,575 - DEBUG - Verifying the vn in opserver
2025-08-08 05:38:59,575 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-79903653:ctest-vn-32907138 virtual network link through opserver 10.0.0.38
2025-08-08 05:38:59,575 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-08-08 05:38:59,586 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-79903653:ctest-vn-32907138', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-79903653:ctest-vn-32907138?flat'}
2025-08-08 05:38:59,586 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-79903653:ctest-vn-32907138 is found in opserver
2025-08-08 05:38:59,597 - DEBUG - Do not have enough data to verify VN in agent
2025-08-08 05:38:59,602 - DEBUG - VRF ids for VN ctest-vn-32907138: {}
2025-08-08 05:38:59,665 - DEBUG - Services list from nova: [