2024-11-04 02:20:19,947 - INFO - Domain Default found not creating
2024-11-04 02:20:20,109 - INFO - Project ctest-TestBasicPolicy-10260042 not found, creating it
2024-11-04 02:20:20,597 - INFO - Created Project:ctest-TestBasicPolicy-10260042, ID : 9af78c88-b8bd-44f4-846c-bc5a06b39f0d
2024-11-04 02:20:22,172 - INFO - ================================================================================
2024-11-04 02:20:22,172 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-11-04 02:20:22,172 - 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-11-04 02:20:22,431 - DEBUG - Nothing to compare xmpp stats {'10.0.0.23': {'10.0.0.23': '0'}} with
2024-11-04 02:20:22,431 - INFO - Initial checks done. Running the testcase now
2024-11-04 02:20:22,431 - INFO -
2024-11-04 02:20:23,003 - DEBUG - Response for create_network : {'network': {'id': '9f23f002-1fca-4541-a7c6-664bc6db4e43', 'name': 'ctest-vn-60342105', 'tenant_id': '9af78c88b8bd44f4846cbc5a06b39f0d', 'project_id': '9af78c88b8bd44f4846cbc5a06b39f0d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-10260042', 'ctest-vn-60342105'], 'port_security_enabled': True, 'description': ''}}
2024-11-04 02:20:23,178 - DEBUG - Response for create_subnet : {'subnet': {'id': '14c5219b-941f-406f-8c19-ece9fe18703d', 'name': '', 'tenant_id': '9af78c88b8bd44f4846cbc5a06b39f0d', 'network_id': '9f23f002-1fca-4541-a7c6-664bc6db4e43', 'ip_version': 4, 'cidr': '193.90.210.192/26', 'allocation_pools': [{'start': '193.90.210.194', 'end': '193.90.210.254'}], 'gateway_ip': '193.90.210.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '193.90.210.194', 'tags': [], 'project_id': '9af78c88b8bd44f4846cbc5a06b39f0d'}}
2024-11-04 02:20:23,198 - INFO - Created VN ctest-vn-60342105
2024-11-04 02:20:23,254 - DEBUG - VN ctest-vn-60342105 UUID is 9f23f002-1fca-4541-a7c6-664bc6db4e43
2024-11-04 02:20:23,566 - DEBUG - Response for create_network : {'network': {'id': 'd35f5689-8822-4117-948a-e9928f3e7fd4', 'name': 'ctest-vn-71147455', 'tenant_id': '9af78c88b8bd44f4846cbc5a06b39f0d', 'project_id': '9af78c88b8bd44f4846cbc5a06b39f0d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-10260042', 'ctest-vn-71147455'], 'port_security_enabled': True, 'description': ''}}
2024-11-04 02:20:23,723 - DEBUG - Response for create_subnet : {'subnet': {'id': '37435a81-04a0-46bc-98f6-7dace9e0eda6', 'name': '', 'tenant_id': '9af78c88b8bd44f4846cbc5a06b39f0d', 'network_id': 'd35f5689-8822-4117-948a-e9928f3e7fd4', 'ip_version': 4, 'cidr': '168.82.28.128/26', 'allocation_pools': [{'start': '168.82.28.130', 'end': '168.82.28.190'}], 'gateway_ip': '168.82.28.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '168.82.28.130', 'tags': [], 'project_id': '9af78c88b8bd44f4846cbc5a06b39f0d'}}
2024-11-04 02:20:23,745 - INFO - Created VN ctest-vn-71147455
2024-11-04 02:20:23,801 - DEBUG - VN ctest-vn-71147455 UUID is d35f5689-8822-4117-948a-e9928f3e7fd4
2024-11-04 02:20:23,928 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-10260042:ctest-vn-60342105, 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-10260042:ctest-vn-71147455, 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-11-04 02:20:24,418 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9f23f002-1fca-4541-a7c6-664bc6db4e43', 'name': 'ctest-vn-60342105', 'tenant_id': '9af78c88b8bd44f4846cbc5a06b39f0d', 'project_id': '9af78c88b8bd44f4846cbc5a06b39f0d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['14c5219b-941f-406f-8c19-ece9fe18703d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-10260042', 'ctest-vn-60342105'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-10260042', 'ctest-policy-allow-all-04230370']], 'subnet_ipam': [{'subnet_cidr': '193.90.210.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-11-04 02:20:24,724 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd35f5689-8822-4117-948a-e9928f3e7fd4', 'name': 'ctest-vn-71147455', 'tenant_id': '9af78c88b8bd44f4846cbc5a06b39f0d', 'project_id': '9af78c88b8bd44f4846cbc5a06b39f0d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['37435a81-04a0-46bc-98f6-7dace9e0eda6'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-10260042', 'ctest-vn-71147455'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-10260042', 'ctest-policy-allow-all-04230370']], 'subnet_ipam': [{'subnet_cidr': '168.82.28.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-11-04 02:20:24,874 - DEBUG - Requesting: http://10.0.0.23:8082/domains
2024-11-04 02:20:25,176 - DEBUG - Requesting: http://10.0.0.23:8082/domains
2024-11-04 02:20:25,207 - DEBUG - Requesting: http://10.0.0.23:8082/domain/321c59c6-e343-4285-83c4-de8b59cc19fc
2024-11-04 02:20:25,222 - DEBUG - Requesting: http://10.0.0.23:8082/project/9af78c88-b8bd-44f4-846c-bc5a06b39f0d
2024-11-04 02:20:25,311 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/9f23f002-1fca-4541-a7c6-664bc6db4e43
2024-11-04 02:20:25,326 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/9f23f002-1fca-4541-a7c6-664bc6db4e43
2024-11-04 02:20:25,340 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/7705e45e-f703-4858-aac2-1c75dd051bb4
2024-11-04 02:20:25,351 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/7705e45e-f703-4858-aac2-1c75dd051bb4
2024-11-04 02:20:25,360 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/606c1993-34c1-484f-955d-a5ed247a9e4f
2024-11-04 02:20:25,367 - DEBUG - Route Targets: ['target:64512:8000005']
2024-11-04 02:20:25,367 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/9f23f002-1fca-4541-a7c6-664bc6db4e43
2024-11-04 02:20:25,381 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/7705e45e-f703-4858-aac2-1c75dd051bb4
2024-11-04 02:20:25,400 - INFO - Verified VN network id 9 for VN 9f23f002-1fca-4541-a7c6-664bc6db4e43
2024-11-04 02:20:25,400 - INFO - Verifications in API Server for VN ctest-vn-60342105 passed
2024-11-04 02:20:25,400 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/9f23f002-1fca-4541-a7c6-664bc6db4e43
2024-11-04 02:20:25,414 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/7705e45e-f703-4858-aac2-1c75dd051bb4
2024-11-04 02:20:25,423 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/7705e45e-f703-4858-aac2-1c75dd051bb4
2024-11-04 02:20:25,431 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/606c1993-34c1-484f-955d-a5ed247a9e4f
2024-11-04 02:20:25,445 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-10260042:ctest-vn-60342105', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-10260042', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11467272968129365313', 'uuid-lslong': '12089462725367516739'}, 'enable': 'true', 'created': '2024-11-04T02:20:22', 'last-modified': '2024-11-04T02:20:24', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.054895'}
2024-11-04 02:20:25,453 - DEBUG - Route Targets: ['target:64512:8000005']
2024-11-04 02:20:25,453 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-60342105 passed
2024-11-04 02:20:25,454 - DEBUG - ====Verifying policy data for ctest-vn-60342105 in API_Server ======
2024-11-04 02:20:25,454 - DEBUG - Requesting: http://10.0.0.23:8082/domains
2024-11-04 02:20:25,461 - DEBUG - Requesting: http://10.0.0.23:8082/domain/321c59c6-e343-4285-83c4-de8b59cc19fc
2024-11-04 02:20:25,475 - DEBUG - Requesting: http://10.0.0.23:8082/project/9af78c88-b8bd-44f4-846c-bc5a06b39f0d
2024-11-04 02:20:25,558 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/9f23f002-1fca-4541-a7c6-664bc6db4e43
2024-11-04 02:20:25,572 - DEBUG - ==>Verifying data for policy with id: e838ff8c-54b4-40dd-a19f-b08ff839440b, fqn: ['default-domain', 'ctest-TestBasicPolicy-10260042', 'ctest-policy-allow-all-04230370']
2024-11-04 02:20:25,572 - INFO - VN ctest-vn-60342105 Policy verification: verify_vn_policy_in_api_server, status: True
2024-11-04 02:20:25,572 - DEBUG - Verifying the vn in opserver
2024-11-04 02:20:25,572 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-10260042:ctest-vn-60342105 virtual network link through opserver 10.0.0.23
2024-11-04 02:20:25,573 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks
2024-11-04 02:20:25,875 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks
2024-11-04 02:20:25,943 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-10260042:ctest-vn-60342105', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-10260042:ctest-vn-60342105?flat'}
2024-11-04 02:20:25,943 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-10260042:ctest-vn-60342105 is found in opserver
2024-11-04 02:20:25,955 - DEBUG - Do not have enough data to verify VN in agent
2024-11-04 02:20:25,960 - DEBUG - VRF ids for VN ctest-vn-60342105: {}
2024-11-04 02:20:25,961 - DEBUG - Requesting: http://10.0.0.23:8082/domains
2024-11-04 02:20:25,967 - DEBUG - Requesting: http://10.0.0.23:8082/domain/321c59c6-e343-4285-83c4-de8b59cc19fc
2024-11-04 02:20:25,982 - DEBUG - Requesting: http://10.0.0.23:8082/project/9af78c88-b8bd-44f4-846c-bc5a06b39f0d
2024-11-04 02:20:26,074 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/d35f5689-8822-4117-948a-e9928f3e7fd4
2024-11-04 02:20:26,093 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/d35f5689-8822-4117-948a-e9928f3e7fd4
2024-11-04 02:20:26,108 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/f116d6ff-286c-4e7c-859c-1518d91f287d
2024-11-04 02:20:26,117 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/f116d6ff-286c-4e7c-859c-1518d91f287d
2024-11-04 02:20:26,126 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/53c9a106-e7fd-492e-b6c4-7611a723e14e
2024-11-04 02:20:26,133 - DEBUG - Route Targets: ['target:64512:8000006']
2024-11-04 02:20:26,133 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/d35f5689-8822-4117-948a-e9928f3e7fd4
2024-11-04 02:20:26,147 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/f116d6ff-286c-4e7c-859c-1518d91f287d
2024-11-04 02:20:26,167 - INFO - Verified VN network id 10 for VN d35f5689-8822-4117-948a-e9928f3e7fd4
2024-11-04 02:20:26,167 - INFO - Verifications in API Server for VN ctest-vn-71147455 passed
2024-11-04 02:20:26,167 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/d35f5689-8822-4117-948a-e9928f3e7fd4
2024-11-04 02:20:26,182 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/f116d6ff-286c-4e7c-859c-1518d91f287d
2024-11-04 02:20:26,193 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/f116d6ff-286c-4e7c-859c-1518d91f287d
2024-11-04 02:20:26,202 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/53c9a106-e7fd-492e-b6c4-7611a723e14e
2024-11-04 02:20:26,216 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-10260042:ctest-vn-71147455', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-10260042', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15230987613484761367', 'uuid-lslong': '10703624280077139924'}, 'enable': 'true', 'created': '2024-11-04T02:20:23', 'last-modified': '2024-11-04T02:20:24', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.567160'}
2024-11-04 02:20:26,225 - DEBUG - Route Targets: ['target:64512:8000006']
2024-11-04 02:20:26,225 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-71147455 passed
2024-11-04 02:20:26,225 - DEBUG - ====Verifying policy data for ctest-vn-71147455 in API_Server ======
2024-11-04 02:20:26,225 - DEBUG - Requesting: http://10.0.0.23:8082/domains
2024-11-04 02:20:26,232 - DEBUG - Requesting: http://10.0.0.23:8082/domain/321c59c6-e343-4285-83c4-de8b59cc19fc
2024-11-04 02:20:26,245 - DEBUG - Requesting: http://10.0.0.23:8082/project/9af78c88-b8bd-44f4-846c-bc5a06b39f0d
2024-11-04 02:20:26,330 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/d35f5689-8822-4117-948a-e9928f3e7fd4
2024-11-04 02:20:26,347 - DEBUG - ==>Verifying data for policy with id: e838ff8c-54b4-40dd-a19f-b08ff839440b, fqn: ['default-domain', 'ctest-TestBasicPolicy-10260042', 'ctest-policy-allow-all-04230370']
2024-11-04 02:20:26,347 - INFO - VN ctest-vn-71147455 Policy verification: verify_vn_policy_in_api_server, status: True
2024-11-04 02:20:26,347 - DEBUG - Verifying the vn in opserver
2024-11-04 02:20:26,347 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-10260042:ctest-vn-71147455 virtual network link through opserver 10.0.0.23
2024-11-04 02:20:26,347 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks
2024-11-04 02:20:26,365 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-10260042:ctest-vn-71147455', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-10260042:ctest-vn-71147455?flat'}
2024-11-04 02:20:26,365 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-10260042:ctest-vn-71147455 is found in opserver
2024-11-04 02:20:26,383 - DEBUG - Do not have enough data to verify VN in agent
2024-11-04 02:20:26,391 - DEBUG - VRF ids for VN ctest-vn-71147455: {}
2024-11-04 02:20:26,454 - DEBUG - Services list from nova: [