2025-02-17 02:26:54,449 - INFO - Domain Default found not creating
2025-02-17 02:26:54,617 - INFO - Project ctest-TestBasicPolicy-35577457 not found, creating it
2025-02-17 02:26:55,101 - INFO - Created Project:ctest-TestBasicPolicy-35577457, ID : ec3a4ab9-f912-4b6d-905f-60acb71cdd16
2025-02-17 02:26:56,723 - INFO - ================================================================================
2025-02-17 02:26:56,723 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-02-17 02:26:56,723 - 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-02-17 02:26:56,977 - DEBUG - Nothing to compare xmpp stats {'10.0.0.36': {'10.20.0.25': '0'}} with
2025-02-17 02:26:56,977 - INFO - Initial checks done. Running the testcase now
2025-02-17 02:26:56,977 - INFO -
2025-02-17 02:26:57,598 - DEBUG - Response for create_network : {'network': {'id': '862f8e7a-cddd-4400-81d7-86d37f75ff3d', 'name': 'ctest-vn-63739299', 'tenant_id': 'ec3a4ab9f9124b6d905f60acb71cdd16', 'project_id': 'ec3a4ab9f9124b6d905f60acb71cdd16', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-35577457', 'ctest-vn-63739299'], 'port_security_enabled': True, 'description': ''}}
2025-02-17 02:26:57,793 - DEBUG - Response for create_subnet : {'subnet': {'id': '80361b5f-da9f-47a1-b14d-ae3bed8758f3', 'name': '', 'tenant_id': 'ec3a4ab9f9124b6d905f60acb71cdd16', 'network_id': '862f8e7a-cddd-4400-81d7-86d37f75ff3d', 'ip_version': 4, 'cidr': '57.122.188.192/26', 'allocation_pools': [{'start': '57.122.188.194', 'end': '57.122.188.254'}], 'gateway_ip': '57.122.188.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '57.122.188.194', 'tags': [], 'project_id': 'ec3a4ab9f9124b6d905f60acb71cdd16'}}
2025-02-17 02:26:57,813 - INFO - Created VN ctest-vn-63739299
2025-02-17 02:26:57,870 - DEBUG - VN ctest-vn-63739299 UUID is 862f8e7a-cddd-4400-81d7-86d37f75ff3d
2025-02-17 02:26:58,189 - DEBUG - Response for create_network : {'network': {'id': '44ece93b-a2d7-4fdb-b39e-9af02ee018b4', 'name': 'ctest-vn-01210873', 'tenant_id': 'ec3a4ab9f9124b6d905f60acb71cdd16', 'project_id': 'ec3a4ab9f9124b6d905f60acb71cdd16', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-35577457', 'ctest-vn-01210873'], 'port_security_enabled': True, 'description': ''}}
2025-02-17 02:26:58,423 - DEBUG - Response for create_subnet : {'subnet': {'id': 'cb5e7140-581d-4962-94df-a2ddbd47fcb5', 'name': '', 'tenant_id': 'ec3a4ab9f9124b6d905f60acb71cdd16', 'network_id': '44ece93b-a2d7-4fdb-b39e-9af02ee018b4', 'ip_version': 4, 'cidr': '14.112.15.64/26', 'allocation_pools': [{'start': '14.112.15.66', 'end': '14.112.15.126'}], 'gateway_ip': '14.112.15.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '14.112.15.66', 'tags': [], 'project_id': 'ec3a4ab9f9124b6d905f60acb71cdd16'}}
2025-02-17 02:26:58,446 - INFO - Created VN ctest-vn-01210873
2025-02-17 02:26:58,502 - DEBUG - VN ctest-vn-01210873 UUID is 44ece93b-a2d7-4fdb-b39e-9af02ee018b4
2025-02-17 02:26:58,632 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-35577457:ctest-vn-63739299, 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-35577457:ctest-vn-01210873, 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-02-17 02:26:58,979 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '862f8e7a-cddd-4400-81d7-86d37f75ff3d', 'name': 'ctest-vn-63739299', 'tenant_id': 'ec3a4ab9f9124b6d905f60acb71cdd16', 'project_id': 'ec3a4ab9f9124b6d905f60acb71cdd16', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['80361b5f-da9f-47a1-b14d-ae3bed8758f3'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-35577457', 'ctest-vn-63739299'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-35577457', 'ctest-policy-allow-all-26672794']], 'subnet_ipam': [{'subnet_cidr': '57.122.188.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-02-17 02:26:59,242 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '44ece93b-a2d7-4fdb-b39e-9af02ee018b4', 'name': 'ctest-vn-01210873', 'tenant_id': 'ec3a4ab9f9124b6d905f60acb71cdd16', 'project_id': 'ec3a4ab9f9124b6d905f60acb71cdd16', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['cb5e7140-581d-4962-94df-a2ddbd47fcb5'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-35577457', 'ctest-vn-01210873'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-35577457', 'ctest-policy-allow-all-26672794']], 'subnet_ipam': [{'subnet_cidr': '14.112.15.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-02-17 02:26:59,394 - DEBUG - Requesting: http://10.0.0.36:8082/domains
2025-02-17 02:26:59,740 - DEBUG - Requesting: http://10.0.0.36:8082/domains
2025-02-17 02:26:59,775 - DEBUG - Requesting: http://10.0.0.36:8082/domain/ea0569c6-a0d5-4f8b-aac7-fa73387a24ba
2025-02-17 02:26:59,792 - DEBUG - Requesting: http://10.0.0.36:8082/project/ec3a4ab9-f912-4b6d-905f-60acb71cdd16
2025-02-17 02:26:59,875 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/862f8e7a-cddd-4400-81d7-86d37f75ff3d
2025-02-17 02:26:59,891 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/862f8e7a-cddd-4400-81d7-86d37f75ff3d
2025-02-17 02:26:59,904 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/4bc4e32e-480e-4d85-943d-e9d1ce0d6857
2025-02-17 02:26:59,914 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/4bc4e32e-480e-4d85-943d-e9d1ce0d6857
2025-02-17 02:26:59,923 - DEBUG - Requesting: http://10.0.0.36:8082/route-target/e971f3a8-33e3-4043-ae0d-f0d50bde020f
2025-02-17 02:26:59,931 - DEBUG - Route Targets: ['target:64512:8000004']
2025-02-17 02:26:59,931 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/862f8e7a-cddd-4400-81d7-86d37f75ff3d
2025-02-17 02:26:59,943 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/4bc4e32e-480e-4d85-943d-e9d1ce0d6857
2025-02-17 02:26:59,963 - INFO - Verified VN network id 8 for VN 862f8e7a-cddd-4400-81d7-86d37f75ff3d
2025-02-17 02:26:59,964 - INFO - Verifications in API Server for VN ctest-vn-63739299 passed
2025-02-17 02:26:59,964 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/862f8e7a-cddd-4400-81d7-86d37f75ff3d
2025-02-17 02:26:59,976 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/4bc4e32e-480e-4d85-943d-e9d1ce0d6857
2025-02-17 02:26:59,984 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/4bc4e32e-480e-4d85-943d-e9d1ce0d6857
2025-02-17 02:26:59,993 - DEBUG - Requesting: http://10.0.0.36:8082/route-target/e971f3a8-33e3-4043-ae0d-f0d50bde020f
2025-02-17 02:27:00,009 - DEBUG - Control-node 10.0.0.36 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-35577457:ctest-vn-63739299', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-35577457', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9669103583078728704', 'uuid-lslong': '9356094993820155709'}, 'enable': 'true', 'created': '2025-02-17T02:26:57', 'last-modified': '2025-02-17T02:26:58', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.067221'}
2025-02-17 02:27:00,018 - DEBUG - Route Targets: ['target:64512:8000004']
2025-02-17 02:27:00,018 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-63739299 passed
2025-02-17 02:27:00,018 - DEBUG - ====Verifying policy data for ctest-vn-63739299 in API_Server ======
2025-02-17 02:27:00,018 - DEBUG - Requesting: http://10.0.0.36:8082/domains
2025-02-17 02:27:00,025 - DEBUG - Requesting: http://10.0.0.36:8082/domain/ea0569c6-a0d5-4f8b-aac7-fa73387a24ba
2025-02-17 02:27:00,039 - DEBUG - Requesting: http://10.0.0.36:8082/project/ec3a4ab9-f912-4b6d-905f-60acb71cdd16
2025-02-17 02:27:00,126 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/862f8e7a-cddd-4400-81d7-86d37f75ff3d
2025-02-17 02:27:00,143 - DEBUG - ==>Verifying data for policy with id: d4fff833-7296-42ed-abe0-e71ca849454b, fqn: ['default-domain', 'ctest-TestBasicPolicy-35577457', 'ctest-policy-allow-all-26672794']
2025-02-17 02:27:00,143 - INFO - VN ctest-vn-63739299 Policy verification: verify_vn_policy_in_api_server, status: True
2025-02-17 02:27:00,143 - DEBUG - Verifying the vn in opserver
2025-02-17 02:27:00,143 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-35577457:ctest-vn-63739299 virtual network link through opserver 10.0.0.36
2025-02-17 02:27:00,144 - DEBUG - Requesting: http://10.0.0.36:8081/analytics/uves/virtual-networks
2025-02-17 02:27:00,480 - DEBUG - Requesting: http://10.0.0.36:8081/analytics/uves/virtual-networks
2025-02-17 02:27:00,557 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-35577457:ctest-vn-63739299', 'href': 'http://10.0.0.36:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-35577457:ctest-vn-63739299?flat'}
2025-02-17 02:27:00,557 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-35577457:ctest-vn-63739299 is found in opserver
2025-02-17 02:27:00,574 - DEBUG - Do not have enough data to verify VN in agent
2025-02-17 02:27:00,582 - DEBUG - VRF ids for VN ctest-vn-63739299: {}
2025-02-17 02:27:00,582 - DEBUG - Requesting: http://10.0.0.36:8082/domains
2025-02-17 02:27:00,589 - DEBUG - Requesting: http://10.0.0.36:8082/domain/ea0569c6-a0d5-4f8b-aac7-fa73387a24ba
2025-02-17 02:27:00,607 - DEBUG - Requesting: http://10.0.0.36:8082/project/ec3a4ab9-f912-4b6d-905f-60acb71cdd16
2025-02-17 02:27:00,690 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/44ece93b-a2d7-4fdb-b39e-9af02ee018b4
2025-02-17 02:27:00,707 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/44ece93b-a2d7-4fdb-b39e-9af02ee018b4
2025-02-17 02:27:00,723 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/d8571e60-d313-48fe-b5f2-ead5fffb5c17
2025-02-17 02:27:00,734 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/d8571e60-d313-48fe-b5f2-ead5fffb5c17
2025-02-17 02:27:00,746 - DEBUG - Requesting: http://10.0.0.36:8082/route-target/f4663bf3-e48d-4036-9391-04a1ab942016
2025-02-17 02:27:00,758 - DEBUG - Route Targets: ['target:64512:8000005']
2025-02-17 02:27:00,758 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/44ece93b-a2d7-4fdb-b39e-9af02ee018b4
2025-02-17 02:27:00,773 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/d8571e60-d313-48fe-b5f2-ead5fffb5c17
2025-02-17 02:27:00,796 - INFO - Verified VN network id 9 for VN 44ece93b-a2d7-4fdb-b39e-9af02ee018b4
2025-02-17 02:27:00,797 - INFO - Verifications in API Server for VN ctest-vn-01210873 passed
2025-02-17 02:27:00,797 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/44ece93b-a2d7-4fdb-b39e-9af02ee018b4
2025-02-17 02:27:00,813 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/d8571e60-d313-48fe-b5f2-ead5fffb5c17
2025-02-17 02:27:00,823 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/d8571e60-d313-48fe-b5f2-ead5fffb5c17
2025-02-17 02:27:00,832 - DEBUG - Requesting: http://10.0.0.36:8082/route-target/f4663bf3-e48d-4036-9391-04a1ab942016
2025-02-17 02:27:00,849 - DEBUG - Control-node 10.0.0.36 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-35577457:ctest-vn-01210873', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-35577457', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4966600931427176411', 'uuid-lslong': '12942952735478651060'}, 'enable': 'true', 'created': '2025-02-17T02:26:58', 'last-modified': '2025-02-17T02:26:59', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.626761'}
2025-02-17 02:27:00,858 - DEBUG - Route Targets: ['target:64512:8000005']
2025-02-17 02:27:00,858 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-01210873 passed
2025-02-17 02:27:00,858 - DEBUG - ====Verifying policy data for ctest-vn-01210873 in API_Server ======
2025-02-17 02:27:00,858 - DEBUG - Requesting: http://10.0.0.36:8082/domains
2025-02-17 02:27:00,866 - DEBUG - Requesting: http://10.0.0.36:8082/domain/ea0569c6-a0d5-4f8b-aac7-fa73387a24ba
2025-02-17 02:27:00,881 - DEBUG - Requesting: http://10.0.0.36:8082/project/ec3a4ab9-f912-4b6d-905f-60acb71cdd16
2025-02-17 02:27:00,969 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/44ece93b-a2d7-4fdb-b39e-9af02ee018b4
2025-02-17 02:27:00,984 - DEBUG - ==>Verifying data for policy with id: d4fff833-7296-42ed-abe0-e71ca849454b, fqn: ['default-domain', 'ctest-TestBasicPolicy-35577457', 'ctest-policy-allow-all-26672794']
2025-02-17 02:27:00,984 - INFO - VN ctest-vn-01210873 Policy verification: verify_vn_policy_in_api_server, status: True
2025-02-17 02:27:00,984 - DEBUG - Verifying the vn in opserver
2025-02-17 02:27:00,984 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-35577457:ctest-vn-01210873 virtual network link through opserver 10.0.0.36
2025-02-17 02:27:00,984 - DEBUG - Requesting: http://10.0.0.36:8081/analytics/uves/virtual-networks
2025-02-17 02:27:00,997 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-35577457:ctest-vn-01210873', 'href': 'http://10.0.0.36:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-35577457:ctest-vn-01210873?flat'}
2025-02-17 02:27:00,998 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-35577457:ctest-vn-01210873 is found in opserver
2025-02-17 02:27:01,014 - DEBUG - Do not have enough data to verify VN in agent
2025-02-17 02:27:01,022 - DEBUG - VRF ids for VN ctest-vn-01210873: {}
2025-02-17 02:27:01,096 - DEBUG - Services list from nova: [