2024-09-11 06:55:32,306 - INFO - Domain Default found not creating
2024-09-11 06:55:32,467 - INFO - Project ctest-TestBasicPolicy-68337176 not found, creating it
2024-09-11 06:55:32,940 - INFO - Created Project:ctest-TestBasicPolicy-68337176, ID : f9845c44-1e22-462d-ac25-82e2b8d06c6a
2024-09-11 06:55:34,421 - INFO - ================================================================================
2024-09-11 06:55:34,421 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-09-11 06:55:34,421 - 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-09-11 06:55:34,680 - DEBUG - Nothing to compare xmpp stats {'10.0.0.36': {'10.20.0.11': '0'}} with
2024-09-11 06:55:34,680 - INFO - Initial checks done. Running the testcase now
2024-09-11 06:55:34,680 - INFO -
2024-09-11 06:55:35,240 - DEBUG - Response for create_network : {'network': {'id': '4a8fee49-e575-4887-bbbc-f21cd6a79286', 'name': 'ctest-vn-57608856', 'tenant_id': 'f9845c441e22462dac2582e2b8d06c6a', 'project_id': 'f9845c441e22462dac2582e2b8d06c6a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-68337176', 'ctest-vn-57608856'], 'port_security_enabled': True, 'description': ''}}
2024-09-11 06:55:35,439 - DEBUG - Response for create_subnet : {'subnet': {'id': '3423d590-58c9-47ca-b870-334ad0527405', 'name': '', 'tenant_id': 'f9845c441e22462dac2582e2b8d06c6a', 'network_id': '4a8fee49-e575-4887-bbbc-f21cd6a79286', 'ip_version': 4, 'cidr': '211.85.108.0/26', 'allocation_pools': [{'start': '211.85.108.2', 'end': '211.85.108.62'}], 'gateway_ip': '211.85.108.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '211.85.108.2', 'tags': [], 'project_id': 'f9845c441e22462dac2582e2b8d06c6a'}}
2024-09-11 06:55:35,465 - INFO - Created VN ctest-vn-57608856
2024-09-11 06:55:35,522 - DEBUG - VN ctest-vn-57608856 UUID is 4a8fee49-e575-4887-bbbc-f21cd6a79286
2024-09-11 06:55:35,825 - DEBUG - Response for create_network : {'network': {'id': '70e03604-8141-42e8-8d99-6b89e210a66c', 'name': 'ctest-vn-69863985', 'tenant_id': 'f9845c441e22462dac2582e2b8d06c6a', 'project_id': 'f9845c441e22462dac2582e2b8d06c6a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-68337176', 'ctest-vn-69863985'], 'port_security_enabled': True, 'description': ''}}
2024-09-11 06:55:36,004 - DEBUG - Response for create_subnet : {'subnet': {'id': '3615e288-c26c-43e1-acba-a865e6e262b9', 'name': '', 'tenant_id': 'f9845c441e22462dac2582e2b8d06c6a', 'network_id': '70e03604-8141-42e8-8d99-6b89e210a66c', 'ip_version': 4, 'cidr': '151.78.0.0/26', 'allocation_pools': [{'start': '151.78.0.2', 'end': '151.78.0.62'}], 'gateway_ip': '151.78.0.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '151.78.0.2', 'tags': [], 'project_id': 'f9845c441e22462dac2582e2b8d06c6a'}}
2024-09-11 06:55:36,024 - INFO - Created VN ctest-vn-69863985
2024-09-11 06:55:36,074 - DEBUG - VN ctest-vn-69863985 UUID is 70e03604-8141-42e8-8d99-6b89e210a66c
2024-09-11 06:55:36,190 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-68337176:ctest-vn-57608856, 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-68337176:ctest-vn-69863985, 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-09-11 06:55:36,485 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4a8fee49-e575-4887-bbbc-f21cd6a79286', 'name': 'ctest-vn-57608856', 'tenant_id': 'f9845c441e22462dac2582e2b8d06c6a', 'project_id': 'f9845c441e22462dac2582e2b8d06c6a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3423d590-58c9-47ca-b870-334ad0527405'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-68337176', 'ctest-vn-57608856'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-68337176', 'ctest-policy-allow-all-30770798']], 'subnet_ipam': [{'subnet_cidr': '211.85.108.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-09-11 06:55:36,783 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '70e03604-8141-42e8-8d99-6b89e210a66c', 'name': 'ctest-vn-69863985', 'tenant_id': 'f9845c441e22462dac2582e2b8d06c6a', 'project_id': 'f9845c441e22462dac2582e2b8d06c6a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3615e288-c26c-43e1-acba-a865e6e262b9'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-68337176', 'ctest-vn-69863985'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-68337176', 'ctest-policy-allow-all-30770798']], 'subnet_ipam': [{'subnet_cidr': '151.78.0.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-09-11 06:55:36,934 - DEBUG - Requesting: http://10.0.0.36:8082/domains
2024-09-11 06:55:37,381 - DEBUG - Requesting: http://10.0.0.36:8082/domains
2024-09-11 06:55:37,422 - DEBUG - Requesting: http://10.0.0.36:8082/domain/13f1236c-f69c-44da-bc72-e9ebfbe0087d
2024-09-11 06:55:37,436 - DEBUG - Requesting: http://10.0.0.36:8082/project/f9845c44-1e22-462d-ac25-82e2b8d06c6a
2024-09-11 06:55:37,506 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/4a8fee49-e575-4887-bbbc-f21cd6a79286
2024-09-11 06:55:37,516 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/4a8fee49-e575-4887-bbbc-f21cd6a79286
2024-09-11 06:55:37,524 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/eabee419-59d0-4f21-956e-1fabe755f59f
2024-09-11 06:55:37,531 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/eabee419-59d0-4f21-956e-1fabe755f59f
2024-09-11 06:55:37,537 - DEBUG - Requesting: http://10.0.0.36:8082/route-target/049daa42-d7f0-4b20-b5d8-9c9d1c19cccf
2024-09-11 06:55:37,544 - DEBUG - Route Targets: ['target:64512:8000005']
2024-09-11 06:55:37,544 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/4a8fee49-e575-4887-bbbc-f21cd6a79286
2024-09-11 06:55:37,551 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/eabee419-59d0-4f21-956e-1fabe755f59f
2024-09-11 06:55:37,563 - INFO - Verified VN network id 8 for VN 4a8fee49-e575-4887-bbbc-f21cd6a79286
2024-09-11 06:55:37,563 - INFO - Verifications in API Server for VN ctest-vn-57608856 passed
2024-09-11 06:55:37,563 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/4a8fee49-e575-4887-bbbc-f21cd6a79286
2024-09-11 06:55:37,571 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/eabee419-59d0-4f21-956e-1fabe755f59f
2024-09-11 06:55:37,577 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/eabee419-59d0-4f21-956e-1fabe755f59f
2024-09-11 06:55:37,584 - DEBUG - Requesting: http://10.0.0.36:8082/route-target/049daa42-d7f0-4b20-b5d8-9c9d1c19cccf
2024-09-11 06:55:37,596 - DEBUG - Control-node 10.0.0.36 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-68337176:ctest-vn-57608856', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-68337176', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5372774881625983111', 'uuid-lslong': '13527953586388439686'}, 'enable': 'true', 'created': '2024-09-11T06:55:35', 'last-modified': '2024-09-11T06:55:36', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.137563'}
2024-09-11 06:55:37,602 - DEBUG - Route Targets: ['target:64512:8000005']
2024-09-11 06:55:37,602 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-57608856 passed
2024-09-11 06:55:37,602 - DEBUG - ====Verifying policy data for ctest-vn-57608856 in API_Server ======
2024-09-11 06:55:37,603 - DEBUG - Requesting: http://10.0.0.36:8082/domains
2024-09-11 06:55:37,608 - DEBUG - Requesting: http://10.0.0.36:8082/domain/13f1236c-f69c-44da-bc72-e9ebfbe0087d
2024-09-11 06:55:37,619 - DEBUG - Requesting: http://10.0.0.36:8082/project/f9845c44-1e22-462d-ac25-82e2b8d06c6a
2024-09-11 06:55:37,687 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/4a8fee49-e575-4887-bbbc-f21cd6a79286
2024-09-11 06:55:37,695 - DEBUG - ==>Verifying data for policy with id: 60119647-a899-46e2-8371-d4de841f125f, fqn: ['default-domain', 'ctest-TestBasicPolicy-68337176', 'ctest-policy-allow-all-30770798']
2024-09-11 06:55:37,695 - INFO - VN ctest-vn-57608856 Policy verification: verify_vn_policy_in_api_server, status: True
2024-09-11 06:55:37,695 - DEBUG - Verifying the vn in opserver
2024-09-11 06:55:37,695 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-68337176:ctest-vn-57608856 virtual network link through opserver 10.0.0.36
2024-09-11 06:55:37,695 - DEBUG - Requesting: http://10.0.0.36:8081/analytics/uves/virtual-networks
2024-09-11 06:55:37,994 - DEBUG - Requesting: http://10.0.0.36:8081/analytics/uves/virtual-networks
2024-09-11 06:55:38,057 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-68337176:ctest-vn-57608856', 'href': 'http://10.0.0.36:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-68337176:ctest-vn-57608856?flat'}
2024-09-11 06:55:38,057 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-68337176:ctest-vn-57608856 is found in opserver
2024-09-11 06:55:38,068 - DEBUG - Do not have enough data to verify VN in agent
2024-09-11 06:55:38,073 - DEBUG - VRF ids for VN ctest-vn-57608856: {}
2024-09-11 06:55:38,073 - DEBUG - Requesting: http://10.0.0.36:8082/domains
2024-09-11 06:55:38,080 - DEBUG - Requesting: http://10.0.0.36:8082/domain/13f1236c-f69c-44da-bc72-e9ebfbe0087d
2024-09-11 06:55:38,093 - DEBUG - Requesting: http://10.0.0.36:8082/project/f9845c44-1e22-462d-ac25-82e2b8d06c6a
2024-09-11 06:55:38,166 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/70e03604-8141-42e8-8d99-6b89e210a66c
2024-09-11 06:55:38,178 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/70e03604-8141-42e8-8d99-6b89e210a66c
2024-09-11 06:55:38,187 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/a175ad49-39fe-4372-93cc-217f76a746da
2024-09-11 06:55:38,195 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/a175ad49-39fe-4372-93cc-217f76a746da
2024-09-11 06:55:38,203 - DEBUG - Requesting: http://10.0.0.36:8082/route-target/5bcd2e7c-9716-4ad8-b9c9-f7f0d0c6f3e0
2024-09-11 06:55:38,210 - DEBUG - Route Targets: ['target:64512:8000006']
2024-09-11 06:55:38,210 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/70e03604-8141-42e8-8d99-6b89e210a66c
2024-09-11 06:55:38,217 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/a175ad49-39fe-4372-93cc-217f76a746da
2024-09-11 06:55:38,231 - INFO - Verified VN network id 9 for VN 70e03604-8141-42e8-8d99-6b89e210a66c
2024-09-11 06:55:38,231 - INFO - Verifications in API Server for VN ctest-vn-69863985 passed
2024-09-11 06:55:38,231 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/70e03604-8141-42e8-8d99-6b89e210a66c
2024-09-11 06:55:38,241 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/a175ad49-39fe-4372-93cc-217f76a746da
2024-09-11 06:55:38,248 - DEBUG - Requesting: http://10.0.0.36:8082/routing-instance/a175ad49-39fe-4372-93cc-217f76a746da
2024-09-11 06:55:38,257 - DEBUG - Requesting: http://10.0.0.36:8082/route-target/5bcd2e7c-9716-4ad8-b9c9-f7f0d0c6f3e0
2024-09-11 06:55:38,270 - DEBUG - Control-node 10.0.0.36 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-68337176:ctest-vn-69863985', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-68337176', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8133560320007422696', 'uuid-lslong': '10203304670732002924'}, 'enable': 'true', 'created': '2024-09-11T06:55:35', 'last-modified': '2024-09-11T06:55:36', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.557124'}
2024-09-11 06:55:38,276 - DEBUG - Route Targets: ['target:64512:8000006']
2024-09-11 06:55:38,277 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-69863985 passed
2024-09-11 06:55:38,277 - DEBUG - ====Verifying policy data for ctest-vn-69863985 in API_Server ======
2024-09-11 06:55:38,277 - DEBUG - Requesting: http://10.0.0.36:8082/domains
2024-09-11 06:55:38,283 - DEBUG - Requesting: http://10.0.0.36:8082/domain/13f1236c-f69c-44da-bc72-e9ebfbe0087d
2024-09-11 06:55:38,295 - DEBUG - Requesting: http://10.0.0.36:8082/project/f9845c44-1e22-462d-ac25-82e2b8d06c6a
2024-09-11 06:55:38,373 - DEBUG - Requesting: http://10.0.0.36:8082/virtual-network/70e03604-8141-42e8-8d99-6b89e210a66c
2024-09-11 06:55:38,382 - DEBUG - ==>Verifying data for policy with id: 60119647-a899-46e2-8371-d4de841f125f, fqn: ['default-domain', 'ctest-TestBasicPolicy-68337176', 'ctest-policy-allow-all-30770798']
2024-09-11 06:55:38,382 - INFO - VN ctest-vn-69863985 Policy verification: verify_vn_policy_in_api_server, status: True
2024-09-11 06:55:38,382 - DEBUG - Verifying the vn in opserver
2024-09-11 06:55:38,382 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-68337176:ctest-vn-69863985 virtual network link through opserver 10.0.0.36
2024-09-11 06:55:38,382 - DEBUG - Requesting: http://10.0.0.36:8081/analytics/uves/virtual-networks
2024-09-11 06:55:38,394 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-68337176:ctest-vn-69863985', 'href': 'http://10.0.0.36:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-68337176:ctest-vn-69863985?flat'}
2024-09-11 06:55:38,394 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-68337176:ctest-vn-69863985 is found in opserver
2024-09-11 06:55:38,405 - DEBUG - Do not have enough data to verify VN in agent
2024-09-11 06:55:38,410 - DEBUG - VRF ids for VN ctest-vn-69863985: {}
2024-09-11 06:55:38,467 - DEBUG - Services list from nova: [