2024-10-23 15:03:33,623 - INFO - Domain Default found not creating
2024-10-23 15:03:33,797 - INFO - Project ctest-TestBasicPolicy-59314343 not found, creating it
2024-10-23 15:03:34,315 - INFO - Created Project:ctest-TestBasicPolicy-59314343, ID : c6f49c8e-817d-46ce-baf3-d0ba88ffbee0
2024-10-23 15:03:36,032 - INFO - ================================================================================
2024-10-23 15:03:36,032 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-10-23 15:03:36,032 - 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-23 15:03:36,287 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.11': '0'}} with
2024-10-23 15:03:36,287 - INFO - Initial checks done. Running the testcase now
2024-10-23 15:03:36,287 - INFO -
2024-10-23 15:03:36,965 - DEBUG - Response for create_network : {'network': {'id': '865a4241-cfb9-45c1-913f-d5aa10b8c4ae', 'name': 'ctest-vn-74408307', 'tenant_id': 'c6f49c8e817d46cebaf3d0ba88ffbee0', 'project_id': 'c6f49c8e817d46cebaf3d0ba88ffbee0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-59314343', 'ctest-vn-74408307'], 'port_security_enabled': True, 'description': ''}}
2024-10-23 15:03:37,168 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd9394e57-bb1c-4bff-b4bc-614fbf9d2724', 'name': '', 'tenant_id': 'c6f49c8e817d46cebaf3d0ba88ffbee0', 'network_id': '865a4241-cfb9-45c1-913f-d5aa10b8c4ae', 'ip_version': 4, 'cidr': '112.153.114.0/26', 'allocation_pools': [{'start': '112.153.114.2', 'end': '112.153.114.62'}], 'gateway_ip': '112.153.114.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '112.153.114.2', 'tags': [], 'project_id': 'c6f49c8e817d46cebaf3d0ba88ffbee0'}}
2024-10-23 15:03:37,189 - INFO - Created VN ctest-vn-74408307
2024-10-23 15:03:37,249 - DEBUG - VN ctest-vn-74408307 UUID is 865a4241-cfb9-45c1-913f-d5aa10b8c4ae
2024-10-23 15:03:37,587 - DEBUG - Response for create_network : {'network': {'id': 'b0c7afe4-e644-4bab-90ab-b2285ab0ff49', 'name': 'ctest-vn-04328114', 'tenant_id': 'c6f49c8e817d46cebaf3d0ba88ffbee0', 'project_id': 'c6f49c8e817d46cebaf3d0ba88ffbee0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-59314343', 'ctest-vn-04328114'], 'port_security_enabled': True, 'description': ''}}
2024-10-23 15:03:37,813 - DEBUG - Response for create_subnet : {'subnet': {'id': '6ecbe237-21e2-46f9-b1aa-55c318e2f5d2', 'name': '', 'tenant_id': 'c6f49c8e817d46cebaf3d0ba88ffbee0', 'network_id': 'b0c7afe4-e644-4bab-90ab-b2285ab0ff49', 'ip_version': 4, 'cidr': '60.44.16.64/26', 'allocation_pools': [{'start': '60.44.16.66', 'end': '60.44.16.126'}], 'gateway_ip': '60.44.16.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '60.44.16.66', 'tags': [], 'project_id': 'c6f49c8e817d46cebaf3d0ba88ffbee0'}}
2024-10-23 15:03:37,833 - INFO - Created VN ctest-vn-04328114
2024-10-23 15:03:37,893 - DEBUG - VN ctest-vn-04328114 UUID is b0c7afe4-e644-4bab-90ab-b2285ab0ff49
2024-10-23 15:03:38,022 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-59314343:ctest-vn-74408307, 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-59314343:ctest-vn-04328114, 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-23 15:03:38,345 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '865a4241-cfb9-45c1-913f-d5aa10b8c4ae', 'name': 'ctest-vn-74408307', 'tenant_id': 'c6f49c8e817d46cebaf3d0ba88ffbee0', 'project_id': 'c6f49c8e817d46cebaf3d0ba88ffbee0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d9394e57-bb1c-4bff-b4bc-614fbf9d2724'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-59314343', 'ctest-vn-74408307'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-59314343', 'ctest-policy-allow-all-51327380']], 'subnet_ipam': [{'subnet_cidr': '112.153.114.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-10-23 15:03:38,580 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b0c7afe4-e644-4bab-90ab-b2285ab0ff49', 'name': 'ctest-vn-04328114', 'tenant_id': 'c6f49c8e817d46cebaf3d0ba88ffbee0', 'project_id': 'c6f49c8e817d46cebaf3d0ba88ffbee0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6ecbe237-21e2-46f9-b1aa-55c318e2f5d2'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-59314343', 'ctest-vn-04328114'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-59314343', 'ctest-policy-allow-all-51327380']], 'subnet_ipam': [{'subnet_cidr': '60.44.16.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-10-23 15:03:38,749 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2024-10-23 15:03:39,098 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2024-10-23 15:03:39,132 - DEBUG - Requesting: http://10.0.0.33:8082/domain/4471600d-de52-4ec1-a908-4c59bff90bb8
2024-10-23 15:03:39,154 - DEBUG - Requesting: http://10.0.0.33:8082/project/c6f49c8e-817d-46ce-baf3-d0ba88ffbee0
2024-10-23 15:03:39,244 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/865a4241-cfb9-45c1-913f-d5aa10b8c4ae
2024-10-23 15:03:39,260 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/865a4241-cfb9-45c1-913f-d5aa10b8c4ae
2024-10-23 15:03:39,275 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/e3a9dff2-1320-4633-97f9-efcc6755ebd3
2024-10-23 15:03:39,284 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/e3a9dff2-1320-4633-97f9-efcc6755ebd3
2024-10-23 15:03:39,292 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/e04137bb-62c6-4254-a770-42b42e0a24bc
2024-10-23 15:03:39,299 - DEBUG - Route Targets: ['target:64512:8000005']
2024-10-23 15:03:39,299 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/865a4241-cfb9-45c1-913f-d5aa10b8c4ae
2024-10-23 15:03:39,313 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/e3a9dff2-1320-4633-97f9-efcc6755ebd3
2024-10-23 15:03:39,335 - INFO - Verified VN network id 8 for VN 865a4241-cfb9-45c1-913f-d5aa10b8c4ae
2024-10-23 15:03:39,335 - INFO - Verifications in API Server for VN ctest-vn-74408307 passed
2024-10-23 15:03:39,336 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/865a4241-cfb9-45c1-913f-d5aa10b8c4ae
2024-10-23 15:03:39,354 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/e3a9dff2-1320-4633-97f9-efcc6755ebd3
2024-10-23 15:03:39,362 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/e3a9dff2-1320-4633-97f9-efcc6755ebd3
2024-10-23 15:03:39,371 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/e04137bb-62c6-4254-a770-42b42e0a24bc
2024-10-23 15:03:39,384 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-59314343:ctest-vn-74408307', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-59314343', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9681123199411635649', 'uuid-lslong': '10466318985434023086'}, 'enable': 'true', 'created': '2024-10-23T15:03:36', 'last-modified': '2024-10-23T15:03:38', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.065120'}
2024-10-23 15:03:39,391 - DEBUG - Route Targets: ['target:64512:8000005']
2024-10-23 15:03:39,392 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-74408307 passed
2024-10-23 15:03:39,392 - DEBUG - ====Verifying policy data for ctest-vn-74408307 in API_Server ======
2024-10-23 15:03:39,392 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2024-10-23 15:03:39,398 - DEBUG - Requesting: http://10.0.0.33:8082/domain/4471600d-de52-4ec1-a908-4c59bff90bb8
2024-10-23 15:03:39,412 - DEBUG - Requesting: http://10.0.0.33:8082/project/c6f49c8e-817d-46ce-baf3-d0ba88ffbee0
2024-10-23 15:03:39,498 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/865a4241-cfb9-45c1-913f-d5aa10b8c4ae
2024-10-23 15:03:39,516 - DEBUG - ==>Verifying data for policy with id: 594e58e8-7915-42a8-a498-b4036a2e58a4, fqn: ['default-domain', 'ctest-TestBasicPolicy-59314343', 'ctest-policy-allow-all-51327380']
2024-10-23 15:03:39,516 - INFO - VN ctest-vn-74408307 Policy verification: verify_vn_policy_in_api_server, status: True
2024-10-23 15:03:39,516 - DEBUG - Verifying the vn in opserver
2024-10-23 15:03:39,516 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-59314343:ctest-vn-74408307 virtual network link through opserver 10.0.0.33
2024-10-23 15:03:39,516 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2024-10-23 15:03:39,865 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2024-10-23 15:03:39,942 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-59314343:ctest-vn-74408307', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-59314343:ctest-vn-74408307?flat'}
2024-10-23 15:03:39,942 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-59314343:ctest-vn-74408307 is found in opserver
2024-10-23 15:03:39,954 - DEBUG - Do not have enough data to verify VN in agent
2024-10-23 15:03:39,960 - DEBUG - VRF ids for VN ctest-vn-74408307: {}
2024-10-23 15:03:39,960 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2024-10-23 15:03:39,967 - DEBUG - Requesting: http://10.0.0.33:8082/domain/4471600d-de52-4ec1-a908-4c59bff90bb8
2024-10-23 15:03:39,984 - DEBUG - Requesting: http://10.0.0.33:8082/project/c6f49c8e-817d-46ce-baf3-d0ba88ffbee0
2024-10-23 15:03:40,066 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/b0c7afe4-e644-4bab-90ab-b2285ab0ff49
2024-10-23 15:03:40,084 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/b0c7afe4-e644-4bab-90ab-b2285ab0ff49
2024-10-23 15:03:40,098 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/61eaf363-cfd1-451e-8d1e-d19d6b55245d
2024-10-23 15:03:40,108 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/61eaf363-cfd1-451e-8d1e-d19d6b55245d
2024-10-23 15:03:40,117 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/c002736c-0c00-4456-8122-8a0fbe2fbe12
2024-10-23 15:03:40,124 - DEBUG - Route Targets: ['target:64512:8000006']
2024-10-23 15:03:40,124 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/b0c7afe4-e644-4bab-90ab-b2285ab0ff49
2024-10-23 15:03:40,139 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/61eaf363-cfd1-451e-8d1e-d19d6b55245d
2024-10-23 15:03:40,159 - INFO - Verified VN network id 9 for VN b0c7afe4-e644-4bab-90ab-b2285ab0ff49
2024-10-23 15:03:40,159 - INFO - Verifications in API Server for VN ctest-vn-04328114 passed
2024-10-23 15:03:40,159 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/b0c7afe4-e644-4bab-90ab-b2285ab0ff49
2024-10-23 15:03:40,175 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/61eaf363-cfd1-451e-8d1e-d19d6b55245d
2024-10-23 15:03:40,184 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/61eaf363-cfd1-451e-8d1e-d19d6b55245d
2024-10-23 15:03:40,192 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/c002736c-0c00-4456-8122-8a0fbe2fbe12
2024-10-23 15:03:40,206 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-59314343:ctest-vn-04328114', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-59314343', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12738343468691377067', 'uuid-lslong': '10424621648869130057'}, 'enable': 'true', 'created': '2024-10-23T15:03:37', 'last-modified': '2024-10-23T15:03:38', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.649073'}
2024-10-23 15:03:40,213 - DEBUG - Route Targets: ['target:64512:8000006']
2024-10-23 15:03:40,213 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-04328114 passed
2024-10-23 15:03:40,214 - DEBUG - ====Verifying policy data for ctest-vn-04328114 in API_Server ======
2024-10-23 15:03:40,214 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2024-10-23 15:03:40,219 - DEBUG - Requesting: http://10.0.0.33:8082/domain/4471600d-de52-4ec1-a908-4c59bff90bb8
2024-10-23 15:03:40,234 - DEBUG - Requesting: http://10.0.0.33:8082/project/c6f49c8e-817d-46ce-baf3-d0ba88ffbee0
2024-10-23 15:03:40,320 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/b0c7afe4-e644-4bab-90ab-b2285ab0ff49
2024-10-23 15:03:40,335 - DEBUG - ==>Verifying data for policy with id: 594e58e8-7915-42a8-a498-b4036a2e58a4, fqn: ['default-domain', 'ctest-TestBasicPolicy-59314343', 'ctest-policy-allow-all-51327380']
2024-10-23 15:03:40,335 - INFO - VN ctest-vn-04328114 Policy verification: verify_vn_policy_in_api_server, status: True
2024-10-23 15:03:40,335 - DEBUG - Verifying the vn in opserver
2024-10-23 15:03:40,335 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-59314343:ctest-vn-04328114 virtual network link through opserver 10.0.0.33
2024-10-23 15:03:40,335 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2024-10-23 15:03:40,347 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-59314343:ctest-vn-04328114', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-59314343:ctest-vn-04328114?flat'}
2024-10-23 15:03:40,347 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-59314343:ctest-vn-04328114 is found in opserver
2024-10-23 15:03:40,359 - DEBUG - Do not have enough data to verify VN in agent
2024-10-23 15:03:40,364 - DEBUG - VRF ids for VN ctest-vn-04328114: {}
2024-10-23 15:03:40,426 - DEBUG - Services list from nova: [