2024-11-09 22:15:39,873 - INFO - Domain Default found not creating
2024-11-09 22:15:40,046 - INFO - Project ctest-TestBasicPolicy-41452359 not found, creating it
2024-11-09 22:15:40,533 - INFO - Created Project:ctest-TestBasicPolicy-41452359, ID : 36a261f2-1ebf-430b-9e23-e352048e4051
2024-11-09 22:15:42,117 - INFO - ================================================================================
2024-11-09 22:15:42,118 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-11-09 22:15:42,118 - 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-09 22:15:42,378 - DEBUG - Nothing to compare xmpp stats {'10.0.0.12': {'10.20.0.6': '0'}} with
2024-11-09 22:15:42,378 - INFO - Initial checks done. Running the testcase now
2024-11-09 22:15:42,378 - INFO -
2024-11-09 22:15:42,968 - DEBUG - Response for create_network : {'network': {'id': '8d0a7b97-9a28-4991-ab78-388bde9f57c4', 'name': 'ctest-vn-11325536', 'tenant_id': '36a261f21ebf430b9e23e352048e4051', 'project_id': '36a261f21ebf430b9e23e352048e4051', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-41452359', 'ctest-vn-11325536'], 'port_security_enabled': True, 'description': ''}}
2024-11-09 22:15:43,217 - DEBUG - Response for create_subnet : {'subnet': {'id': '8f5ae6b6-c262-4352-8f37-26562c163b93', 'name': '', 'tenant_id': '36a261f21ebf430b9e23e352048e4051', 'network_id': '8d0a7b97-9a28-4991-ab78-388bde9f57c4', 'ip_version': 4, 'cidr': '33.238.90.128/26', 'allocation_pools': [{'start': '33.238.90.130', 'end': '33.238.90.190'}], 'gateway_ip': '33.238.90.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '33.238.90.130', 'tags': [], 'project_id': '36a261f21ebf430b9e23e352048e4051'}}
2024-11-09 22:15:43,238 - INFO - Created VN ctest-vn-11325536
2024-11-09 22:15:43,296 - DEBUG - VN ctest-vn-11325536 UUID is 8d0a7b97-9a28-4991-ab78-388bde9f57c4
2024-11-09 22:15:43,628 - DEBUG - Response for create_network : {'network': {'id': 'f65f4ff6-bca1-4410-aff7-46fc56022681', 'name': 'ctest-vn-83028496', 'tenant_id': '36a261f21ebf430b9e23e352048e4051', 'project_id': '36a261f21ebf430b9e23e352048e4051', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-41452359', 'ctest-vn-83028496'], 'port_security_enabled': True, 'description': ''}}
2024-11-09 22:15:43,806 - DEBUG - Response for create_subnet : {'subnet': {'id': '5920bcf8-904a-44a8-87a6-9baa1403fa55', 'name': '', 'tenant_id': '36a261f21ebf430b9e23e352048e4051', 'network_id': 'f65f4ff6-bca1-4410-aff7-46fc56022681', 'ip_version': 4, 'cidr': '201.64.162.128/26', 'allocation_pools': [{'start': '201.64.162.130', 'end': '201.64.162.190'}], 'gateway_ip': '201.64.162.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '201.64.162.130', 'tags': [], 'project_id': '36a261f21ebf430b9e23e352048e4051'}}
2024-11-09 22:15:43,827 - INFO - Created VN ctest-vn-83028496
2024-11-09 22:15:43,888 - DEBUG - VN ctest-vn-83028496 UUID is f65f4ff6-bca1-4410-aff7-46fc56022681
2024-11-09 22:15:44,025 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-41452359:ctest-vn-11325536, 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-41452359:ctest-vn-83028496, 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-09 22:15:44,363 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8d0a7b97-9a28-4991-ab78-388bde9f57c4', 'name': 'ctest-vn-11325536', 'tenant_id': '36a261f21ebf430b9e23e352048e4051', 'project_id': '36a261f21ebf430b9e23e352048e4051', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8f5ae6b6-c262-4352-8f37-26562c163b93'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-41452359', 'ctest-vn-11325536'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-41452359', 'ctest-policy-allow-all-71903530']], 'subnet_ipam': [{'subnet_cidr': '33.238.90.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-11-09 22:15:44,615 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f65f4ff6-bca1-4410-aff7-46fc56022681', 'name': 'ctest-vn-83028496', 'tenant_id': '36a261f21ebf430b9e23e352048e4051', 'project_id': '36a261f21ebf430b9e23e352048e4051', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['5920bcf8-904a-44a8-87a6-9baa1403fa55'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-41452359', 'ctest-vn-83028496'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-41452359', 'ctest-policy-allow-all-71903530']], 'subnet_ipam': [{'subnet_cidr': '201.64.162.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-11-09 22:15:44,796 - DEBUG - Requesting: http://10.0.0.12:8082/domains
2024-11-09 22:15:45,097 - DEBUG - Requesting: http://10.0.0.12:8082/domains
2024-11-09 22:15:45,133 - DEBUG - Requesting: http://10.0.0.12:8082/domain/c8de0441-526f-4286-ad68-3c32fc5b4c61
2024-11-09 22:15:45,149 - DEBUG - Requesting: http://10.0.0.12:8082/project/36a261f2-1ebf-430b-9e23-e352048e4051
2024-11-09 22:15:45,232 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/8d0a7b97-9a28-4991-ab78-388bde9f57c4
2024-11-09 22:15:45,248 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/8d0a7b97-9a28-4991-ab78-388bde9f57c4
2024-11-09 22:15:45,263 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/cb1f2721-05c4-456f-beaa-9acab0a50ffb
2024-11-09 22:15:45,273 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/cb1f2721-05c4-456f-beaa-9acab0a50ffb
2024-11-09 22:15:45,282 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/8fa2550f-4b49-44c6-956e-6b9cea7754d5
2024-11-09 22:15:45,290 - DEBUG - Route Targets: ['target:64512:8000005']
2024-11-09 22:15:45,290 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/8d0a7b97-9a28-4991-ab78-388bde9f57c4
2024-11-09 22:15:45,304 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/cb1f2721-05c4-456f-beaa-9acab0a50ffb
2024-11-09 22:15:45,326 - INFO - Verified VN network id 7 for VN 8d0a7b97-9a28-4991-ab78-388bde9f57c4
2024-11-09 22:15:45,326 - INFO - Verifications in API Server for VN ctest-vn-11325536 passed
2024-11-09 22:15:45,326 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/8d0a7b97-9a28-4991-ab78-388bde9f57c4
2024-11-09 22:15:45,341 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/cb1f2721-05c4-456f-beaa-9acab0a50ffb
2024-11-09 22:15:45,351 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/cb1f2721-05c4-456f-beaa-9acab0a50ffb
2024-11-09 22:15:45,361 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/8fa2550f-4b49-44c6-956e-6b9cea7754d5
2024-11-09 22:15:45,376 - DEBUG - Control-node 10.0.0.12 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-41452359:ctest-vn-11325536', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-41452359', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10163071400171555217', 'uuid-lslong': '12355687751077550020'}, 'enable': 'true', 'created': '2024-11-09T22:15:42', 'last-modified': '2024-11-09T22:15:44', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.042750'}
2024-11-09 22:15:45,383 - DEBUG - Route Targets: ['target:64512:8000005']
2024-11-09 22:15:45,383 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-11325536 passed
2024-11-09 22:15:45,383 - DEBUG - ====Verifying policy data for ctest-vn-11325536 in API_Server ======
2024-11-09 22:15:45,383 - DEBUG - Requesting: http://10.0.0.12:8082/domains
2024-11-09 22:15:45,389 - DEBUG - Requesting: http://10.0.0.12:8082/domain/c8de0441-526f-4286-ad68-3c32fc5b4c61
2024-11-09 22:15:45,403 - DEBUG - Requesting: http://10.0.0.12:8082/project/36a261f2-1ebf-430b-9e23-e352048e4051
2024-11-09 22:15:45,480 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/8d0a7b97-9a28-4991-ab78-388bde9f57c4
2024-11-09 22:15:45,495 - DEBUG - ==>Verifying data for policy with id: 1901fda6-4059-4310-83e8-cd7b9e9f1c5c, fqn: ['default-domain', 'ctest-TestBasicPolicy-41452359', 'ctest-policy-allow-all-71903530']
2024-11-09 22:15:45,496 - INFO - VN ctest-vn-11325536 Policy verification: verify_vn_policy_in_api_server, status: True
2024-11-09 22:15:45,496 - DEBUG - Verifying the vn in opserver
2024-11-09 22:15:45,496 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-41452359:ctest-vn-11325536 virtual network link through opserver 10.0.0.12
2024-11-09 22:15:45,496 - DEBUG - Requesting: http://10.0.0.12:8081/analytics/uves/virtual-networks
2024-11-09 22:15:45,795 - DEBUG - Requesting: http://10.0.0.12:8081/analytics/uves/virtual-networks
2024-11-09 22:15:45,863 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-41452359:ctest-vn-11325536', 'href': 'http://10.0.0.12:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-41452359:ctest-vn-11325536?flat'}
2024-11-09 22:15:45,863 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-41452359:ctest-vn-11325536 is found in opserver
2024-11-09 22:15:45,875 - DEBUG - Do not have enough data to verify VN in agent
2024-11-09 22:15:45,882 - DEBUG - VRF ids for VN ctest-vn-11325536: {}
2024-11-09 22:15:45,882 - DEBUG - Requesting: http://10.0.0.12:8082/domains
2024-11-09 22:15:45,889 - DEBUG - Requesting: http://10.0.0.12:8082/domain/c8de0441-526f-4286-ad68-3c32fc5b4c61
2024-11-09 22:15:45,903 - DEBUG - Requesting: http://10.0.0.12:8082/project/36a261f2-1ebf-430b-9e23-e352048e4051
2024-11-09 22:15:45,982 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/f65f4ff6-bca1-4410-aff7-46fc56022681
2024-11-09 22:15:46,006 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/f65f4ff6-bca1-4410-aff7-46fc56022681
2024-11-09 22:15:46,022 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/286bdeb9-0a6a-44a9-8d5f-93cb09fa4a88
2024-11-09 22:15:46,032 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/286bdeb9-0a6a-44a9-8d5f-93cb09fa4a88
2024-11-09 22:15:46,041 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/d4fd79ad-32f7-4b3b-907e-339ea6388fa5
2024-11-09 22:15:46,049 - DEBUG - Route Targets: ['target:64512:8000006']
2024-11-09 22:15:46,049 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/f65f4ff6-bca1-4410-aff7-46fc56022681
2024-11-09 22:15:46,063 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/286bdeb9-0a6a-44a9-8d5f-93cb09fa4a88
2024-11-09 22:15:46,085 - INFO - Verified VN network id 8 for VN f65f4ff6-bca1-4410-aff7-46fc56022681
2024-11-09 22:15:46,085 - INFO - Verifications in API Server for VN ctest-vn-83028496 passed
2024-11-09 22:15:46,086 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/f65f4ff6-bca1-4410-aff7-46fc56022681
2024-11-09 22:15:46,099 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/286bdeb9-0a6a-44a9-8d5f-93cb09fa4a88
2024-11-09 22:15:46,108 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/286bdeb9-0a6a-44a9-8d5f-93cb09fa4a88
2024-11-09 22:15:46,117 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/d4fd79ad-32f7-4b3b-907e-339ea6388fa5
2024-11-09 22:15:46,130 - DEBUG - Control-node 10.0.0.12 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-41452359:ctest-vn-83028496', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-41452359', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17752996177263019024', 'uuid-lslong': '12679681325473605249'}, 'enable': 'true', 'created': '2024-11-09T22:15:43', 'last-modified': '2024-11-09T22:15:44', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.540639'}
2024-11-09 22:15:46,137 - DEBUG - Route Targets: ['target:64512:8000006']
2024-11-09 22:15:46,138 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-83028496 passed
2024-11-09 22:15:46,138 - DEBUG - ====Verifying policy data for ctest-vn-83028496 in API_Server ======
2024-11-09 22:15:46,138 - DEBUG - Requesting: http://10.0.0.12:8082/domains
2024-11-09 22:15:46,144 - DEBUG - Requesting: http://10.0.0.12:8082/domain/c8de0441-526f-4286-ad68-3c32fc5b4c61
2024-11-09 22:15:46,160 - DEBUG - Requesting: http://10.0.0.12:8082/project/36a261f2-1ebf-430b-9e23-e352048e4051
2024-11-09 22:15:46,249 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/f65f4ff6-bca1-4410-aff7-46fc56022681
2024-11-09 22:15:46,268 - DEBUG - ==>Verifying data for policy with id: 1901fda6-4059-4310-83e8-cd7b9e9f1c5c, fqn: ['default-domain', 'ctest-TestBasicPolicy-41452359', 'ctest-policy-allow-all-71903530']
2024-11-09 22:15:46,269 - INFO - VN ctest-vn-83028496 Policy verification: verify_vn_policy_in_api_server, status: True
2024-11-09 22:15:46,269 - DEBUG - Verifying the vn in opserver
2024-11-09 22:15:46,269 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-41452359:ctest-vn-83028496 virtual network link through opserver 10.0.0.12
2024-11-09 22:15:46,269 - DEBUG - Requesting: http://10.0.0.12:8081/analytics/uves/virtual-networks
2024-11-09 22:15:46,283 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-41452359:ctest-vn-83028496', 'href': 'http://10.0.0.12:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-41452359:ctest-vn-83028496?flat'}
2024-11-09 22:15:46,283 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-41452359:ctest-vn-83028496 is found in opserver
2024-11-09 22:15:46,296 - DEBUG - Do not have enough data to verify VN in agent
2024-11-09 22:15:46,303 - DEBUG - VRF ids for VN ctest-vn-83028496: {}
2024-11-09 22:15:46,372 - DEBUG - Services list from nova: [