2025-04-25 10:45:02,005 - INFO - Domain Default found not creating
2025-04-25 10:45:02,126 - INFO - Project ctest-TestBasicPolicy-95949408 not found, creating it
2025-04-25 10:45:02,624 - INFO - Created Project:ctest-TestBasicPolicy-95949408, ID : e9fd66f8-20bc-4184-be1d-f309eceb15ae
2025-04-25 10:45:03,981 - INFO - ================================================================================
2025-04-25 10:45:03,982 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-04-25 10:45:03,982 - 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-25 10:45:04,238 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0'}} with
2025-04-25 10:45:04,238 - INFO - Initial checks done. Running the testcase now
2025-04-25 10:45:04,238 - INFO -
2025-04-25 10:45:04,748 - DEBUG - Response for create_network : {'network': {'id': '0b6847a4-aa54-45aa-966b-04e5cb8422af', 'name': 'ctest-vn-52754779', 'tenant_id': 'e9fd66f820bc4184be1df309eceb15ae', 'project_id': 'e9fd66f820bc4184be1df309eceb15ae', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-95949408', 'ctest-vn-52754779'], 'port_security_enabled': True, 'description': ''}}
2025-04-25 10:45:04,954 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b5cf3eea-19cc-4151-96fd-6dd25dbecb99', 'name': '', 'tenant_id': 'e9fd66f820bc4184be1df309eceb15ae', 'network_id': '0b6847a4-aa54-45aa-966b-04e5cb8422af', 'ip_version': 4, 'cidr': '201.165.24.0/26', 'allocation_pools': [{'start': '201.165.24.2', 'end': '201.165.24.62'}], 'gateway_ip': '201.165.24.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '201.165.24.2', 'tags': [], 'project_id': 'e9fd66f820bc4184be1df309eceb15ae'}}
2025-04-25 10:45:04,970 - INFO - Created VN ctest-vn-52754779
2025-04-25 10:45:05,024 - DEBUG - VN ctest-vn-52754779 UUID is 0b6847a4-aa54-45aa-966b-04e5cb8422af
2025-04-25 10:45:05,322 - DEBUG - Response for create_network : {'network': {'id': '334a7fbf-8d29-4e40-a1bd-78dd8689a30b', 'name': 'ctest-vn-26637886', 'tenant_id': 'e9fd66f820bc4184be1df309eceb15ae', 'project_id': 'e9fd66f820bc4184be1df309eceb15ae', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-95949408', 'ctest-vn-26637886'], 'port_security_enabled': True, 'description': ''}}
2025-04-25 10:45:05,522 - DEBUG - Response for create_subnet : {'subnet': {'id': '909ea3ab-11aa-4b25-bf50-557a05cc3258', 'name': '', 'tenant_id': 'e9fd66f820bc4184be1df309eceb15ae', 'network_id': '334a7fbf-8d29-4e40-a1bd-78dd8689a30b', 'ip_version': 4, 'cidr': '129.198.170.128/26', 'allocation_pools': [{'start': '129.198.170.130', 'end': '129.198.170.190'}], 'gateway_ip': '129.198.170.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '129.198.170.130', 'tags': [], 'project_id': 'e9fd66f820bc4184be1df309eceb15ae'}}
2025-04-25 10:45:05,537 - INFO - Created VN ctest-vn-26637886
2025-04-25 10:45:05,592 - DEBUG - VN ctest-vn-26637886 UUID is 334a7fbf-8d29-4e40-a1bd-78dd8689a30b
2025-04-25 10:45:05,736 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-95949408:ctest-vn-52754779, 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-95949408:ctest-vn-26637886, 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-25 10:45:06,039 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0b6847a4-aa54-45aa-966b-04e5cb8422af', 'name': 'ctest-vn-52754779', 'tenant_id': 'e9fd66f820bc4184be1df309eceb15ae', 'project_id': 'e9fd66f820bc4184be1df309eceb15ae', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b5cf3eea-19cc-4151-96fd-6dd25dbecb99'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-95949408', 'ctest-vn-52754779'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-95949408', 'ctest-policy-allow-all-95209259']], 'subnet_ipam': [{'subnet_cidr': '201.165.24.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-25 10:45:06,302 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '334a7fbf-8d29-4e40-a1bd-78dd8689a30b', 'name': 'ctest-vn-26637886', 'tenant_id': 'e9fd66f820bc4184be1df309eceb15ae', 'project_id': 'e9fd66f820bc4184be1df309eceb15ae', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['909ea3ab-11aa-4b25-bf50-557a05cc3258'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-95949408', 'ctest-vn-26637886'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-95949408', 'ctest-policy-allow-all-95209259']], 'subnet_ipam': [{'subnet_cidr': '129.198.170.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-25 10:45:06,452 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-04-25 10:45:06,745 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-04-25 10:45:06,769 - DEBUG - Requesting: http://10.0.0.38:8082/domain/b786af23-0baa-4c54-b4e6-5a87065ca263
2025-04-25 10:45:06,781 - DEBUG - Requesting: http://10.0.0.38:8082/project/e9fd66f8-20bc-4184-be1d-f309eceb15ae
2025-04-25 10:45:06,850 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/0b6847a4-aa54-45aa-966b-04e5cb8422af
2025-04-25 10:45:06,860 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/0b6847a4-aa54-45aa-966b-04e5cb8422af
2025-04-25 10:45:06,869 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/526acd1d-d774-4f7c-a672-14d21bbefac8
2025-04-25 10:45:06,875 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/526acd1d-d774-4f7c-a672-14d21bbefac8
2025-04-25 10:45:06,880 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/e9507b86-e311-4576-926a-2d34e5f8ab62
2025-04-25 10:45:06,886 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-25 10:45:06,886 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/0b6847a4-aa54-45aa-966b-04e5cb8422af
2025-04-25 10:45:06,894 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/526acd1d-d774-4f7c-a672-14d21bbefac8
2025-04-25 10:45:06,906 - INFO - Verified VN network id 8 for VN 0b6847a4-aa54-45aa-966b-04e5cb8422af
2025-04-25 10:45:06,907 - INFO - Verifications in API Server for VN ctest-vn-52754779 passed
2025-04-25 10:45:06,907 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/0b6847a4-aa54-45aa-966b-04e5cb8422af
2025-04-25 10:45:06,916 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/526acd1d-d774-4f7c-a672-14d21bbefac8
2025-04-25 10:45:06,925 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/526acd1d-d774-4f7c-a672-14d21bbefac8
2025-04-25 10:45:06,932 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/e9507b86-e311-4576-926a-2d34e5f8ab62
2025-04-25 10:45:06,943 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-95949408:ctest-vn-52754779', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-95949408', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '821985704552973738', 'uuid-lslong': '10838762313205686959'}, 'enable': 'true', 'created': '2025-04-25T10:45:04', 'last-modified': '2025-04-25T10:45:06', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.932860'}
2025-04-25 10:45:06,950 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-25 10:45:06,950 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-52754779 passed
2025-04-25 10:45:06,950 - DEBUG - ====Verifying policy data for ctest-vn-52754779 in API_Server ======
2025-04-25 10:45:06,950 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-04-25 10:45:06,956 - DEBUG - Requesting: http://10.0.0.38:8082/domain/b786af23-0baa-4c54-b4e6-5a87065ca263
2025-04-25 10:45:06,966 - DEBUG - Requesting: http://10.0.0.38:8082/project/e9fd66f8-20bc-4184-be1d-f309eceb15ae
2025-04-25 10:45:07,038 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/0b6847a4-aa54-45aa-966b-04e5cb8422af
2025-04-25 10:45:07,047 - DEBUG - ==>Verifying data for policy with id: 2132065a-7474-4fc6-a773-67c70bd417df, fqn: ['default-domain', 'ctest-TestBasicPolicy-95949408', 'ctest-policy-allow-all-95209259']
2025-04-25 10:45:07,047 - INFO - VN ctest-vn-52754779 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-25 10:45:07,047 - DEBUG - Verifying the vn in opserver
2025-04-25 10:45:07,047 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-95949408:ctest-vn-52754779 virtual network link through opserver 10.0.0.38
2025-04-25 10:45:07,047 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-04-25 10:45:07,338 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-04-25 10:45:07,383 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-95949408:ctest-vn-52754779', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-95949408:ctest-vn-52754779?flat'}
2025-04-25 10:45:07,384 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-95949408:ctest-vn-52754779 is found in opserver
2025-04-25 10:45:07,393 - DEBUG - Do not have enough data to verify VN in agent
2025-04-25 10:45:07,398 - DEBUG - VRF ids for VN ctest-vn-52754779: {}
2025-04-25 10:45:07,398 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-04-25 10:45:07,403 - DEBUG - Requesting: http://10.0.0.38:8082/domain/b786af23-0baa-4c54-b4e6-5a87065ca263
2025-04-25 10:45:07,414 - DEBUG - Requesting: http://10.0.0.38:8082/project/e9fd66f8-20bc-4184-be1d-f309eceb15ae
2025-04-25 10:45:07,484 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/334a7fbf-8d29-4e40-a1bd-78dd8689a30b
2025-04-25 10:45:07,495 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/334a7fbf-8d29-4e40-a1bd-78dd8689a30b
2025-04-25 10:45:07,503 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/32d20773-8340-4e51-a88c-fbfaf5296250
2025-04-25 10:45:07,509 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/32d20773-8340-4e51-a88c-fbfaf5296250
2025-04-25 10:45:07,515 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/8451507e-d50a-41c2-be5a-800c75298f71
2025-04-25 10:45:07,521 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-25 10:45:07,521 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/334a7fbf-8d29-4e40-a1bd-78dd8689a30b
2025-04-25 10:45:07,529 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/32d20773-8340-4e51-a88c-fbfaf5296250
2025-04-25 10:45:07,541 - INFO - Verified VN network id 9 for VN 334a7fbf-8d29-4e40-a1bd-78dd8689a30b
2025-04-25 10:45:07,541 - INFO - Verifications in API Server for VN ctest-vn-26637886 passed
2025-04-25 10:45:07,542 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/334a7fbf-8d29-4e40-a1bd-78dd8689a30b
2025-04-25 10:45:07,549 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/32d20773-8340-4e51-a88c-fbfaf5296250
2025-04-25 10:45:07,555 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/32d20773-8340-4e51-a88c-fbfaf5296250
2025-04-25 10:45:07,561 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/8451507e-d50a-41c2-be5a-800c75298f71
2025-04-25 10:45:07,571 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-95949408:ctest-vn-26637886', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-95949408', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3695906904894688832', 'uuid-lslong': '11654604303544984331'}, 'enable': 'true', 'created': '2025-04-25T10:45:05', 'last-modified': '2025-04-25T10:45:06', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.331023'}
2025-04-25 10:45:07,576 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-25 10:45:07,577 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-26637886 passed
2025-04-25 10:45:07,577 - DEBUG - ====Verifying policy data for ctest-vn-26637886 in API_Server ======
2025-04-25 10:45:07,577 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-04-25 10:45:07,581 - DEBUG - Requesting: http://10.0.0.38:8082/domain/b786af23-0baa-4c54-b4e6-5a87065ca263
2025-04-25 10:45:07,591 - DEBUG - Requesting: http://10.0.0.38:8082/project/e9fd66f8-20bc-4184-be1d-f309eceb15ae
2025-04-25 10:45:07,665 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/334a7fbf-8d29-4e40-a1bd-78dd8689a30b
2025-04-25 10:45:07,674 - DEBUG - ==>Verifying data for policy with id: 2132065a-7474-4fc6-a773-67c70bd417df, fqn: ['default-domain', 'ctest-TestBasicPolicy-95949408', 'ctest-policy-allow-all-95209259']
2025-04-25 10:45:07,674 - INFO - VN ctest-vn-26637886 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-25 10:45:07,674 - DEBUG - Verifying the vn in opserver
2025-04-25 10:45:07,674 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-95949408:ctest-vn-26637886 virtual network link through opserver 10.0.0.38
2025-04-25 10:45:07,674 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-04-25 10:45:07,682 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-95949408:ctest-vn-26637886', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-95949408:ctest-vn-26637886?flat'}
2025-04-25 10:45:07,683 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-95949408:ctest-vn-26637886 is found in opserver
2025-04-25 10:45:07,692 - DEBUG - Do not have enough data to verify VN in agent
2025-04-25 10:45:07,697 - DEBUG - VRF ids for VN ctest-vn-26637886: {}
2025-04-25 10:45:07,746 - DEBUG - Services list from nova: [