2024-09-11 19:24:05,493 - INFO - Domain Default found not creating
2024-09-11 19:24:05,690 - INFO - Project ctest-TestBasicPolicy-73624063 not found, creating it
2024-09-11 19:24:06,360 - INFO - Created Project:ctest-TestBasicPolicy-73624063, ID : 4df90dd4-c3cf-4181-bd18-c7947bc2cf05
2024-09-11 19:24:07,890 - INFO - ================================================================================
2024-09-11 19:24:07,890 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-09-11 19:24:07,890 - 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 19:24:08,145 - DEBUG - Nothing to compare xmpp stats {'10.0.0.41': {'10.20.0.17': '0'}} with
2024-09-11 19:24:08,145 - INFO - Initial checks done. Running the testcase now
2024-09-11 19:24:08,145 - INFO -
2024-09-11 19:24:09,459 - DEBUG - Response for create_network : {'network': {'id': '6abb22df-4dca-454c-be7e-f7ae37163f9c', 'name': 'ctest-vn-52732919', 'tenant_id': '4df90dd4c3cf4181bd18c7947bc2cf05', 'project_id': '4df90dd4c3cf4181bd18c7947bc2cf05', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-73624063', 'ctest-vn-52732919'], 'port_security_enabled': True, 'description': ''}}
2024-09-11 19:24:09,697 - DEBUG - Response for create_subnet : {'subnet': {'id': '0bceb304-30bd-4bb7-87a3-946d761dc640', 'name': '', 'tenant_id': '4df90dd4c3cf4181bd18c7947bc2cf05', 'network_id': '6abb22df-4dca-454c-be7e-f7ae37163f9c', 'ip_version': 4, 'cidr': '196.251.252.0/26', 'allocation_pools': [{'start': '196.251.252.2', 'end': '196.251.252.62'}], 'gateway_ip': '196.251.252.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '196.251.252.2', 'tags': [], 'project_id': '4df90dd4c3cf4181bd18c7947bc2cf05'}}
2024-09-11 19:24:09,715 - INFO - Created VN ctest-vn-52732919
2024-09-11 19:24:09,773 - DEBUG - VN ctest-vn-52732919 UUID is 6abb22df-4dca-454c-be7e-f7ae37163f9c
2024-09-11 19:24:10,074 - DEBUG - Response for create_network : {'network': {'id': 'b0f835bb-3907-4802-bece-070ed71be4cf', 'name': 'ctest-vn-35281226', 'tenant_id': '4df90dd4c3cf4181bd18c7947bc2cf05', 'project_id': '4df90dd4c3cf4181bd18c7947bc2cf05', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-73624063', 'ctest-vn-35281226'], 'port_security_enabled': True, 'description': ''}}
2024-09-11 19:24:10,244 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b12c220c-938d-4e43-b06d-1d96a95aa7a9', 'name': '', 'tenant_id': '4df90dd4c3cf4181bd18c7947bc2cf05', 'network_id': 'b0f835bb-3907-4802-bece-070ed71be4cf', 'ip_version': 4, 'cidr': '85.18.132.128/26', 'allocation_pools': [{'start': '85.18.132.130', 'end': '85.18.132.190'}], 'gateway_ip': '85.18.132.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '85.18.132.130', 'tags': [], 'project_id': '4df90dd4c3cf4181bd18c7947bc2cf05'}}
2024-09-11 19:24:10,264 - INFO - Created VN ctest-vn-35281226
2024-09-11 19:24:10,321 - DEBUG - VN ctest-vn-35281226 UUID is b0f835bb-3907-4802-bece-070ed71be4cf
2024-09-11 19:24:10,439 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-73624063:ctest-vn-52732919, 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-73624063:ctest-vn-35281226, 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 19:24:10,745 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6abb22df-4dca-454c-be7e-f7ae37163f9c', 'name': 'ctest-vn-52732919', 'tenant_id': '4df90dd4c3cf4181bd18c7947bc2cf05', 'project_id': '4df90dd4c3cf4181bd18c7947bc2cf05', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0bceb304-30bd-4bb7-87a3-946d761dc640'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-73624063', 'ctest-vn-52732919'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-73624063', 'ctest-policy-allow-all-17946723']], 'subnet_ipam': [{'subnet_cidr': '196.251.252.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-09-11 19:24:10,993 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b0f835bb-3907-4802-bece-070ed71be4cf', 'name': 'ctest-vn-35281226', 'tenant_id': '4df90dd4c3cf4181bd18c7947bc2cf05', 'project_id': '4df90dd4c3cf4181bd18c7947bc2cf05', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b12c220c-938d-4e43-b06d-1d96a95aa7a9'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-73624063', 'ctest-vn-35281226'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-73624063', 'ctest-policy-allow-all-17946723']], 'subnet_ipam': [{'subnet_cidr': '85.18.132.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-09-11 19:24:11,165 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2024-09-11 19:24:11,471 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2024-09-11 19:24:11,503 - DEBUG - Requesting: http://10.0.0.41:8082/domain/5a112774-58aa-4a68-8a95-0a54db660d4a
2024-09-11 19:24:11,521 - DEBUG - Requesting: http://10.0.0.41:8082/project/4df90dd4-c3cf-4181-bd18-c7947bc2cf05
2024-09-11 19:24:11,603 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/6abb22df-4dca-454c-be7e-f7ae37163f9c
2024-09-11 19:24:11,618 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/6abb22df-4dca-454c-be7e-f7ae37163f9c
2024-09-11 19:24:11,631 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/d9a3e3a5-22b7-4155-9527-df0100107c15
2024-09-11 19:24:11,640 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/d9a3e3a5-22b7-4155-9527-df0100107c15
2024-09-11 19:24:11,648 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/11c3509b-467b-45cd-8ff1-5d54205049d8
2024-09-11 19:24:11,656 - DEBUG - Route Targets: ['target:64512:8000005']
2024-09-11 19:24:11,656 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/6abb22df-4dca-454c-be7e-f7ae37163f9c
2024-09-11 19:24:11,669 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/d9a3e3a5-22b7-4155-9527-df0100107c15
2024-09-11 19:24:11,688 - INFO - Verified VN network id 7 for VN 6abb22df-4dca-454c-be7e-f7ae37163f9c
2024-09-11 19:24:11,689 - INFO - Verifications in API Server for VN ctest-vn-52732919 passed
2024-09-11 19:24:11,689 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/6abb22df-4dca-454c-be7e-f7ae37163f9c
2024-09-11 19:24:11,702 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/d9a3e3a5-22b7-4155-9527-df0100107c15
2024-09-11 19:24:11,710 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/d9a3e3a5-22b7-4155-9527-df0100107c15
2024-09-11 19:24:11,717 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/11c3509b-467b-45cd-8ff1-5d54205049d8
2024-09-11 19:24:11,730 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-73624063:ctest-vn-52732919', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-73624063', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7690779131143406924', 'uuid-lslong': '13726681041892425628'}, 'enable': 'true', 'created': '2024-09-11T19:24:09', 'last-modified': '2024-09-11T19:24:10', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.009333'}
2024-09-11 19:24:11,737 - DEBUG - Route Targets: ['target:64512:8000005']
2024-09-11 19:24:11,737 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-52732919 passed
2024-09-11 19:24:11,738 - DEBUG - ====Verifying policy data for ctest-vn-52732919 in API_Server ======
2024-09-11 19:24:11,738 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2024-09-11 19:24:11,745 - DEBUG - Requesting: http://10.0.0.41:8082/domain/5a112774-58aa-4a68-8a95-0a54db660d4a
2024-09-11 19:24:11,759 - DEBUG - Requesting: http://10.0.0.41:8082/project/4df90dd4-c3cf-4181-bd18-c7947bc2cf05
2024-09-11 19:24:11,845 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/6abb22df-4dca-454c-be7e-f7ae37163f9c
2024-09-11 19:24:11,858 - DEBUG - ==>Verifying data for policy with id: dd8743ce-e444-4530-b687-c18b3c68fe54, fqn: ['default-domain', 'ctest-TestBasicPolicy-73624063', 'ctest-policy-allow-all-17946723']
2024-09-11 19:24:11,858 - INFO - VN ctest-vn-52732919 Policy verification: verify_vn_policy_in_api_server, status: True
2024-09-11 19:24:11,858 - DEBUG - Verifying the vn in opserver
2024-09-11 19:24:11,858 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-73624063:ctest-vn-52732919 virtual network link through opserver 10.0.0.41
2024-09-11 19:24:11,858 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks
2024-09-11 19:24:12,155 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks
2024-09-11 19:24:12,217 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-73624063:ctest-vn-52732919', 'href': 'http://10.0.0.41:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-73624063:ctest-vn-52732919?flat'}
2024-09-11 19:24:12,217 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-73624063:ctest-vn-52732919 is found in opserver
2024-09-11 19:24:12,229 - DEBUG - Do not have enough data to verify VN in agent
2024-09-11 19:24:12,235 - DEBUG - VRF ids for VN ctest-vn-52732919: {}
2024-09-11 19:24:12,235 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2024-09-11 19:24:12,242 - DEBUG - Requesting: http://10.0.0.41:8082/domain/5a112774-58aa-4a68-8a95-0a54db660d4a
2024-09-11 19:24:12,256 - DEBUG - Requesting: http://10.0.0.41:8082/project/4df90dd4-c3cf-4181-bd18-c7947bc2cf05
2024-09-11 19:24:12,337 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/b0f835bb-3907-4802-bece-070ed71be4cf
2024-09-11 19:24:12,355 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/b0f835bb-3907-4802-bece-070ed71be4cf
2024-09-11 19:24:12,372 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/c9ac26e7-3bb3-4a98-889b-64f79b1030b5
2024-09-11 19:24:12,381 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/c9ac26e7-3bb3-4a98-889b-64f79b1030b5
2024-09-11 19:24:12,389 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/f4cae598-c2ef-43c1-8e2b-f630f48a3897
2024-09-11 19:24:12,397 - DEBUG - Route Targets: ['target:64512:8000006']
2024-09-11 19:24:12,397 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/b0f835bb-3907-4802-bece-070ed71be4cf
2024-09-11 19:24:12,413 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/c9ac26e7-3bb3-4a98-889b-64f79b1030b5
2024-09-11 19:24:12,437 - INFO - Verified VN network id 8 for VN b0f835bb-3907-4802-bece-070ed71be4cf
2024-09-11 19:24:12,437 - INFO - Verifications in API Server for VN ctest-vn-35281226 passed
2024-09-11 19:24:12,438 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/b0f835bb-3907-4802-bece-070ed71be4cf
2024-09-11 19:24:12,456 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/c9ac26e7-3bb3-4a98-889b-64f79b1030b5
2024-09-11 19:24:12,467 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/c9ac26e7-3bb3-4a98-889b-64f79b1030b5
2024-09-11 19:24:12,477 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/f4cae598-c2ef-43c1-8e2b-f630f48a3897
2024-09-11 19:24:12,492 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-73624063:ctest-vn-35281226', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-73624063', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12752001423131494402', 'uuid-lslong': '13748934472728569039'}, 'enable': 'true', 'created': '2024-09-11T19:24:10', 'last-modified': '2024-09-11T19:24:10', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.521088'}
2024-09-11 19:24:12,499 - DEBUG - Route Targets: ['target:64512:8000006']
2024-09-11 19:24:12,499 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-35281226 passed
2024-09-11 19:24:12,499 - DEBUG - ====Verifying policy data for ctest-vn-35281226 in API_Server ======
2024-09-11 19:24:12,499 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2024-09-11 19:24:12,506 - DEBUG - Requesting: http://10.0.0.41:8082/domain/5a112774-58aa-4a68-8a95-0a54db660d4a
2024-09-11 19:24:12,521 - DEBUG - Requesting: http://10.0.0.41:8082/project/4df90dd4-c3cf-4181-bd18-c7947bc2cf05
2024-09-11 19:24:12,599 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/b0f835bb-3907-4802-bece-070ed71be4cf
2024-09-11 19:24:12,612 - DEBUG - ==>Verifying data for policy with id: dd8743ce-e444-4530-b687-c18b3c68fe54, fqn: ['default-domain', 'ctest-TestBasicPolicy-73624063', 'ctest-policy-allow-all-17946723']
2024-09-11 19:24:12,612 - INFO - VN ctest-vn-35281226 Policy verification: verify_vn_policy_in_api_server, status: True
2024-09-11 19:24:12,612 - DEBUG - Verifying the vn in opserver
2024-09-11 19:24:12,612 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-73624063:ctest-vn-35281226 virtual network link through opserver 10.0.0.41
2024-09-11 19:24:12,612 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks
2024-09-11 19:24:12,623 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-73624063:ctest-vn-35281226', 'href': 'http://10.0.0.41:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-73624063:ctest-vn-35281226?flat'}
2024-09-11 19:24:12,623 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-73624063:ctest-vn-35281226 is found in opserver
2024-09-11 19:24:12,634 - DEBUG - Do not have enough data to verify VN in agent
2024-09-11 19:24:12,639 - DEBUG - VRF ids for VN ctest-vn-35281226: {}
2024-09-11 19:24:12,691 - DEBUG - Services list from nova: [