2024-10-18 22:14:22,379 - INFO - Domain Default found not creating
2024-10-18 22:14:22,590 - INFO - Project ctest-TestBasicPolicy-14881610 not found, creating it
2024-10-18 22:14:23,113 - INFO - Created Project:ctest-TestBasicPolicy-14881610, ID : 05514028-d5df-4e74-8ada-51a72be65226
2024-10-18 22:14:24,854 - INFO - ================================================================================
2024-10-18 22:14:24,854 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-10-18 22:14:24,854 - 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
2024-10-18 22:14:25,118 - DEBUG - Nothing to compare xmpp stats {'10.0.0.44': {'10.20.0.6': '0'}} with
2024-10-18 22:14:25,118 - INFO - Initial checks done. Running the testcase now
2024-10-18 22:14:25,118 - INFO -
2024-10-18 22:14:25,768 - DEBUG - Response for create_network : {'network': {'id': 'ec4f7135-7f88-4b50-82bb-549a061e0a2f', 'name': 'ctest-vn-02562612', 'tenant_id': '05514028d5df4e748ada51a72be65226', 'project_id': '05514028d5df4e748ada51a72be65226', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-14881610', 'ctest-vn-02562612'], 'port_security_enabled': True, 'description': ''}}
2024-10-18 22:14:25,971 - DEBUG - Response for create_subnet : {'subnet': {'id': '1ae7ac23-2358-45d7-9351-5e6edc5e616e', 'name': '', 'tenant_id': '05514028d5df4e748ada51a72be65226', 'network_id': 'ec4f7135-7f88-4b50-82bb-549a061e0a2f', 'ip_version': 4, 'cidr': '102.241.135.64/26', 'allocation_pools': [{'start': '102.241.135.66', 'end': '102.241.135.126'}], 'gateway_ip': '102.241.135.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '102.241.135.66', 'tags': [], 'project_id': '05514028d5df4e748ada51a72be65226'}}
2024-10-18 22:14:25,994 - INFO - Created VN ctest-vn-02562612
2024-10-18 22:14:26,055 - DEBUG - VN ctest-vn-02562612 UUID is ec4f7135-7f88-4b50-82bb-549a061e0a2f
2024-10-18 22:14:26,440 - DEBUG - Response for create_network : {'network': {'id': '5be498ac-9de1-40ab-8c2d-64ebc70826ad', 'name': 'ctest-vn-37488782', 'tenant_id': '05514028d5df4e748ada51a72be65226', 'project_id': '05514028d5df4e748ada51a72be65226', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-14881610', 'ctest-vn-37488782'], 'port_security_enabled': True, 'description': ''}}
2024-10-18 22:14:26,688 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f738b557-b71f-49ad-a7c1-481f12ac33ee', 'name': '', 'tenant_id': '05514028d5df4e748ada51a72be65226', 'network_id': '5be498ac-9de1-40ab-8c2d-64ebc70826ad', 'ip_version': 4, 'cidr': '117.156.200.192/26', 'allocation_pools': [{'start': '117.156.200.194', 'end': '117.156.200.254'}], 'gateway_ip': '117.156.200.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '117.156.200.194', 'tags': [], 'project_id': '05514028d5df4e748ada51a72be65226'}}
2024-10-18 22:14:26,711 - INFO - Created VN ctest-vn-37488782
2024-10-18 22:14:26,770 - DEBUG - VN ctest-vn-37488782 UUID is 5be498ac-9de1-40ab-8c2d-64ebc70826ad
2024-10-18 22:14:26,908 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-14881610:ctest-vn-02562612, 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-14881610:ctest-vn-37488782, 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]
2024-10-18 22:14:27,301 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ec4f7135-7f88-4b50-82bb-549a061e0a2f', 'name': 'ctest-vn-02562612', 'tenant_id': '05514028d5df4e748ada51a72be65226', 'project_id': '05514028d5df4e748ada51a72be65226', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1ae7ac23-2358-45d7-9351-5e6edc5e616e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-14881610', 'ctest-vn-02562612'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-14881610', 'ctest-policy-allow-all-40723762']], 'subnet_ipam': [{'subnet_cidr': '102.241.135.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-10-18 22:14:27,595 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5be498ac-9de1-40ab-8c2d-64ebc70826ad', 'name': 'ctest-vn-37488782', 'tenant_id': '05514028d5df4e748ada51a72be65226', 'project_id': '05514028d5df4e748ada51a72be65226', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f738b557-b71f-49ad-a7c1-481f12ac33ee'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-14881610', 'ctest-vn-37488782'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-14881610', 'ctest-policy-allow-all-40723762']], 'subnet_ipam': [{'subnet_cidr': '117.156.200.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-10-18 22:14:27,730 - DEBUG - Requesting: http://10.0.0.44:8082/domains
2024-10-18 22:14:28,040 - DEBUG - Requesting: http://10.0.0.44:8082/domains
2024-10-18 22:14:28,079 - DEBUG - Requesting: http://10.0.0.44:8082/domain/f273aad4-7119-4a9a-9d26-55c97af5048b
2024-10-18 22:14:28,097 - DEBUG - Requesting: http://10.0.0.44:8082/project/05514028-d5df-4e74-8ada-51a72be65226
2024-10-18 22:14:28,183 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/ec4f7135-7f88-4b50-82bb-549a061e0a2f
2024-10-18 22:14:28,201 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/ec4f7135-7f88-4b50-82bb-549a061e0a2f
2024-10-18 22:14:28,217 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/de186b9e-3043-4f8d-80bf-dc2af6083753
2024-10-18 22:14:28,230 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/de186b9e-3043-4f8d-80bf-dc2af6083753
2024-10-18 22:14:28,241 - DEBUG - Requesting: http://10.0.0.44:8082/route-target/7e4d5b50-2dfd-446d-a609-e7134d3bb56c
2024-10-18 22:14:28,251 - DEBUG - Route Targets: ['target:64512:8000005']
2024-10-18 22:14:28,251 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/ec4f7135-7f88-4b50-82bb-549a061e0a2f
2024-10-18 22:14:28,268 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/de186b9e-3043-4f8d-80bf-dc2af6083753
2024-10-18 22:14:28,293 - INFO - Verified VN network id 9 for VN ec4f7135-7f88-4b50-82bb-549a061e0a2f
2024-10-18 22:14:28,293 - INFO - Verifications in API Server for VN ctest-vn-02562612 passed
2024-10-18 22:14:28,293 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/ec4f7135-7f88-4b50-82bb-549a061e0a2f
2024-10-18 22:14:28,312 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/de186b9e-3043-4f8d-80bf-dc2af6083753
2024-10-18 22:14:28,324 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/de186b9e-3043-4f8d-80bf-dc2af6083753
2024-10-18 22:14:28,343 - DEBUG - Requesting: http://10.0.0.44:8082/route-target/7e4d5b50-2dfd-446d-a609-e7134d3bb56c
2024-10-18 22:14:28,361 - DEBUG - Control-node 10.0.0.44 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-14881610:ctest-vn-02562612', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-14881610', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17027953190697978704', 'uuid-lslong': '9420216066079853103'}, 'enable': 'true', 'created': '2024-10-18T22:14:25', 'last-modified': '2024-10-18T22:14:27', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.104107'}
2024-10-18 22:14:28,371 - DEBUG - Route Targets: ['target:64512:8000005']
2024-10-18 22:14:28,371 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-02562612 passed
2024-10-18 22:14:28,371 - DEBUG - ====Verifying policy data for ctest-vn-02562612 in API_Server ======
2024-10-18 22:14:28,371 - DEBUG - Requesting: http://10.0.0.44:8082/domains
2024-10-18 22:14:28,379 - DEBUG - Requesting: http://10.0.0.44:8082/domain/f273aad4-7119-4a9a-9d26-55c97af5048b
2024-10-18 22:14:28,396 - DEBUG - Requesting: http://10.0.0.44:8082/project/05514028-d5df-4e74-8ada-51a72be65226
2024-10-18 22:14:28,492 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/ec4f7135-7f88-4b50-82bb-549a061e0a2f
2024-10-18 22:14:28,519 - DEBUG - ==>Verifying data for policy with id: 8c537d21-d4e3-4aaa-a445-c51e4d85e0e9, fqn: ['default-domain', 'ctest-TestBasicPolicy-14881610', 'ctest-policy-allow-all-40723762']
2024-10-18 22:14:28,519 - INFO - VN ctest-vn-02562612 Policy verification: verify_vn_policy_in_api_server, status: True
2024-10-18 22:14:28,519 - DEBUG - Verifying the vn in opserver
2024-10-18 22:14:28,519 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-14881610:ctest-vn-02562612 virtual network link through opserver 10.0.0.44
2024-10-18 22:14:28,519 - DEBUG - Requesting: http://10.0.0.44:8081/analytics/uves/virtual-networks
2024-10-18 22:14:28,823 - DEBUG - Requesting: http://10.0.0.44:8081/analytics/uves/virtual-networks
2024-10-18 22:14:28,909 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-14881610:ctest-vn-02562612', 'href': 'http://10.0.0.44:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-14881610:ctest-vn-02562612?flat'}
2024-10-18 22:14:28,909 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-14881610:ctest-vn-02562612 is found in opserver
2024-10-18 22:14:28,921 - DEBUG - Do not have enough data to verify VN in agent
2024-10-18 22:14:28,930 - DEBUG - VRF ids for VN ctest-vn-02562612: {}
2024-10-18 22:14:28,930 - DEBUG - Requesting: http://10.0.0.44:8082/domains
2024-10-18 22:14:28,939 - DEBUG - Requesting: http://10.0.0.44:8082/domain/f273aad4-7119-4a9a-9d26-55c97af5048b
2024-10-18 22:14:28,957 - DEBUG - Requesting: http://10.0.0.44:8082/project/05514028-d5df-4e74-8ada-51a72be65226
2024-10-18 22:14:29,067 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/5be498ac-9de1-40ab-8c2d-64ebc70826ad
2024-10-18 22:14:29,085 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/5be498ac-9de1-40ab-8c2d-64ebc70826ad
2024-10-18 22:14:29,106 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/768fef4a-f072-40bc-9d06-825644b0ed18
2024-10-18 22:14:29,117 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/768fef4a-f072-40bc-9d06-825644b0ed18
2024-10-18 22:14:29,127 - DEBUG - Requesting: http://10.0.0.44:8082/route-target/588652f7-e8a8-44ab-b2df-64f57b0a6742
2024-10-18 22:14:29,139 - DEBUG - Route Targets: ['target:64512:8000006']
2024-10-18 22:14:29,139 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/5be498ac-9de1-40ab-8c2d-64ebc70826ad
2024-10-18 22:14:29,158 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/768fef4a-f072-40bc-9d06-825644b0ed18
2024-10-18 22:14:29,184 - INFO - Verified VN network id 10 for VN 5be498ac-9de1-40ab-8c2d-64ebc70826ad
2024-10-18 22:14:29,184 - INFO - Verifications in API Server for VN ctest-vn-37488782 passed
2024-10-18 22:14:29,185 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/5be498ac-9de1-40ab-8c2d-64ebc70826ad
2024-10-18 22:14:29,203 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/768fef4a-f072-40bc-9d06-825644b0ed18
2024-10-18 22:14:29,216 - DEBUG - Requesting: http://10.0.0.44:8082/routing-instance/768fef4a-f072-40bc-9d06-825644b0ed18
2024-10-18 22:14:29,227 - DEBUG - Requesting: http://10.0.0.44:8082/route-target/588652f7-e8a8-44ab-b2df-64f57b0a6742
2024-10-18 22:14:29,245 - DEBUG - Control-node 10.0.0.44 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-14881610:ctest-vn-37488782', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-14881610', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6621585219292053675', 'uuid-lslong': '10100840503081182893'}, 'enable': 'true', 'created': '2024-10-18T22:14:26', 'last-modified': '2024-10-18T22:14:27', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.673844'}
2024-10-18 22:14:29,253 - DEBUG - Route Targets: ['target:64512:8000006']
2024-10-18 22:14:29,253 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-37488782 passed
2024-10-18 22:14:29,253 - DEBUG - ====Verifying policy data for ctest-vn-37488782 in API_Server ======
2024-10-18 22:14:29,253 - DEBUG - Requesting: http://10.0.0.44:8082/domains
2024-10-18 22:14:29,261 - DEBUG - Requesting: http://10.0.0.44:8082/domain/f273aad4-7119-4a9a-9d26-55c97af5048b
2024-10-18 22:14:29,281 - DEBUG - Requesting: http://10.0.0.44:8082/project/05514028-d5df-4e74-8ada-51a72be65226
2024-10-18 22:14:29,367 - DEBUG - Requesting: http://10.0.0.44:8082/virtual-network/5be498ac-9de1-40ab-8c2d-64ebc70826ad
2024-10-18 22:14:29,385 - DEBUG - ==>Verifying data for policy with id: 8c537d21-d4e3-4aaa-a445-c51e4d85e0e9, fqn: ['default-domain', 'ctest-TestBasicPolicy-14881610', 'ctest-policy-allow-all-40723762']
2024-10-18 22:14:29,385 - INFO - VN ctest-vn-37488782 Policy verification: verify_vn_policy_in_api_server, status: True
2024-10-18 22:14:29,385 - DEBUG - Verifying the vn in opserver
2024-10-18 22:14:29,385 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-14881610:ctest-vn-37488782 virtual network link through opserver 10.0.0.44
2024-10-18 22:14:29,385 - DEBUG - Requesting: http://10.0.0.44:8081/analytics/uves/virtual-networks
2024-10-18 22:14:29,401 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-14881610:ctest-vn-37488782', 'href': 'http://10.0.0.44:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-14881610:ctest-vn-37488782?flat'}
2024-10-18 22:14:29,401 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-14881610:ctest-vn-37488782 is found in opserver
2024-10-18 22:14:29,414 - DEBUG - Do not have enough data to verify VN in agent
2024-10-18 22:14:29,420 - DEBUG - VRF ids for VN ctest-vn-37488782: {}
2024-10-18 22:14:29,507 - DEBUG - Services list from nova: [